]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_misc_wrap.cpp
Add wxPyTabArt
[wxWidgets.git] / wxPython / src / gtk / _misc_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
093d3ff1 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
994141e6 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d14a1e28 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
d14a1e28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
15afbcd0 1030
0085ce49 1031/* Runtime API implementation */
15afbcd0 1032
0085ce49 1033/* Error manipulation */
093d3ff1 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
15afbcd0
RD
1041}
1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
093d3ff1 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
c32bde28 1058}
15afbcd0 1059
0085ce49 1060/* Append a value to the result obj */
15afbcd0 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
c32bde28
RD
1103}
1104
0085ce49 1105/* Unpack the argument tuple */
994141e6 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
c32bde28
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
994141e6 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
994141e6
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
994141e6 1710
093d3ff1 1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
994141e6 1713{
093d3ff1
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
c32bde28 1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
994141e6 1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
15afbcd0
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
15afbcd0 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1 1754}
d14a1e28 1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d14a1e28 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1 1848}
39f61e25 1849
093d3ff1 1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
15afbcd0 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
15afbcd0
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
15afbcd0 1947 }
c32bde28
RD
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
15afbcd0
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
15afbcd0 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1 2069 }
994141e6
RD
2070}
2071
0085ce49 2072/* Convert a packed value value */
994141e6 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d14a1e28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
093d3ff1 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
093d3ff1 2217}
d14a1e28 2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d14a1e28 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d14a1e28 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d14a1e28 2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
093d3ff1 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
0085ce49
RD
2321
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
d14a1e28 2465
32fe5131
RD
2466#define SWIGTYPE_p_char swig_types[0]
2467#define SWIGTYPE_p_form_ops_t swig_types[1]
2468#define SWIGTYPE_p_int swig_types[2]
2469#define SWIGTYPE_p_unsigned_char swig_types[3]
2470#define SWIGTYPE_p_unsigned_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_long swig_types[5]
2472#define SWIGTYPE_p_void swig_types[6]
2473#define SWIGTYPE_p_wxANIHandler swig_types[7]
b39fe951
RD
2474#define SWIGTYPE_p_wxAboutDialogInfo swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxArrayString swig_types[11]
2478#define SWIGTYPE_p_wxBMPHandler swig_types[12]
2479#define SWIGTYPE_p_wxBitmap swig_types[13]
2480#define SWIGTYPE_p_wxBitmapDataObject swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBusyCursor swig_types[16]
2483#define SWIGTYPE_p_wxBusyInfo swig_types[17]
2484#define SWIGTYPE_p_wxCURHandler swig_types[18]
2485#define SWIGTYPE_p_wxCaret swig_types[19]
2486#define SWIGTYPE_p_wxChar swig_types[20]
2487#define SWIGTYPE_p_wxChildFocusEvent swig_types[21]
2488#define SWIGTYPE_p_wxClipboard swig_types[22]
2489#define SWIGTYPE_p_wxClipboardLocker swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColour swig_types[26]
2493#define SWIGTYPE_p_wxCommandEvent swig_types[27]
2494#define SWIGTYPE_p_wxConfig swig_types[28]
2495#define SWIGTYPE_p_wxConfigBase swig_types[29]
2496#define SWIGTYPE_p_wxConfigPathChanger swig_types[30]
2497#define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498#define SWIGTYPE_p_wxControl swig_types[32]
2499#define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500#define SWIGTYPE_p_wxCursor swig_types[34]
2501#define SWIGTYPE_p_wxCustomDataObject swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
2503#define SWIGTYPE_p_wxDataFormat swig_types[37]
2504#define SWIGTYPE_p_wxDataObject swig_types[38]
2505#define SWIGTYPE_p_wxDataObjectComposite swig_types[39]
2506#define SWIGTYPE_p_wxDataObjectSimple swig_types[40]
2507#define SWIGTYPE_p_wxDateEvent swig_types[41]
2508#define SWIGTYPE_p_wxDateSpan swig_types[42]
2509#define SWIGTYPE_p_wxDateTime swig_types[43]
2510#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[44]
2511#define SWIGTYPE_p_wxDisplay swig_types[45]
2512#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[46]
2513#define SWIGTYPE_p_wxDropFilesEvent swig_types[47]
2514#define SWIGTYPE_p_wxDuplexMode swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileConfig swig_types[53]
2520#define SWIGTYPE_p_wxFileDataObject swig_types[54]
2521#define SWIGTYPE_p_wxFileHistory swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFileType swig_types[57]
2524#define SWIGTYPE_p_wxFileTypeInfo swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFrame swig_types[62]
2529#define SWIGTYPE_p_wxGBSizerItem swig_types[63]
2530#define SWIGTYPE_p_wxGIFHandler swig_types[64]
2531#define SWIGTYPE_p_wxGridBagSizer swig_types[65]
2532#define SWIGTYPE_p_wxGridSizer swig_types[66]
2533#define SWIGTYPE_p_wxICOHandler swig_types[67]
2534#define SWIGTYPE_p_wxIcon swig_types[68]
2535#define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536#define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537#define SWIGTYPE_p_wxImage swig_types[71]
2538#define SWIGTYPE_p_wxImageHandler swig_types[72]
2539#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2540#define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2541#define SWIGTYPE_p_wxJPEGHandler swig_types[75]
2542#define SWIGTYPE_p_wxJoystick swig_types[76]
2543#define SWIGTYPE_p_wxJoystickEvent swig_types[77]
2544#define SWIGTYPE_p_wxKeyEvent swig_types[78]
2545#define SWIGTYPE_p_wxKillError swig_types[79]
2546#define SWIGTYPE_p_wxLayoutConstraints swig_types[80]
2547#define SWIGTYPE_p_wxLog swig_types[81]
2548#define SWIGTYPE_p_wxLogBuffer swig_types[82]
2549#define SWIGTYPE_p_wxLogChain swig_types[83]
2550#define SWIGTYPE_p_wxLogGui swig_types[84]
2551#define SWIGTYPE_p_wxLogNull swig_types[85]
2552#define SWIGTYPE_p_wxLogStderr swig_types[86]
2553#define SWIGTYPE_p_wxLogTextCtrl swig_types[87]
2554#define SWIGTYPE_p_wxLogWindow swig_types[88]
2555#define SWIGTYPE_p_wxMaximizeEvent swig_types[89]
2556#define SWIGTYPE_p_wxMenu swig_types[90]
2557#define SWIGTYPE_p_wxMenuBar swig_types[91]
2558#define SWIGTYPE_p_wxMenuEvent swig_types[92]
2559#define SWIGTYPE_p_wxMenuItem swig_types[93]
2560#define SWIGTYPE_p_wxMetafileDataObject swig_types[94]
2561#define SWIGTYPE_p_wxMimeTypesManager swig_types[95]
2562#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[96]
2563#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[97]
2564#define SWIGTYPE_p_wxMouseEvent swig_types[98]
2565#define SWIGTYPE_p_wxMouseState swig_types[99]
2566#define SWIGTYPE_p_wxMoveEvent swig_types[100]
2567#define SWIGTYPE_p_wxMutexGuiLocker swig_types[101]
2568#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2569#define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2570#define SWIGTYPE_p_wxNotifyEvent swig_types[104]
2571#define SWIGTYPE_p_wxObject swig_types[105]
2572#define SWIGTYPE_p_wxOutputStream swig_types[106]
2573#define SWIGTYPE_p_wxPCXHandler swig_types[107]
2574#define SWIGTYPE_p_wxPNGHandler swig_types[108]
2575#define SWIGTYPE_p_wxPNMHandler swig_types[109]
2576#define SWIGTYPE_p_wxPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[111]
2578#define SWIGTYPE_p_wxPaperSize swig_types[112]
2579#define SWIGTYPE_p_wxPlatformInfo swig_types[113]
2580#define SWIGTYPE_p_wxPoint swig_types[114]
2581#define SWIGTYPE_p_wxPowerEvent swig_types[115]
2582#define SWIGTYPE_p_wxProcessEvent swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyArtProvider swig_types[118]
2585#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[121]
2588#define SWIGTYPE_p_wxPyDropSource swig_types[122]
2589#define SWIGTYPE_p_wxPyDropTarget swig_types[123]
2590#define SWIGTYPE_p_wxPyEvent swig_types[124]
2591#define SWIGTYPE_p_wxPyFileDropTarget swig_types[125]
2592#define SWIGTYPE_p_wxPyImageHandler swig_types[126]
2593#define SWIGTYPE_p_wxPyLog swig_types[127]
2594#define SWIGTYPE_p_wxPyProcess swig_types[128]
2595#define SWIGTYPE_p_wxPySizer swig_types[129]
2596#define SWIGTYPE_p_wxPyTextDataObject swig_types[130]
2597#define SWIGTYPE_p_wxPyTextDropTarget swig_types[131]
2598#define SWIGTYPE_p_wxPyTimer swig_types[132]
2599#define SWIGTYPE_p_wxPyTipProvider swig_types[133]
2600#define SWIGTYPE_p_wxPyValidator swig_types[134]
2601#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[135]
2602#define SWIGTYPE_p_wxRect swig_types[136]
2603#define SWIGTYPE_p_wxScrollEvent swig_types[137]
2604#define SWIGTYPE_p_wxScrollWinEvent swig_types[138]
2605#define SWIGTYPE_p_wxSetCursorEvent swig_types[139]
2606#define SWIGTYPE_p_wxShowEvent swig_types[140]
2607#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[141]
2608#define SWIGTYPE_p_wxSize swig_types[142]
2609#define SWIGTYPE_p_wxSizeEvent swig_types[143]
2610#define SWIGTYPE_p_wxSizer swig_types[144]
2611#define SWIGTYPE_p_wxSizerItem swig_types[145]
2612#define SWIGTYPE_p_wxSound swig_types[146]
2613#define SWIGTYPE_p_wxStandardPaths swig_types[147]
2614#define SWIGTYPE_p_wxStaticBoxSizer swig_types[148]
2615#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2616#define SWIGTYPE_p_wxStopWatch swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxSystemOptions swig_types[153]
2620#define SWIGTYPE_p_wxSystemSettings swig_types[154]
2621#define SWIGTYPE_p_wxTIFFHandler swig_types[155]
2622#define SWIGTYPE_p_wxTextCtrl swig_types[156]
2623#define SWIGTYPE_p_wxTextDataObject swig_types[157]
2624#define SWIGTYPE_p_wxTimeSpan swig_types[158]
2625#define SWIGTYPE_p_wxTimer swig_types[159]
2626#define SWIGTYPE_p_wxTimerEvent swig_types[160]
2627#define SWIGTYPE_p_wxTimerRunner swig_types[161]
2628#define SWIGTYPE_p_wxTipProvider swig_types[162]
2629#define SWIGTYPE_p_wxToolTip swig_types[163]
2630#define SWIGTYPE_p_wxURLDataObject swig_types[164]
2631#define SWIGTYPE_p_wxUpdateUIEvent swig_types[165]
2632#define SWIGTYPE_p_wxValidator swig_types[166]
2633#define SWIGTYPE_p_wxVideoMode swig_types[167]
2634#define SWIGTYPE_p_wxWindow swig_types[168]
2635#define SWIGTYPE_p_wxWindowCreateEvent swig_types[169]
2636#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[170]
2637#define SWIGTYPE_p_wxWindowDisabler swig_types[171]
2638#define SWIGTYPE_p_wxXPMHandler swig_types[172]
2639static swig_type_info *swig_types[174];
2640static swig_module_info swig_module = {swig_types, 173, 0, 0, 0, 0};
32fe5131
RD
2641#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2642#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2643
093d3ff1 2644/* -------- TYPES TABLE (END) -------- */
d14a1e28 2645
0085ce49
RD
2646#if (PY_VERSION_HEX <= 0x02000000)
2647# if !defined(SWIG_PYTHON_CLASSIC)
2648# error "This python version requires to use swig with the '-classic' option"
2649# endif
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodern' option"
2653#endif
2654#if (PY_VERSION_HEX <= 0x02020000)
2655# error "This python version requires to use swig with the '-nomodernargs' option"
2656#endif
2657#ifndef METH_O
2658# error "This python version requires to use swig with the '-nofastunpack' option"
2659#endif
d14a1e28 2660
093d3ff1
RD
2661/*-----------------------------------------------
2662 @(target):= _misc_.so
2663 ------------------------------------------------*/
2664#define SWIG_init init_misc_
d14a1e28 2665
093d3ff1 2666#define SWIG_name "_misc_"
4276dc52 2667
0085ce49
RD
2668#define SWIGVERSION 0x010329
2669
2670
2671#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2672#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2673
2674
2675#include <stdexcept>
2676
2677
2678namespace swig {
2679 class PyObject_ptr {
2680 protected:
2681 PyObject *_obj;
2682
2683 public:
2684 PyObject_ptr() :_obj(0)
2685 {
2686 }
2687
2688 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2689 {
2690 Py_XINCREF(_obj);
2691 }
2692
2693 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2694 {
2695 if (initial_ref) Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr & operator=(const PyObject_ptr& item)
2699 {
2700 Py_XINCREF(item._obj);
2701 Py_XDECREF(_obj);
2702 _obj = item._obj;
2703 return *this;
2704 }
2705
2706 ~PyObject_ptr()
2707 {
2708 Py_XDECREF(_obj);
2709 }
2710
2711 operator PyObject *() const
2712 {
2713 return _obj;
2714 }
2715
2716 PyObject *operator->() const
2717 {
2718 return _obj;
2719 }
2720 };
2721}
2722
2723
2724namespace swig {
2725 struct PyObject_var : PyObject_ptr {
2726 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2727
2728 PyObject_var & operator = (PyObject* obj)
2729 {
2730 Py_XDECREF(_obj);
2731 _obj = obj;
2732 return *this;
2733 }
2734 };
2735}
2736
2737
093d3ff1
RD
2738#include "wx/wxPython/wxPython.h"
2739#include "wx/wxPython/pyclasses.h"
2740#include "wx/wxPython/pyistream.h"
689b42ee 2741
093d3ff1 2742 static const wxString wxPyEmptyString(wxEmptyString);
689b42ee
RD
2743
2744
4276dc52 2745
0085ce49 2746 #define SWIG_From_long PyInt_FromLong
d14a1e28 2747
994141e6 2748
0085ce49
RD
2749SWIGINTERNINLINE PyObject *
2750SWIG_From_int (int value)
2751{
2752 return SWIG_From_long (value);
2753}
15afbcd0
RD
2754
2755
0085ce49
RD
2756#include <limits.h>
2757#ifndef LLONG_MIN
2758# define LLONG_MIN LONG_LONG_MIN
2759#endif
2760#ifndef LLONG_MAX
2761# define LLONG_MAX LONG_LONG_MAX
2762#endif
2763#ifndef ULLONG_MAX
2764# define ULLONG_MAX ULONG_LONG_MAX
2765#endif
15afbcd0
RD
2766
2767
093d3ff1 2768SWIGINTERN int
0085ce49 2769SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2770{
2771 if (PyNumber_Check(obj)) {
2772 if (val) *val = PyInt_AsLong(obj);
0085ce49 2773 return SWIG_OK;
093d3ff1 2774 }
0085ce49 2775 return SWIG_TypeError;
093d3ff1
RD
2776}
2777
2778
093d3ff1 2779SWIGINTERN int
0085ce49
RD
2780SWIG_AsVal_int (PyObject * obj, int *val)
2781{
093d3ff1 2782 long v;
0085ce49
RD
2783 int res = SWIG_AsVal_long (obj, &v);
2784 if (SWIG_IsOK(res)) {
2785 if ((v < INT_MIN || v > INT_MAX)) {
2786 return SWIG_OverflowError;
093d3ff1 2787 } else {
0085ce49 2788 if (val) *val = static_cast< int >(v);
c32bde28 2789 }
0085ce49
RD
2790 }
2791 return res;
994141e6
RD
2792}
2793
093d3ff1 2794 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
f78cc896 2795
093d3ff1 2796#include <wx/stockitem.h>
f78cc896 2797
093d3ff1
RD
2798 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
2799 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
2800 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
f78cc896 2801
093d3ff1 2802SWIGINTERN int
0085ce49 2803SWIG_AsVal_bool (PyObject *obj, bool *val)
093d3ff1
RD
2804{
2805 if (obj == Py_True) {
2806 if (val) *val = true;
0085ce49
RD
2807 return SWIG_OK;
2808 } else if (obj == Py_False) {
093d3ff1 2809 if (val) *val = false;
0085ce49 2810 return SWIG_OK;
093d3ff1 2811 } else {
0085ce49
RD
2812 long v = 0;
2813 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2814 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2815 return res;
093d3ff1 2816 }
093d3ff1 2817}
d14a1e28 2818
d14a1e28 2819
943e8dfd 2820 wxMemorySize wxGetFreeMemory()
093d3ff1 2821 { wxPyRaiseNotImplemented(); return 0; }
d14a1e28
RD
2822
2823
093d3ff1 2824SWIGINTERN int
0085ce49 2825SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2826{
2827 long v = 0;
2828 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2829 return SWIG_TypeError;
093d3ff1
RD
2830 }
2831 else if (val)
2832 *val = (unsigned long)v;
0085ce49 2833 return SWIG_OK;
093d3ff1 2834}
d14a1e28
RD
2835
2836
0085ce49
RD
2837SWIGINTERNINLINE PyObject*
2838SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2839{
0085ce49
RD
2840 return (value > LONG_MAX) ?
2841 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2842}
d14a1e28
RD
2843
2844
73c8ef6a
RD
2845 void* wxGetXDisplay()
2846 {
2847#ifdef __WXGTK__
2848 return wxGetDisplay();
2849#else
2850 return NULL;
2851#endif
2852 }
2853
2854
32fe5131
RD
2855 wxWindow* FindWindowAtPointer() {
2856 wxPoint unused;
2857 return wxFindWindowAtPointer(unused);
2858 }
2859
2860
093d3ff1 2861 void wxWakeUpMainThread() {}
d14a1e28
RD
2862
2863
093d3ff1
RD
2864 bool wxThread_IsMain() {
2865#ifdef WXP_WITH_THREAD
2866 return wxThread::IsMain();
2867#else
2868 return true;
2869#endif
d14a1e28 2870 }
093d3ff1 2871
0085ce49 2872SWIGINTERN void wxCaret_Destroy(wxCaret *self){
8e738329
RD
2873 delete self;
2874 }
d14a1e28 2875
093d3ff1
RD
2876#include <wx/snglinst.h>
2877
2878
68350608
RD
2879#ifdef __WXMSW__
2880#include <wx/msw/private.h>
2881#include <wx/dynload.h>
2882#endif
2883
2884
2885
2886bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc
2887#if 0
2888 , int method
2889#endif
2890 )
2891{
2892#ifdef __WXMSW__
2893#if 0
2894 switch (method)
2895 {
2896 case 1:
2897 // This one only partially works. Appears to be an undocumented
2898 // "standard" convention that not all widgets adhear to. For
2899 // example, for some widgets backgrounds or non-client areas may
2900 // not be painted.
2901 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
2902 break;
2903
2904 case 2:
2905#endif
2906 // This one works much better, nearly all widgets and their
2907 // children are captured correctly[**]. Prior to the big
2908 // background erase changes that Vadim did in 2004-2005 this
2909 // method failed badly on XP with Themes activated, most native
2910 // widgets draw only partially, if at all. Without themes it
2911 // worked just like on Win2k. After those changes this method
2912 // works very well.
2913 //
2914 // ** For example the radio buttons in a wxRadioBox are not its
2915 // children by default, but you can capture it via the panel
2916 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
2917 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
2918 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
2919 PRF_ERASEBKGND | PRF_OWNED );
2920 return true;
2921#if 0
2922 break;
2923
2924 case 3:
2925 // This one is only defined in the latest SDK and is only
2926 // available on XP. MSDN says it is similar to sending WM_PRINT
2927 // so I expect that it will work similar to the above. Since it
2928 // is avaialble only on XP, it can't be compiled like this and
2929 // will have to be loaded dynamically.
2930 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
2931
2932 // fall through
2933
2934 case 4:
2935 // Use PrintWindow if available, or fallback to WM_PRINT
2936 // otherwise. Unfortunately using PrintWindow is even worse than
2937 // WM_PRINT. For most native widgets nothing is drawn to the dc
2938 // at all, with or without Themes.
2939 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
2940 static bool s_triedToLoad = false;
2941 static PrintWindow_t pfnPrintWindow = NULL;
2942 if ( !s_triedToLoad )
2943 {
2944
2945 s_triedToLoad = true;
2946 wxDynamicLibrary dllUser32(_T("user32.dll"));
2947 if ( dllUser32.IsLoaded() )
2948 {
2949 wxLogNull nolog; // Don't report errors here
2950 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
2951 }
2952 }
2953 if (pfnPrintWindow)
2954 {
2955 //printf("Using PrintWindow\n");
2956 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
2957 }
2958 else
2959 {
2960 //printf("Using WM_PRINT\n");
2961 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
2962 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
2963 PRF_ERASEBKGND | PRF_OWNED );
2964 }
2965 }
2966#endif // 0
2967#else
2968 return false;
2969#endif // __WXMSW__
2970}
2971
2972
2973
093d3ff1
RD
2974#include <wx/tipdlg.h>
2975
2976
0085ce49
RD
2977SWIGINTERNINLINE PyObject *
2978SWIG_From_size_t (size_t value)
2979{
2980 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2981}
2982
2983
093d3ff1
RD
2984class wxPyTipProvider : public wxTipProvider {
2985public:
2986 wxPyTipProvider(size_t currentTip)
2987 : wxTipProvider(currentTip) {}
d14a1e28 2988
093d3ff1
RD
2989 DEC_PYCALLBACK_STRING__pure(GetTip);
2990 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
d14a1e28
RD
2991 PYPRIVATE;
2992};
2993
093d3ff1
RD
2994IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
2995IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
d14a1e28
RD
2996
2997
0085ce49
RD
2998SWIGINTERNINLINE int
2999SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3000{
3001 unsigned long v;
3002 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3003 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3004 return res;
3005}
3006
3007
c26d9ab4 3008IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
d14a1e28 3009
093d3ff1 3010IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
d14a1e28 3011
093d3ff1
RD
3012wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id)
3013 : wxTimer(owner, id)
3014{
0085ce49
RD
3015 if (owner == NULL)
3016 SetOwner(this);
093d3ff1 3017}
d14a1e28 3018
d14a1e28 3019
0085ce49
RD
3020SWIGINTERN swig_type_info*
3021SWIG_pchar_descriptor()
3022{
3023 static int init = 0;
3024 static swig_type_info* info = 0;
3025 if (!init) {
3026 info = SWIG_TypeQuery("_p_char");
3027 init = 1;
093d3ff1 3028 }
0085ce49 3029 return info;
093d3ff1
RD
3030}
3031
3032
0085ce49
RD
3033SWIGINTERNINLINE PyObject *
3034SWIG_FromCharPtrAndSize(const char* carray, size_t size)
093d3ff1 3035{
0085ce49
RD
3036 if (carray) {
3037 if (size > INT_MAX) {
3038 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3039 return pchar_descriptor ?
3040 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3041 } else {
3042 return PyString_FromStringAndSize(carray, static_cast< int >(size));
093d3ff1
RD
3043 }
3044 } else {
0085ce49 3045 return SWIG_Py_Void();
093d3ff1 3046 }
15afbcd0
RD
3047}
3048
3049
0085ce49
RD
3050SWIGINTERNINLINE PyObject *
3051SWIG_FromCharPtr(const char *cptr)
3052{
3053 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
c32bde28
RD
3054}
3055
0085ce49
RD
3056
3057SWIGINTERN int
3058SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
c32bde28 3059{
0085ce49
RD
3060 unsigned long v;
3061 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3062 if (SWIG_IsOK(res)) {
3063 if ((v > UINT_MAX)) {
3064 return SWIG_OverflowError;
3065 } else {
3066 if (val) *val = static_cast< unsigned int >(v);
3067 }
3068 }
3069 return res;
994141e6
RD
3070}
3071
0085ce49 3072SWIGINTERN wxString wxLog_TimeStamp(){
093d3ff1
RD
3073 wxString msg;
3074 wxLog::TimeStamp(&msg);
3075 return msg;
d14a1e28 3076 }
0085ce49 3077SWIGINTERN void wxLog_Destroy(wxLog *self){ delete self; }
7e08d4ef 3078// Make some wrappers that double any % signs so they are 'escaped'
093d3ff1
RD
3079 void wxPyLogFatalError(const wxString& msg)
3080 {
3081 wxString m(msg);
3082 m.Replace(wxT("%"), wxT("%%"));
3083 wxLogFatalError(m);
3084 }
3085
3086 void wxPyLogError(const wxString& msg)
3087 {
3088 wxString m(msg);
3089 m.Replace(wxT("%"), wxT("%%"));
3090 wxLogError(m);
3091 }
d14a1e28 3092
093d3ff1
RD
3093 void wxPyLogWarning(const wxString& msg)
3094 {
3095 wxString m(msg);
3096 m.Replace(wxT("%"), wxT("%%"));
3097 wxLogWarning(m);
3098 }
d14a1e28 3099
093d3ff1
RD
3100 void wxPyLogMessage(const wxString& msg)
3101 {
3102 wxString m(msg);
3103 m.Replace(wxT("%"), wxT("%%"));
3104 wxLogMessage(m);
3105 }
d14a1e28 3106
093d3ff1
RD
3107 void wxPyLogInfo(const wxString& msg)
3108 {
3109 wxString m(msg);
3110 m.Replace(wxT("%"), wxT("%%"));
3111 wxLogInfo(m);
3112 }
d14a1e28 3113
093d3ff1
RD
3114 void wxPyLogDebug(const wxString& msg)
3115 {
3116 wxString m(msg);
3117 m.Replace(wxT("%"), wxT("%%"));
3118 wxLogDebug(m);
3119 }
d14a1e28 3120
093d3ff1
RD
3121 void wxPyLogVerbose(const wxString& msg)
3122 {
3123 wxString m(msg);
3124 m.Replace(wxT("%"), wxT("%%"));
3125 wxLogVerbose(m);
3126 }
994141e6 3127
093d3ff1
RD
3128 void wxPyLogStatus(const wxString& msg)
3129 {
3130 wxString m(msg);
3131 m.Replace(wxT("%"), wxT("%%"));
3132 wxLogStatus(m);
3133 }
994141e6 3134
093d3ff1
RD
3135 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
3136 {
3137 wxString m(msg);
3138 m.Replace(wxT("%"), wxT("%%"));
3139 wxLogStatus(pFrame, m);
3140 }
d14a1e28 3141
093d3ff1
RD
3142 void wxPyLogSysError(const wxString& msg)
3143 {
3144 wxString m(msg);
3145 m.Replace(wxT("%"), wxT("%%"));
3146 wxLogSysError(m);
3147 }
d14a1e28 3148
093d3ff1
RD
3149 void wxPyLogGeneric(unsigned long level, const wxString& msg)
3150 {
3151 wxString m(msg);
3152 m.Replace(wxT("%"), wxT("%%"));
3153 wxLogGeneric(level, m);
3154 }
1a10c483 3155
093d3ff1
RD
3156 void wxPyLogTrace(unsigned long mask, const wxString& msg)
3157 {
3158 wxString m(msg);
3159 m.Replace(wxT("%"), wxT("%%"));
3160 wxLogTrace(mask, m);
3161 }
3162
3163 void wxPyLogTrace(const wxString& mask, const wxString& msg)
3164 {
3165 wxString m(msg);
3166 m.Replace(wxT("%"), wxT("%%"));
3167 wxLogTrace(mask, m);
3168 }
3169
d14a1e28 3170
d14a1e28 3171
093d3ff1
RD
3172// A wxLog class that can be derived from in wxPython
3173class wxPyLog : public wxLog {
3174public:
3175 wxPyLog() : wxLog() {}
d14a1e28 3176
093d3ff1
RD
3177 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
3178 bool found;
5a446332 3179 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3180 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
3181 PyObject* s = wx2PyString(szString);
3182 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
3183 Py_DECREF(s);
d14a1e28 3184 }
093d3ff1
RD
3185 wxPyEndBlockThreads(blocked);
3186 if (! found)
3187 wxLog::DoLog(level, szString, t);
d14a1e28 3188 }
d14a1e28 3189
093d3ff1
RD
3190 virtual void DoLogString(const wxChar *szString, time_t t) {
3191 bool found;
5a446332 3192 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3193 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
3194 PyObject* s = wx2PyString(szString);
3195 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
3196 Py_DECREF(s);
3197 }
3198 wxPyEndBlockThreads(blocked);
3199 if (! found)
3200 wxLog::DoLogString(szString, t);
d14a1e28 3201 }
d14a1e28 3202
c26d9ab4 3203 DEC_PYCALLBACK_VOID_(Flush);
d14a1e28
RD
3204 PYPRIVATE;
3205};
c26d9ab4 3206IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush);
d14a1e28 3207
d14a1e28 3208
d14a1e28 3209
1a10c483 3210
093d3ff1 3211IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
d14a1e28
RD
3212
3213
093d3ff1 3214#include <wx/joystick.h>
d14a1e28
RD
3215
3216
093d3ff1
RD
3217#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
3218// A C++ stub class for wxJoystick for platforms that don't have it.
3219class wxJoystick : public wxObject {
d14a1e28 3220public:
093d3ff1 3221 wxJoystick(int joystick = wxJOYSTICK1) {
5a446332 3222 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3223 PyErr_SetString(PyExc_NotImplementedError,
3224 "wxJoystick is not available on this platform.");
3225 wxPyEndBlockThreads(blocked);
3226 }
3227 wxPoint GetPosition() { return wxPoint(-1,-1); }
3228 int GetZPosition() { return -1; }
3229 int GetButtonState() { return -1; }
3230 int GetPOVPosition() { return -1; }
3231 int GetPOVCTSPosition() { return -1; }
3232 int GetRudderPosition() { return -1; }
3233 int GetUPosition() { return -1; }
3234 int GetVPosition() { return -1; }
3235 int GetMovementThreshold() { return -1; }
3236 void SetMovementThreshold(int threshold) {}
d14a1e28 3237
093d3ff1
RD
3238 bool IsOk(void) { return false; }
3239 int GetNumberJoysticks() { return -1; }
3240 int GetManufacturerId() { return -1; }
3241 int GetProductId() { return -1; }
3242 wxString GetProductName() { return wxEmptyString; }
3243 int GetXMin() { return -1; }
3244 int GetYMin() { return -1; }
3245 int GetZMin() { return -1; }
3246 int GetXMax() { return -1; }
3247 int GetYMax() { return -1; }
3248 int GetZMax() { return -1; }
3249 int GetNumberButtons() { return -1; }
3250 int GetNumberAxes() { return -1; }
3251 int GetMaxButtons() { return -1; }
3252 int GetMaxAxes() { return -1; }
3253 int GetPollingMin() { return -1; }
3254 int GetPollingMax() { return -1; }
3255 int GetRudderMin() { return -1; }
3256 int GetRudderMax() { return -1; }
3257 int GetUMin() { return -1; }
3258 int GetUMax() { return -1; }
3259 int GetVMin() { return -1; }
3260 int GetVMax() { return -1; }
d14a1e28 3261
093d3ff1
RD
3262 bool HasRudder() { return false; }
3263 bool HasZ() { return false; }
3264 bool HasU() { return false; }
3265 bool HasV() { return false; }
3266 bool HasPOV() { return false; }
3267 bool HasPOV4Dir() { return false; }
3268 bool HasPOVCTS() { return false; }
d14a1e28 3269
093d3ff1
RD
3270 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
3271 bool ReleaseCapture() { return false; }
d14a1e28 3272};
093d3ff1 3273#endif
d14a1e28 3274
6923d0a9 3275
093d3ff1 3276#include <wx/sound.h>
6923d0a9 3277
6923d0a9 3278
093d3ff1
RD
3279#if !wxUSE_SOUND
3280// A C++ stub class for wxWave for platforms that don't have it.
3281class wxSound : public wxObject
6923d0a9
RD
3282{
3283public:
093d3ff1 3284 wxSound() {
5a446332 3285 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3286 PyErr_SetString(PyExc_NotImplementedError,
3287 "wxSound is not available on this platform.");
3288 wxPyEndBlockThreads(blocked);
3289 }
3290 wxSound(const wxString&/*, bool*/) {
5a446332 3291 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3292 PyErr_SetString(PyExc_NotImplementedError,
3293 "wxSound is not available on this platform.");
3294 wxPyEndBlockThreads(blocked);
3295 }
3296 wxSound(int, const wxByte*) {
5a446332 3297 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3298 PyErr_SetString(PyExc_NotImplementedError,
3299 "wxSound is not available on this platform.");
3300 wxPyEndBlockThreads(blocked);
3301 }
6923d0a9 3302
093d3ff1 3303 ~wxSound() {};
6923d0a9 3304
093d3ff1
RD
3305 bool Create(const wxString&/*, bool*/) { return false; }
3306 bool Create(int, const wxByte*) { return false; };
3307 bool IsOk() { return false; };
3308 bool Play(unsigned) const { return false; }
3309 static bool Play(const wxString&, unsigned) { return false; }
3310 static void Stop() {}
6923d0a9 3311};
093d3ff1 3312
6923d0a9
RD
3313#endif
3314
0085ce49 3315SWIGINTERN wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){
093d3ff1
RD
3316 if (fileName.Length() == 0)
3317 return new wxSound;
3318 else
3319 return new wxSound(fileName);
3320 }
0085ce49 3321SWIGINTERN wxSound *new_wxSound(PyObject *data){
093d3ff1
RD
3322 unsigned char* buffer; int size;
3323 wxSound *sound = NULL;
3324
5a446332 3325 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3326 if (!PyArg_Parse(data, "t#", &buffer, &size))
3327 goto done;
3328 sound = new wxSound(size, buffer);
3329 done:
4f89f6a3 3330 wxPyEndBlockThreads(blocked);
093d3ff1 3331 return sound;
4276dc52 3332 }
0085ce49 3333SWIGINTERN bool wxSound_CreateFromData(wxSound *self,PyObject *data){
093d3ff1
RD
3334 #ifndef __WXMAC__
3335 unsigned char* buffer;
3336 int size;
3337 bool rv = false;
d3b6e4ff 3338
5a446332 3339 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3340 if (!PyArg_Parse(data, "t#", &buffer, &size))
3341 goto done;
3342 rv = self->Create(size, buffer);
3343 done:
3344 wxPyEndBlockThreads(blocked);
3345 return rv;
3346 #else
5a446332 3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3348 PyErr_SetString(PyExc_NotImplementedError,
3349 "Create from data is not available on this platform.");
3350 wxPyEndBlockThreads(blocked);
3351 return false;
3352 #endif
3353 }
d3b6e4ff 3354
093d3ff1
RD
3355#include <wx/mimetype.h>
3356
0085ce49 3357SWIGINTERN PyObject *wxFileType_GetMimeType(wxFileType *self){
093d3ff1
RD
3358 wxString str;
3359 if (self->GetMimeType(&str))
3360 return wx2PyString(str);
3361 else
3362 RETURN_NONE();
8fb0e70a 3363 }
0085ce49 3364SWIGINTERN PyObject *wxFileType_GetMimeTypes(wxFileType *self){
093d3ff1
RD
3365 wxArrayString arr;
3366 if (self->GetMimeTypes(arr))
3367 return wxArrayString2PyList_helper(arr);
3368 else
3369 RETURN_NONE();
3370 }
0085ce49 3371SWIGINTERN PyObject *wxFileType_GetExtensions(wxFileType *self){
093d3ff1
RD
3372 wxArrayString arr;
3373 if (self->GetExtensions(arr))
3374 return wxArrayString2PyList_helper(arr);
3375 else
3376 RETURN_NONE();
3377 }
0085ce49 3378SWIGINTERN wxIcon *wxFileType_GetIcon(wxFileType *self){
093d3ff1
RD
3379 wxIconLocation loc;
3380 if (self->GetIcon(&loc))
3381 return new wxIcon(loc);
3382 else
3383 return NULL;
3384 }
0085ce49 3385SWIGINTERN PyObject *wxFileType_GetIconInfo(wxFileType *self){
093d3ff1
RD
3386 wxIconLocation loc;
3387 if (self->GetIcon(&loc)) {
3388 wxString iconFile = loc.GetFileName();
3389 int iconIndex = -1;
d14a1e28
RD
3390
3391
d14a1e28 3392
093d3ff1 3393 // Make a tuple and put the values in it
5a446332 3394 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3395 PyObject* tuple = PyTuple_New(3);
3396 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
3397 wxT("wxIcon"), true));
3398 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
3399 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
3400 wxPyEndBlockThreads(blocked);
3401 return tuple;
3402 }
3403 else
3404 RETURN_NONE();
3405 }
0085ce49 3406SWIGINTERN PyObject *wxFileType_GetDescription(wxFileType *self){
093d3ff1
RD
3407 wxString str;
3408 if (self->GetDescription(&str))
3409 return wx2PyString(str);
3410 else
3411 RETURN_NONE();
3412 }
0085ce49 3413SWIGINTERN PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3414 wxString str;
3415 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
3416 return wx2PyString(str);
3417 else
3418 RETURN_NONE();
3419 }
0085ce49 3420SWIGINTERN PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3421 wxString str;
3422 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
3423 return wx2PyString(str);
3424 else
3425 RETURN_NONE();
3426 }
0085ce49 3427SWIGINTERN PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3428 wxArrayString verbs;
3429 wxArrayString commands;
3430 if (self->GetAllCommands(&verbs, &commands,
3431 wxFileType::MessageParameters(filename, mimetype))) {
5a446332 3432 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3433 PyObject* tuple = PyTuple_New(2);
3434 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
3435 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
3436 wxPyEndBlockThreads(blocked);
3437 return tuple;
3438 }
3439 else
3440 RETURN_NONE();
3441 }
0085ce49 3442SWIGINTERN wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3443 return wxFileType::ExpandCommand(command,
3444 wxFileType::MessageParameters(filename, mimetype));
3445 }
0085ce49 3446SWIGINTERN PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
093d3ff1
RD
3447 wxArrayString arr;
3448 self->EnumAllFileTypes(arr);
3449 return wxArrayString2PyList_helper(arr);
3450 }
d14a1e28 3451
093d3ff1 3452#include <wx/artprov.h>
d14a1e28 3453
093d3ff1
RD
3454 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
3455 static const wxString wxPyART_MENU(wxART_MENU);
3456 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
3457 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
3458 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
3459 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
3460 static const wxString wxPyART_BUTTON(wxART_BUTTON);
3461 static const wxString wxPyART_OTHER(wxART_OTHER);
3462 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
3463 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
3464 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
3465 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
3466 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
3467 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
3468 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
3469 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
3470 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
3471 static const wxString wxPyART_GO_UP(wxART_GO_UP);
3472 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
3473 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
3474 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
3475 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
0c243d93
RD
3476 static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE);
3477 static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS);
093d3ff1
RD
3478 static const wxString wxPyART_PRINT(wxART_PRINT);
3479 static const wxString wxPyART_HELP(wxART_HELP);
3480 static const wxString wxPyART_TIP(wxART_TIP);
3481 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
3482 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
3483 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
3484 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
3485 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
3486 static const wxString wxPyART_CDROM(wxART_CDROM);
3487 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
3488 static const wxString wxPyART_FOLDER(wxART_FOLDER);
3489 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
3490 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
3491 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
3492 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
3493 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
3494 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
3495 static const wxString wxPyART_ERROR(wxART_ERROR);
3496 static const wxString wxPyART_QUESTION(wxART_QUESTION);
3497 static const wxString wxPyART_WARNING(wxART_WARNING);
3498 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
3499 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
0c243d93
RD
3500 static const wxString wxPyART_COPY(wxART_COPY);
3501 static const wxString wxPyART_CUT(wxART_CUT);
3502 static const wxString wxPyART_PASTE(wxART_PASTE);
3503 static const wxString wxPyART_DELETE(wxART_DELETE);
a187dc0b 3504 static const wxString wxPyART_NEW(wxART_NEW);
0c243d93
RD
3505 static const wxString wxPyART_UNDO(wxART_UNDO);
3506 static const wxString wxPyART_REDO(wxART_REDO);
3507 static const wxString wxPyART_QUIT(wxART_QUIT);
3508 static const wxString wxPyART_FIND(wxART_FIND);
3509 static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE);
093d3ff1
RD
3510 // Python aware wxArtProvider
3511class wxPyArtProvider : public wxArtProvider {
3512public:
d14a1e28 3513
093d3ff1
RD
3514 virtual wxBitmap CreateBitmap(const wxArtID& id,
3515 const wxArtClient& client,
3516 const wxSize& size) {
3517 wxBitmap rval = wxNullBitmap;
5a446332 3518 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3519 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
3520 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
3521 PyObject* ro;
3522 wxBitmap* ptr;
3523 PyObject* s1, *s2;
3524 s1 = wx2PyString(id);
3525 s2 = wx2PyString(client);
3526 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
3527 Py_DECREF(so);
3528 Py_DECREF(s1);
3529 Py_DECREF(s2);
3530 if (ro) {
3531 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
3532 rval = *ptr;
3533 Py_DECREF(ro);
3534 }
3535 }
3536 wxPyEndBlockThreads(blocked);
3537 return rval;
4f89f6a3 3538 }
d14a1e28 3539
093d3ff1
RD
3540 PYPRIVATE;
3541};
d14a1e28 3542
0085ce49 3543SWIGINTERN void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d14a1e28
RD
3544
3545
093d3ff1
RD
3546
3547 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
e9d6f3a4 3548 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3549 PyObject* ret = PyTuple_New(3);
3550 if (ret) {
3551 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
3552 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
3553 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
3554 }
e9d6f3a4 3555 wxPyEndBlockThreads(blocked);
093d3ff1 3556 return ret;
d14a1e28 3557 }
d14a1e28 3558
0085ce49 3559SWIGINTERN PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
093d3ff1
RD
3560 bool cont;
3561 long index = 0;
3562 wxString value;
d14a1e28 3563
093d3ff1
RD
3564 cont = self->GetFirstGroup(value, index);
3565 return __EnumerationHelper(cont, value, index);
3566 }
0085ce49 3567SWIGINTERN PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
093d3ff1
RD
3568 bool cont;
3569 wxString value;
7e63a440 3570
093d3ff1
RD
3571 cont = self->GetNextGroup(value, index);
3572 return __EnumerationHelper(cont, value, index);
3573 }
0085ce49 3574SWIGINTERN PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
093d3ff1
RD
3575 bool cont;
3576 long index = 0;
3577 wxString value;
7e63a440 3578
093d3ff1
RD
3579 cont = self->GetFirstEntry(value, index);
3580 return __EnumerationHelper(cont, value, index);
3581 }
0085ce49 3582SWIGINTERN PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
093d3ff1
RD
3583 bool cont;
3584 wxString value;
7e63a440 3585
093d3ff1
RD
3586 cont = self->GetNextEntry(value, index);
3587 return __EnumerationHelper(cont, value, index);
3588 }
0085ce49 3589SWIGINTERN long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){
093d3ff1
RD
3590 long rv;
3591 self->Read(key, &rv, defaultVal);
3592 return rv;
3593 }
7e63a440 3594
093d3ff1 3595SWIGINTERN int
0085ce49 3596SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3597{
3598 if (PyNumber_Check(obj)) {
3599 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3600 return SWIG_OK;
093d3ff1 3601 }
0085ce49 3602 return SWIG_TypeError;
d14a1e28
RD
3603}
3604
0085ce49 3605SWIGINTERN double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){
093d3ff1
RD
3606 double rv;
3607 self->Read(key, &rv, defaultVal);
3608 return rv;
3609 }
d14a1e28 3610
0085ce49 3611 #define SWIG_From_double PyFloat_FromDouble
d14a1e28 3612
0085ce49 3613SWIGINTERN bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){
093d3ff1
RD
3614 bool rv;
3615 self->Read(key, &rv, defaultVal);
3616 return rv;
3617 }
d14a1e28 3618
093d3ff1 3619#include <wx/datetime.h>
d14a1e28 3620
7557b9b5
RD
3621 static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat);
3622 static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat);
d14a1e28 3623
093d3ff1 3624#define LOCAL_TZ wxDateTime::Local
b2dc1044 3625
0085ce49 3626SWIGINTERN PyObject *wxDateTime_GetAmPmStrings(){
b9d6a5f3
RD
3627 wxString am;
3628 wxString pm;
3629 wxDateTime::GetAmPmStrings(&am, &pm);
5a446332 3630 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b9d6a5f3
RD
3631 PyObject* tup = PyTuple_New(2);
3632 PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
3633 PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
3634 wxPyEndBlockThreads(blocked);
3635 return tup;
3636 }
b2dc1044 3637
0085ce49
RD
3638SWIGINTERNINLINE PyObject *
3639SWIG_From_unsigned_SS_int (unsigned int value)
3640{
3641 return SWIG_From_unsigned_SS_long (value);
3642}
b2dc1044 3643
0085ce49
RD
3644SWIGINTERN wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
3645SWIGINTERN wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
3646SWIGINTERN wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
3647SWIGINTERN wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
3648SWIGINTERN wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
3649SWIGINTERN bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3650 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
3651 return (*self < *other);
3652 }
0085ce49 3653SWIGINTERN bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3654 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
3655 return (*self <= *other);
3656 }
0085ce49 3657SWIGINTERN bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3658 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
3659 return (*self > *other);
3660 }
0085ce49 3661SWIGINTERN bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3662 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
3663 return (*self >= *other);
3664 }
0085ce49 3665SWIGINTERN bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3666 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
3667 return (*self == *other);
3668 }
0085ce49 3669SWIGINTERN bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3670 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
3671 return (*self != *other);
3672 }
0085ce49 3673SWIGINTERN int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
093d3ff1
RD
3674 const wxChar* rv;
3675 const wxChar* _date = date;
3676 rv = self->ParseRfc822Date(_date);
3677 if (rv == NULL) return -1;
3678 return rv - _date;
3679 }
0085ce49 3680SWIGINTERN int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){
093d3ff1
RD
3681 const wxChar* rv;
3682 const wxChar* _date = date;
3683 rv = self->ParseFormat(_date, format, dateDef);
3684 if (rv == NULL) return -1;
3685 return rv - _date;
3686 }
0085ce49 3687SWIGINTERN int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
093d3ff1
RD
3688 const wxChar* rv;
3689 const wxChar* _datetime = datetime;
3690 rv = self->ParseDateTime(_datetime);
3691 if (rv == NULL) return -1;
3692 return rv - _datetime;
3693 }
0085ce49 3694SWIGINTERN int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
093d3ff1
RD
3695 const wxChar* rv;
3696 const wxChar* _date = date;
3697 rv = self->ParseDate(_date);
3698 if (rv == NULL) return -1;
3699 return rv - _date;
3700 }
0085ce49 3701SWIGINTERN int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
093d3ff1
RD
3702 const wxChar* rv;
3703 const wxChar* _time = time;
3704 rv = self->ParseTime(_time);
3705 if (rv == NULL) return -1;
3706 return rv - _time;
3707 }
0085ce49
RD
3708SWIGINTERN wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
3709SWIGINTERN wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
3710SWIGINTERN wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
3711SWIGINTERN wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
3712SWIGINTERN bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
3713SWIGINTERN bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
3714SWIGINTERN bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
3715SWIGINTERN bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
3716SWIGINTERN bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
3717SWIGINTERN bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
3718SWIGINTERN wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
3719SWIGINTERN wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
3720SWIGINTERN wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
3721SWIGINTERN wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
3722SWIGINTERN bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
3723SWIGINTERN bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
b2dc1044 3724
093d3ff1 3725#include <wx/dataobj.h>
b2dc1044 3726
0085ce49 3727SWIGINTERN PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){
093d3ff1
RD
3728 size_t count = self->GetFormatCount(dir);
3729 wxDataFormat* formats = new wxDataFormat[count];
3730 self->GetAllFormats(formats, dir);
b2dc1044 3731
5a446332 3732 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3733 PyObject* list = PyList_New(count);
3734 for (size_t i=0; i<count; i++) {
3735 wxDataFormat* format = new wxDataFormat(formats[i]);
3736 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
943e8dfd 3737 PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference
093d3ff1
RD
3738 }
3739 wxPyEndBlockThreads(blocked);
3740 delete [] formats;
3741 return list;
3742 }
0085ce49 3743SWIGINTERN PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
093d3ff1
RD
3744 PyObject* rval = NULL;
3745 size_t size = self->GetDataSize(format);
5a446332 3746 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3747 if (size) {
3748 char* buf = new char[size];
3749 if (self->GetDataHere(format, buf))
3750 rval = PyString_FromStringAndSize(buf, size);
3751 delete [] buf;
3752 }
3753 if (! rval) {
3754 rval = Py_None;
3755 Py_INCREF(rval);
3756 }
3757 wxPyEndBlockThreads(blocked);
3758 return rval;
3759 }
0085ce49 3760SWIGINTERN bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
093d3ff1 3761 bool rval;
5a446332 3762 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3763 if (PyString_Check(data)) {
3764 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
3765 }
3766 else {
3767 // raise a TypeError if not a string
3768 PyErr_SetString(PyExc_TypeError, "String expected.");
3769 rval = false;
3770 }
3771 wxPyEndBlockThreads(blocked);
3772 return rval;
3773 }
0085ce49 3774SWIGINTERN PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
093d3ff1
RD
3775 PyObject* rval = NULL;
3776 size_t size = self->GetDataSize();
5a446332 3777 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3778 if (size) {
3779 char* buf = new char[size];
3780 if (self->GetDataHere(buf))
3781 rval = PyString_FromStringAndSize(buf, size);
3782 delete [] buf;
3783 }
3784 if (! rval) {
3785 rval = Py_None;
3786 Py_INCREF(rval);
3787 }
3788 wxPyEndBlockThreads(blocked);
3789 return rval;
3790 }
0085ce49 3791SWIGINTERN bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
093d3ff1 3792 bool rval;
5a446332 3793 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3794 if (PyString_Check(data)) {
3795 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
3796 }
3797 else {
3798 // raise a TypeError if not a string
3799 PyErr_SetString(PyExc_TypeError, "String expected.");
3800 rval = false;
3801 }
3802 wxPyEndBlockThreads(blocked);
3803 return rval;
3804 }
3805 // Create a new class for wxPython to use
3806class wxPyDataObjectSimple : public wxDataObjectSimple {
3807public:
3808 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
3809 : wxDataObjectSimple(format) {}
b2dc1044 3810
093d3ff1
RD
3811 DEC_PYCALLBACK_SIZET__const(GetDataSize);
3812 bool GetDataHere(void *buf) const;
5d9dedfe 3813 bool SetData(size_t len, const void *buf);
093d3ff1
RD
3814 PYPRIVATE;
3815};
b2dc1044 3816
093d3ff1 3817IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
b2dc1044 3818
093d3ff1
RD
3819bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
3820 // We need to get the data for this object and write it to buf. I think
3821 // the best way to do this for wxPython is to have the Python method
3822 // return either a string or None and then act appropriately with the
3823 // C++ version.
b2dc1044 3824
093d3ff1 3825 bool rval = false;
5a446332 3826 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3827 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
3828 PyObject* ro;
3829 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
3830 if (ro) {
3831 rval = (ro != Py_None && PyString_Check(ro));
3832 if (rval)
3833 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
3834 Py_DECREF(ro);
3835 }
b2dc1044 3836 }
093d3ff1
RD
3837 wxPyEndBlockThreads(blocked);
3838 return rval;
b2dc1044
RD
3839}
3840
5d9dedfe 3841bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) {
093d3ff1
RD
3842 // For this one we simply need to make a string from buf and len
3843 // and send it to the Python method.
3844 bool rval = false;
5a446332 3845 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3846 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
3847 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
3848 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
3849 Py_DECREF(data);
3850 }
3851 wxPyEndBlockThreads(blocked);
3852 return rval;
3853}
b2dc1044 3854
093d3ff1
RD
3855 // Create a new class for wxPython to use
3856class wxPyTextDataObject : public wxTextDataObject {
3857public:
3858 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
3859 : wxTextDataObject(text) {}
3860
3861 DEC_PYCALLBACK_SIZET__const(GetTextLength);
3862 DEC_PYCALLBACK_STRING__const(GetText);
3863 DEC_PYCALLBACK__STRING(SetText);
3864 PYPRIVATE;
3865};
3866
3867IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
3868IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
3869IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
3870
3871
3872 // Create a new class for wxPython to use
3873class wxPyBitmapDataObject : public wxBitmapDataObject {
3874public:
3875 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
3876 : wxBitmapDataObject(bitmap) {}
3877
3878 wxBitmap GetBitmap() const;
3879 void SetBitmap(const wxBitmap& bitmap);
3880 PYPRIVATE;
3881};
3882
3883wxBitmap wxPyBitmapDataObject::GetBitmap() const {
3884 wxBitmap* rval = &wxNullBitmap;
5a446332 3885 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3886 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
3887 PyObject* ro;
3888 wxBitmap* ptr;
3889 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
3890 if (ro) {
3891 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
3892 rval = ptr;
3893 Py_DECREF(ro);
3894 }
3895 }
3896 wxPyEndBlockThreads(blocked);
3897 return *rval;
3898}
3899
3900void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
5a446332 3901 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3902 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
3903 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
3904 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
3905 Py_DECREF(bo);
3906 }
3907 wxPyEndBlockThreads(blocked);
3908}
3909
0085ce49 3910SWIGINTERN wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){
7557b9b5
RD
3911 return new wxCustomDataObject(wxDataFormat(formatName));
3912 }
0085ce49 3913SWIGINTERN bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
093d3ff1 3914 bool rval;
5a446332 3915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3916 if (PyString_Check(data)) {
3917 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
3918 }
3919 else {
3920 // raise a TypeError if not a string
3921 PyErr_SetString(PyExc_TypeError, "String expected.");
3922 rval = false;
3923 }
3924 wxPyEndBlockThreads(blocked);
3925 return rval;
3926 }
0085ce49 3927SWIGINTERN PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
093d3ff1 3928 PyObject* obj;
5a446332 3929 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3930 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
3931 wxPyEndBlockThreads(blocked);
3932 return obj;
3933 }
3934
3935class wxMetafileDataObject : public wxDataObjectSimple
3936{
3937public:
3938 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
3939};
3940
3941
3942IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
3943
3944
3945IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
3946IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
3947IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
3948IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
3949IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
3950
3951
3952class wxPyTextDropTarget : public wxTextDropTarget {
3953public:
3954 wxPyTextDropTarget() {}
3955
3956 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
3957
3958 DEC_PYCALLBACK__(OnLeave);
3959 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3960 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3961 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3962 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3963
3964 PYPRIVATE;
3965};
3966
3967IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
3968IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
3969IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
3970IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
3971IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
3972IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
3973
3974
3975
3976class wxPyFileDropTarget : public wxFileDropTarget {
3977public:
3978 wxPyFileDropTarget() {}
3979
3980 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
3981
3982 DEC_PYCALLBACK__(OnLeave);
3983 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3984 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3985 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3986 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3987
3988 PYPRIVATE;
3989};
3990
3991bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
3992 const wxArrayString& filenames) {
3993 bool rval = false;
5a446332 3994 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3995 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
3996 PyObject* list = wxArrayString2PyList_helper(filenames);
3997 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
3998 Py_DECREF(list);
3999 }
4000 wxPyEndBlockThreads(blocked);
4001 return rval;
4002}
4003
4004
4005
4006IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
4007IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
4008IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
4009IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
4010IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
4011
4012
4013
4014
0085ce49 4015SWIGINTERN bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
093d3ff1
RD
4016
4017#include <wx/display.h>
4018
0085ce49
RD
4019SWIGINTERN bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
4020SWIGINTERN bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
093d3ff1 4021
093d3ff1 4022#if !wxUSE_DISPLAY
f52cbe90 4023const wxVideoMode wxDefaultVideoMode;
093d3ff1
RD
4024#endif
4025
0085ce49 4026SWIGINTERN PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
f52cbe90 4027#if wxUSE_DISPLAY
093d3ff1
RD
4028 PyObject* pyList = NULL;
4029 wxArrayVideoModes arr = self->GetModes(mode);
5a446332 4030 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1 4031 pyList = PyList_New(0);
f52cbe90
RD
4032 for (size_t i=0; i < arr.GetCount(); i++)
4033 {
093d3ff1
RD
4034 wxVideoMode* m = new wxVideoMode(arr.Item(i));
4035 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
4036 PyList_Append(pyList, pyObj);
4037 Py_DECREF(pyObj);
4038 }
4039 wxPyEndBlockThreads(blocked);
4040 return pyList;
f52cbe90
RD
4041#else
4042 wxPyRaiseNotImplemented();
4043 return NULL;
4044#endif
4045 }
4046SWIGINTERN wxVideoMode wxDisplay_GetCurrentMode(wxDisplay const *self){
4047#if wxUSE_DISPLAY
4048 return self->GetCurrentMode();
4049#else
4050 wxPyRaiseNotImplemented();
4051 return wxDefaultVideoMode;
4052#endif
4053 }
4054SWIGINTERN bool wxDisplay_ChangeMode(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
4055#if wxUSE_DISPLAY
4056 return self->ChangeMode(mode);
4057#else
4058 wxPyRaiseNotImplemented();
4059 return false;
4060#endif
4061 }
4062SWIGINTERN void wxDisplay_ResetMode(wxDisplay *self){
4063#if wxUSE_DISPLAY
4064 self->ResetMode();
4065#else
4066 wxPyRaiseNotImplemented();
4067#endif
093d3ff1
RD
4068 }
4069
4070#include <wx/stdpaths.h>
4071
0085ce49 4072SWIGINTERN wxStandardPaths *wxStandardPaths_Get(){
093d3ff1
RD
4073 return (wxStandardPaths*) &wxStandardPaths::Get();
4074 }
704eda0c 4075
704eda0c
RD
4076#ifndef wxHAS_POWER_EVENTS
4077// Dummy class and other definitions for platforms that don't have them
4078
092f0ed7
RD
4079// See wxPython_int.h for wxPowerEvent
4080
704eda0c
RD
4081enum {
4082 wxEVT_POWER_SUSPENDING,
4083 wxEVT_POWER_SUSPENDED,
4084 wxEVT_POWER_SUSPEND_CANCEL,
4085 wxEVT_POWER_RESUME,
4086};
4087
4088wxPowerType wxGetPowerType() { return wxPOWER_UNKNOWN; }
4089wxBatteryState wxGetBatteryState() { return wxBATTERY_UNKNOWN_STATE; }
4090
4091#endif
4092
b39fe951
RD
4093
4094#include <wx/aboutdlg.h>
4095
093d3ff1
RD
4096#ifdef __cplusplus
4097extern "C" {
4098#endif
0085ce49
RD
4099SWIGINTERN PyObject *_wrap_SystemSettings_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj = 0;
4101 wxSystemColour arg1 ;
4102 wxColour result;
4103 int val1 ;
4104 int ecode1 = 0 ;
4105 PyObject * obj0 = 0 ;
4106 char * kwnames[] = {
4107 (char *) "index", NULL
4108 };
4109
4110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) SWIG_fail;
4111 ecode1 = SWIG_AsVal_int(obj0, &val1);
4112 if (!SWIG_IsOK(ecode1)) {
4113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetColour" "', expected argument " "1"" of type '" "wxSystemColour""'");
4114 }
4115 arg1 = static_cast< wxSystemColour >(val1);
4116 {
4117 if (!wxPyCheckForApp()) SWIG_fail;
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 result = wxSystemSettings::GetColour(arg1);
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4124 return resultobj;
4125fail:
4126 return NULL;
4127}
4128
4129
4130SWIGINTERN PyObject *_wrap_SystemSettings_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4131 PyObject *resultobj = 0;
4132 wxSystemFont arg1 ;
4133 wxFont result;
4134 int val1 ;
4135 int ecode1 = 0 ;
4136 PyObject * obj0 = 0 ;
4137 char * kwnames[] = {
4138 (char *) "index", NULL
4139 };
4140
4141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) SWIG_fail;
4142 ecode1 = SWIG_AsVal_int(obj0, &val1);
4143 if (!SWIG_IsOK(ecode1)) {
4144 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetFont" "', expected argument " "1"" of type '" "wxSystemFont""'");
4145 }
4146 arg1 = static_cast< wxSystemFont >(val1);
4147 {
4148 if (!wxPyCheckForApp()) SWIG_fail;
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = wxSystemSettings::GetFont(arg1);
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
4155 return resultobj;
4156fail:
4157 return NULL;
4158}
4159
4160
4161SWIGINTERN PyObject *_wrap_SystemSettings_GetMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj = 0;
4163 wxSystemMetric arg1 ;
4164 wxWindow *arg2 = (wxWindow *) NULL ;
4165 int result;
4166 int val1 ;
4167 int ecode1 = 0 ;
4168 void *argp2 = 0 ;
4169 int res2 = 0 ;
4170 PyObject * obj0 = 0 ;
4171 PyObject * obj1 = 0 ;
4172 char * kwnames[] = {
4173 (char *) "index",(char *) "win", NULL
4174 };
4175
4176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) SWIG_fail;
4177 ecode1 = SWIG_AsVal_int(obj0, &val1);
4178 if (!SWIG_IsOK(ecode1)) {
4179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetMetric" "', expected argument " "1"" of type '" "wxSystemMetric""'");
4180 }
4181 arg1 = static_cast< wxSystemMetric >(val1);
4182 if (obj1) {
4183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4184 if (!SWIG_IsOK(res2)) {
4185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SystemSettings_GetMetric" "', expected argument " "2"" of type '" "wxWindow *""'");
093d3ff1 4186 }
0085ce49
RD
4187 arg2 = reinterpret_cast< wxWindow * >(argp2);
4188 }
4189 {
4190 if (!wxPyCheckForApp()) SWIG_fail;
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (int)wxSystemSettings::GetMetric(arg1,arg2);
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_From_int(static_cast< int >(result));
4197 return resultobj;
4198fail:
4199 return NULL;
4200}
4201
4202
4203SWIGINTERN PyObject *_wrap_SystemSettings_HasFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj = 0;
4205 wxSystemFeature arg1 ;
4206 bool result;
4207 int val1 ;
4208 int ecode1 = 0 ;
4209 PyObject * obj0 = 0 ;
4210 char * kwnames[] = {
4211 (char *) "index", NULL
4212 };
4213
4214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) SWIG_fail;
4215 ecode1 = SWIG_AsVal_int(obj0, &val1);
4216 if (!SWIG_IsOK(ecode1)) {
4217 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_HasFeature" "', expected argument " "1"" of type '" "wxSystemFeature""'");
4218 }
4219 arg1 = static_cast< wxSystemFeature >(val1);
4220 {
4221 if (!wxPyCheckForApp()) SWIG_fail;
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (bool)wxSystemSettings::HasFeature(arg1);
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4229 }
4230 return resultobj;
4231fail:
4232 return NULL;
d14a1e28
RD
4233}
4234
4235
0085ce49
RD
4236SWIGINTERN PyObject *_wrap_SystemSettings_GetScreenType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4237 PyObject *resultobj = 0;
4238 wxSystemScreenType result;
4239
4240 if (!SWIG_Python_UnpackTuple(args,"SystemSettings_GetScreenType",0,0,0)) SWIG_fail;
4241 {
4242 if (!wxPyCheckForApp()) SWIG_fail;
4243 PyThreadState* __tstate = wxPyBeginAllowThreads();
4244 result = (wxSystemScreenType)wxSystemSettings::GetScreenType();
4245 wxPyEndAllowThreads(__tstate);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 }
4248 resultobj = SWIG_From_int(static_cast< int >(result));
4249 return resultobj;
4250fail:
4251 return NULL;
d14a1e28
RD
4252}
4253
4254
0085ce49
RD
4255SWIGINTERN PyObject *_wrap_SystemSettings_SetScreenType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj = 0;
4257 wxSystemScreenType arg1 ;
4258 int val1 ;
4259 int ecode1 = 0 ;
4260 PyObject * obj0 = 0 ;
4261 char * kwnames[] = {
4262 (char *) "screen", NULL
4263 };
4264
4265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) SWIG_fail;
4266 ecode1 = SWIG_AsVal_int(obj0, &val1);
4267 if (!SWIG_IsOK(ecode1)) {
4268 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_SetScreenType" "', expected argument " "1"" of type '" "wxSystemScreenType""'");
4269 }
4270 arg1 = static_cast< wxSystemScreenType >(val1);
4271 {
4272 if (!wxPyCheckForApp()) SWIG_fail;
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 wxSystemSettings::SetScreenType(arg1);
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = SWIG_Py_Void();
4279 return resultobj;
4280fail:
4281 return NULL;
023a034e
RD
4282}
4283
4284
0085ce49
RD
4285SWIGINTERN PyObject *SystemSettings_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4286 PyObject *obj;
4287 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4288 SWIG_TypeNewClientData(SWIGTYPE_p_wxSystemSettings, SWIG_NewClientData(obj));
4289 return SWIG_Py_Void();
023a034e
RD
4290}
4291
0085ce49
RD
4292SWIGINTERN int WINDOW_DEFAULT_VARIANT_set(PyObject *) {
4293 SWIG_Error(SWIG_AttributeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
4294 return 1;
023a034e
RD
4295}
4296
4297
0085ce49
RD
4298SWIGINTERN PyObject *WINDOW_DEFAULT_VARIANT_get(void) {
4299 PyObject *pyobj = 0;
4300
4301 {
4302#if wxUSE_UNICODE
4303 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
4304#else
4305 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
4306#endif
4307 }
4308 return pyobj;
d14a1e28
RD
4309}
4310
4311
0085ce49
RD
4312SWIGINTERN PyObject *_wrap_new_SystemOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxSystemOptions *result = 0 ;
4315
4316 if (!SWIG_Python_UnpackTuple(args,"new_SystemOptions",0,0,0)) SWIG_fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 result = (wxSystemOptions *)new wxSystemOptions();
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSystemOptions, SWIG_POINTER_NEW | 0 );
4324 return resultobj;
4325fail:
4326 return NULL;
4327}
4328
4329
4330SWIGINTERN PyObject *_wrap_SystemOptions_SetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4331 PyObject *resultobj = 0;
4332 wxString *arg1 = 0 ;
4333 wxString *arg2 = 0 ;
4334 bool temp1 = false ;
4335 bool temp2 = false ;
4336 PyObject * obj0 = 0 ;
4337 PyObject * obj1 = 0 ;
4338 char * kwnames[] = {
4339 (char *) "name",(char *) "value", NULL
4340 };
4341
4342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) SWIG_fail;
4343 {
4344 arg1 = wxString_in_helper(obj0);
4345 if (arg1 == NULL) SWIG_fail;
4346 temp1 = true;
4347 }
4348 {
4349 arg2 = wxString_in_helper(obj1);
4350 if (arg2 == NULL) SWIG_fail;
4351 temp2 = true;
4352 }
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = SWIG_Py_Void();
4360 {
4361 if (temp1)
4362 delete arg1;
4363 }
4364 {
4365 if (temp2)
4366 delete arg2;
4367 }
4368 return resultobj;
4369fail:
4370 {
4371 if (temp1)
4372 delete arg1;
4373 }
4374 {
4375 if (temp2)
4376 delete arg2;
4377 }
4378 return NULL;
093d3ff1 4379}
0085ce49
RD
4380
4381
4382SWIGINTERN PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxString *arg1 = 0 ;
4385 int arg2 ;
4386 bool temp1 = false ;
4387 int val2 ;
4388 int ecode2 = 0 ;
4389 PyObject * obj0 = 0 ;
4390 PyObject * obj1 = 0 ;
4391 char * kwnames[] = {
4392 (char *) "name",(char *) "value", NULL
4393 };
4394
4395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) SWIG_fail;
4396 {
4397 arg1 = wxString_in_helper(obj0);
4398 if (arg1 == NULL) SWIG_fail;
4399 temp1 = true;
4400 }
4401 ecode2 = SWIG_AsVal_int(obj1, &val2);
4402 if (!SWIG_IsOK(ecode2)) {
4403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SystemOptions_SetOptionInt" "', expected argument " "2"" of type '" "int""'");
4404 }
4405 arg2 = static_cast< int >(val2);
4406 {
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
4409 wxPyEndAllowThreads(__tstate);
4410 if (PyErr_Occurred()) SWIG_fail;
4411 }
4412 resultobj = SWIG_Py_Void();
4413 {
4414 if (temp1)
4415 delete arg1;
4416 }
4417 return resultobj;
4418fail:
4419 {
4420 if (temp1)
4421 delete arg1;
4422 }
4423 return NULL;
093d3ff1
RD
4424}
4425
4426
0085ce49
RD
4427SWIGINTERN PyObject *_wrap_SystemOptions_GetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj = 0;
4429 wxString *arg1 = 0 ;
4430 wxString result;
4431 bool temp1 = false ;
4432 PyObject * obj0 = 0 ;
4433 char * kwnames[] = {
4434 (char *) "name", NULL
4435 };
4436
4437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) SWIG_fail;
4438 {
4439 arg1 = wxString_in_helper(obj0);
4440 if (arg1 == NULL) SWIG_fail;
4441 temp1 = true;
4442 }
4443 {
4444 PyThreadState* __tstate = wxPyBeginAllowThreads();
4445 result = wxSystemOptions::GetOption((wxString const &)*arg1);
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 {
093d3ff1 4450#if wxUSE_UNICODE
0085ce49 4451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 4452#else
0085ce49 4453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 4454#endif
0085ce49
RD
4455 }
4456 {
4457 if (temp1)
4458 delete arg1;
4459 }
4460 return resultobj;
4461fail:
4462 {
4463 if (temp1)
4464 delete arg1;
4465 }
4466 return NULL;
d14a1e28
RD
4467}
4468
4469
0085ce49
RD
4470SWIGINTERN PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj = 0;
4472 wxString *arg1 = 0 ;
4473 int result;
4474 bool temp1 = false ;
4475 PyObject * obj0 = 0 ;
4476 char * kwnames[] = {
4477 (char *) "name", NULL
4478 };
4479
4480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) SWIG_fail;
4481 {
4482 arg1 = wxString_in_helper(obj0);
4483 if (arg1 == NULL) SWIG_fail;
4484 temp1 = true;
4485 }
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 resultobj = SWIG_From_int(static_cast< int >(result));
4493 {
4494 if (temp1)
4495 delete arg1;
4496 }
4497 return resultobj;
4498fail:
4499 {
4500 if (temp1)
4501 delete arg1;
4502 }
4503 return NULL;
d14a1e28
RD
4504}
4505
4506
0085ce49
RD
4507SWIGINTERN PyObject *_wrap_SystemOptions_HasOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4508 PyObject *resultobj = 0;
4509 wxString *arg1 = 0 ;
4510 bool result;
4511 bool temp1 = false ;
4512 PyObject * obj0 = 0 ;
4513 char * kwnames[] = {
4514 (char *) "name", NULL
4515 };
4516
4517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) SWIG_fail;
4518 {
4519 arg1 = wxString_in_helper(obj0);
4520 if (arg1 == NULL) SWIG_fail;
4521 temp1 = true;
4522 }
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 {
4530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4531 }
4532 {
4533 if (temp1)
4534 delete arg1;
4535 }
4536 return resultobj;
4537fail:
4538 {
4539 if (temp1)
4540 delete arg1;
4541 }
4542 return NULL;
d14a1e28
RD
4543}
4544
4545
0085ce49
RD
4546SWIGINTERN PyObject *_wrap_SystemOptions_IsFalse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj = 0;
4548 wxString *arg1 = 0 ;
4549 bool result;
4550 bool temp1 = false ;
4551 PyObject * obj0 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "name", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) SWIG_fail;
4557 {
4558 arg1 = wxString_in_helper(obj0);
4559 if (arg1 == NULL) SWIG_fail;
4560 temp1 = true;
4561 }
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 {
4569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4570 }
4571 {
4572 if (temp1)
4573 delete arg1;
4574 }
4575 return resultobj;
4576fail:
4577 {
4578 if (temp1)
4579 delete arg1;
4580 }
4581 return NULL;
d14a1e28
RD
4582}
4583
4584
0085ce49
RD
4585SWIGINTERN PyObject *SystemOptions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4586 PyObject *obj;
4587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4588 SWIG_TypeNewClientData(SWIGTYPE_p_wxSystemOptions, SWIG_NewClientData(obj));
4589 return SWIG_Py_Void();
d14a1e28
RD
4590}
4591
0085ce49
RD
4592SWIGINTERN PyObject *SystemOptions_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4593 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
4594}
4595
0085ce49
RD
4596SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
4597 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
4598 return 1;
d14a1e28
RD
4599}
4600
4601
0085ce49
RD
4602SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
4603 PyObject *pyobj = 0;
4604
4605 {
4606#if wxUSE_UNICODE
4607 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
4608#else
4609 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
4610#endif
4611 }
4612 return pyobj;
396fb509
RD
4613}
4614
4615
0085ce49
RD
4616SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
4617 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
4618 return 1;
093d3ff1
RD
4619}
4620
4621
0085ce49
RD
4622SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
4623 PyObject *pyobj = 0;
4624
4625 {
093d3ff1 4626#if wxUSE_UNICODE
0085ce49 4627 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
093d3ff1 4628#else
0085ce49 4629 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
093d3ff1 4630#endif
0085ce49
RD
4631 }
4632 return pyobj;
093d3ff1
RD
4633}
4634
4635
0085ce49
RD
4636SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
4637 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
4638 return 1;
093d3ff1
RD
4639}
4640
4641
0085ce49
RD
4642SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
4643 PyObject *pyobj = 0;
4644
4645 {
093d3ff1 4646#if wxUSE_UNICODE
0085ce49 4647 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
093d3ff1 4648#else
0085ce49 4649 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
093d3ff1 4650#endif
0085ce49
RD
4651 }
4652 return pyobj;
093d3ff1
RD
4653}
4654
4655
0085ce49
RD
4656SWIGINTERN PyObject *_wrap_NewId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4657 PyObject *resultobj = 0;
4658 long result;
4659
4660 if (!SWIG_Python_UnpackTuple(args,"NewId",0,0,0)) SWIG_fail;
4661 {
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 result = (long)wxNewId();
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_From_long(static_cast< long >(result));
4668 return resultobj;
4669fail:
4670 return NULL;
093d3ff1
RD
4671}
4672
4673
0085ce49
RD
4674SWIGINTERN PyObject *_wrap_RegisterId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj = 0;
4676 long arg1 ;
4677 long val1 ;
4678 int ecode1 = 0 ;
4679 PyObject * obj0 = 0 ;
4680 char * kwnames[] = {
4681 (char *) "id", NULL
4682 };
4683
4684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) SWIG_fail;
4685 ecode1 = SWIG_AsVal_long(obj0, &val1);
4686 if (!SWIG_IsOK(ecode1)) {
4687 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RegisterId" "', expected argument " "1"" of type '" "long""'");
4688 }
4689 arg1 = static_cast< long >(val1);
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 wxRegisterId(arg1);
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 resultobj = SWIG_Py_Void();
4697 return resultobj;
4698fail:
4699 return NULL;
4700}
4701
4702
4703SWIGINTERN PyObject *_wrap_GetCurrentId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4704 PyObject *resultobj = 0;
4705 long result;
4706
4707 if (!SWIG_Python_UnpackTuple(args,"GetCurrentId",0,0,0)) SWIG_fail;
4708 {
4709 PyThreadState* __tstate = wxPyBeginAllowThreads();
4710 result = (long)wxGetCurrentId();
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = SWIG_From_long(static_cast< long >(result));
4715 return resultobj;
4716fail:
4717 return NULL;
4718}
4719
4720
4721SWIGINTERN PyObject *_wrap_IsStockID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4722 PyObject *resultobj = 0;
4723 int arg1 ;
4724 bool result;
4725 int val1 ;
4726 int ecode1 = 0 ;
4727 PyObject * obj0 = 0 ;
4728 char * kwnames[] = {
4729 (char *) "id", NULL
4730 };
4731
4732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) SWIG_fail;
4733 ecode1 = SWIG_AsVal_int(obj0, &val1);
4734 if (!SWIG_IsOK(ecode1)) {
4735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsStockID" "', expected argument " "1"" of type '" "int""'");
4736 }
4737 arg1 = static_cast< int >(val1);
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (bool)wxIsStockID(arg1);
4741 wxPyEndAllowThreads(__tstate);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 {
4745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4746 }
4747 return resultobj;
4748fail:
4749 return NULL;
4750}
4751
4752
4753SWIGINTERN PyObject *_wrap_IsStockLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4754 PyObject *resultobj = 0;
4755 int arg1 ;
4756 wxString *arg2 = 0 ;
4757 bool result;
4758 int val1 ;
4759 int ecode1 = 0 ;
4760 bool temp2 = false ;
4761 PyObject * obj0 = 0 ;
4762 PyObject * obj1 = 0 ;
4763 char * kwnames[] = {
4764 (char *) "id",(char *) "label", NULL
4765 };
4766
4767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4768 ecode1 = SWIG_AsVal_int(obj0, &val1);
4769 if (!SWIG_IsOK(ecode1)) {
4770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsStockLabel" "', expected argument " "1"" of type '" "int""'");
4771 }
4772 arg1 = static_cast< int >(val1);
4773 {
4774 arg2 = wxString_in_helper(obj1);
4775 if (arg2 == NULL) SWIG_fail;
4776 temp2 = true;
4777 }
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 {
4785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4786 }
4787 {
4788 if (temp2)
4789 delete arg2;
4790 }
4791 return resultobj;
4792fail:
4793 {
4794 if (temp2)
4795 delete arg2;
4796 }
4797 return NULL;
4798}
4799
4800
4801SWIGINTERN PyObject *_wrap_GetStockLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj = 0;
4803 int arg1 ;
97ab0f6a 4804 long arg2 = (long) wxSTOCK_WITH_MNEMONIC ;
0085ce49
RD
4805 wxString result;
4806 int val1 ;
4807 int ecode1 = 0 ;
97ab0f6a 4808 long val2 ;
0085ce49
RD
4809 int ecode2 = 0 ;
4810 PyObject * obj0 = 0 ;
4811 PyObject * obj1 = 0 ;
0085ce49 4812 char * kwnames[] = {
97ab0f6a 4813 (char *) "id",(char *) "flags", NULL
0085ce49
RD
4814 };
4815
97ab0f6a 4816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockLabel",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
4817 ecode1 = SWIG_AsVal_int(obj0, &val1);
4818 if (!SWIG_IsOK(ecode1)) {
4819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockLabel" "', expected argument " "1"" of type '" "int""'");
4820 }
4821 arg1 = static_cast< int >(val1);
4822 if (obj1) {
97ab0f6a 4823 ecode2 = SWIG_AsVal_long(obj1, &val2);
0085ce49 4824 if (!SWIG_IsOK(ecode2)) {
97ab0f6a 4825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockLabel" "', expected argument " "2"" of type '" "long""'");
0085ce49 4826 }
97ab0f6a 4827 arg2 = static_cast< long >(val2);
0085ce49 4828 }
97ab0f6a
RD
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = wxGetStockLabel(arg1,arg2);
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 {
4836#if wxUSE_UNICODE
4837 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4838#else
4839 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4840#endif
4841 }
4842 return resultobj;
4843fail:
4844 return NULL;
4845}
4846
4847
4848SWIGINTERN PyObject *_wrap_GetStockHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4849 PyObject *resultobj = 0;
4850 int arg1 ;
4851 wxStockHelpStringClient arg2 = (wxStockHelpStringClient) wxSTOCK_MENU ;
4852 wxString result;
4853 int val1 ;
4854 int ecode1 = 0 ;
4855 int val2 ;
4856 int ecode2 = 0 ;
4857 PyObject * obj0 = 0 ;
4858 PyObject * obj1 = 0 ;
4859 char * kwnames[] = {
4860 (char *) "id",(char *) "client", NULL
4861 };
4862
4863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
4864 ecode1 = SWIG_AsVal_int(obj0, &val1);
4865 if (!SWIG_IsOK(ecode1)) {
4866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockHelpString" "', expected argument " "1"" of type '" "int""'");
4867 }
4868 arg1 = static_cast< int >(val1);
4869 if (obj1) {
4870 ecode2 = SWIG_AsVal_int(obj1, &val2);
4871 if (!SWIG_IsOK(ecode2)) {
4872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockHelpString" "', expected argument " "2"" of type '" "wxStockHelpStringClient""'");
4873 }
4874 arg2 = static_cast< wxStockHelpStringClient >(val2);
0085ce49
RD
4875 }
4876 {
4877 PyThreadState* __tstate = wxPyBeginAllowThreads();
97ab0f6a 4878 result = wxGetStockHelpString(arg1,arg2);
0085ce49
RD
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 {
093d3ff1 4883#if wxUSE_UNICODE
0085ce49 4884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 4885#else
0085ce49 4886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 4887#endif
0085ce49
RD
4888 }
4889 return resultobj;
4890fail:
4891 return NULL;
093d3ff1
RD
4892}
4893
4894
0085ce49
RD
4895SWIGINTERN PyObject *_wrap_Bell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4896 PyObject *resultobj = 0;
4897
4898 if (!SWIG_Python_UnpackTuple(args,"Bell",0,0,0)) SWIG_fail;
4899 {
4900 if (!wxPyCheckForApp()) SWIG_fail;
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 wxBell();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 resultobj = SWIG_Py_Void();
4907 return resultobj;
4908fail:
4909 return NULL;
d14a1e28
RD
4910}
4911
4912
0085ce49
RD
4913SWIGINTERN PyObject *_wrap_EndBusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4914 PyObject *resultobj = 0;
4915
4916 if (!SWIG_Python_UnpackTuple(args,"EndBusyCursor",0,0,0)) SWIG_fail;
4917 {
4918 if (!wxPyCheckForApp()) SWIG_fail;
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 wxEndBusyCursor();
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 resultobj = SWIG_Py_Void();
4925 return resultobj;
4926fail:
4927 return NULL;
4928}
4929
4930
4931SWIGINTERN PyObject *_wrap_GetElapsedTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4932 PyObject *resultobj = 0;
4933 bool arg1 = (bool) true ;
4934 long result;
4935 bool val1 ;
4936 int ecode1 = 0 ;
4937 PyObject * obj0 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "resetTimer", NULL
4940 };
4941
4942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) SWIG_fail;
4943 if (obj0) {
4944 ecode1 = SWIG_AsVal_bool(obj0, &val1);
4945 if (!SWIG_IsOK(ecode1)) {
4946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetElapsedTime" "', expected argument " "1"" of type '" "bool""'");
4947 }
4948 arg1 = static_cast< bool >(val1);
4949 }
4950 {
4951 PyThreadState* __tstate = wxPyBeginAllowThreads();
4952 result = (long)wxGetElapsedTime(arg1);
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 resultobj = SWIG_From_long(static_cast< long >(result));
4957 return resultobj;
4958fail:
4959 return NULL;
d14a1e28
RD
4960}
4961
4962
0085ce49
RD
4963SWIGINTERN PyObject *_wrap_IsBusy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4964 PyObject *resultobj = 0;
4965 bool result;
4966
4967 if (!SWIG_Python_UnpackTuple(args,"IsBusy",0,0,0)) SWIG_fail;
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 result = (bool)wxIsBusy();
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 {
4975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4976 }
4977 return resultobj;
4978fail:
4979 return NULL;
d14a1e28
RD
4980}
4981
4982
0085ce49
RD
4983SWIGINTERN PyObject *_wrap_Now(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4984 PyObject *resultobj = 0;
4985 wxString result;
4986
4987 if (!SWIG_Python_UnpackTuple(args,"Now",0,0,0)) SWIG_fail;
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = wxNow();
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 {
4995#if wxUSE_UNICODE
4996 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4997#else
4998 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4999#endif
5000 }
5001 return resultobj;
5002fail:
5003 return NULL;
d14a1e28
RD
5004}
5005
5006
0085ce49
RD
5007SWIGINTERN PyObject *_wrap_Shell(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj = 0;
5009 wxString const &arg1_defvalue = wxPyEmptyString ;
5010 wxString *arg1 = (wxString *) &arg1_defvalue ;
5011 bool result;
5012 bool temp1 = false ;
5013 PyObject * obj0 = 0 ;
5014 char * kwnames[] = {
5015 (char *) "command", NULL
5016 };
5017
5018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) SWIG_fail;
5019 if (obj0) {
093d3ff1 5020 {
0085ce49
RD
5021 arg1 = wxString_in_helper(obj0);
5022 if (arg1 == NULL) SWIG_fail;
5023 temp1 = true;
093d3ff1 5024 }
0085ce49
RD
5025 }
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 result = (bool)wxShell((wxString const &)*arg1);
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5034 }
5035 {
5036 if (temp1)
5037 delete arg1;
5038 }
5039 return resultobj;
5040fail:
5041 {
5042 if (temp1)
5043 delete arg1;
5044 }
5045 return NULL;
d14a1e28
RD
5046}
5047
5048
0085ce49
RD
5049SWIGINTERN PyObject *_wrap_StartTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *resultobj = 0;
5051
5052 if (!SWIG_Python_UnpackTuple(args,"StartTimer",0,0,0)) SWIG_fail;
5053 {
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 wxStartTimer();
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 }
5059 resultobj = SWIG_Py_Void();
5060 return resultobj;
5061fail:
5062 return NULL;
5063}
5064
5065
5066SWIGINTERN PyObject *_wrap_GetOsVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5067 PyObject *resultobj = 0;
5068 int *arg1 = (int *) 0 ;
5069 int *arg2 = (int *) 0 ;
5070 int result;
5071 int temp1 ;
5072 int res1 = SWIG_TMPOBJ ;
5073 int temp2 ;
5074 int res2 = SWIG_TMPOBJ ;
5075
5076 arg1 = &temp1;
5077 arg2 = &temp2;
5078 if (!SWIG_Python_UnpackTuple(args,"GetOsVersion",0,0,0)) SWIG_fail;
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 result = (int)wxGetOsVersion(arg1,arg2);
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = SWIG_From_int(static_cast< int >(result));
5086 if (SWIG_IsTmpObj(res1)) {
5087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
5088 } else {
5089 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
5090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
5091 }
5092 if (SWIG_IsTmpObj(res2)) {
5093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
5094 } else {
5095 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
5096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
5097 }
5098 return resultobj;
5099fail:
5100 return NULL;
5101}
5102
5103
5104SWIGINTERN PyObject *_wrap_GetOsDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5105 PyObject *resultobj = 0;
5106 wxString result;
5107
5108 if (!SWIG_Python_UnpackTuple(args,"GetOsDescription",0,0,0)) SWIG_fail;
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = wxGetOsDescription();
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 {
093d3ff1 5116#if wxUSE_UNICODE
0085ce49 5117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5118#else
0085ce49 5119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5120#endif
0085ce49
RD
5121 }
5122 return resultobj;
5123fail:
5124 return NULL;
7f98d120
RD
5125}
5126
5127
fc46b7f3
RD
5128SWIGINTERN PyObject *_wrap_IsPlatformLittleEndian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5129 PyObject *resultobj = 0;
5130 bool result;
5131
5132 if (!SWIG_Python_UnpackTuple(args,"IsPlatformLittleEndian",0,0,0)) SWIG_fail;
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 result = (bool)wxIsPlatformLittleEndian();
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 {
5140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5141 }
5142 return resultobj;
5143fail:
5144 return NULL;
5145}
5146
5147
5148SWIGINTERN PyObject *_wrap_IsPlatform64Bit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5149 PyObject *resultobj = 0;
5150 bool result;
5151
5152 if (!SWIG_Python_UnpackTuple(args,"IsPlatform64Bit",0,0,0)) SWIG_fail;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (bool)wxIsPlatform64Bit();
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 {
5160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5161 }
5162 return resultobj;
5163fail:
5164 return NULL;
5165}
5166
5167
0085ce49
RD
5168SWIGINTERN PyObject *_wrap_GetFreeMemory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5169 PyObject *resultobj = 0;
5170 wxMemorySize result;
5171
5172 if (!SWIG_Python_UnpackTuple(args,"GetFreeMemory",0,0,0)) SWIG_fail;
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
5175 result = wxGetFreeMemory();
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
10044bf1
RD
5179 {
5180#if wxUSE_LONGLONG
5181 resultobj = PyLong_FromLongLong((&result)->GetValue());
5182#else
5183 resultobj = PyInt_FromLong(result);
5184#endif
5185 }
0085ce49
RD
5186 return resultobj;
5187fail:
5188 return NULL;
5189}
5190
5191
5192SWIGINTERN PyObject *_wrap_Shutdown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5193 PyObject *resultobj = 0;
5194 wxShutdownFlags arg1 ;
5195 bool result;
5196 int val1 ;
5197 int ecode1 = 0 ;
5198 PyObject * obj0 = 0 ;
5199 char * kwnames[] = {
5200 (char *) "wFlags", NULL
5201 };
5202
5203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) SWIG_fail;
5204 ecode1 = SWIG_AsVal_int(obj0, &val1);
5205 if (!SWIG_IsOK(ecode1)) {
5206 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Shutdown" "', expected argument " "1"" of type '" "wxShutdownFlags""'");
5207 }
5208 arg1 = static_cast< wxShutdownFlags >(val1);
5209 {
5210 if (!wxPyCheckForApp()) SWIG_fail;
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (bool)wxShutdown(arg1);
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 {
5217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5218 }
5219 return resultobj;
5220fail:
5221 return NULL;
d14a1e28
RD
5222}
5223
5224
0085ce49
RD
5225SWIGINTERN PyObject *_wrap_Sleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj = 0;
5227 int arg1 ;
5228 int val1 ;
5229 int ecode1 = 0 ;
5230 PyObject * obj0 = 0 ;
5231 char * kwnames[] = {
5232 (char *) "secs", NULL
5233 };
5234
5235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) SWIG_fail;
5236 ecode1 = SWIG_AsVal_int(obj0, &val1);
5237 if (!SWIG_IsOK(ecode1)) {
5238 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Sleep" "', expected argument " "1"" of type '" "int""'");
5239 }
5240 arg1 = static_cast< int >(val1);
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 wxSleep(arg1);
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 resultobj = SWIG_Py_Void();
5248 return resultobj;
5249fail:
5250 return NULL;
d14a1e28
RD
5251}
5252
5253
0085ce49
RD
5254SWIGINTERN PyObject *_wrap_MilliSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj = 0;
5256 unsigned long arg1 ;
5257 unsigned long val1 ;
5258 int ecode1 = 0 ;
5259 PyObject * obj0 = 0 ;
5260 char * kwnames[] = {
5261 (char *) "milliseconds", NULL
5262 };
5263
5264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) SWIG_fail;
5265 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
5266 if (!SWIG_IsOK(ecode1)) {
5267 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MilliSleep" "', expected argument " "1"" of type '" "unsigned long""'");
5268 }
5269 arg1 = static_cast< unsigned long >(val1);
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 wxMilliSleep(arg1);
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = SWIG_Py_Void();
5277 return resultobj;
5278fail:
5279 return NULL;
d14a1e28
RD
5280}
5281
5282
0085ce49
RD
5283SWIGINTERN PyObject *_wrap_MicroSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj = 0;
5285 unsigned long arg1 ;
5286 unsigned long val1 ;
5287 int ecode1 = 0 ;
5288 PyObject * obj0 = 0 ;
5289 char * kwnames[] = {
5290 (char *) "microseconds", NULL
5291 };
5292
5293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) SWIG_fail;
5294 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
5295 if (!SWIG_IsOK(ecode1)) {
5296 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MicroSleep" "', expected argument " "1"" of type '" "unsigned long""'");
5297 }
5298 arg1 = static_cast< unsigned long >(val1);
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 wxMicroSleep(arg1);
5302 wxPyEndAllowThreads(__tstate);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 }
5305 resultobj = SWIG_Py_Void();
5306 return resultobj;
5307fail:
5308 return NULL;
d14a1e28
RD
5309}
5310
5311
0085ce49
RD
5312SWIGINTERN PyObject *_wrap_EnableTopLevelWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5313 PyObject *resultobj = 0;
5314 bool arg1 ;
5315 bool val1 ;
5316 int ecode1 = 0 ;
5317 PyObject * obj0 = 0 ;
5318 char * kwnames[] = {
5319 (char *) "enable", NULL
5320 };
5321
5322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) SWIG_fail;
5323 ecode1 = SWIG_AsVal_bool(obj0, &val1);
5324 if (!SWIG_IsOK(ecode1)) {
5325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EnableTopLevelWindows" "', expected argument " "1"" of type '" "bool""'");
5326 }
5327 arg1 = static_cast< bool >(val1);
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 wxEnableTopLevelWindows(arg1);
5331 wxPyEndAllowThreads(__tstate);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 resultobj = SWIG_Py_Void();
5335 return resultobj;
5336fail:
5337 return NULL;
d14a1e28
RD
5338}
5339
5340
0085ce49
RD
5341SWIGINTERN PyObject *_wrap_StripMenuCodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj = 0;
5343 wxString *arg1 = 0 ;
5344 wxString result;
5345 bool temp1 = false ;
5346 PyObject * obj0 = 0 ;
5347 char * kwnames[] = {
2131d850 5348 (char *) "in", NULL
0085ce49
RD
5349 };
5350
5351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) SWIG_fail;
5352 {
5353 arg1 = wxString_in_helper(obj0);
5354 if (arg1 == NULL) SWIG_fail;
5355 temp1 = true;
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = wxStripMenuCodes((wxString const &)*arg1);
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364#if wxUSE_UNICODE
5365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5366#else
5367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5368#endif
5369 }
5370 {
5371 if (temp1)
5372 delete arg1;
5373 }
5374 return resultobj;
5375fail:
5376 {
5377 if (temp1)
5378 delete arg1;
5379 }
5380 return NULL;
093d3ff1
RD
5381}
5382
5383
0085ce49
RD
5384SWIGINTERN PyObject *_wrap_GetEmailAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5385 PyObject *resultobj = 0;
5386 wxString result;
5387
5388 if (!SWIG_Python_UnpackTuple(args,"GetEmailAddress",0,0,0)) SWIG_fail;
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 result = wxGetEmailAddress();
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 {
5396#if wxUSE_UNICODE
5397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5398#else
5399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5400#endif
5401 }
5402 return resultobj;
5403fail:
5404 return NULL;
d14a1e28
RD
5405}
5406
5407
0085ce49
RD
5408SWIGINTERN PyObject *_wrap_GetHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5409 PyObject *resultobj = 0;
5410 wxString result;
5411
5412 if (!SWIG_Python_UnpackTuple(args,"GetHostName",0,0,0)) SWIG_fail;
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = wxGetHostName();
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
d14a1e28 5420#if wxUSE_UNICODE
0085ce49 5421 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5422#else
0085ce49 5423 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5424#endif
0085ce49
RD
5425 }
5426 return resultobj;
5427fail:
5428 return NULL;
d14a1e28
RD
5429}
5430
5431
0085ce49
RD
5432SWIGINTERN PyObject *_wrap_GetFullHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5433 PyObject *resultobj = 0;
5434 wxString result;
5435
5436 if (!SWIG_Python_UnpackTuple(args,"GetFullHostName",0,0,0)) SWIG_fail;
5437 {
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = wxGetFullHostName();
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 {
5444#if wxUSE_UNICODE
5445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5446#else
5447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5448#endif
5449 }
5450 return resultobj;
5451fail:
5452 return NULL;
d14a1e28
RD
5453}
5454
5455
0085ce49
RD
5456SWIGINTERN PyObject *_wrap_GetUserId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5457 PyObject *resultobj = 0;
5458 wxString result;
5459
5460 if (!SWIG_Python_UnpackTuple(args,"GetUserId",0,0,0)) SWIG_fail;
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = wxGetUserId();
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 {
5468#if wxUSE_UNICODE
5469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5470#else
5471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5472#endif
5473 }
5474 return resultobj;
5475fail:
5476 return NULL;
093d3ff1
RD
5477}
5478
5479
0085ce49
RD
5480SWIGINTERN PyObject *_wrap_GetUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5481 PyObject *resultobj = 0;
5482 wxString result;
5483
5484 if (!SWIG_Python_UnpackTuple(args,"GetUserName",0,0,0)) SWIG_fail;
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = wxGetUserName();
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 {
5492#if wxUSE_UNICODE
5493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5494#else
5495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5496#endif
5497 }
5498 return resultobj;
5499fail:
5500 return NULL;
d14a1e28
RD
5501}
5502
5503
0085ce49
RD
5504SWIGINTERN PyObject *_wrap_GetHomeDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5505 PyObject *resultobj = 0;
5506 wxString result;
5507
5508 if (!SWIG_Python_UnpackTuple(args,"GetHomeDir",0,0,0)) SWIG_fail;
5509 {
5510 PyThreadState* __tstate = wxPyBeginAllowThreads();
5511 result = wxGetHomeDir();
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
5515 {
5516#if wxUSE_UNICODE
5517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5518#else
5519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5520#endif
5521 }
5522 return resultobj;
5523fail:
5524 return NULL;
d14a1e28
RD
5525}
5526
5527
0085ce49
RD
5528SWIGINTERN PyObject *_wrap_GetUserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj = 0;
5530 wxString const &arg1_defvalue = wxPyEmptyString ;
5531 wxString *arg1 = (wxString *) &arg1_defvalue ;
5532 wxString result;
5533 bool temp1 = false ;
5534 PyObject * obj0 = 0 ;
5535 char * kwnames[] = {
5536 (char *) "user", NULL
5537 };
5538
5539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) SWIG_fail;
5540 if (obj0) {
d14a1e28 5541 {
0085ce49
RD
5542 arg1 = wxString_in_helper(obj0);
5543 if (arg1 == NULL) SWIG_fail;
5544 temp1 = true;
d14a1e28 5545 }
0085ce49
RD
5546 }
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = wxGetUserHome((wxString const &)*arg1);
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 {
5554#if wxUSE_UNICODE
5555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5556#else
5557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5558#endif
5559 }
5560 {
5561 if (temp1)
5562 delete arg1;
5563 }
5564 return resultobj;
5565fail:
5566 {
5567 if (temp1)
5568 delete arg1;
5569 }
5570 return NULL;
d14a1e28
RD
5571}
5572
5573
0085ce49
RD
5574SWIGINTERN PyObject *_wrap_GetProcessId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5575 PyObject *resultobj = 0;
5576 unsigned long result;
5577
5578 if (!SWIG_Python_UnpackTuple(args,"GetProcessId",0,0,0)) SWIG_fail;
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (unsigned long)wxGetProcessId();
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
5586 return resultobj;
5587fail:
5588 return NULL;
d14a1e28
RD
5589}
5590
5591
0085ce49
RD
5592SWIGINTERN PyObject *_wrap_Trap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5593 PyObject *resultobj = 0;
5594
5595 if (!SWIG_Python_UnpackTuple(args,"Trap",0,0,0)) SWIG_fail;
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 wxTrap();
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 resultobj = SWIG_Py_Void();
5603 return resultobj;
5604fail:
5605 return NULL;
5606}
5607
5608
5609SWIGINTERN PyObject *_wrap_FileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj = 0;
5611 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
5612 wxString *arg1 = (wxString *) &arg1_defvalue ;
5613 wxString const &arg2_defvalue = wxPyEmptyString ;
5614 wxString *arg2 = (wxString *) &arg2_defvalue ;
5615 wxString const &arg3_defvalue = wxPyEmptyString ;
5616 wxString *arg3 = (wxString *) &arg3_defvalue ;
5617 wxString const &arg4_defvalue = wxPyEmptyString ;
5618 wxString *arg4 = (wxString *) &arg4_defvalue ;
5619 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
5620 wxString *arg5 = (wxString *) &arg5_defvalue ;
5621 int arg6 = (int) 0 ;
5622 wxWindow *arg7 = (wxWindow *) NULL ;
5623 int arg8 = (int) -1 ;
5624 int arg9 = (int) -1 ;
5625 wxString result;
5626 bool temp1 = false ;
5627 bool temp2 = false ;
5628 bool temp3 = false ;
5629 bool temp4 = false ;
5630 bool temp5 = false ;
5631 int val6 ;
5632 int ecode6 = 0 ;
5633 void *argp7 = 0 ;
5634 int res7 = 0 ;
5635 int val8 ;
5636 int ecode8 = 0 ;
5637 int val9 ;
5638 int ecode9 = 0 ;
5639 PyObject * obj0 = 0 ;
5640 PyObject * obj1 = 0 ;
5641 PyObject * obj2 = 0 ;
5642 PyObject * obj3 = 0 ;
5643 PyObject * obj4 = 0 ;
5644 PyObject * obj5 = 0 ;
5645 PyObject * obj6 = 0 ;
5646 PyObject * obj7 = 0 ;
5647 PyObject * obj8 = 0 ;
5648 char * kwnames[] = {
5649 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
5650 };
5651
5652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5653 if (obj0) {
d14a1e28 5654 {
0085ce49
RD
5655 arg1 = wxString_in_helper(obj0);
5656 if (arg1 == NULL) SWIG_fail;
5657 temp1 = true;
d14a1e28 5658 }
0085ce49
RD
5659 }
5660 if (obj1) {
d14a1e28 5661 {
0085ce49
RD
5662 arg2 = wxString_in_helper(obj1);
5663 if (arg2 == NULL) SWIG_fail;
5664 temp2 = true;
d14a1e28 5665 }
0085ce49
RD
5666 }
5667 if (obj2) {
d14a1e28 5668 {
0085ce49
RD
5669 arg3 = wxString_in_helper(obj2);
5670 if (arg3 == NULL) SWIG_fail;
5671 temp3 = true;
d14a1e28 5672 }
0085ce49
RD
5673 }
5674 if (obj3) {
d14a1e28 5675 {
0085ce49
RD
5676 arg4 = wxString_in_helper(obj3);
5677 if (arg4 == NULL) SWIG_fail;
5678 temp4 = true;
d14a1e28 5679 }
0085ce49
RD
5680 }
5681 if (obj4) {
d14a1e28 5682 {
0085ce49
RD
5683 arg5 = wxString_in_helper(obj4);
5684 if (arg5 == NULL) SWIG_fail;
5685 temp5 = true;
d14a1e28 5686 }
0085ce49
RD
5687 }
5688 if (obj5) {
5689 ecode6 = SWIG_AsVal_int(obj5, &val6);
5690 if (!SWIG_IsOK(ecode6)) {
5691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FileSelector" "', expected argument " "6"" of type '" "int""'");
5692 }
5693 arg6 = static_cast< int >(val6);
5694 }
5695 if (obj6) {
5696 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxWindow, 0 | 0 );
5697 if (!SWIG_IsOK(res7)) {
5698 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "FileSelector" "', expected argument " "7"" of type '" "wxWindow *""'");
d14a1e28 5699 }
0085ce49
RD
5700 arg7 = reinterpret_cast< wxWindow * >(argp7);
5701 }
5702 if (obj7) {
5703 ecode8 = SWIG_AsVal_int(obj7, &val8);
5704 if (!SWIG_IsOK(ecode8)) {
5705 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FileSelector" "', expected argument " "8"" of type '" "int""'");
5706 }
5707 arg8 = static_cast< int >(val8);
5708 }
5709 if (obj8) {
5710 ecode9 = SWIG_AsVal_int(obj8, &val9);
5711 if (!SWIG_IsOK(ecode9)) {
5712 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FileSelector" "', expected argument " "9"" of type '" "int""'");
5713 }
5714 arg9 = static_cast< int >(val9);
5715 }
5716 {
5717 if (!wxPyCheckForApp()) SWIG_fail;
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 {
d14a1e28 5724#if wxUSE_UNICODE
0085ce49 5725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5726#else
0085ce49 5727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5728#endif
0085ce49
RD
5729 }
5730 {
5731 if (temp1)
5732 delete arg1;
5733 }
5734 {
5735 if (temp2)
5736 delete arg2;
5737 }
5738 {
5739 if (temp3)
5740 delete arg3;
5741 }
5742 {
5743 if (temp4)
5744 delete arg4;
5745 }
5746 {
5747 if (temp5)
5748 delete arg5;
5749 }
5750 return resultobj;
5751fail:
5752 {
5753 if (temp1)
5754 delete arg1;
5755 }
5756 {
5757 if (temp2)
5758 delete arg2;
5759 }
5760 {
5761 if (temp3)
5762 delete arg3;
5763 }
5764 {
5765 if (temp4)
5766 delete arg4;
5767 }
5768 {
5769 if (temp5)
5770 delete arg5;
5771 }
5772 return NULL;
5773}
5774
5775
5776SWIGINTERN PyObject *_wrap_LoadFileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj = 0;
5778 wxString *arg1 = 0 ;
5779 wxString *arg2 = 0 ;
5780 wxString const &arg3_defvalue = wxPyEmptyString ;
5781 wxString *arg3 = (wxString *) &arg3_defvalue ;
5782 wxWindow *arg4 = (wxWindow *) NULL ;
5783 wxString result;
5784 bool temp1 = false ;
5785 bool temp2 = false ;
5786 bool temp3 = false ;
5787 void *argp4 = 0 ;
5788 int res4 = 0 ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 PyObject * obj2 = 0 ;
5792 PyObject * obj3 = 0 ;
5793 char * kwnames[] = {
5794 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
5795 };
5796
5797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5798 {
5799 arg1 = wxString_in_helper(obj0);
5800 if (arg1 == NULL) SWIG_fail;
5801 temp1 = true;
5802 }
5803 {
5804 arg2 = wxString_in_helper(obj1);
5805 if (arg2 == NULL) SWIG_fail;
5806 temp2 = true;
5807 }
5808 if (obj2) {
d14a1e28 5809 {
0085ce49
RD
5810 arg3 = wxString_in_helper(obj2);
5811 if (arg3 == NULL) SWIG_fail;
5812 temp3 = true;
d14a1e28 5813 }
0085ce49
RD
5814 }
5815 if (obj3) {
5816 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
5817 if (!SWIG_IsOK(res4)) {
5818 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "LoadFileSelector" "', expected argument " "4"" of type '" "wxWindow *""'");
994141e6 5819 }
0085ce49
RD
5820 arg4 = reinterpret_cast< wxWindow * >(argp4);
5821 }
5822 {
5823 if (!wxPyCheckForApp()) SWIG_fail;
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 {
093d3ff1 5830#if wxUSE_UNICODE
0085ce49 5831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5832#else
0085ce49 5833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5834#endif
0085ce49
RD
5835 }
5836 {
5837 if (temp1)
5838 delete arg1;
5839 }
5840 {
5841 if (temp2)
5842 delete arg2;
5843 }
5844 {
5845 if (temp3)
5846 delete arg3;
5847 }
5848 return resultobj;
5849fail:
5850 {
5851 if (temp1)
5852 delete arg1;
5853 }
5854 {
5855 if (temp2)
5856 delete arg2;
5857 }
5858 {
5859 if (temp3)
5860 delete arg3;
5861 }
5862 return NULL;
5863}
5864
5865
5866SWIGINTERN PyObject *_wrap_SaveFileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj = 0;
5868 wxString *arg1 = 0 ;
5869 wxString *arg2 = 0 ;
5870 wxString const &arg3_defvalue = wxPyEmptyString ;
5871 wxString *arg3 = (wxString *) &arg3_defvalue ;
5872 wxWindow *arg4 = (wxWindow *) NULL ;
5873 wxString result;
5874 bool temp1 = false ;
5875 bool temp2 = false ;
5876 bool temp3 = false ;
5877 void *argp4 = 0 ;
5878 int res4 = 0 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 PyObject * obj2 = 0 ;
5882 PyObject * obj3 = 0 ;
5883 char * kwnames[] = {
5884 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
5885 };
5886
5887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5888 {
5889 arg1 = wxString_in_helper(obj0);
5890 if (arg1 == NULL) SWIG_fail;
5891 temp1 = true;
5892 }
5893 {
5894 arg2 = wxString_in_helper(obj1);
5895 if (arg2 == NULL) SWIG_fail;
5896 temp2 = true;
5897 }
5898 if (obj2) {
d14a1e28 5899 {
0085ce49
RD
5900 arg3 = wxString_in_helper(obj2);
5901 if (arg3 == NULL) SWIG_fail;
5902 temp3 = true;
d14a1e28 5903 }
0085ce49
RD
5904 }
5905 if (obj3) {
5906 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
5907 if (!SWIG_IsOK(res4)) {
5908 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SaveFileSelector" "', expected argument " "4"" of type '" "wxWindow *""'");
d14a1e28 5909 }
0085ce49
RD
5910 arg4 = reinterpret_cast< wxWindow * >(argp4);
5911 }
5912 {
5913 if (!wxPyCheckForApp()) SWIG_fail;
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 {
093d3ff1 5920#if wxUSE_UNICODE
0085ce49 5921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5922#else
0085ce49 5923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5924#endif
0085ce49
RD
5925 }
5926 {
5927 if (temp1)
5928 delete arg1;
5929 }
5930 {
5931 if (temp2)
5932 delete arg2;
5933 }
5934 {
5935 if (temp3)
5936 delete arg3;
5937 }
5938 return resultobj;
5939fail:
5940 {
5941 if (temp1)
5942 delete arg1;
5943 }
5944 {
5945 if (temp2)
5946 delete arg2;
5947 }
5948 {
5949 if (temp3)
5950 delete arg3;
5951 }
5952 return NULL;
5953}
5954
5955
5956SWIGINTERN PyObject *_wrap_DirSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj = 0;
5958 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
5959 wxString *arg1 = (wxString *) &arg1_defvalue ;
5960 wxString const &arg2_defvalue = wxPyEmptyString ;
5961 wxString *arg2 = (wxString *) &arg2_defvalue ;
5962 long arg3 = (long) wxDD_DEFAULT_STYLE ;
5963 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5964 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5965 wxWindow *arg5 = (wxWindow *) NULL ;
5966 wxString result;
5967 bool temp1 = false ;
5968 bool temp2 = false ;
5969 long val3 ;
5970 int ecode3 = 0 ;
5971 wxPoint temp4 ;
5972 void *argp5 = 0 ;
5973 int res5 = 0 ;
5974 PyObject * obj0 = 0 ;
5975 PyObject * obj1 = 0 ;
5976 PyObject * obj2 = 0 ;
5977 PyObject * obj3 = 0 ;
5978 PyObject * obj4 = 0 ;
5979 char * kwnames[] = {
5980 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
5981 };
5982
5983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
5984 if (obj0) {
d14a1e28 5985 {
0085ce49
RD
5986 arg1 = wxString_in_helper(obj0);
5987 if (arg1 == NULL) SWIG_fail;
5988 temp1 = true;
d14a1e28 5989 }
0085ce49
RD
5990 }
5991 if (obj1) {
d14a1e28 5992 {
0085ce49
RD
5993 arg2 = wxString_in_helper(obj1);
5994 if (arg2 == NULL) SWIG_fail;
5995 temp2 = true;
d14a1e28 5996 }
0085ce49
RD
5997 }
5998 if (obj2) {
5999 ecode3 = SWIG_AsVal_long(obj2, &val3);
6000 if (!SWIG_IsOK(ecode3)) {
6001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirSelector" "', expected argument " "3"" of type '" "long""'");
6002 }
6003 arg3 = static_cast< long >(val3);
6004 }
6005 if (obj3) {
d14a1e28 6006 {
0085ce49
RD
6007 arg4 = &temp4;
6008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 6009 }
0085ce49
RD
6010 }
6011 if (obj4) {
6012 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6013 if (!SWIG_IsOK(res5)) {
6014 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DirSelector" "', expected argument " "5"" of type '" "wxWindow *""'");
6015 }
6016 arg5 = reinterpret_cast< wxWindow * >(argp5);
6017 }
6018 {
6019 if (!wxPyCheckForApp()) SWIG_fail;
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 {
d14a1e28 6026#if wxUSE_UNICODE
0085ce49 6027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 6028#else
0085ce49 6029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 6030#endif
0085ce49
RD
6031 }
6032 {
6033 if (temp1)
6034 delete arg1;
6035 }
6036 {
6037 if (temp2)
6038 delete arg2;
6039 }
6040 return resultobj;
6041fail:
6042 {
6043 if (temp1)
6044 delete arg1;
6045 }
6046 {
6047 if (temp2)
6048 delete arg2;
6049 }
6050 return NULL;
6051}
6052
6053
6054SWIGINTERN PyObject *_wrap_GetTextFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6055 PyObject *resultobj = 0;
6056 wxString *arg1 = 0 ;
6057 wxString const &arg2_defvalue = wxPyEmptyString ;
6058 wxString *arg2 = (wxString *) &arg2_defvalue ;
6059 wxString const &arg3_defvalue = wxPyEmptyString ;
6060 wxString *arg3 = (wxString *) &arg3_defvalue ;
6061 wxWindow *arg4 = (wxWindow *) NULL ;
6062 int arg5 = (int) -1 ;
6063 int arg6 = (int) -1 ;
6064 bool arg7 = (bool) true ;
6065 wxString result;
6066 bool temp1 = false ;
6067 bool temp2 = false ;
6068 bool temp3 = false ;
6069 void *argp4 = 0 ;
6070 int res4 = 0 ;
6071 int val5 ;
6072 int ecode5 = 0 ;
6073 int val6 ;
6074 int ecode6 = 0 ;
6075 bool val7 ;
6076 int ecode7 = 0 ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 PyObject * obj2 = 0 ;
6080 PyObject * obj3 = 0 ;
6081 PyObject * obj4 = 0 ;
6082 PyObject * obj5 = 0 ;
6083 PyObject * obj6 = 0 ;
6084 char * kwnames[] = {
6085 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
6086 };
6087
6088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
6089 {
6090 arg1 = wxString_in_helper(obj0);
6091 if (arg1 == NULL) SWIG_fail;
6092 temp1 = true;
6093 }
6094 if (obj1) {
093d3ff1 6095 {
0085ce49
RD
6096 arg2 = wxString_in_helper(obj1);
6097 if (arg2 == NULL) SWIG_fail;
6098 temp2 = true;
093d3ff1 6099 }
0085ce49
RD
6100 }
6101 if (obj2) {
093d3ff1 6102 {
0085ce49
RD
6103 arg3 = wxString_in_helper(obj2);
6104 if (arg3 == NULL) SWIG_fail;
6105 temp3 = true;
994141e6 6106 }
0085ce49
RD
6107 }
6108 if (obj3) {
6109 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6110 if (!SWIG_IsOK(res4)) {
6111 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GetTextFromUser" "', expected argument " "4"" of type '" "wxWindow *""'");
d14a1e28 6112 }
0085ce49
RD
6113 arg4 = reinterpret_cast< wxWindow * >(argp4);
6114 }
6115 if (obj4) {
6116 ecode5 = SWIG_AsVal_int(obj4, &val5);
6117 if (!SWIG_IsOK(ecode5)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GetTextFromUser" "', expected argument " "5"" of type '" "int""'");
6119 }
6120 arg5 = static_cast< int >(val5);
6121 }
6122 if (obj5) {
6123 ecode6 = SWIG_AsVal_int(obj5, &val6);
6124 if (!SWIG_IsOK(ecode6)) {
6125 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetTextFromUser" "', expected argument " "6"" of type '" "int""'");
6126 }
6127 arg6 = static_cast< int >(val6);
6128 }
6129 if (obj6) {
6130 ecode7 = SWIG_AsVal_bool(obj6, &val7);
6131 if (!SWIG_IsOK(ecode7)) {
6132 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetTextFromUser" "', expected argument " "7"" of type '" "bool""'");
6133 }
6134 arg7 = static_cast< bool >(val7);
6135 }
6136 {
6137 if (!wxPyCheckForApp()) SWIG_fail;
6138 PyThreadState* __tstate = wxPyBeginAllowThreads();
6139 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 {
d14a1e28 6144#if wxUSE_UNICODE
0085ce49 6145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 6146#else
0085ce49 6147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 6148#endif
0085ce49
RD
6149 }
6150 {
6151 if (temp1)
6152 delete arg1;
6153 }
6154 {
6155 if (temp2)
6156 delete arg2;
6157 }
6158 {
6159 if (temp3)
6160 delete arg3;
6161 }
6162 return resultobj;
6163fail:
6164 {
6165 if (temp1)
6166 delete arg1;
6167 }
6168 {
6169 if (temp2)
6170 delete arg2;
6171 }
6172 {
6173 if (temp3)
6174 delete arg3;
6175 }
6176 return NULL;
6177}
6178
6179
6180SWIGINTERN PyObject *_wrap_GetPasswordFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6181 PyObject *resultobj = 0;
6182 wxString *arg1 = 0 ;
6183 wxString const &arg2_defvalue = wxPyEmptyString ;
6184 wxString *arg2 = (wxString *) &arg2_defvalue ;
6185 wxString const &arg3_defvalue = wxPyEmptyString ;
6186 wxString *arg3 = (wxString *) &arg3_defvalue ;
6187 wxWindow *arg4 = (wxWindow *) NULL ;
6188 wxString result;
6189 bool temp1 = false ;
6190 bool temp2 = false ;
6191 bool temp3 = false ;
6192 void *argp4 = 0 ;
6193 int res4 = 0 ;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 PyObject * obj2 = 0 ;
6197 PyObject * obj3 = 0 ;
6198 char * kwnames[] = {
6199 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
6200 };
6201
6202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6203 {
6204 arg1 = wxString_in_helper(obj0);
6205 if (arg1 == NULL) SWIG_fail;
6206 temp1 = true;
6207 }
6208 if (obj1) {
d14a1e28 6209 {
0085ce49
RD
6210 arg2 = wxString_in_helper(obj1);
6211 if (arg2 == NULL) SWIG_fail;
6212 temp2 = true;
d14a1e28 6213 }
0085ce49
RD
6214 }
6215 if (obj2) {
d14a1e28 6216 {
0085ce49
RD
6217 arg3 = wxString_in_helper(obj2);
6218 if (arg3 == NULL) SWIG_fail;
6219 temp3 = true;
d14a1e28 6220 }
0085ce49
RD
6221 }
6222 if (obj3) {
6223 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6224 if (!SWIG_IsOK(res4)) {
6225 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GetPasswordFromUser" "', expected argument " "4"" of type '" "wxWindow *""'");
d14a1e28 6226 }
0085ce49
RD
6227 arg4 = reinterpret_cast< wxWindow * >(argp4);
6228 }
6229 {
6230 if (!wxPyCheckForApp()) SWIG_fail;
6231 PyThreadState* __tstate = wxPyBeginAllowThreads();
6232 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
6233 wxPyEndAllowThreads(__tstate);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 {
093d3ff1 6237#if wxUSE_UNICODE
0085ce49 6238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 6239#else
0085ce49 6240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 6241#endif
0085ce49
RD
6242 }
6243 {
6244 if (temp1)
6245 delete arg1;
6246 }
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 {
6252 if (temp3)
6253 delete arg3;
6254 }
6255 return resultobj;
6256fail:
6257 {
6258 if (temp1)
6259 delete arg1;
6260 }
6261 {
6262 if (temp2)
6263 delete arg2;
6264 }
6265 {
6266 if (temp3)
6267 delete arg3;
6268 }
6269 return NULL;
6270}
6271
6272
6273SWIGINTERN PyObject *_wrap_GetSingleChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 wxString *arg1 = 0 ;
6276 wxString *arg2 = 0 ;
6277 int arg3 ;
6278 wxString *arg4 = (wxString *) 0 ;
6279 wxWindow *arg5 = (wxWindow *) NULL ;
6280 int arg6 = (int) -1 ;
6281 int arg7 = (int) -1 ;
6282 bool arg8 = (bool) true ;
6283 int arg9 = (int) 150 ;
6284 int arg10 = (int) 200 ;
6285 wxString result;
6286 bool temp1 = false ;
6287 bool temp2 = false ;
6288 void *argp5 = 0 ;
6289 int res5 = 0 ;
6290 int val6 ;
6291 int ecode6 = 0 ;
6292 int val7 ;
6293 int ecode7 = 0 ;
6294 bool val8 ;
6295 int ecode8 = 0 ;
6296 int val9 ;
6297 int ecode9 = 0 ;
6298 int val10 ;
6299 int ecode10 = 0 ;
6300 PyObject * obj0 = 0 ;
6301 PyObject * obj1 = 0 ;
6302 PyObject * obj2 = 0 ;
6303 PyObject * obj3 = 0 ;
6304 PyObject * obj4 = 0 ;
6305 PyObject * obj5 = 0 ;
6306 PyObject * obj6 = 0 ;
6307 PyObject * obj7 = 0 ;
6308 PyObject * obj8 = 0 ;
6309 char * kwnames[] = {
6310 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
6311 };
6312
6313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6314 {
6315 arg1 = wxString_in_helper(obj0);
6316 if (arg1 == NULL) SWIG_fail;
6317 temp1 = true;
6318 }
6319 {
6320 arg2 = wxString_in_helper(obj1);
6321 if (arg2 == NULL) SWIG_fail;
6322 temp2 = true;
6323 }
6324 {
6325 arg3 = PyList_Size(obj2);
6326 arg4 = wxString_LIST_helper(obj2);
6327 if (arg4 == NULL) SWIG_fail;
6328 }
6329 if (obj3) {
6330 res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6331 if (!SWIG_IsOK(res5)) {
6332 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GetSingleChoice" "', expected argument " "5"" of type '" "wxWindow *""'");
093d3ff1 6333 }
0085ce49
RD
6334 arg5 = reinterpret_cast< wxWindow * >(argp5);
6335 }
6336 if (obj4) {
6337 ecode6 = SWIG_AsVal_int(obj4, &val6);
6338 if (!SWIG_IsOK(ecode6)) {
6339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetSingleChoice" "', expected argument " "6"" of type '" "int""'");
6340 }
6341 arg6 = static_cast< int >(val6);
6342 }
6343 if (obj5) {
6344 ecode7 = SWIG_AsVal_int(obj5, &val7);
6345 if (!SWIG_IsOK(ecode7)) {
6346 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetSingleChoice" "', expected argument " "7"" of type '" "int""'");
6347 }
6348 arg7 = static_cast< int >(val7);
6349 }
6350 if (obj6) {
6351 ecode8 = SWIG_AsVal_bool(obj6, &val8);
6352 if (!SWIG_IsOK(ecode8)) {
6353 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "GetSingleChoice" "', expected argument " "8"" of type '" "bool""'");
6354 }
6355 arg8 = static_cast< bool >(val8);
6356 }
6357 if (obj7) {
6358 ecode9 = SWIG_AsVal_int(obj7, &val9);
6359 if (!SWIG_IsOK(ecode9)) {
6360 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GetSingleChoice" "', expected argument " "9"" of type '" "int""'");
6361 }
6362 arg9 = static_cast< int >(val9);
6363 }
6364 if (obj8) {
6365 ecode10 = SWIG_AsVal_int(obj8, &val10);
6366 if (!SWIG_IsOK(ecode10)) {
6367 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "GetSingleChoice" "', expected argument " "10"" of type '" "int""'");
6368 }
6369 arg10 = static_cast< int >(val10);
6370 }
6371 {
6372 if (!wxPyCheckForApp()) SWIG_fail;
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 {
093d3ff1 6379#if wxUSE_UNICODE
0085ce49 6380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 6381#else
0085ce49 6382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 6383#endif
0085ce49
RD
6384 }
6385 {
6386 if (temp1)
6387 delete arg1;
6388 }
6389 {
6390 if (temp2)
6391 delete arg2;
6392 }
6393 {
6394 if (arg4) delete [] arg4;
6395 }
6396 return resultobj;
6397fail:
6398 {
6399 if (temp1)
6400 delete arg1;
6401 }
6402 {
6403 if (temp2)
6404 delete arg2;
6405 }
6406 {
6407 if (arg4) delete [] arg4;
6408 }
6409 return NULL;
6410}
6411
6412
6413SWIGINTERN PyObject *_wrap_GetSingleChoiceIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj = 0;
6415 wxString *arg1 = 0 ;
6416 wxString *arg2 = 0 ;
6417 int arg3 ;
6418 wxString *arg4 = (wxString *) 0 ;
6419 wxWindow *arg5 = (wxWindow *) NULL ;
6420 int arg6 = (int) -1 ;
6421 int arg7 = (int) -1 ;
6422 bool arg8 = (bool) true ;
6423 int arg9 = (int) 150 ;
6424 int arg10 = (int) 200 ;
6425 int result;
6426 bool temp1 = false ;
6427 bool temp2 = false ;
6428 void *argp5 = 0 ;
6429 int res5 = 0 ;
6430 int val6 ;
6431 int ecode6 = 0 ;
6432 int val7 ;
6433 int ecode7 = 0 ;
6434 bool val8 ;
6435 int ecode8 = 0 ;
6436 int val9 ;
6437 int ecode9 = 0 ;
6438 int val10 ;
6439 int ecode10 = 0 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 PyObject * obj3 = 0 ;
6444 PyObject * obj4 = 0 ;
6445 PyObject * obj5 = 0 ;
6446 PyObject * obj6 = 0 ;
6447 PyObject * obj7 = 0 ;
6448 PyObject * obj8 = 0 ;
6449 char * kwnames[] = {
6450 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
6451 };
6452
6453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6454 {
6455 arg1 = wxString_in_helper(obj0);
6456 if (arg1 == NULL) SWIG_fail;
6457 temp1 = true;
6458 }
6459 {
6460 arg2 = wxString_in_helper(obj1);
6461 if (arg2 == NULL) SWIG_fail;
6462 temp2 = true;
6463 }
6464 {
6465 arg3 = PyList_Size(obj2);
6466 arg4 = wxString_LIST_helper(obj2);
6467 if (arg4 == NULL) SWIG_fail;
6468 }
6469 if (obj3) {
6470 res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6471 if (!SWIG_IsOK(res5)) {
6472 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GetSingleChoiceIndex" "', expected argument " "5"" of type '" "wxWindow *""'");
093d3ff1 6473 }
0085ce49
RD
6474 arg5 = reinterpret_cast< wxWindow * >(argp5);
6475 }
6476 if (obj4) {
6477 ecode6 = SWIG_AsVal_int(obj4, &val6);
6478 if (!SWIG_IsOK(ecode6)) {
6479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetSingleChoiceIndex" "', expected argument " "6"" of type '" "int""'");
6480 }
6481 arg6 = static_cast< int >(val6);
6482 }
6483 if (obj5) {
6484 ecode7 = SWIG_AsVal_int(obj5, &val7);
6485 if (!SWIG_IsOK(ecode7)) {
6486 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetSingleChoiceIndex" "', expected argument " "7"" of type '" "int""'");
6487 }
6488 arg7 = static_cast< int >(val7);
6489 }
6490 if (obj6) {
6491 ecode8 = SWIG_AsVal_bool(obj6, &val8);
6492 if (!SWIG_IsOK(ecode8)) {
6493 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "GetSingleChoiceIndex" "', expected argument " "8"" of type '" "bool""'");
6494 }
6495 arg8 = static_cast< bool >(val8);
6496 }
6497 if (obj7) {
6498 ecode9 = SWIG_AsVal_int(obj7, &val9);
6499 if (!SWIG_IsOK(ecode9)) {
6500 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GetSingleChoiceIndex" "', expected argument " "9"" of type '" "int""'");
6501 }
6502 arg9 = static_cast< int >(val9);
6503 }
6504 if (obj8) {
6505 ecode10 = SWIG_AsVal_int(obj8, &val10);
6506 if (!SWIG_IsOK(ecode10)) {
6507 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "GetSingleChoiceIndex" "', expected argument " "10"" of type '" "int""'");
6508 }
6509 arg10 = static_cast< int >(val10);
6510 }
6511 {
6512 if (!wxPyCheckForApp()) SWIG_fail;
6513 PyThreadState* __tstate = wxPyBeginAllowThreads();
6514 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_From_int(static_cast< int >(result));
6519 {
6520 if (temp1)
6521 delete arg1;
6522 }
6523 {
6524 if (temp2)
6525 delete arg2;
6526 }
6527 {
6528 if (arg4) delete [] arg4;
6529 }
6530 return resultobj;
6531fail:
6532 {
6533 if (temp1)
6534 delete arg1;
6535 }
6536 {
6537 if (temp2)
6538 delete arg2;
6539 }
6540 {
6541 if (arg4) delete [] arg4;
6542 }
6543 return NULL;
6544}
6545
6546
6547SWIGINTERN PyObject *_wrap_MessageBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6548 PyObject *resultobj = 0;
6549 wxString *arg1 = 0 ;
6550 wxString const &arg2_defvalue = wxPyEmptyString ;
6551 wxString *arg2 = (wxString *) &arg2_defvalue ;
6552 int arg3 = (int) wxOK|wxCENTRE ;
6553 wxWindow *arg4 = (wxWindow *) NULL ;
6554 int arg5 = (int) -1 ;
6555 int arg6 = (int) -1 ;
6556 int result;
6557 bool temp1 = false ;
6558 bool temp2 = false ;
6559 int val3 ;
6560 int ecode3 = 0 ;
6561 void *argp4 = 0 ;
6562 int res4 = 0 ;
6563 int val5 ;
6564 int ecode5 = 0 ;
6565 int val6 ;
6566 int ecode6 = 0 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 PyObject * obj2 = 0 ;
6570 PyObject * obj3 = 0 ;
6571 PyObject * obj4 = 0 ;
6572 PyObject * obj5 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6578 {
6579 arg1 = wxString_in_helper(obj0);
6580 if (arg1 == NULL) SWIG_fail;
6581 temp1 = true;
6582 }
6583 if (obj1) {
093d3ff1 6584 {
0085ce49
RD
6585 arg2 = wxString_in_helper(obj1);
6586 if (arg2 == NULL) SWIG_fail;
6587 temp2 = true;
d14a1e28 6588 }
0085ce49
RD
6589 }
6590 if (obj2) {
6591 ecode3 = SWIG_AsVal_int(obj2, &val3);
6592 if (!SWIG_IsOK(ecode3)) {
6593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessageBox" "', expected argument " "3"" of type '" "int""'");
6594 }
6595 arg3 = static_cast< int >(val3);
6596 }
6597 if (obj3) {
6598 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6599 if (!SWIG_IsOK(res4)) {
6600 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MessageBox" "', expected argument " "4"" of type '" "wxWindow *""'");
093d3ff1 6601 }
0085ce49
RD
6602 arg4 = reinterpret_cast< wxWindow * >(argp4);
6603 }
6604 if (obj4) {
6605 ecode5 = SWIG_AsVal_int(obj4, &val5);
6606 if (!SWIG_IsOK(ecode5)) {
6607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MessageBox" "', expected argument " "5"" of type '" "int""'");
6608 }
6609 arg5 = static_cast< int >(val5);
6610 }
6611 if (obj5) {
6612 ecode6 = SWIG_AsVal_int(obj5, &val6);
6613 if (!SWIG_IsOK(ecode6)) {
6614 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "MessageBox" "', expected argument " "6"" of type '" "int""'");
6615 }
6616 arg6 = static_cast< int >(val6);
6617 }
6618 {
6619 if (!wxPyCheckForApp()) SWIG_fail;
6620 PyThreadState* __tstate = wxPyBeginAllowThreads();
6621 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_From_int(static_cast< int >(result));
6626 {
6627 if (temp1)
6628 delete arg1;
6629 }
6630 {
6631 if (temp2)
6632 delete arg2;
6633 }
6634 return resultobj;
6635fail:
6636 {
6637 if (temp1)
6638 delete arg1;
6639 }
6640 {
6641 if (temp2)
6642 delete arg2;
6643 }
6644 return NULL;
d14a1e28
RD
6645}
6646
6647
27e45892
RD
6648SWIGINTERN PyObject *_wrap_GetNumberFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj = 0;
6650 wxString *arg1 = 0 ;
6651 wxString *arg2 = 0 ;
6652 wxString *arg3 = 0 ;
6653 long arg4 ;
6654 long arg5 = (long) 0 ;
6655 long arg6 = (long) 100 ;
6656 wxWindow *arg7 = (wxWindow *) NULL ;
6657 wxPoint const &arg8_defvalue = wxDefaultPosition ;
6658 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
6659 long result;
6660 bool temp1 = false ;
6661 bool temp2 = false ;
6662 bool temp3 = false ;
6663 long val4 ;
6664 int ecode4 = 0 ;
6665 long val5 ;
6666 int ecode5 = 0 ;
6667 long val6 ;
6668 int ecode6 = 0 ;
6669 void *argp7 = 0 ;
6670 int res7 = 0 ;
6671 wxPoint temp8 ;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674 PyObject * obj2 = 0 ;
6675 PyObject * obj3 = 0 ;
6676 PyObject * obj4 = 0 ;
6677 PyObject * obj5 = 0 ;
6678 PyObject * obj6 = 0 ;
6679 PyObject * obj7 = 0 ;
6680 char * kwnames[] = {
6681 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
6682 };
6683
6684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6685 {
6686 arg1 = wxString_in_helper(obj0);
6687 if (arg1 == NULL) SWIG_fail;
6688 temp1 = true;
6689 }
6690 {
6691 arg2 = wxString_in_helper(obj1);
6692 if (arg2 == NULL) SWIG_fail;
6693 temp2 = true;
6694 }
6695 {
6696 arg3 = wxString_in_helper(obj2);
6697 if (arg3 == NULL) SWIG_fail;
6698 temp3 = true;
6699 }
6700 ecode4 = SWIG_AsVal_long(obj3, &val4);
6701 if (!SWIG_IsOK(ecode4)) {
6702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GetNumberFromUser" "', expected argument " "4"" of type '" "long""'");
6703 }
6704 arg4 = static_cast< long >(val4);
6705 if (obj4) {
6706 ecode5 = SWIG_AsVal_long(obj4, &val5);
6707 if (!SWIG_IsOK(ecode5)) {
6708 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GetNumberFromUser" "', expected argument " "5"" of type '" "long""'");
6709 }
6710 arg5 = static_cast< long >(val5);
6711 }
6712 if (obj5) {
6713 ecode6 = SWIG_AsVal_long(obj5, &val6);
6714 if (!SWIG_IsOK(ecode6)) {
6715 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetNumberFromUser" "', expected argument " "6"" of type '" "long""'");
6716 }
6717 arg6 = static_cast< long >(val6);
6718 }
6719 if (obj6) {
6720 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxWindow, 0 | 0 );
6721 if (!SWIG_IsOK(res7)) {
6722 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "GetNumberFromUser" "', expected argument " "7"" of type '" "wxWindow *""'");
6723 }
6724 arg7 = reinterpret_cast< wxWindow * >(argp7);
6725 }
6726 if (obj7) {
6727 {
6728 arg8 = &temp8;
6729 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
6730 }
6731 }
6732 {
6733 if (!wxPyCheckForApp()) SWIG_fail;
6734 PyThreadState* __tstate = wxPyBeginAllowThreads();
6735 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 resultobj = SWIG_From_long(static_cast< long >(result));
6740 {
6741 if (temp1)
6742 delete arg1;
6743 }
6744 {
6745 if (temp2)
6746 delete arg2;
6747 }
6748 {
6749 if (temp3)
6750 delete arg3;
6751 }
6752 return resultobj;
6753fail:
6754 {
6755 if (temp1)
6756 delete arg1;
6757 }
6758 {
6759 if (temp2)
6760 delete arg2;
6761 }
6762 {
6763 if (temp3)
6764 delete arg3;
6765 }
6766 return NULL;
6767}
6768
6769
0085ce49
RD
6770SWIGINTERN PyObject *_wrap_ColourDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6771 PyObject *resultobj = 0;
6772 bool result;
6773
6774 if (!SWIG_Python_UnpackTuple(args,"ColourDisplay",0,0,0)) SWIG_fail;
6775 {
6776 if (!wxPyCheckForApp()) SWIG_fail;
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 result = (bool)wxColourDisplay();
6779 wxPyEndAllowThreads(__tstate);
6780 if (PyErr_Occurred()) SWIG_fail;
6781 }
6782 {
6783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6784 }
6785 return resultobj;
6786fail:
6787 return NULL;
093d3ff1
RD
6788}
6789
6790
0085ce49
RD
6791SWIGINTERN PyObject *_wrap_DisplayDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6792 PyObject *resultobj = 0;
6793 int result;
6794
6795 if (!SWIG_Python_UnpackTuple(args,"DisplayDepth",0,0,0)) SWIG_fail;
6796 {
6797 if (!wxPyCheckForApp()) SWIG_fail;
6798 PyThreadState* __tstate = wxPyBeginAllowThreads();
6799 result = (int)wxDisplayDepth();
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 resultobj = SWIG_From_int(static_cast< int >(result));
6804 return resultobj;
6805fail:
6806 return NULL;
d14a1e28
RD
6807}
6808
6809
0085ce49
RD
6810SWIGINTERN PyObject *_wrap_GetDisplayDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6811 PyObject *resultobj = 0;
6812 int result;
6813
6814 if (!SWIG_Python_UnpackTuple(args,"GetDisplayDepth",0,0,0)) SWIG_fail;
6815 {
6816 if (!wxPyCheckForApp()) SWIG_fail;
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 result = (int)wxGetDisplayDepth();
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 resultobj = SWIG_From_int(static_cast< int >(result));
6823 return resultobj;
6824fail:
6825 return NULL;
d14a1e28
RD
6826}
6827
6828
0085ce49
RD
6829SWIGINTERN PyObject *_wrap_DisplaySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6830 PyObject *resultobj = 0;
6831 int *arg1 = (int *) 0 ;
6832 int *arg2 = (int *) 0 ;
6833 int temp1 ;
6834 int res1 = SWIG_TMPOBJ ;
6835 int temp2 ;
6836 int res2 = SWIG_TMPOBJ ;
6837
6838 arg1 = &temp1;
6839 arg2 = &temp2;
6840 if (!SWIG_Python_UnpackTuple(args,"DisplaySize",0,0,0)) SWIG_fail;
6841 {
6842 if (!wxPyCheckForApp()) SWIG_fail;
6843 PyThreadState* __tstate = wxPyBeginAllowThreads();
6844 wxDisplaySize(arg1,arg2);
6845 wxPyEndAllowThreads(__tstate);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 if (SWIG_IsTmpObj(res1)) {
6850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6851 } else {
6852 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6854 }
6855 if (SWIG_IsTmpObj(res2)) {
6856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6857 } else {
6858 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6860 }
6861 return resultobj;
6862fail:
6863 return NULL;
d14a1e28
RD
6864}
6865
6866
0085ce49
RD
6867SWIGINTERN PyObject *_wrap_GetDisplaySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6868 PyObject *resultobj = 0;
6869 wxSize result;
6870
6871 if (!SWIG_Python_UnpackTuple(args,"GetDisplaySize",0,0,0)) SWIG_fail;
6872 {
6873 if (!wxPyCheckForApp()) SWIG_fail;
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = wxGetDisplaySize();
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6880 return resultobj;
6881fail:
6882 return NULL;
d14a1e28
RD
6883}
6884
6885
0085ce49
RD
6886SWIGINTERN PyObject *_wrap_DisplaySizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6887 PyObject *resultobj = 0;
6888 int *arg1 = (int *) 0 ;
6889 int *arg2 = (int *) 0 ;
6890 int temp1 ;
6891 int res1 = SWIG_TMPOBJ ;
6892 int temp2 ;
6893 int res2 = SWIG_TMPOBJ ;
6894
6895 arg1 = &temp1;
6896 arg2 = &temp2;
6897 if (!SWIG_Python_UnpackTuple(args,"DisplaySizeMM",0,0,0)) SWIG_fail;
6898 {
6899 if (!wxPyCheckForApp()) SWIG_fail;
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 wxDisplaySizeMM(arg1,arg2);
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_Py_Void();
6906 if (SWIG_IsTmpObj(res1)) {
6907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6908 } else {
6909 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6911 }
6912 if (SWIG_IsTmpObj(res2)) {
6913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6914 } else {
6915 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6917 }
6918 return resultobj;
6919fail:
6920 return NULL;
d14a1e28
RD
6921}
6922
6923
0085ce49
RD
6924SWIGINTERN PyObject *_wrap_GetDisplaySizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6925 PyObject *resultobj = 0;
6926 wxSize result;
6927
6928 if (!SWIG_Python_UnpackTuple(args,"GetDisplaySizeMM",0,0,0)) SWIG_fail;
6929 {
6930 if (!wxPyCheckForApp()) SWIG_fail;
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = wxGetDisplaySizeMM();
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6937 return resultobj;
6938fail:
6939 return NULL;
6940}
6941
6942
6943SWIGINTERN PyObject *_wrap_ClientDisplayRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6944 PyObject *resultobj = 0;
6945 int *arg1 = (int *) 0 ;
6946 int *arg2 = (int *) 0 ;
6947 int *arg3 = (int *) 0 ;
6948 int *arg4 = (int *) 0 ;
6949 int temp1 ;
6950 int res1 = SWIG_TMPOBJ ;
6951 int temp2 ;
6952 int res2 = SWIG_TMPOBJ ;
6953 int temp3 ;
6954 int res3 = SWIG_TMPOBJ ;
6955 int temp4 ;
6956 int res4 = SWIG_TMPOBJ ;
6957
6958 arg1 = &temp1;
6959 arg2 = &temp2;
6960 arg3 = &temp3;
6961 arg4 = &temp4;
6962 if (!SWIG_Python_UnpackTuple(args,"ClientDisplayRect",0,0,0)) SWIG_fail;
6963 {
6964 if (!wxPyCheckForApp()) SWIG_fail;
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 wxClientDisplayRect(arg1,arg2,arg3,arg4);
6967 wxPyEndAllowThreads(__tstate);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 resultobj = SWIG_Py_Void();
6971 if (SWIG_IsTmpObj(res1)) {
6972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6973 } else {
6974 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6976 }
6977 if (SWIG_IsTmpObj(res2)) {
6978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6979 } else {
6980 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6982 }
6983 if (SWIG_IsTmpObj(res3)) {
6984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
6985 } else {
6986 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
6988 }
6989 if (SWIG_IsTmpObj(res4)) {
6990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
6991 } else {
6992 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
6994 }
6995 return resultobj;
6996fail:
6997 return NULL;
d14a1e28
RD
6998}
6999
7000
0085ce49
RD
7001SWIGINTERN PyObject *_wrap_GetClientDisplayRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7002 PyObject *resultobj = 0;
7003 wxRect result;
7004
7005 if (!SWIG_Python_UnpackTuple(args,"GetClientDisplayRect",0,0,0)) SWIG_fail;
7006 {
7007 if (!wxPyCheckForApp()) SWIG_fail;
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 result = wxGetClientDisplayRect();
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7014 return resultobj;
7015fail:
7016 return NULL;
d14a1e28
RD
7017}
7018
7019
0085ce49
RD
7020SWIGINTERN PyObject *_wrap_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj = 0;
7022 wxCursor *arg1 = 0 ;
7023 void *argp1 = 0 ;
7024 int res1 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 char * kwnames[] = {
7027 (char *) "cursor", NULL
7028 };
7029
7030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) SWIG_fail;
7031 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxCursor, 0 );
7032 if (!SWIG_IsOK(res1)) {
7033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursor" "', expected argument " "1"" of type '" "wxCursor &""'");
7034 }
7035 if (!argp1) {
7036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SetCursor" "', expected argument " "1"" of type '" "wxCursor &""'");
7037 }
7038 arg1 = reinterpret_cast< wxCursor * >(argp1);
7039 {
7040 if (!wxPyCheckForApp()) SWIG_fail;
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 wxSetCursor(*arg1);
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_Py_Void();
7047 return resultobj;
7048fail:
7049 return NULL;
d14a1e28
RD
7050}
7051
7052
0085ce49
RD
7053SWIGINTERN PyObject *_wrap_GetXDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7054 PyObject *resultobj = 0;
7055 void *result = 0 ;
7056
7057 if (!SWIG_Python_UnpackTuple(args,"GetXDisplay",0,0,0)) SWIG_fail;
7058 {
7059 if (!wxPyCheckForApp()) SWIG_fail;
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = (void *)wxGetXDisplay();
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
7066 return resultobj;
7067fail:
7068 return NULL;
d14a1e28
RD
7069}
7070
7071
0085ce49
RD
7072SWIGINTERN PyObject *_wrap_BeginBusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj = 0;
7074 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
7075 void *argp1 = 0 ;
7076 int res1 = 0 ;
7077 PyObject * obj0 = 0 ;
7078 char * kwnames[] = {
7079 (char *) "cursor", NULL
7080 };
7081
7082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) SWIG_fail;
7083 if (obj0) {
7084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7085 if (!SWIG_IsOK(res1)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BeginBusyCursor" "', expected argument " "1"" of type '" "wxCursor *""'");
d14a1e28 7087 }
0085ce49
RD
7088 arg1 = reinterpret_cast< wxCursor * >(argp1);
7089 }
7090 {
7091 if (!wxPyCheckForApp()) SWIG_fail;
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 wxBeginBusyCursor(arg1);
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_Py_Void();
7098 return resultobj;
7099fail:
7100 return NULL;
d14a1e28
RD
7101}
7102
7103
0085ce49
RD
7104SWIGINTERN PyObject *_wrap_GetMousePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7105 PyObject *resultobj = 0;
7106 wxPoint result;
7107
7108 if (!SWIG_Python_UnpackTuple(args,"GetMousePosition",0,0,0)) SWIG_fail;
7109 {
7110 if (!wxPyCheckForApp()) SWIG_fail;
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 result = wxGetMousePosition();
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7117 return resultobj;
7118fail:
7119 return NULL;
093d3ff1
RD
7120}
7121
7122
0085ce49
RD
7123SWIGINTERN PyObject *_wrap_FindWindowAtPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7124 PyObject *resultobj = 0;
7125 wxWindow *result = 0 ;
7126
7127 if (!SWIG_Python_UnpackTuple(args,"FindWindowAtPointer",0,0,0)) SWIG_fail;
7128 {
7129 if (!wxPyCheckForApp()) SWIG_fail;
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 result = (wxWindow *)FindWindowAtPointer();
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = wxPyMake_wxObject(result, 0);
7137 }
7138 return resultobj;
7139fail:
7140 return NULL;
093d3ff1
RD
7141}
7142
7143
0085ce49
RD
7144SWIGINTERN PyObject *_wrap_GetActiveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7145 PyObject *resultobj = 0;
7146 wxWindow *result = 0 ;
7147
7148 if (!SWIG_Python_UnpackTuple(args,"GetActiveWindow",0,0,0)) SWIG_fail;
7149 {
7150 if (!wxPyCheckForApp()) SWIG_fail;
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 result = (wxWindow *)wxGetActiveWindow();
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 {
7157 resultobj = wxPyMake_wxObject(result, 0);
7158 }
7159 return resultobj;
7160fail:
7161 return NULL;
093d3ff1
RD
7162}
7163
7164
0085ce49
RD
7165SWIGINTERN PyObject *_wrap_GenericFindWindowAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7166 PyObject *resultobj = 0;
7167 wxPoint *arg1 = 0 ;
7168 wxWindow *result = 0 ;
7169 wxPoint temp1 ;
7170 PyObject * obj0 = 0 ;
7171 char * kwnames[] = {
7172 (char *) "pt", NULL
7173 };
7174
7175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) SWIG_fail;
7176 {
7177 arg1 = &temp1;
7178 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
7179 }
7180 {
7181 if (!wxPyCheckForApp()) SWIG_fail;
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 {
7188 resultobj = wxPyMake_wxObject(result, 0);
7189 }
7190 return resultobj;
7191fail:
7192 return NULL;
093d3ff1
RD
7193}
7194
7195
0085ce49
RD
7196SWIGINTERN PyObject *_wrap_FindWindowAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj = 0;
7198 wxPoint *arg1 = 0 ;
7199 wxWindow *result = 0 ;
7200 wxPoint temp1 ;
7201 PyObject * obj0 = 0 ;
7202 char * kwnames[] = {
7203 (char *) "pt", NULL
7204 };
7205
7206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) SWIG_fail;
7207 {
7208 arg1 = &temp1;
7209 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
7210 }
7211 {
7212 if (!wxPyCheckForApp()) SWIG_fail;
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 {
7219 resultobj = wxPyMake_wxObject(result, 0);
7220 }
7221 return resultobj;
7222fail:
7223 return NULL;
093d3ff1
RD
7224}
7225
7226
0085ce49
RD
7227SWIGINTERN PyObject *_wrap_GetTopLevelParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7228 PyObject *resultobj = 0;
7229 wxWindow *arg1 = (wxWindow *) 0 ;
7230 wxWindow *result = 0 ;
7231 void *argp1 = 0 ;
7232 int res1 = 0 ;
7233 PyObject * obj0 = 0 ;
7234 char * kwnames[] = {
7235 (char *) "win", NULL
7236 };
7237
7238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) SWIG_fail;
7239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7240 if (!SWIG_IsOK(res1)) {
7241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetTopLevelParent" "', expected argument " "1"" of type '" "wxWindow *""'");
7242 }
7243 arg1 = reinterpret_cast< wxWindow * >(argp1);
7244 {
7245 if (!wxPyCheckForApp()) SWIG_fail;
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 result = (wxWindow *)wxGetTopLevelParent(arg1);
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 {
7252 resultobj = wxPyMake_wxObject(result, 0);
7253 }
7254 return resultobj;
7255fail:
7256 return NULL;
73c8ef6a
RD
7257}
7258
7259
0085ce49
RD
7260SWIGINTERN PyObject *_wrap_LaunchDefaultBrowser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7261 PyObject *resultobj = 0;
7262 wxString *arg1 = 0 ;
7263 bool result;
7264 bool temp1 = false ;
7265 PyObject * obj0 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "url", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) SWIG_fail;
7271 {
7272 arg1 = wxString_in_helper(obj0);
7273 if (arg1 == NULL) SWIG_fail;
7274 temp1 = true;
7275 }
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 {
7283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7284 }
7285 {
7286 if (temp1)
7287 delete arg1;
7288 }
7289 return resultobj;
7290fail:
7291 {
7292 if (temp1)
7293 delete arg1;
7294 }
7295 return NULL;
093d3ff1
RD
7296}
7297
7298
0085ce49
RD
7299SWIGINTERN PyObject *_wrap_GetKeyState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7300 PyObject *resultobj = 0;
7301 wxKeyCode arg1 ;
7302 bool result;
7303 int val1 ;
7304 int ecode1 = 0 ;
7305 PyObject * obj0 = 0 ;
7306 char * kwnames[] = {
7307 (char *) "key", NULL
7308 };
7309
7310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) SWIG_fail;
7311 ecode1 = SWIG_AsVal_int(obj0, &val1);
7312 if (!SWIG_IsOK(ecode1)) {
7313 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetKeyState" "', expected argument " "1"" of type '" "wxKeyCode""'");
7314 }
7315 arg1 = static_cast< wxKeyCode >(val1);
7316 {
7317 if (!wxPyCheckForApp()) SWIG_fail;
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = (bool)wxGetKeyState(arg1);
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 {
7324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7325 }
7326 return resultobj;
7327fail:
7328 return NULL;
093d3ff1
RD
7329}
7330
7331
0085ce49
RD
7332SWIGINTERN PyObject *_wrap_new_MouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7333 PyObject *resultobj = 0;
7334 wxMouseState *result = 0 ;
7335
7336 if (!SWIG_Python_UnpackTuple(args,"new_MouseState",0,0,0)) SWIG_fail;
7337 {
7338 PyThreadState* __tstate = wxPyBeginAllowThreads();
7339 result = (wxMouseState *)new wxMouseState();
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseState, SWIG_POINTER_NEW | 0 );
7344 return resultobj;
7345fail:
7346 return NULL;
32fe5131
RD
7347}
7348
7349
0085ce49
RD
7350SWIGINTERN PyObject *_wrap_delete_MouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7351 PyObject *resultobj = 0;
7352 wxMouseState *arg1 = (wxMouseState *) 0 ;
7353 void *argp1 = 0 ;
7354 int res1 = 0 ;
7355 PyObject *swig_obj[1] ;
7356
7357 if (!args) SWIG_fail;
7358 swig_obj[0] = args;
7359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, SWIG_POINTER_DISOWN | 0 );
7360 if (!SWIG_IsOK(res1)) {
7361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MouseState" "', expected argument " "1"" of type '" "wxMouseState *""'");
7362 }
7363 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 delete arg1;
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_Py_Void();
7372 return resultobj;
7373fail:
7374 return NULL;
32fe5131
RD
7375}
7376
7377
0085ce49
RD
7378SWIGINTERN PyObject *_wrap_MouseState_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 PyObject *resultobj = 0;
7380 wxMouseState *arg1 = (wxMouseState *) 0 ;
7381 int result;
7382 void *argp1 = 0 ;
7383 int res1 = 0 ;
7384 PyObject *swig_obj[1] ;
7385
7386 if (!args) SWIG_fail;
7387 swig_obj[0] = args;
7388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7389 if (!SWIG_IsOK(res1)) {
7390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_GetX" "', expected argument " "1"" of type '" "wxMouseState *""'");
7391 }
7392 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 result = (int)(arg1)->GetX();
7396 wxPyEndAllowThreads(__tstate);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 resultobj = SWIG_From_int(static_cast< int >(result));
7400 return resultobj;
7401fail:
7402 return NULL;
32fe5131
RD
7403}
7404
7405
0085ce49
RD
7406SWIGINTERN PyObject *_wrap_MouseState_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7407 PyObject *resultobj = 0;
7408 wxMouseState *arg1 = (wxMouseState *) 0 ;
7409 int result;
7410 void *argp1 = 0 ;
7411 int res1 = 0 ;
7412 PyObject *swig_obj[1] ;
7413
7414 if (!args) SWIG_fail;
7415 swig_obj[0] = args;
7416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7417 if (!SWIG_IsOK(res1)) {
7418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_GetY" "', expected argument " "1"" of type '" "wxMouseState *""'");
7419 }
7420 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 result = (int)(arg1)->GetY();
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 resultobj = SWIG_From_int(static_cast< int >(result));
7428 return resultobj;
7429fail:
7430 return NULL;
32fe5131
RD
7431}
7432
7433
0085ce49
RD
7434SWIGINTERN PyObject *_wrap_MouseState_LeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7435 PyObject *resultobj = 0;
7436 wxMouseState *arg1 = (wxMouseState *) 0 ;
7437 bool result;
7438 void *argp1 = 0 ;
7439 int res1 = 0 ;
7440 PyObject *swig_obj[1] ;
7441
7442 if (!args) SWIG_fail;
7443 swig_obj[0] = args;
7444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7445 if (!SWIG_IsOK(res1)) {
7446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_LeftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7447 }
7448 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 result = (bool)(arg1)->LeftDown();
7452 wxPyEndAllowThreads(__tstate);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 {
7456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7457 }
7458 return resultobj;
7459fail:
7460 return NULL;
32fe5131
RD
7461}
7462
7463
0085ce49
RD
7464SWIGINTERN PyObject *_wrap_MouseState_MiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7465 PyObject *resultobj = 0;
7466 wxMouseState *arg1 = (wxMouseState *) 0 ;
7467 bool result;
7468 void *argp1 = 0 ;
7469 int res1 = 0 ;
7470 PyObject *swig_obj[1] ;
7471
7472 if (!args) SWIG_fail;
7473 swig_obj[0] = args;
7474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7475 if (!SWIG_IsOK(res1)) {
7476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_MiddleDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7477 }
7478 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 result = (bool)(arg1)->MiddleDown();
7482 wxPyEndAllowThreads(__tstate);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 {
7486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7487 }
7488 return resultobj;
7489fail:
7490 return NULL;
32fe5131
RD
7491}
7492
7493
0085ce49
RD
7494SWIGINTERN PyObject *_wrap_MouseState_RightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *resultobj = 0;
7496 wxMouseState *arg1 = (wxMouseState *) 0 ;
7497 bool result;
7498 void *argp1 = 0 ;
7499 int res1 = 0 ;
7500 PyObject *swig_obj[1] ;
7501
7502 if (!args) SWIG_fail;
7503 swig_obj[0] = args;
7504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7505 if (!SWIG_IsOK(res1)) {
7506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_RightDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7507 }
7508 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (bool)(arg1)->RightDown();
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 {
7516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7517 }
7518 return resultobj;
7519fail:
7520 return NULL;
32fe5131
RD
7521}
7522
7523
0085ce49
RD
7524SWIGINTERN PyObject *_wrap_MouseState_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7525 PyObject *resultobj = 0;
7526 wxMouseState *arg1 = (wxMouseState *) 0 ;
7527 bool result;
7528 void *argp1 = 0 ;
7529 int res1 = 0 ;
7530 PyObject *swig_obj[1] ;
7531
7532 if (!args) SWIG_fail;
7533 swig_obj[0] = args;
7534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7535 if (!SWIG_IsOK(res1)) {
7536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_ControlDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7537 }
7538 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (bool)(arg1)->ControlDown();
7542 wxPyEndAllowThreads(__tstate);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 {
7546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7547 }
7548 return resultobj;
7549fail:
7550 return NULL;
32fe5131
RD
7551}
7552
7553
0085ce49
RD
7554SWIGINTERN PyObject *_wrap_MouseState_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7555 PyObject *resultobj = 0;
7556 wxMouseState *arg1 = (wxMouseState *) 0 ;
7557 bool result;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 PyObject *swig_obj[1] ;
7561
7562 if (!args) SWIG_fail;
7563 swig_obj[0] = args;
7564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7565 if (!SWIG_IsOK(res1)) {
7566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_ShiftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7567 }
7568 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (bool)(arg1)->ShiftDown();
7572 wxPyEndAllowThreads(__tstate);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 {
7576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7577 }
7578 return resultobj;
7579fail:
7580 return NULL;
32fe5131
RD
7581}
7582
7583
0085ce49
RD
7584SWIGINTERN PyObject *_wrap_MouseState_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7585 PyObject *resultobj = 0;
7586 wxMouseState *arg1 = (wxMouseState *) 0 ;
7587 bool result;
7588 void *argp1 = 0 ;
7589 int res1 = 0 ;
7590 PyObject *swig_obj[1] ;
7591
7592 if (!args) SWIG_fail;
7593 swig_obj[0] = args;
7594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_AltDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7597 }
7598 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7599 {
7600 PyThreadState* __tstate = wxPyBeginAllowThreads();
7601 result = (bool)(arg1)->AltDown();
7602 wxPyEndAllowThreads(__tstate);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 }
7605 {
7606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7607 }
7608 return resultobj;
7609fail:
7610 return NULL;
32fe5131
RD
7611}
7612
7613
0085ce49
RD
7614SWIGINTERN PyObject *_wrap_MouseState_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7615 PyObject *resultobj = 0;
7616 wxMouseState *arg1 = (wxMouseState *) 0 ;
7617 bool result;
7618 void *argp1 = 0 ;
7619 int res1 = 0 ;
7620 PyObject *swig_obj[1] ;
7621
7622 if (!args) SWIG_fail;
7623 swig_obj[0] = args;
7624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7625 if (!SWIG_IsOK(res1)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_MetaDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7627 }
7628 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (bool)(arg1)->MetaDown();
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 {
7636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7637 }
7638 return resultobj;
7639fail:
7640 return NULL;
32fe5131
RD
7641}
7642
7643
0085ce49
RD
7644SWIGINTERN PyObject *_wrap_MouseState_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7645 PyObject *resultobj = 0;
7646 wxMouseState *arg1 = (wxMouseState *) 0 ;
7647 bool result;
7648 void *argp1 = 0 ;
7649 int res1 = 0 ;
7650 PyObject *swig_obj[1] ;
7651
7652 if (!args) SWIG_fail;
7653 swig_obj[0] = args;
7654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7655 if (!SWIG_IsOK(res1)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_CmdDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7657 }
7658 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = (bool)(arg1)->CmdDown();
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 {
7666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7667 }
7668 return resultobj;
7669fail:
7670 return NULL;
7671}
7672
7673
7674SWIGINTERN PyObject *_wrap_MouseState_SetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj = 0;
7676 wxMouseState *arg1 = (wxMouseState *) 0 ;
7677 int arg2 ;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680 int val2 ;
7681 int ecode2 = 0 ;
7682 PyObject * obj0 = 0 ;
7683 PyObject * obj1 = 0 ;
7684 char * kwnames[] = {
7685 (char *) "self",(char *) "x", NULL
7686 };
7687
7688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) SWIG_fail;
7689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7690 if (!SWIG_IsOK(res1)) {
7691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetX" "', expected argument " "1"" of type '" "wxMouseState *""'");
7692 }
7693 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7694 ecode2 = SWIG_AsVal_int(obj1, &val2);
7695 if (!SWIG_IsOK(ecode2)) {
7696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetX" "', expected argument " "2"" of type '" "int""'");
7697 }
7698 arg2 = static_cast< int >(val2);
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 (arg1)->SetX(arg2);
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 resultobj = SWIG_Py_Void();
7706 return resultobj;
7707fail:
7708 return NULL;
7709}
7710
7711
7712SWIGINTERN PyObject *_wrap_MouseState_SetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj = 0;
7714 wxMouseState *arg1 = (wxMouseState *) 0 ;
7715 int arg2 ;
7716 void *argp1 = 0 ;
7717 int res1 = 0 ;
7718 int val2 ;
7719 int ecode2 = 0 ;
7720 PyObject * obj0 = 0 ;
7721 PyObject * obj1 = 0 ;
7722 char * kwnames[] = {
7723 (char *) "self",(char *) "y", NULL
7724 };
7725
7726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) SWIG_fail;
7727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7728 if (!SWIG_IsOK(res1)) {
7729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetY" "', expected argument " "1"" of type '" "wxMouseState *""'");
7730 }
7731 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7732 ecode2 = SWIG_AsVal_int(obj1, &val2);
7733 if (!SWIG_IsOK(ecode2)) {
7734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetY" "', expected argument " "2"" of type '" "int""'");
7735 }
7736 arg2 = static_cast< int >(val2);
7737 {
7738 PyThreadState* __tstate = wxPyBeginAllowThreads();
7739 (arg1)->SetY(arg2);
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 resultobj = SWIG_Py_Void();
7744 return resultobj;
7745fail:
7746 return NULL;
7747}
7748
7749
7750SWIGINTERN PyObject *_wrap_MouseState_SetLeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj = 0;
7752 wxMouseState *arg1 = (wxMouseState *) 0 ;
7753 bool arg2 ;
7754 void *argp1 = 0 ;
7755 int res1 = 0 ;
7756 bool val2 ;
7757 int ecode2 = 0 ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 char * kwnames[] = {
7761 (char *) "self",(char *) "down", NULL
7762 };
7763
7764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) SWIG_fail;
7765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7766 if (!SWIG_IsOK(res1)) {
7767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetLeftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7768 }
7769 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7770 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7771 if (!SWIG_IsOK(ecode2)) {
7772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetLeftDown" "', expected argument " "2"" of type '" "bool""'");
7773 }
7774 arg2 = static_cast< bool >(val2);
7775 {
7776 PyThreadState* __tstate = wxPyBeginAllowThreads();
7777 (arg1)->SetLeftDown(arg2);
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_Py_Void();
7782 return resultobj;
7783fail:
7784 return NULL;
7785}
7786
7787
7788SWIGINTERN PyObject *_wrap_MouseState_SetMiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7789 PyObject *resultobj = 0;
7790 wxMouseState *arg1 = (wxMouseState *) 0 ;
7791 bool arg2 ;
7792 void *argp1 = 0 ;
7793 int res1 = 0 ;
7794 bool val2 ;
7795 int ecode2 = 0 ;
7796 PyObject * obj0 = 0 ;
7797 PyObject * obj1 = 0 ;
7798 char * kwnames[] = {
7799 (char *) "self",(char *) "down", NULL
7800 };
7801
7802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) SWIG_fail;
7803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7804 if (!SWIG_IsOK(res1)) {
7805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetMiddleDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7806 }
7807 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7808 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7809 if (!SWIG_IsOK(ecode2)) {
7810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetMiddleDown" "', expected argument " "2"" of type '" "bool""'");
7811 }
7812 arg2 = static_cast< bool >(val2);
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 (arg1)->SetMiddleDown(arg2);
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_Py_Void();
7820 return resultobj;
7821fail:
7822 return NULL;
7823}
7824
7825
7826SWIGINTERN PyObject *_wrap_MouseState_SetRightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj = 0;
7828 wxMouseState *arg1 = (wxMouseState *) 0 ;
7829 bool arg2 ;
7830 void *argp1 = 0 ;
7831 int res1 = 0 ;
7832 bool val2 ;
7833 int ecode2 = 0 ;
7834 PyObject * obj0 = 0 ;
7835 PyObject * obj1 = 0 ;
7836 char * kwnames[] = {
7837 (char *) "self",(char *) "down", NULL
7838 };
7839
7840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) SWIG_fail;
7841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7842 if (!SWIG_IsOK(res1)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetRightDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7844 }
7845 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7846 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7847 if (!SWIG_IsOK(ecode2)) {
7848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetRightDown" "', expected argument " "2"" of type '" "bool""'");
7849 }
7850 arg2 = static_cast< bool >(val2);
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 (arg1)->SetRightDown(arg2);
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_Py_Void();
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *_wrap_MouseState_SetControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj = 0;
7866 wxMouseState *arg1 = (wxMouseState *) 0 ;
7867 bool arg2 ;
7868 void *argp1 = 0 ;
7869 int res1 = 0 ;
7870 bool val2 ;
7871 int ecode2 = 0 ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 char * kwnames[] = {
7875 (char *) "self",(char *) "down", NULL
7876 };
7877
7878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) SWIG_fail;
7879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7880 if (!SWIG_IsOK(res1)) {
7881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetControlDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7882 }
7883 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7885 if (!SWIG_IsOK(ecode2)) {
7886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetControlDown" "', expected argument " "2"" of type '" "bool""'");
7887 }
7888 arg2 = static_cast< bool >(val2);
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 (arg1)->SetControlDown(arg2);
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_Py_Void();
7896 return resultobj;
7897fail:
7898 return NULL;
7899}
7900
7901
7902SWIGINTERN PyObject *_wrap_MouseState_SetShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj = 0;
7904 wxMouseState *arg1 = (wxMouseState *) 0 ;
7905 bool arg2 ;
7906 void *argp1 = 0 ;
7907 int res1 = 0 ;
7908 bool val2 ;
7909 int ecode2 = 0 ;
7910 PyObject * obj0 = 0 ;
7911 PyObject * obj1 = 0 ;
7912 char * kwnames[] = {
7913 (char *) "self",(char *) "down", NULL
7914 };
7915
7916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) SWIG_fail;
7917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7918 if (!SWIG_IsOK(res1)) {
7919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetShiftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7920 }
7921 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7922 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7923 if (!SWIG_IsOK(ecode2)) {
7924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetShiftDown" "', expected argument " "2"" of type '" "bool""'");
7925 }
7926 arg2 = static_cast< bool >(val2);
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 (arg1)->SetShiftDown(arg2);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 resultobj = SWIG_Py_Void();
7934 return resultobj;
7935fail:
7936 return NULL;
7937}
7938
7939
7940SWIGINTERN PyObject *_wrap_MouseState_SetAltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7941 PyObject *resultobj = 0;
7942 wxMouseState *arg1 = (wxMouseState *) 0 ;
7943 bool arg2 ;
7944 void *argp1 = 0 ;
7945 int res1 = 0 ;
7946 bool val2 ;
7947 int ecode2 = 0 ;
7948 PyObject * obj0 = 0 ;
7949 PyObject * obj1 = 0 ;
7950 char * kwnames[] = {
7951 (char *) "self",(char *) "down", NULL
7952 };
7953
7954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) SWIG_fail;
7955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7956 if (!SWIG_IsOK(res1)) {
7957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetAltDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7958 }
7959 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7960 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7961 if (!SWIG_IsOK(ecode2)) {
7962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetAltDown" "', expected argument " "2"" of type '" "bool""'");
7963 }
7964 arg2 = static_cast< bool >(val2);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 (arg1)->SetAltDown(arg2);
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 resultobj = SWIG_Py_Void();
7972 return resultobj;
7973fail:
7974 return NULL;
7975}
7976
7977
7978SWIGINTERN PyObject *_wrap_MouseState_SetMetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7979 PyObject *resultobj = 0;
7980 wxMouseState *arg1 = (wxMouseState *) 0 ;
7981 bool arg2 ;
7982 void *argp1 = 0 ;
7983 int res1 = 0 ;
7984 bool val2 ;
7985 int ecode2 = 0 ;
7986 PyObject * obj0 = 0 ;
7987 PyObject * obj1 = 0 ;
7988 char * kwnames[] = {
7989 (char *) "self",(char *) "down", NULL
7990 };
7991
7992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) SWIG_fail;
7993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7994 if (!SWIG_IsOK(res1)) {
7995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetMetaDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7996 }
7997 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7998 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7999 if (!SWIG_IsOK(ecode2)) {
8000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetMetaDown" "', expected argument " "2"" of type '" "bool""'");
8001 }
8002 arg2 = static_cast< bool >(val2);
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 (arg1)->SetMetaDown(arg2);
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_Py_Void();
8010 return resultobj;
8011fail:
8012 return NULL;
32fe5131
RD
8013}
8014
8015
0085ce49
RD
8016SWIGINTERN PyObject *MouseState_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 PyObject *obj;
8018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8019 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseState, SWIG_NewClientData(obj));
8020 return SWIG_Py_Void();
32fe5131
RD
8021}
8022
0085ce49
RD
8023SWIGINTERN PyObject *MouseState_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 return SWIG_Python_InitShadowInstance(args);
8025}
32fe5131 8026
0085ce49
RD
8027SWIGINTERN PyObject *_wrap_GetMouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 wxMouseState result;
8030
8031 if (!SWIG_Python_UnpackTuple(args,"GetMouseState",0,0,0)) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = wxGetMouseState();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 resultobj = SWIG_NewPointerObj((new wxMouseState(static_cast< const wxMouseState& >(result))), SWIGTYPE_p_wxMouseState, SWIG_POINTER_OWN | 0 );
8039 return resultobj;
8040fail:
8041 return NULL;
32fe5131
RD
8042}
8043
8044
0085ce49
RD
8045SWIGINTERN PyObject *_wrap_WakeUpMainThread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8046 PyObject *resultobj = 0;
8047
8048 if (!SWIG_Python_UnpackTuple(args,"WakeUpMainThread",0,0,0)) SWIG_fail;
8049 {
8050 if (!wxPyCheckForApp()) SWIG_fail;
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 wxWakeUpMainThread();
8053 wxPyEndAllowThreads(__tstate);
8054 if (PyErr_Occurred()) SWIG_fail;
8055 }
8056 resultobj = SWIG_Py_Void();
8057 return resultobj;
8058fail:
8059 return NULL;
32fe5131
RD
8060}
8061
8062
0085ce49
RD
8063SWIGINTERN PyObject *_wrap_MutexGuiEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8064 PyObject *resultobj = 0;
8065
8066 if (!SWIG_Python_UnpackTuple(args,"MutexGuiEnter",0,0,0)) SWIG_fail;
8067 {
8068 if (!wxPyCheckForApp()) SWIG_fail;
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 wxMutexGuiEnter();
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_Py_Void();
8075 return resultobj;
8076fail:
8077 return NULL;
32fe5131
RD
8078}
8079
8080
0085ce49
RD
8081SWIGINTERN PyObject *_wrap_MutexGuiLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8082 PyObject *resultobj = 0;
8083
8084 if (!SWIG_Python_UnpackTuple(args,"MutexGuiLeave",0,0,0)) SWIG_fail;
8085 {
8086 if (!wxPyCheckForApp()) SWIG_fail;
8087 PyThreadState* __tstate = wxPyBeginAllowThreads();
8088 wxMutexGuiLeave();
8089 wxPyEndAllowThreads(__tstate);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 resultobj = SWIG_Py_Void();
8093 return resultobj;
8094fail:
8095 return NULL;
32fe5131
RD
8096}
8097
8098
0085ce49
RD
8099SWIGINTERN PyObject *_wrap_new_MutexGuiLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8100 PyObject *resultobj = 0;
8101 wxMutexGuiLocker *result = 0 ;
8102
8103 if (!SWIG_Python_UnpackTuple(args,"new_MutexGuiLocker",0,0,0)) SWIG_fail;
8104 {
8105 if (!wxPyCheckForApp()) SWIG_fail;
8106 PyThreadState* __tstate = wxPyBeginAllowThreads();
8107 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_NEW | 0 );
8112 return resultobj;
8113fail:
8114 return NULL;
32fe5131
RD
8115}
8116
8117
0085ce49
RD
8118SWIGINTERN PyObject *_wrap_delete_MutexGuiLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8119 PyObject *resultobj = 0;
8120 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
8121 void *argp1 = 0 ;
8122 int res1 = 0 ;
8123 PyObject *swig_obj[1] ;
8124
8125 if (!args) SWIG_fail;
8126 swig_obj[0] = args;
8127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_DISOWN | 0 );
8128 if (!SWIG_IsOK(res1)) {
8129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MutexGuiLocker" "', expected argument " "1"" of type '" "wxMutexGuiLocker *""'");
8130 }
8131 arg1 = reinterpret_cast< wxMutexGuiLocker * >(argp1);
8132 {
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 delete arg1;
32fe5131 8135
0085ce49
RD
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_Py_Void();
8140 return resultobj;
8141fail:
8142 return NULL;
32fe5131
RD
8143}
8144
8145
0085ce49
RD
8146SWIGINTERN PyObject *MutexGuiLocker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8147 PyObject *obj;
8148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8149 SWIG_TypeNewClientData(SWIGTYPE_p_wxMutexGuiLocker, SWIG_NewClientData(obj));
8150 return SWIG_Py_Void();
32fe5131
RD
8151}
8152
0085ce49
RD
8153SWIGINTERN PyObject *MutexGuiLocker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 return SWIG_Python_InitShadowInstance(args);
32fe5131
RD
8155}
8156
0085ce49
RD
8157SWIGINTERN PyObject *_wrap_Thread_IsMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8158 PyObject *resultobj = 0;
8159 bool result;
8160
8161 if (!SWIG_Python_UnpackTuple(args,"Thread_IsMain",0,0,0)) SWIG_fail;
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 result = (bool)wxThread_IsMain();
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 {
8169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8170 }
8171 return resultobj;
8172fail:
8173 return NULL;
32fe5131
RD
8174}
8175
8176
0085ce49
RD
8177SWIGINTERN PyObject *_wrap_new_ToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj = 0;
8179 wxString *arg1 = 0 ;
8180 wxToolTip *result = 0 ;
8181 bool temp1 = false ;
8182 PyObject * obj0 = 0 ;
8183 char * kwnames[] = {
8184 (char *) "tip", NULL
8185 };
8186
8187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) SWIG_fail;
8188 {
8189 arg1 = wxString_in_helper(obj0);
8190 if (arg1 == NULL) SWIG_fail;
8191 temp1 = true;
8192 }
8193 {
8194 if (!wxPyCheckForApp()) SWIG_fail;
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolTip, SWIG_POINTER_NEW | 0 );
8201 {
8202 if (temp1)
8203 delete arg1;
8204 }
8205 return resultobj;
8206fail:
8207 {
8208 if (temp1)
8209 delete arg1;
8210 }
8211 return NULL;
32fe5131
RD
8212}
8213
8214
0085ce49
RD
8215SWIGINTERN PyObject *_wrap_delete_ToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8216 PyObject *resultobj = 0;
8217 wxToolTip *arg1 = (wxToolTip *) 0 ;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 PyObject *swig_obj[1] ;
8221
8222 if (!args) SWIG_fail;
8223 swig_obj[0] = args;
8224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, SWIG_POINTER_DISOWN | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ToolTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8227 }
8228 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 delete arg1;
093d3ff1 8232
0085ce49
RD
8233 wxPyEndAllowThreads(__tstate);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = SWIG_Py_Void();
8237 return resultobj;
8238fail:
8239 return NULL;
8240}
8241
8242
8243SWIGINTERN PyObject *_wrap_ToolTip_SetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8244 PyObject *resultobj = 0;
8245 wxToolTip *arg1 = (wxToolTip *) 0 ;
8246 wxString *arg2 = 0 ;
8247 void *argp1 = 0 ;
8248 int res1 = 0 ;
8249 bool temp2 = false ;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 char * kwnames[] = {
8253 (char *) "self",(char *) "tip", NULL
8254 };
8255
8256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) SWIG_fail;
8257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8258 if (!SWIG_IsOK(res1)) {
8259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_SetTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8260 }
8261 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8262 {
8263 arg2 = wxString_in_helper(obj1);
8264 if (arg2 == NULL) SWIG_fail;
8265 temp2 = true;
8266 }
8267 {
8268 PyThreadState* __tstate = wxPyBeginAllowThreads();
8269 (arg1)->SetTip((wxString const &)*arg2);
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = SWIG_Py_Void();
8274 {
8275 if (temp2)
8276 delete arg2;
8277 }
8278 return resultobj;
8279fail:
8280 {
8281 if (temp2)
8282 delete arg2;
8283 }
8284 return NULL;
d14a1e28
RD
8285}
8286
8287
0085ce49
RD
8288SWIGINTERN PyObject *_wrap_ToolTip_GetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8289 PyObject *resultobj = 0;
8290 wxToolTip *arg1 = (wxToolTip *) 0 ;
8291 wxString result;
8292 void *argp1 = 0 ;
8293 int res1 = 0 ;
8294 PyObject *swig_obj[1] ;
8295
8296 if (!args) SWIG_fail;
8297 swig_obj[0] = args;
8298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8299 if (!SWIG_IsOK(res1)) {
8300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_GetTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8301 }
8302 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (arg1)->GetTip();
8306 wxPyEndAllowThreads(__tstate);
8307 if (PyErr_Occurred()) SWIG_fail;
8308 }
8309 {
8310#if wxUSE_UNICODE
8311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8312#else
8313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8314#endif
8315 }
8316 return resultobj;
8317fail:
8318 return NULL;
d14a1e28
RD
8319}
8320
8321
0085ce49
RD
8322SWIGINTERN PyObject *_wrap_ToolTip_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8323 PyObject *resultobj = 0;
8324 wxToolTip *arg1 = (wxToolTip *) 0 ;
8325 wxWindow *result = 0 ;
8326 void *argp1 = 0 ;
8327 int res1 = 0 ;
8328 PyObject *swig_obj[1] ;
8329
8330 if (!args) SWIG_fail;
8331 swig_obj[0] = args;
8332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8333 if (!SWIG_IsOK(res1)) {
8334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_GetWindow" "', expected argument " "1"" of type '" "wxToolTip *""'");
8335 }
8336 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8337 {
8338 PyThreadState* __tstate = wxPyBeginAllowThreads();
8339 result = (wxWindow *)(arg1)->GetWindow();
8340 wxPyEndAllowThreads(__tstate);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 {
8344 resultobj = wxPyMake_wxObject(result, 0);
8345 }
8346 return resultobj;
8347fail:
8348 return NULL;
d14a1e28
RD
8349}
8350
8351
0085ce49
RD
8352SWIGINTERN PyObject *_wrap_ToolTip_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8353 PyObject *resultobj = 0;
8354 bool arg1 ;
8355 bool val1 ;
8356 int ecode1 = 0 ;
8357 PyObject * obj0 = 0 ;
8358 char * kwnames[] = {
8359 (char *) "flag", NULL
8360 };
8361
8362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) SWIG_fail;
8363 ecode1 = SWIG_AsVal_bool(obj0, &val1);
8364 if (!SWIG_IsOK(ecode1)) {
8365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolTip_Enable" "', expected argument " "1"" of type '" "bool""'");
8366 }
8367 arg1 = static_cast< bool >(val1);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 wxToolTip::Enable(arg1);
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_Py_Void();
8375 return resultobj;
8376fail:
8377 return NULL;
d04418a7
RD
8378}
8379
8380
0085ce49
RD
8381SWIGINTERN PyObject *_wrap_ToolTip_SetDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj = 0;
8383 long arg1 ;
8384 long val1 ;
8385 int ecode1 = 0 ;
8386 PyObject * obj0 = 0 ;
8387 char * kwnames[] = {
8388 (char *) "milliseconds", NULL
8389 };
8390
8391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) SWIG_fail;
8392 ecode1 = SWIG_AsVal_long(obj0, &val1);
8393 if (!SWIG_IsOK(ecode1)) {
8394 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolTip_SetDelay" "', expected argument " "1"" of type '" "long""'");
8395 }
8396 arg1 = static_cast< long >(val1);
8397 {
8398 PyThreadState* __tstate = wxPyBeginAllowThreads();
8399 wxToolTip::SetDelay(arg1);
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 resultobj = SWIG_Py_Void();
8404 return resultobj;
8405fail:
8406 return NULL;
39f61e25
RD
8407}
8408
8409
0085ce49
RD
8410SWIGINTERN PyObject *ToolTip_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8411 PyObject *obj;
8412 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8413 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolTip, SWIG_NewClientData(obj));
8414 return SWIG_Py_Void();
d14a1e28
RD
8415}
8416
0085ce49
RD
8417SWIGINTERN PyObject *ToolTip_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8418 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8419}
8420
0085ce49
RD
8421SWIGINTERN PyObject *_wrap_new_Caret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj = 0;
8423 wxWindow *arg1 = (wxWindow *) 0 ;
8424 wxSize *arg2 = 0 ;
8425 wxCaret *result = 0 ;
8426 void *argp1 = 0 ;
8427 int res1 = 0 ;
8428 wxSize temp2 ;
8429 PyObject * obj0 = 0 ;
8430 PyObject * obj1 = 0 ;
8431 char * kwnames[] = {
8432 (char *) "window",(char *) "size", NULL
8433 };
8434
8435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) SWIG_fail;
8436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8437 if (!SWIG_IsOK(res1)) {
8438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Caret" "', expected argument " "1"" of type '" "wxWindow *""'");
8439 }
8440 arg1 = reinterpret_cast< wxWindow * >(argp1);
8441 {
8442 arg2 = &temp2;
8443 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8444 }
8445 {
8446 if (!wxPyCheckForApp()) SWIG_fail;
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
8449 wxPyEndAllowThreads(__tstate);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCaret, SWIG_POINTER_NEW | 0 );
8453 return resultobj;
8454fail:
8455 return NULL;
d14a1e28
RD
8456}
8457
8458
0085ce49
RD
8459SWIGINTERN PyObject *_wrap_delete_Caret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8460 PyObject *resultobj = 0;
8461 wxCaret *arg1 = (wxCaret *) 0 ;
8462 void *argp1 = 0 ;
8463 int res1 = 0 ;
8464 PyObject *swig_obj[1] ;
8465
8466 if (!args) SWIG_fail;
8467 swig_obj[0] = args;
8468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, SWIG_POINTER_DISOWN | 0 );
8469 if (!SWIG_IsOK(res1)) {
8470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Caret" "', expected argument " "1"" of type '" "wxCaret *""'");
8471 }
8472 arg1 = reinterpret_cast< wxCaret * >(argp1);
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 delete arg1;
d14a1e28 8476
0085ce49
RD
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 resultobj = SWIG_Py_Void();
8481 return resultobj;
8482fail:
8483 return NULL;
d14a1e28
RD
8484}
8485
8486
0085ce49
RD
8487SWIGINTERN PyObject *_wrap_Caret_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8488 PyObject *resultobj = 0;
8489 wxCaret *arg1 = (wxCaret *) 0 ;
8490 void *argp1 = 0 ;
8491 int res1 = 0 ;
8492 PyObject *swig_obj[1] ;
8493
8494 if (!args) SWIG_fail;
8495 swig_obj[0] = args;
8496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8497 if (!SWIG_IsOK(res1)) {
8498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Destroy" "', expected argument " "1"" of type '" "wxCaret *""'");
8499 }
8500 arg1 = reinterpret_cast< wxCaret * >(argp1);
8501 {
8502 PyThreadState* __tstate = wxPyBeginAllowThreads();
8503 wxCaret_Destroy(arg1);
8504 wxPyEndAllowThreads(__tstate);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 resultobj = SWIG_Py_Void();
8508 return resultobj;
8509fail:
8510 return NULL;
d14a1e28
RD
8511}
8512
8513
0085ce49
RD
8514SWIGINTERN PyObject *_wrap_Caret_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8515 PyObject *resultobj = 0;
8516 wxCaret *arg1 = (wxCaret *) 0 ;
8517 bool result;
8518 void *argp1 = 0 ;
8519 int res1 = 0 ;
8520 PyObject *swig_obj[1] ;
8521
8522 if (!args) SWIG_fail;
8523 swig_obj[0] = args;
8524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8525 if (!SWIG_IsOK(res1)) {
8526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_IsOk" "', expected argument " "1"" of type '" "wxCaret *""'");
8527 }
8528 arg1 = reinterpret_cast< wxCaret * >(argp1);
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = (bool)(arg1)->IsOk();
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 {
8536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8537 }
8538 return resultobj;
8539fail:
8540 return NULL;
d14a1e28
RD
8541}
8542
8543
0085ce49
RD
8544SWIGINTERN PyObject *_wrap_Caret_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8545 PyObject *resultobj = 0;
8546 wxCaret *arg1 = (wxCaret *) 0 ;
8547 bool result;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 PyObject *swig_obj[1] ;
8551
8552 if (!args) SWIG_fail;
8553 swig_obj[0] = args;
8554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8555 if (!SWIG_IsOK(res1)) {
8556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_IsVisible" "', expected argument " "1"" of type '" "wxCaret *""'");
8557 }
8558 arg1 = reinterpret_cast< wxCaret * >(argp1);
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 result = (bool)(arg1)->IsVisible();
8562 wxPyEndAllowThreads(__tstate);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8567 }
8568 return resultobj;
8569fail:
8570 return NULL;
d14a1e28
RD
8571}
8572
8573
0085ce49
RD
8574SWIGINTERN PyObject *_wrap_Caret_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8575 PyObject *resultobj = 0;
8576 wxCaret *arg1 = (wxCaret *) 0 ;
8577 wxPoint result;
8578 void *argp1 = 0 ;
8579 int res1 = 0 ;
8580 PyObject *swig_obj[1] ;
8581
8582 if (!args) SWIG_fail;
8583 swig_obj[0] = args;
8584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8585 if (!SWIG_IsOK(res1)) {
8586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetPosition" "', expected argument " "1"" of type '" "wxCaret *""'");
8587 }
8588 arg1 = reinterpret_cast< wxCaret * >(argp1);
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (arg1)->GetPosition();
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
8596 return resultobj;
8597fail:
8598 return NULL;
8599}
8600
8601
8602SWIGINTERN PyObject *_wrap_Caret_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8603 PyObject *resultobj = 0;
8604 wxCaret *arg1 = (wxCaret *) 0 ;
8605 int *arg2 = (int *) 0 ;
8606 int *arg3 = (int *) 0 ;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 int temp2 ;
8610 int res2 = SWIG_TMPOBJ ;
8611 int temp3 ;
8612 int res3 = SWIG_TMPOBJ ;
8613 PyObject *swig_obj[1] ;
8614
8615 arg2 = &temp2;
8616 arg3 = &temp3;
8617 if (!args) SWIG_fail;
8618 swig_obj[0] = args;
8619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetPositionTuple" "', expected argument " "1"" of type '" "wxCaret *""'");
8622 }
8623 arg1 = reinterpret_cast< wxCaret * >(argp1);
8624 {
8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
8626 (arg1)->GetPosition(arg2,arg3);
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 resultobj = SWIG_Py_Void();
8631 if (SWIG_IsTmpObj(res2)) {
8632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8633 } else {
8634 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8636 }
8637 if (SWIG_IsTmpObj(res3)) {
8638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8639 } else {
8640 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8642 }
8643 return resultobj;
8644fail:
8645 return NULL;
7e08d4ef
RD
8646}
8647
8648
0085ce49
RD
8649SWIGINTERN PyObject *_wrap_Caret_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8650 PyObject *resultobj = 0;
8651 wxCaret *arg1 = (wxCaret *) 0 ;
8652 wxSize result;
8653 void *argp1 = 0 ;
8654 int res1 = 0 ;
8655 PyObject *swig_obj[1] ;
8656
8657 if (!args) SWIG_fail;
8658 swig_obj[0] = args;
8659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetSize" "', expected argument " "1"" of type '" "wxCaret *""'");
8662 }
8663 arg1 = reinterpret_cast< wxCaret * >(argp1);
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 result = (arg1)->GetSize();
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
8671 return resultobj;
8672fail:
8673 return NULL;
8674}
8675
8676
8677SWIGINTERN PyObject *_wrap_Caret_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8678 PyObject *resultobj = 0;
8679 wxCaret *arg1 = (wxCaret *) 0 ;
8680 int *arg2 = (int *) 0 ;
8681 int *arg3 = (int *) 0 ;
8682 void *argp1 = 0 ;
8683 int res1 = 0 ;
8684 int temp2 ;
8685 int res2 = SWIG_TMPOBJ ;
8686 int temp3 ;
8687 int res3 = SWIG_TMPOBJ ;
8688 PyObject *swig_obj[1] ;
8689
8690 arg2 = &temp2;
8691 arg3 = &temp3;
8692 if (!args) SWIG_fail;
8693 swig_obj[0] = args;
8694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8695 if (!SWIG_IsOK(res1)) {
8696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetSizeTuple" "', expected argument " "1"" of type '" "wxCaret *""'");
8697 }
8698 arg1 = reinterpret_cast< wxCaret * >(argp1);
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 (arg1)->GetSize(arg2,arg3);
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_Py_Void();
8706 if (SWIG_IsTmpObj(res2)) {
8707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8708 } else {
8709 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8711 }
8712 if (SWIG_IsTmpObj(res3)) {
8713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8714 } else {
8715 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8717 }
8718 return resultobj;
8719fail:
8720 return NULL;
d14a1e28
RD
8721}
8722
8723
0085ce49
RD
8724SWIGINTERN PyObject *_wrap_Caret_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8725 PyObject *resultobj = 0;
8726 wxCaret *arg1 = (wxCaret *) 0 ;
8727 wxWindow *result = 0 ;
8728 void *argp1 = 0 ;
8729 int res1 = 0 ;
8730 PyObject *swig_obj[1] ;
8731
8732 if (!args) SWIG_fail;
8733 swig_obj[0] = args;
8734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8735 if (!SWIG_IsOK(res1)) {
8736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetWindow" "', expected argument " "1"" of type '" "wxCaret *""'");
8737 }
8738 arg1 = reinterpret_cast< wxCaret * >(argp1);
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 result = (wxWindow *)(arg1)->GetWindow();
8742 wxPyEndAllowThreads(__tstate);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
8745 {
8746 resultobj = wxPyMake_wxObject(result, 0);
8747 }
8748 return resultobj;
8749fail:
8750 return NULL;
8751}
8752
8753
8754SWIGINTERN PyObject *_wrap_Caret_MoveXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj = 0;
8756 wxCaret *arg1 = (wxCaret *) 0 ;
8757 int arg2 ;
8758 int arg3 ;
8759 void *argp1 = 0 ;
8760 int res1 = 0 ;
8761 int val2 ;
8762 int ecode2 = 0 ;
8763 int val3 ;
8764 int ecode3 = 0 ;
8765 PyObject * obj0 = 0 ;
8766 PyObject * obj1 = 0 ;
8767 PyObject * obj2 = 0 ;
8768 char * kwnames[] = {
8769 (char *) "self",(char *) "x",(char *) "y", NULL
8770 };
8771
8772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8774 if (!SWIG_IsOK(res1)) {
8775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_MoveXY" "', expected argument " "1"" of type '" "wxCaret *""'");
8776 }
8777 arg1 = reinterpret_cast< wxCaret * >(argp1);
8778 ecode2 = SWIG_AsVal_int(obj1, &val2);
8779 if (!SWIG_IsOK(ecode2)) {
8780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_MoveXY" "', expected argument " "2"" of type '" "int""'");
8781 }
8782 arg2 = static_cast< int >(val2);
8783 ecode3 = SWIG_AsVal_int(obj2, &val3);
8784 if (!SWIG_IsOK(ecode3)) {
8785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Caret_MoveXY" "', expected argument " "3"" of type '" "int""'");
8786 }
8787 arg3 = static_cast< int >(val3);
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 (arg1)->Move(arg2,arg3);
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = SWIG_Py_Void();
8795 return resultobj;
8796fail:
8797 return NULL;
8798}
8799
8800
8801SWIGINTERN PyObject *_wrap_Caret_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = 0;
8803 wxCaret *arg1 = (wxCaret *) 0 ;
8804 wxPoint *arg2 = 0 ;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 wxPoint temp2 ;
8808 PyObject * obj0 = 0 ;
8809 PyObject * obj1 = 0 ;
8810 char * kwnames[] = {
8811 (char *) "self",(char *) "pt", NULL
8812 };
8813
8814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) SWIG_fail;
8815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8816 if (!SWIG_IsOK(res1)) {
8817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Move" "', expected argument " "1"" of type '" "wxCaret *""'");
8818 }
8819 arg1 = reinterpret_cast< wxCaret * >(argp1);
8820 {
8821 arg2 = &temp2;
8822 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8823 }
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 (arg1)->Move((wxPoint const &)*arg2);
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 resultobj = SWIG_Py_Void();
8831 return resultobj;
8832fail:
8833 return NULL;
8834}
8835
8836
8837SWIGINTERN PyObject *_wrap_Caret_SetSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8838 PyObject *resultobj = 0;
8839 wxCaret *arg1 = (wxCaret *) 0 ;
8840 int arg2 ;
8841 int arg3 ;
8842 void *argp1 = 0 ;
8843 int res1 = 0 ;
8844 int val2 ;
8845 int ecode2 = 0 ;
8846 int val3 ;
8847 int ecode3 = 0 ;
8848 PyObject * obj0 = 0 ;
8849 PyObject * obj1 = 0 ;
8850 PyObject * obj2 = 0 ;
8851 char * kwnames[] = {
8852 (char *) "self",(char *) "width",(char *) "height", NULL
8853 };
8854
8855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8857 if (!SWIG_IsOK(res1)) {
8858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_SetSizeWH" "', expected argument " "1"" of type '" "wxCaret *""'");
8859 }
8860 arg1 = reinterpret_cast< wxCaret * >(argp1);
8861 ecode2 = SWIG_AsVal_int(obj1, &val2);
8862 if (!SWIG_IsOK(ecode2)) {
8863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_SetSizeWH" "', expected argument " "2"" of type '" "int""'");
8864 }
8865 arg2 = static_cast< int >(val2);
8866 ecode3 = SWIG_AsVal_int(obj2, &val3);
8867 if (!SWIG_IsOK(ecode3)) {
8868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Caret_SetSizeWH" "', expected argument " "3"" of type '" "int""'");
8869 }
8870 arg3 = static_cast< int >(val3);
8871 {
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 (arg1)->SetSize(arg2,arg3);
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 resultobj = SWIG_Py_Void();
8878 return resultobj;
8879fail:
8880 return NULL;
8881}
8882
8883
8884SWIGINTERN PyObject *_wrap_Caret_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj = 0;
8886 wxCaret *arg1 = (wxCaret *) 0 ;
8887 wxSize *arg2 = 0 ;
8888 void *argp1 = 0 ;
8889 int res1 = 0 ;
8890 wxSize temp2 ;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 char * kwnames[] = {
8894 (char *) "self",(char *) "size", NULL
8895 };
8896
8897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8899 if (!SWIG_IsOK(res1)) {
8900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_SetSize" "', expected argument " "1"" of type '" "wxCaret *""'");
8901 }
8902 arg1 = reinterpret_cast< wxCaret * >(argp1);
8903 {
8904 arg2 = &temp2;
8905 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8906 }
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 (arg1)->SetSize((wxSize const &)*arg2);
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 resultobj = SWIG_Py_Void();
8914 return resultobj;
8915fail:
8916 return NULL;
8917}
8918
8919
8920SWIGINTERN PyObject *_wrap_Caret_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxCaret *arg1 = (wxCaret *) 0 ;
8923 int arg2 = (int) true ;
8924 void *argp1 = 0 ;
8925 int res1 = 0 ;
8926 int val2 ;
8927 int ecode2 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char * kwnames[] = {
8931 (char *) "self",(char *) "show", NULL
8932 };
8933
8934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) SWIG_fail;
8935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8936 if (!SWIG_IsOK(res1)) {
8937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Show" "', expected argument " "1"" of type '" "wxCaret *""'");
8938 }
8939 arg1 = reinterpret_cast< wxCaret * >(argp1);
8940 if (obj1) {
8941 ecode2 = SWIG_AsVal_int(obj1, &val2);
8942 if (!SWIG_IsOK(ecode2)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_Show" "', expected argument " "2"" of type '" "int""'");
8944 }
8945 arg2 = static_cast< int >(val2);
8946 }
8947 {
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 (arg1)->Show(arg2);
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = SWIG_Py_Void();
8954 return resultobj;
8955fail:
8956 return NULL;
d14a1e28
RD
8957}
8958
8959
0085ce49
RD
8960SWIGINTERN PyObject *_wrap_Caret_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8961 PyObject *resultobj = 0;
8962 wxCaret *arg1 = (wxCaret *) 0 ;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 PyObject *swig_obj[1] ;
8966
8967 if (!args) SWIG_fail;
8968 swig_obj[0] = args;
8969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8970 if (!SWIG_IsOK(res1)) {
8971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Hide" "', expected argument " "1"" of type '" "wxCaret *""'");
8972 }
8973 arg1 = reinterpret_cast< wxCaret * >(argp1);
8974 {
8975 PyThreadState* __tstate = wxPyBeginAllowThreads();
8976 (arg1)->Hide();
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 resultobj = SWIG_Py_Void();
8981 return resultobj;
8982fail:
8983 return NULL;
d14a1e28
RD
8984}
8985
8986
0085ce49
RD
8987SWIGINTERN PyObject *_wrap_Caret_GetBlinkTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8988 PyObject *resultobj = 0;
8989 int result;
8990
8991 if (!SWIG_Python_UnpackTuple(args,"Caret_GetBlinkTime",0,0,0)) SWIG_fail;
8992 {
8993 PyThreadState* __tstate = wxPyBeginAllowThreads();
8994 result = (int)wxCaret::GetBlinkTime();
8995 wxPyEndAllowThreads(__tstate);
8996 if (PyErr_Occurred()) SWIG_fail;
8997 }
8998 resultobj = SWIG_From_int(static_cast< int >(result));
8999 return resultobj;
9000fail:
9001 return NULL;
d14a1e28
RD
9002}
9003
9004
0085ce49
RD
9005SWIGINTERN PyObject *_wrap_Caret_SetBlinkTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj = 0;
9007 int arg1 ;
9008 int val1 ;
9009 int ecode1 = 0 ;
9010 PyObject * obj0 = 0 ;
9011 char * kwnames[] = {
9012 (char *) "milliseconds", NULL
9013 };
9014
9015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) SWIG_fail;
9016 ecode1 = SWIG_AsVal_int(obj0, &val1);
9017 if (!SWIG_IsOK(ecode1)) {
9018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Caret_SetBlinkTime" "', expected argument " "1"" of type '" "int""'");
9019 }
9020 arg1 = static_cast< int >(val1);
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 wxCaret::SetBlinkTime(arg1);
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_Py_Void();
9028 return resultobj;
9029fail:
9030 return NULL;
d14a1e28
RD
9031}
9032
9033
0085ce49
RD
9034SWIGINTERN PyObject *Caret_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *obj;
9036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9037 SWIG_TypeNewClientData(SWIGTYPE_p_wxCaret, SWIG_NewClientData(obj));
9038 return SWIG_Py_Void();
d14a1e28
RD
9039}
9040
0085ce49
RD
9041SWIGINTERN PyObject *Caret_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9042 return SWIG_Python_InitShadowInstance(args);
7e08d4ef
RD
9043}
9044
0085ce49
RD
9045SWIGINTERN PyObject *_wrap_new_BusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj = 0;
9047 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
9048 wxBusyCursor *result = 0 ;
9049 void *argp1 = 0 ;
9050 int res1 = 0 ;
9051 PyObject * obj0 = 0 ;
9052 char * kwnames[] = {
9053 (char *) "cursor", NULL
9054 };
9055
9056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) SWIG_fail;
9057 if (obj0) {
9058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9059 if (!SWIG_IsOK(res1)) {
9060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BusyCursor" "', expected argument " "1"" of type '" "wxCursor *""'");
d14a1e28 9061 }
0085ce49
RD
9062 arg1 = reinterpret_cast< wxCursor * >(argp1);
9063 }
9064 {
9065 if (!wxPyCheckForApp()) SWIG_fail;
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 result = (wxBusyCursor *)new wxBusyCursor(arg1);
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_NEW | 0 );
9072 return resultobj;
9073fail:
9074 return NULL;
d14a1e28
RD
9075}
9076
9077
0085ce49
RD
9078SWIGINTERN PyObject *_wrap_delete_BusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9079 PyObject *resultobj = 0;
9080 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
9081 void *argp1 = 0 ;
9082 int res1 = 0 ;
9083 PyObject *swig_obj[1] ;
9084
9085 if (!args) SWIG_fail;
9086 swig_obj[0] = args;
9087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_DISOWN | 0 );
9088 if (!SWIG_IsOK(res1)) {
9089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BusyCursor" "', expected argument " "1"" of type '" "wxBusyCursor *""'");
9090 }
9091 arg1 = reinterpret_cast< wxBusyCursor * >(argp1);
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 delete arg1;
d14a1e28 9095
0085ce49
RD
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 resultobj = SWIG_Py_Void();
9100 return resultobj;
9101fail:
9102 return NULL;
d14a1e28
RD
9103}
9104
9105
0085ce49
RD
9106SWIGINTERN PyObject *BusyCursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9107 PyObject *obj;
9108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9109 SWIG_TypeNewClientData(SWIGTYPE_p_wxBusyCursor, SWIG_NewClientData(obj));
9110 return SWIG_Py_Void();
d14a1e28
RD
9111}
9112
0085ce49
RD
9113SWIGINTERN PyObject *BusyCursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9114 return SWIG_Python_InitShadowInstance(args);
9115}
d14a1e28 9116
0085ce49
RD
9117SWIGINTERN PyObject *_wrap_new_WindowDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj = 0;
9119 wxWindow *arg1 = (wxWindow *) NULL ;
9120 wxWindowDisabler *result = 0 ;
9121 void *argp1 = 0 ;
9122 int res1 = 0 ;
9123 PyObject * obj0 = 0 ;
9124 char * kwnames[] = {
9125 (char *) "winToSkip", NULL
9126 };
9127
9128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) SWIG_fail;
9129 if (obj0) {
9130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9131 if (!SWIG_IsOK(res1)) {
9132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDisabler" "', expected argument " "1"" of type '" "wxWindow *""'");
322913ce 9133 }
0085ce49
RD
9134 arg1 = reinterpret_cast< wxWindow * >(argp1);
9135 }
9136 {
9137 if (!wxPyCheckForApp()) SWIG_fail;
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_NEW | 0 );
9144 return resultobj;
9145fail:
9146 return NULL;
322913ce
RD
9147}
9148
9149
0085ce49
RD
9150SWIGINTERN PyObject *_wrap_delete_WindowDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9151 PyObject *resultobj = 0;
9152 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
9153 void *argp1 = 0 ;
9154 int res1 = 0 ;
9155 PyObject *swig_obj[1] ;
9156
9157 if (!args) SWIG_fail;
9158 swig_obj[0] = args;
9159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_DISOWN | 0 );
9160 if (!SWIG_IsOK(res1)) {
9161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WindowDisabler" "', expected argument " "1"" of type '" "wxWindowDisabler *""'");
9162 }
9163 arg1 = reinterpret_cast< wxWindowDisabler * >(argp1);
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 delete arg1;
d14a1e28 9167
0085ce49
RD
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 resultobj = SWIG_Py_Void();
9172 return resultobj;
9173fail:
9174 return NULL;
d14a1e28
RD
9175}
9176
9177
0085ce49
RD
9178SWIGINTERN PyObject *WindowDisabler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9179 PyObject *obj;
9180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9181 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDisabler, SWIG_NewClientData(obj));
9182 return SWIG_Py_Void();
d14a1e28
RD
9183}
9184
0085ce49
RD
9185SWIGINTERN PyObject *WindowDisabler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9186 return SWIG_Python_InitShadowInstance(args);
9187}
d14a1e28 9188
0085ce49
RD
9189SWIGINTERN PyObject *_wrap_new_BusyInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9190 PyObject *resultobj = 0;
9191 wxString *arg1 = 0 ;
9192 wxBusyInfo *result = 0 ;
9193 bool temp1 = false ;
9194 PyObject * obj0 = 0 ;
9195 char * kwnames[] = {
9196 (char *) "message", NULL
9197 };
9198
9199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) SWIG_fail;
9200 {
9201 arg1 = wxString_in_helper(obj0);
9202 if (arg1 == NULL) SWIG_fail;
9203 temp1 = true;
9204 }
9205 {
9206 if (!wxPyCheckForApp()) SWIG_fail;
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_NEW | 0 );
9213 {
9214 if (temp1)
9215 delete arg1;
9216 }
9217 return resultobj;
9218fail:
9219 {
9220 if (temp1)
9221 delete arg1;
9222 }
9223 return NULL;
d14a1e28
RD
9224}
9225
9226
0085ce49
RD
9227SWIGINTERN PyObject *_wrap_delete_BusyInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9228 PyObject *resultobj = 0;
9229 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
9230 void *argp1 = 0 ;
9231 int res1 = 0 ;
9232 PyObject *swig_obj[1] ;
9233
9234 if (!args) SWIG_fail;
9235 swig_obj[0] = args;
9236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_DISOWN | 0 );
9237 if (!SWIG_IsOK(res1)) {
9238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BusyInfo" "', expected argument " "1"" of type '" "wxBusyInfo *""'");
9239 }
9240 arg1 = reinterpret_cast< wxBusyInfo * >(argp1);
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 delete arg1;
d14a1e28 9244
0085ce49
RD
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_Py_Void();
9249 return resultobj;
9250fail:
9251 return NULL;
d14a1e28
RD
9252}
9253
9254
0085ce49
RD
9255SWIGINTERN PyObject *BusyInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9256 PyObject *obj;
9257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9258 SWIG_TypeNewClientData(SWIGTYPE_p_wxBusyInfo, SWIG_NewClientData(obj));
9259 return SWIG_Py_Void();
d14a1e28
RD
9260}
9261
0085ce49
RD
9262SWIGINTERN PyObject *BusyInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9263 return SWIG_Python_InitShadowInstance(args);
9264}
d14a1e28 9265
0085ce49
RD
9266SWIGINTERN PyObject *_wrap_new_StopWatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9267 PyObject *resultobj = 0;
9268 wxStopWatch *result = 0 ;
9269
9270 if (!SWIG_Python_UnpackTuple(args,"new_StopWatch",0,0,0)) SWIG_fail;
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 result = (wxStopWatch *)new wxStopWatch();
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStopWatch, SWIG_POINTER_NEW | 0 );
9278 return resultobj;
9279fail:
9280 return NULL;
9281}
9282
9283
3ecece7e
RD
9284SWIGINTERN PyObject *_wrap_delete_StopWatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9285 PyObject *resultobj = 0;
9286 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9287 void *argp1 = 0 ;
9288 int res1 = 0 ;
9289 PyObject *swig_obj[1] ;
9290
9291 if (!args) SWIG_fail;
9292 swig_obj[0] = args;
9293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, SWIG_POINTER_DISOWN | 0 );
9294 if (!SWIG_IsOK(res1)) {
9295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StopWatch" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9296 }
9297 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 delete arg1;
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_Py_Void();
9306 return resultobj;
9307fail:
9308 return NULL;
9309}
9310
9311
0085ce49
RD
9312SWIGINTERN PyObject *_wrap_StopWatch_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9315 long arg2 = (long) 0 ;
9316 void *argp1 = 0 ;
9317 int res1 = 0 ;
9318 long val2 ;
9319 int ecode2 = 0 ;
9320 PyObject * obj0 = 0 ;
9321 PyObject * obj1 = 0 ;
9322 char * kwnames[] = {
9323 (char *) "self",(char *) "t0", NULL
9324 };
9325
9326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) SWIG_fail;
9327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9328 if (!SWIG_IsOK(res1)) {
9329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Start" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9330 }
9331 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9332 if (obj1) {
9333 ecode2 = SWIG_AsVal_long(obj1, &val2);
9334 if (!SWIG_IsOK(ecode2)) {
9335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StopWatch_Start" "', expected argument " "2"" of type '" "long""'");
9336 }
9337 arg2 = static_cast< long >(val2);
9338 }
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 (arg1)->Start(arg2);
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_Py_Void();
9346 return resultobj;
9347fail:
9348 return NULL;
d14a1e28
RD
9349}
9350
9351
0085ce49
RD
9352SWIGINTERN PyObject *_wrap_StopWatch_Pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9353 PyObject *resultobj = 0;
9354 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9355 void *argp1 = 0 ;
9356 int res1 = 0 ;
9357 PyObject *swig_obj[1] ;
9358
9359 if (!args) SWIG_fail;
9360 swig_obj[0] = args;
9361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9362 if (!SWIG_IsOK(res1)) {
9363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Pause" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9364 }
9365 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 (arg1)->Pause();
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_Py_Void();
9373 return resultobj;
9374fail:
9375 return NULL;
d14a1e28
RD
9376}
9377
9378
0085ce49
RD
9379SWIGINTERN PyObject *_wrap_StopWatch_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9380 PyObject *resultobj = 0;
9381 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9382 void *argp1 = 0 ;
9383 int res1 = 0 ;
9384 PyObject *swig_obj[1] ;
9385
9386 if (!args) SWIG_fail;
9387 swig_obj[0] = args;
9388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9389 if (!SWIG_IsOK(res1)) {
9390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Resume" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9391 }
9392 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 (arg1)->Resume();
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_Py_Void();
9400 return resultobj;
9401fail:
9402 return NULL;
d14a1e28
RD
9403}
9404
9405
0085ce49
RD
9406SWIGINTERN PyObject *_wrap_StopWatch_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9407 PyObject *resultobj = 0;
9408 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9409 long result;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 PyObject *swig_obj[1] ;
9413
9414 if (!args) SWIG_fail;
9415 swig_obj[0] = args;
9416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9417 if (!SWIG_IsOK(res1)) {
9418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Time" "', expected argument " "1"" of type '" "wxStopWatch const *""'");
9419 }
9420 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 result = (long)((wxStopWatch const *)arg1)->Time();
9424 wxPyEndAllowThreads(__tstate);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 resultobj = SWIG_From_long(static_cast< long >(result));
9428 return resultobj;
9429fail:
9430 return NULL;
d14a1e28
RD
9431}
9432
9433
0085ce49
RD
9434SWIGINTERN PyObject *StopWatch_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9435 PyObject *obj;
9436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9437 SWIG_TypeNewClientData(SWIGTYPE_p_wxStopWatch, SWIG_NewClientData(obj));
9438 return SWIG_Py_Void();
d14a1e28
RD
9439}
9440
0085ce49
RD
9441SWIGINTERN PyObject *StopWatch_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9442 return SWIG_Python_InitShadowInstance(args);
9443}
d14a1e28 9444
0085ce49
RD
9445SWIGINTERN PyObject *_wrap_new_FileHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 int arg1 = (int) 9 ;
9448 int arg2 = (int) wxID_FILE1 ;
9449 wxFileHistory *result = 0 ;
9450 int val1 ;
9451 int ecode1 = 0 ;
9452 int val2 ;
9453 int ecode2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 char * kwnames[] = {
9457 (char *) "maxFiles",(char *) "idBase", NULL
9458 };
9459
9460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9461 if (obj0) {
9462 ecode1 = SWIG_AsVal_int(obj0, &val1);
9463 if (!SWIG_IsOK(ecode1)) {
9464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileHistory" "', expected argument " "1"" of type '" "int""'");
9465 }
9466 arg1 = static_cast< int >(val1);
9467 }
9468 if (obj1) {
9469 ecode2 = SWIG_AsVal_int(obj1, &val2);
9470 if (!SWIG_IsOK(ecode2)) {
9471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FileHistory" "', expected argument " "2"" of type '" "int""'");
9472 }
9473 arg2 = static_cast< int >(val2);
9474 }
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileHistory, SWIG_POINTER_NEW | 0 );
9482 return resultobj;
9483fail:
9484 return NULL;
d14a1e28
RD
9485}
9486
9487
0085ce49
RD
9488SWIGINTERN PyObject *_wrap_delete_FileHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9489 PyObject *resultobj = 0;
9490 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9491 void *argp1 = 0 ;
9492 int res1 = 0 ;
9493 PyObject *swig_obj[1] ;
9494
9495 if (!args) SWIG_fail;
9496 swig_obj[0] = args;
9497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, SWIG_POINTER_DISOWN | 0 );
9498 if (!SWIG_IsOK(res1)) {
9499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9500 }
9501 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 delete arg1;
d14a1e28 9505
0085ce49
RD
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 resultobj = SWIG_Py_Void();
9510 return resultobj;
9511fail:
9512 return NULL;
9513}
9514
9515
9516SWIGINTERN PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj = 0;
9518 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9519 wxString *arg2 = 0 ;
9520 void *argp1 = 0 ;
9521 int res1 = 0 ;
9522 bool temp2 = false ;
9523 PyObject * obj0 = 0 ;
9524 PyObject * obj1 = 0 ;
9525 char * kwnames[] = {
9526 (char *) "self",(char *) "file", NULL
9527 };
9528
9529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9531 if (!SWIG_IsOK(res1)) {
9532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFileToHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9533 }
9534 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9535 {
9536 arg2 = wxString_in_helper(obj1);
9537 if (arg2 == NULL) SWIG_fail;
9538 temp2 = true;
9539 }
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 (arg1)->AddFileToHistory((wxString const &)*arg2);
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = SWIG_Py_Void();
9547 {
9548 if (temp2)
9549 delete arg2;
9550 }
9551 return resultobj;
9552fail:
9553 {
9554 if (temp2)
9555 delete arg2;
9556 }
9557 return NULL;
9558}
9559
9560
9561SWIGINTERN PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj = 0;
9563 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9564 int arg2 ;
9565 void *argp1 = 0 ;
9566 int res1 = 0 ;
9567 int val2 ;
9568 int ecode2 = 0 ;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 char * kwnames[] = {
9572 (char *) "self",(char *) "i", NULL
9573 };
9574
9575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9577 if (!SWIG_IsOK(res1)) {
9578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_RemoveFileFromHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9579 }
9580 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9581 ecode2 = SWIG_AsVal_int(obj1, &val2);
9582 if (!SWIG_IsOK(ecode2)) {
9583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileHistory_RemoveFileFromHistory" "', expected argument " "2"" of type '" "int""'");
9584 }
9585 arg2 = static_cast< int >(val2);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 (arg1)->RemoveFileFromHistory(arg2);
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_Py_Void();
9593 return resultobj;
9594fail:
9595 return NULL;
d14a1e28
RD
9596}
9597
9598
0085ce49
RD
9599SWIGINTERN PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *resultobj = 0;
9601 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9602 int result;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetMaxFiles" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9612 }
9613 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_From_int(static_cast< int >(result));
9621 return resultobj;
9622fail:
9623 return NULL;
9624}
9625
9626
9627SWIGINTERN PyObject *_wrap_FileHistory_UseMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9630 wxMenu *arg2 = (wxMenu *) 0 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 void *argp2 = 0 ;
9634 int res2 = 0 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "self",(char *) "menu", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_UseMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9645 }
9646 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9648 if (!SWIG_IsOK(res2)) {
9649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_UseMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9650 }
9651 arg2 = reinterpret_cast< wxMenu * >(argp2);
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->UseMenu(arg2);
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660fail:
9661 return NULL;
9662}
9663
9664
9665SWIGINTERN PyObject *_wrap_FileHistory_RemoveMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9668 wxMenu *arg2 = (wxMenu *) 0 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 void *argp2 = 0 ;
9672 int res2 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 PyObject * obj1 = 0 ;
9675 char * kwnames[] = {
9676 (char *) "self",(char *) "menu", NULL
9677 };
9678
9679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_RemoveMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9683 }
9684 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9686 if (!SWIG_IsOK(res2)) {
9687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_RemoveMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9688 }
9689 arg2 = reinterpret_cast< wxMenu * >(argp2);
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 (arg1)->RemoveMenu(arg2);
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 resultobj = SWIG_Py_Void();
9697 return resultobj;
9698fail:
9699 return NULL;
9700}
9701
9702
9703SWIGINTERN PyObject *_wrap_FileHistory_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj = 0;
9705 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9706 wxConfigBase *arg2 = 0 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 void *argp2 = 0 ;
9710 int res2 = 0 ;
9711 PyObject * obj0 = 0 ;
9712 PyObject * obj1 = 0 ;
9713 char * kwnames[] = {
9714 (char *) "self",(char *) "config", NULL
9715 };
9716
9717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) SWIG_fail;
9718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9719 if (!SWIG_IsOK(res1)) {
9720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_Load" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9721 }
9722 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxConfigBase, 0 );
9724 if (!SWIG_IsOK(res2)) {
9725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_Load" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9726 }
9727 if (!argp2) {
9728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileHistory_Load" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9729 }
9730 arg2 = reinterpret_cast< wxConfigBase * >(argp2);
9731 {
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 (arg1)->Load(*arg2);
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 resultobj = SWIG_Py_Void();
9738 return resultobj;
9739fail:
9740 return NULL;
9741}
9742
9743
9744SWIGINTERN PyObject *_wrap_FileHistory_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj = 0;
9746 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9747 wxConfigBase *arg2 = 0 ;
9748 void *argp1 = 0 ;
9749 int res1 = 0 ;
9750 void *argp2 = 0 ;
9751 int res2 = 0 ;
9752 PyObject * obj0 = 0 ;
9753 PyObject * obj1 = 0 ;
9754 char * kwnames[] = {
9755 (char *) "self",(char *) "config", NULL
9756 };
9757
9758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) SWIG_fail;
9759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9760 if (!SWIG_IsOK(res1)) {
9761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_Save" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9762 }
9763 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxConfigBase, 0 );
9765 if (!SWIG_IsOK(res2)) {
9766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_Save" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9767 }
9768 if (!argp2) {
9769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileHistory_Save" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9770 }
9771 arg2 = reinterpret_cast< wxConfigBase * >(argp2);
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 (arg1)->Save(*arg2);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_Py_Void();
9779 return resultobj;
9780fail:
9781 return NULL;
d14a1e28
RD
9782}
9783
9784
0085ce49
RD
9785SWIGINTERN PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9786 PyObject *resultobj = 0;
9787 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9788 void *argp1 = 0 ;
9789 int res1 = 0 ;
9790 PyObject *swig_obj[1] ;
9791
9792 if (!args) SWIG_fail;
9793 swig_obj[0] = args;
9794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9795 if (!SWIG_IsOK(res1)) {
9796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFilesToMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9797 }
9798 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 (arg1)->AddFilesToMenu();
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 resultobj = SWIG_Py_Void();
9806 return resultobj;
9807fail:
9808 return NULL;
9809}
9810
9811
9812SWIGINTERN PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj = 0;
9814 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9815 wxMenu *arg2 = (wxMenu *) 0 ;
9816 void *argp1 = 0 ;
9817 int res1 = 0 ;
9818 void *argp2 = 0 ;
9819 int res2 = 0 ;
9820 PyObject * obj0 = 0 ;
9821 PyObject * obj1 = 0 ;
9822 char * kwnames[] = {
9823 (char *) "self",(char *) "menu", NULL
9824 };
9825
9826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9828 if (!SWIG_IsOK(res1)) {
9829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFilesToThisMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9830 }
9831 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9833 if (!SWIG_IsOK(res2)) {
9834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_AddFilesToThisMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9835 }
9836 arg2 = reinterpret_cast< wxMenu * >(argp2);
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 (arg1)->AddFilesToMenu(arg2);
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_Py_Void();
9844 return resultobj;
9845fail:
9846 return NULL;
9847}
9848
9849
9850SWIGINTERN PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj = 0;
9852 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9853 int arg2 ;
9854 wxString result;
9855 void *argp1 = 0 ;
9856 int res1 = 0 ;
9857 int val2 ;
9858 int ecode2 = 0 ;
9859 PyObject * obj0 = 0 ;
9860 PyObject * obj1 = 0 ;
9861 char * kwnames[] = {
9862 (char *) "self",(char *) "i", NULL
9863 };
9864
9865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) SWIG_fail;
9866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9867 if (!SWIG_IsOK(res1)) {
9868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetHistoryFile" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9869 }
9870 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9871 ecode2 = SWIG_AsVal_int(obj1, &val2);
9872 if (!SWIG_IsOK(ecode2)) {
9873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileHistory_GetHistoryFile" "', expected argument " "2"" of type '" "int""'");
9874 }
9875 arg2 = static_cast< int >(val2);
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 {
9883#if wxUSE_UNICODE
9884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9885#else
9886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9887#endif
9888 }
9889 return resultobj;
9890fail:
9891 return NULL;
d14a1e28
RD
9892}
9893
9894
0085ce49
RD
9895SWIGINTERN PyObject *_wrap_FileHistory_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9896 PyObject *resultobj = 0;
9897 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9898 int result;
9899 void *argp1 = 0 ;
9900 int res1 = 0 ;
9901 PyObject *swig_obj[1] ;
9902
9903 if (!args) SWIG_fail;
9904 swig_obj[0] = args;
9905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9906 if (!SWIG_IsOK(res1)) {
9907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetCount" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9908 }
9909 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = (int)((wxFileHistory const *)arg1)->GetCount();
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_From_int(static_cast< int >(result));
9917 return resultobj;
9918fail:
9919 return NULL;
d14a1e28
RD
9920}
9921
9922
0085ce49
RD
9923SWIGINTERN PyObject *FileHistory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 PyObject *obj;
9925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9926 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileHistory, SWIG_NewClientData(obj));
9927 return SWIG_Py_Void();
d14a1e28
RD
9928}
9929
0085ce49
RD
9930SWIGINTERN PyObject *FileHistory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9931 return SWIG_Python_InitShadowInstance(args);
d14a1e28 9932}
0085ce49
RD
9933
9934SWIGINTERN PyObject *_wrap_new_SingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxString *arg1 = 0 ;
9937 wxString const &arg2_defvalue = wxPyEmptyString ;
9938 wxString *arg2 = (wxString *) &arg2_defvalue ;
9939 wxSingleInstanceChecker *result = 0 ;
9940 bool temp1 = false ;
9941 bool temp2 = false ;
9942 PyObject * obj0 = 0 ;
9943 PyObject * obj1 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "name",(char *) "path", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) SWIG_fail;
9949 {
9950 arg1 = wxString_in_helper(obj0);
9951 if (arg1 == NULL) SWIG_fail;
9952 temp1 = true;
9953 }
9954 if (obj1) {
d14a1e28 9955 {
0085ce49
RD
9956 arg2 = wxString_in_helper(obj1);
9957 if (arg2 == NULL) SWIG_fail;
9958 temp2 = true;
d14a1e28 9959 }
0085ce49
RD
9960 }
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_NEW | 0 );
9968 {
9969 if (temp1)
9970 delete arg1;
9971 }
9972 {
9973 if (temp2)
9974 delete arg2;
9975 }
9976 return resultobj;
9977fail:
9978 {
9979 if (temp1)
9980 delete arg1;
9981 }
9982 {
9983 if (temp2)
9984 delete arg2;
9985 }
9986 return NULL;
d14a1e28
RD
9987}
9988
9989
0085ce49
RD
9990SWIGINTERN PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9991 PyObject *resultobj = 0;
9992 wxSingleInstanceChecker *result = 0 ;
9993
9994 if (!SWIG_Python_UnpackTuple(args,"new_PreSingleInstanceChecker",0,0,0)) SWIG_fail;
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_OWN | 0 );
10002 return resultobj;
10003fail:
10004 return NULL;
d14a1e28
RD
10005}
10006
10007
0085ce49
RD
10008SWIGINTERN PyObject *_wrap_delete_SingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10009 PyObject *resultobj = 0;
10010 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10011 void *argp1 = 0 ;
10012 int res1 = 0 ;
10013 PyObject *swig_obj[1] ;
10014
10015 if (!args) SWIG_fail;
10016 swig_obj[0] = args;
10017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_DISOWN | 0 );
10018 if (!SWIG_IsOK(res1)) {
10019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SingleInstanceChecker" "', expected argument " "1"" of type '" "wxSingleInstanceChecker *""'");
10020 }
10021 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10022 {
10023 PyThreadState* __tstate = wxPyBeginAllowThreads();
10024 delete arg1;
d14a1e28 10025
0085ce49
RD
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 resultobj = SWIG_Py_Void();
10030 return resultobj;
10031fail:
10032 return NULL;
10033}
10034
10035
10036SWIGINTERN PyObject *_wrap_SingleInstanceChecker_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj = 0;
10038 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10039 wxString *arg2 = 0 ;
10040 wxString const &arg3_defvalue = wxPyEmptyString ;
10041 wxString *arg3 = (wxString *) &arg3_defvalue ;
10042 bool result;
10043 void *argp1 = 0 ;
10044 int res1 = 0 ;
10045 bool temp2 = false ;
10046 bool temp3 = false ;
10047 PyObject * obj0 = 0 ;
10048 PyObject * obj1 = 0 ;
10049 PyObject * obj2 = 0 ;
10050 char * kwnames[] = {
10051 (char *) "self",(char *) "name",(char *) "path", NULL
10052 };
10053
10054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleInstanceChecker, 0 | 0 );
10056 if (!SWIG_IsOK(res1)) {
10057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleInstanceChecker_Create" "', expected argument " "1"" of type '" "wxSingleInstanceChecker *""'");
10058 }
10059 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10060 {
10061 arg2 = wxString_in_helper(obj1);
10062 if (arg2 == NULL) SWIG_fail;
10063 temp2 = true;
10064 }
10065 if (obj2) {
d14a1e28 10066 {
0085ce49
RD
10067 arg3 = wxString_in_helper(obj2);
10068 if (arg3 == NULL) SWIG_fail;
10069 temp3 = true;
d14a1e28 10070 }
0085ce49
RD
10071 }
10072 {
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 {
10079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10080 }
10081 {
10082 if (temp2)
10083 delete arg2;
10084 }
10085 {
10086 if (temp3)
10087 delete arg3;
10088 }
10089 return resultobj;
10090fail:
10091 {
10092 if (temp2)
10093 delete arg2;
10094 }
10095 {
10096 if (temp3)
10097 delete arg3;
10098 }
10099 return NULL;
d14a1e28
RD
10100}
10101
10102
0085ce49
RD
10103SWIGINTERN PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10104 PyObject *resultobj = 0;
10105 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10106 bool result;
10107 void *argp1 = 0 ;
10108 int res1 = 0 ;
10109 PyObject *swig_obj[1] ;
10110
10111 if (!args) SWIG_fail;
10112 swig_obj[0] = args;
10113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleInstanceChecker, 0 | 0 );
10114 if (!SWIG_IsOK(res1)) {
10115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleInstanceChecker_IsAnotherRunning" "', expected argument " "1"" of type '" "wxSingleInstanceChecker const *""'");
10116 }
10117 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 {
10125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10126 }
10127 return resultobj;
10128fail:
10129 return NULL;
d14a1e28
RD
10130}
10131
10132
0085ce49
RD
10133SWIGINTERN PyObject *SingleInstanceChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10134 PyObject *obj;
10135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10136 SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleInstanceChecker, SWIG_NewClientData(obj));
10137 return SWIG_Py_Void();
d14a1e28
RD
10138}
10139
0085ce49
RD
10140SWIGINTERN PyObject *SingleInstanceChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10141 return SWIG_Python_InitShadowInstance(args);
10142}
d14a1e28 10143
fc46b7f3
RD
10144SWIGINTERN PyObject *_wrap_new_PlatformInformation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10145 PyObject *resultobj = 0;
10146 wxPlatformInfo *result = 0 ;
10147
10148 if (!SWIG_Python_UnpackTuple(args,"new_PlatformInformation",0,0,0)) SWIG_fail;
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 result = (wxPlatformInfo *)new wxPlatformInfo();
10152 wxPyEndAllowThreads(__tstate);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPlatformInfo, SWIG_POINTER_NEW | 0 );
10156 return resultobj;
10157fail:
10158 return NULL;
10159}
10160
10161
10162SWIGINTERN PyObject *_wrap_PlatformInformation___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = 0;
10164 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10165 wxPlatformInfo *arg2 = 0 ;
10166 bool result;
10167 void *argp1 = 0 ;
10168 int res1 = 0 ;
10169 void *argp2 = 0 ;
10170 int res2 = 0 ;
10171 PyObject * obj0 = 0 ;
10172 PyObject * obj1 = 0 ;
10173 char * kwnames[] = {
10174 (char *) "self",(char *) "t", NULL
10175 };
10176
10177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
10178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation___eq__" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10181 }
10182 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10183 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPlatformInfo, 0 | 0);
10184 if (!SWIG_IsOK(res2)) {
10185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PlatformInformation___eq__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10186 }
10187 if (!argp2) {
10188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PlatformInformation___eq__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10189 }
10190 arg2 = reinterpret_cast< wxPlatformInfo * >(argp2);
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (bool)((wxPlatformInfo const *)arg1)->operator ==((wxPlatformInfo const &)*arg2);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 {
10198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10199 }
10200 return resultobj;
10201fail:
10202 return NULL;
10203}
10204
10205
10206SWIGINTERN PyObject *_wrap_PlatformInformation___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10207 PyObject *resultobj = 0;
10208 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10209 wxPlatformInfo *arg2 = 0 ;
10210 bool result;
10211 void *argp1 = 0 ;
10212 int res1 = 0 ;
10213 void *argp2 = 0 ;
10214 int res2 = 0 ;
10215 PyObject * obj0 = 0 ;
10216 PyObject * obj1 = 0 ;
10217 char * kwnames[] = {
10218 (char *) "self",(char *) "t", NULL
10219 };
10220
10221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
10222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation___ne__" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10225 }
10226 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPlatformInfo, 0 | 0);
10228 if (!SWIG_IsOK(res2)) {
10229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PlatformInformation___ne__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10230 }
10231 if (!argp2) {
10232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PlatformInformation___ne__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10233 }
10234 arg2 = reinterpret_cast< wxPlatformInfo * >(argp2);
10235 {
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 result = (bool)((wxPlatformInfo const *)arg1)->operator !=((wxPlatformInfo const &)*arg2);
10238 wxPyEndAllowThreads(__tstate);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 {
10242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10243 }
10244 return resultobj;
10245fail:
10246 return NULL;
10247}
10248
10249
10250SWIGINTERN PyObject *_wrap_PlatformInformation_GetOSMajorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10251 PyObject *resultobj = 0;
10252 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10253 int result;
10254 void *argp1 = 0 ;
10255 int res1 = 0 ;
10256 PyObject *swig_obj[1] ;
10257
10258 if (!args) SWIG_fail;
10259 swig_obj[0] = args;
10260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOSMajorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10263 }
10264 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (int)((wxPlatformInfo const *)arg1)->GetOSMajorVersion();
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 resultobj = SWIG_From_int(static_cast< int >(result));
10272 return resultobj;
10273fail:
10274 return NULL;
10275}
10276
10277
10278SWIGINTERN PyObject *_wrap_PlatformInformation_GetOSMinorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10279 PyObject *resultobj = 0;
10280 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10281 int result;
10282 void *argp1 = 0 ;
10283 int res1 = 0 ;
10284 PyObject *swig_obj[1] ;
10285
10286 if (!args) SWIG_fail;
10287 swig_obj[0] = args;
10288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10289 if (!SWIG_IsOK(res1)) {
10290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOSMinorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10291 }
10292 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 result = (int)((wxPlatformInfo const *)arg1)->GetOSMinorVersion();
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 resultobj = SWIG_From_int(static_cast< int >(result));
10300 return resultobj;
10301fail:
10302 return NULL;
10303}
10304
10305
5acb46e0
RD
10306SWIGINTERN PyObject *_wrap_PlatformInformation_CheckOSVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj = 0;
10308 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10309 int arg2 ;
10310 int arg3 ;
10311 bool result;
10312 void *argp1 = 0 ;
10313 int res1 = 0 ;
10314 int val2 ;
10315 int ecode2 = 0 ;
10316 int val3 ;
10317 int ecode3 = 0 ;
10318 PyObject * obj0 = 0 ;
10319 PyObject * obj1 = 0 ;
10320 PyObject * obj2 = 0 ;
10321 char * kwnames[] = {
10322 (char *) "self",(char *) "major",(char *) "minor", NULL
10323 };
10324
10325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_CheckOSVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10327 if (!SWIG_IsOK(res1)) {
10328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10329 }
10330 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10331 ecode2 = SWIG_AsVal_int(obj1, &val2);
10332 if (!SWIG_IsOK(ecode2)) {
10333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "2"" of type '" "int""'");
10334 }
10335 arg2 = static_cast< int >(val2);
10336 ecode3 = SWIG_AsVal_int(obj2, &val3);
10337 if (!SWIG_IsOK(ecode3)) {
10338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "3"" of type '" "int""'");
10339 }
10340 arg3 = static_cast< int >(val3);
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = (bool)((wxPlatformInfo const *)arg1)->CheckOSVersion(arg2,arg3);
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 {
10348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10349 }
10350 return resultobj;
10351fail:
10352 return NULL;
10353}
10354
10355
fc46b7f3
RD
10356SWIGINTERN PyObject *_wrap_PlatformInformation_GetToolkitMajorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10357 PyObject *resultobj = 0;
10358 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10359 int result;
10360 void *argp1 = 0 ;
10361 int res1 = 0 ;
10362 PyObject *swig_obj[1] ;
10363
10364 if (!args) SWIG_fail;
10365 swig_obj[0] = args;
10366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10367 if (!SWIG_IsOK(res1)) {
10368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetToolkitMajorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10369 }
10370 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (int)((wxPlatformInfo const *)arg1)->GetToolkitMajorVersion();
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_From_int(static_cast< int >(result));
10378 return resultobj;
10379fail:
10380 return NULL;
10381}
10382
10383
10384SWIGINTERN PyObject *_wrap_PlatformInformation_GetToolkitMinorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10385 PyObject *resultobj = 0;
10386 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10387 int result;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject *swig_obj[1] ;
10391
10392 if (!args) SWIG_fail;
10393 swig_obj[0] = args;
10394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetToolkitMinorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10397 }
10398 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = (int)((wxPlatformInfo const *)arg1)->GetToolkitMinorVersion();
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_From_int(static_cast< int >(result));
10406 return resultobj;
10407fail:
10408 return NULL;
10409}
10410
10411
5acb46e0
RD
10412SWIGINTERN PyObject *_wrap_PlatformInformation_CheckToolkitVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj = 0;
10414 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10415 int arg2 ;
10416 int arg3 ;
10417 bool result;
10418 void *argp1 = 0 ;
10419 int res1 = 0 ;
10420 int val2 ;
10421 int ecode2 = 0 ;
10422 int val3 ;
10423 int ecode3 = 0 ;
10424 PyObject * obj0 = 0 ;
10425 PyObject * obj1 = 0 ;
10426 PyObject * obj2 = 0 ;
10427 char * kwnames[] = {
10428 (char *) "self",(char *) "major",(char *) "minor", NULL
10429 };
10430
10431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_CheckToolkitVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10433 if (!SWIG_IsOK(res1)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10435 }
10436 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10437 ecode2 = SWIG_AsVal_int(obj1, &val2);
10438 if (!SWIG_IsOK(ecode2)) {
10439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "2"" of type '" "int""'");
10440 }
10441 arg2 = static_cast< int >(val2);
10442 ecode3 = SWIG_AsVal_int(obj2, &val3);
10443 if (!SWIG_IsOK(ecode3)) {
10444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "3"" of type '" "int""'");
10445 }
10446 arg3 = static_cast< int >(val3);
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (bool)((wxPlatformInfo const *)arg1)->CheckToolkitVersion(arg2,arg3);
10450 wxPyEndAllowThreads(__tstate);
10451 if (PyErr_Occurred()) SWIG_fail;
10452 }
10453 {
10454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10455 }
10456 return resultobj;
10457fail:
10458 return NULL;
10459}
10460
10461
fc46b7f3
RD
10462SWIGINTERN PyObject *_wrap_PlatformInformation_IsUsingUniversalWidgets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10463 PyObject *resultobj = 0;
10464 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10465 bool result;
10466 void *argp1 = 0 ;
10467 int res1 = 0 ;
10468 PyObject *swig_obj[1] ;
10469
10470 if (!args) SWIG_fail;
10471 swig_obj[0] = args;
10472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10473 if (!SWIG_IsOK(res1)) {
10474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_IsUsingUniversalWidgets" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10475 }
10476 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10477 {
10478 PyThreadState* __tstate = wxPyBeginAllowThreads();
10479 result = (bool)((wxPlatformInfo const *)arg1)->IsUsingUniversalWidgets();
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 {
10484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10485 }
10486 return resultobj;
10487fail:
10488 return NULL;
10489}
10490
10491
10492SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10495 wxOperatingSystemId result;
10496 void *argp1 = 0 ;
10497 int res1 = 0 ;
10498 PyObject *swig_obj[1] ;
10499
10500 if (!args) SWIG_fail;
10501 swig_obj[0] = args;
10502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10503 if (!SWIG_IsOK(res1)) {
10504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemId" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10505 }
10506 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 result = (wxOperatingSystemId)((wxPlatformInfo const *)arg1)->GetOperatingSystemId();
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_From_int(static_cast< int >(result));
10514 return resultobj;
10515fail:
10516 return NULL;
10517}
10518
10519
10520SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10521 PyObject *resultobj = 0;
10522 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10523 wxPortId result;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 PyObject *swig_obj[1] ;
10527
10528 if (!args) SWIG_fail;
10529 swig_obj[0] = args;
10530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10531 if (!SWIG_IsOK(res1)) {
10532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortId" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10533 }
10534 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxPortId)((wxPlatformInfo const *)arg1)->GetPortId();
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_From_int(static_cast< int >(result));
10542 return resultobj;
10543fail:
10544 return NULL;
10545}
10546
10547
10548SWIGINTERN PyObject *_wrap_PlatformInformation_GetArchitecture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10549 PyObject *resultobj = 0;
10550 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10551 wxArchitecture result;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 PyObject *swig_obj[1] ;
10555
10556 if (!args) SWIG_fail;
10557 swig_obj[0] = args;
10558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10559 if (!SWIG_IsOK(res1)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetArchitecture" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10561 }
10562 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 result = (wxArchitecture)((wxPlatformInfo const *)arg1)->GetArchitecture();
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_From_int(static_cast< int >(result));
10570 return resultobj;
10571fail:
10572 return NULL;
10573}
10574
10575
10576SWIGINTERN PyObject *_wrap_PlatformInformation_GetEndianness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10577 PyObject *resultobj = 0;
10578 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10579 wxEndianness result;
10580 void *argp1 = 0 ;
10581 int res1 = 0 ;
10582 PyObject *swig_obj[1] ;
10583
10584 if (!args) SWIG_fail;
10585 swig_obj[0] = args;
10586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10587 if (!SWIG_IsOK(res1)) {
10588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetEndianness" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10589 }
10590 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10591 {
10592 PyThreadState* __tstate = wxPyBeginAllowThreads();
10593 result = (wxEndianness)((wxPlatformInfo const *)arg1)->GetEndianness();
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 resultobj = SWIG_From_int(static_cast< int >(result));
10598 return resultobj;
10599fail:
10600 return NULL;
10601}
10602
10603
10604SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemFamilyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10605 PyObject *resultobj = 0;
10606 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10607 wxString result;
10608 void *argp1 = 0 ;
10609 int res1 = 0 ;
10610 PyObject *swig_obj[1] ;
10611
10612 if (!args) SWIG_fail;
10613 swig_obj[0] = args;
10614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemFamilyName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10617 }
10618 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = ((wxPlatformInfo const *)arg1)->GetOperatingSystemFamilyName();
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626#if wxUSE_UNICODE
10627 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10628#else
10629 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10630#endif
10631 }
10632 return resultobj;
10633fail:
10634 return NULL;
10635}
10636
10637
10638SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemIdName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10639 PyObject *resultobj = 0;
10640 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10641 wxString result;
10642 void *argp1 = 0 ;
10643 int res1 = 0 ;
10644 PyObject *swig_obj[1] ;
10645
10646 if (!args) SWIG_fail;
10647 swig_obj[0] = args;
10648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10649 if (!SWIG_IsOK(res1)) {
10650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemIdName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10651 }
10652 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 result = ((wxPlatformInfo const *)arg1)->GetOperatingSystemIdName();
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660#if wxUSE_UNICODE
10661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10662#else
10663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10664#endif
10665 }
10666 return resultobj;
10667fail:
10668 return NULL;
10669}
10670
10671
10672SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortIdName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10673 PyObject *resultobj = 0;
10674 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10675 wxString result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 PyObject *swig_obj[1] ;
10679
10680 if (!args) SWIG_fail;
10681 swig_obj[0] = args;
10682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortIdName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10685 }
10686 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = ((wxPlatformInfo const *)arg1)->GetPortIdName();
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 {
10694#if wxUSE_UNICODE
10695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10696#else
10697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10698#endif
10699 }
10700 return resultobj;
10701fail:
10702 return NULL;
10703}
10704
10705
10706SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortIdShortName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10707 PyObject *resultobj = 0;
10708 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10709 wxString result;
10710 void *argp1 = 0 ;
10711 int res1 = 0 ;
10712 PyObject *swig_obj[1] ;
10713
10714 if (!args) SWIG_fail;
10715 swig_obj[0] = args;
10716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10717 if (!SWIG_IsOK(res1)) {
10718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortIdShortName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10719 }
10720 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 result = ((wxPlatformInfo const *)arg1)->GetPortIdShortName();
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 {
10728#if wxUSE_UNICODE
10729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10730#else
10731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10732#endif
10733 }
10734 return resultobj;
10735fail:
10736 return NULL;
10737}
10738
10739
10740SWIGINTERN PyObject *_wrap_PlatformInformation_GetArchName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10741 PyObject *resultobj = 0;
10742 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10743 wxString result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 PyObject *swig_obj[1] ;
10747
10748 if (!args) SWIG_fail;
10749 swig_obj[0] = args;
10750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetArchName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10753 }
10754 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = ((wxPlatformInfo const *)arg1)->GetArchName();
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 {
10762#if wxUSE_UNICODE
10763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10764#else
10765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10766#endif
10767 }
10768 return resultobj;
10769fail:
10770 return NULL;
10771}
10772
10773
10774SWIGINTERN PyObject *_wrap_PlatformInformation_GetEndiannessName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10775 PyObject *resultobj = 0;
10776 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10777 wxString result;
10778 void *argp1 = 0 ;
10779 int res1 = 0 ;
10780 PyObject *swig_obj[1] ;
10781
10782 if (!args) SWIG_fail;
10783 swig_obj[0] = args;
10784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetEndiannessName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10787 }
10788 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 result = ((wxPlatformInfo const *)arg1)->GetEndiannessName();
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 {
10796#if wxUSE_UNICODE
10797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10798#else
10799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10800#endif
10801 }
10802 return resultobj;
10803fail:
10804 return NULL;
10805}
10806
10807
10808SWIGINTERN PyObject *_wrap_PlatformInformation_SetOSVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10811 int arg2 ;
10812 int arg3 ;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 int val2 ;
10816 int ecode2 = 0 ;
10817 int val3 ;
10818 int ecode3 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 PyObject * obj2 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "major",(char *) "minor", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_SetOSVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10830 }
10831 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10832 ecode2 = SWIG_AsVal_int(obj1, &val2);
10833 if (!SWIG_IsOK(ecode2)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "2"" of type '" "int""'");
10835 }
10836 arg2 = static_cast< int >(val2);
10837 ecode3 = SWIG_AsVal_int(obj2, &val3);
10838 if (!SWIG_IsOK(ecode3)) {
10839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "3"" of type '" "int""'");
10840 }
10841 arg3 = static_cast< int >(val3);
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetOSVersion(arg2,arg3);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 resultobj = SWIG_Py_Void();
10849 return resultobj;
10850fail:
10851 return NULL;
10852}
10853
10854
10855SWIGINTERN PyObject *_wrap_PlatformInformation_SetToolkitVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj = 0;
10857 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10858 int arg2 ;
10859 int arg3 ;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 int val3 ;
10865 int ecode3 = 0 ;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 PyObject * obj2 = 0 ;
10869 char * kwnames[] = {
10870 (char *) "self",(char *) "major",(char *) "minor", NULL
10871 };
10872
10873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_SetToolkitVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10875 if (!SWIG_IsOK(res1)) {
10876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10877 }
10878 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10879 ecode2 = SWIG_AsVal_int(obj1, &val2);
10880 if (!SWIG_IsOK(ecode2)) {
10881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "2"" of type '" "int""'");
10882 }
10883 arg2 = static_cast< int >(val2);
10884 ecode3 = SWIG_AsVal_int(obj2, &val3);
10885 if (!SWIG_IsOK(ecode3)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "3"" of type '" "int""'");
10887 }
10888 arg3 = static_cast< int >(val3);
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 (arg1)->SetToolkitVersion(arg2,arg3);
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 resultobj = SWIG_Py_Void();
10896 return resultobj;
10897fail:
10898 return NULL;
10899}
10900
10901
10902SWIGINTERN PyObject *_wrap_PlatformInformation_SetOperatingSystemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj = 0;
10904 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10905 wxOperatingSystemId arg2 ;
10906 void *argp1 = 0 ;
10907 int res1 = 0 ;
10908 int val2 ;
10909 int ecode2 = 0 ;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 char * kwnames[] = {
10913 (char *) "self",(char *) "n", NULL
10914 };
10915
10916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetOperatingSystemId",kwnames,&obj0,&obj1)) SWIG_fail;
10917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10918 if (!SWIG_IsOK(res1)) {
10919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetOperatingSystemId" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10920 }
10921 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10922 ecode2 = SWIG_AsVal_int(obj1, &val2);
10923 if (!SWIG_IsOK(ecode2)) {
10924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetOperatingSystemId" "', expected argument " "2"" of type '" "wxOperatingSystemId""'");
10925 }
10926 arg2 = static_cast< wxOperatingSystemId >(val2);
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 (arg1)->SetOperatingSystemId(arg2);
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 resultobj = SWIG_Py_Void();
10934 return resultobj;
10935fail:
10936 return NULL;
10937}
10938
10939
10940SWIGINTERN PyObject *_wrap_PlatformInformation_SetPortId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10941 PyObject *resultobj = 0;
10942 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10943 wxPortId arg2 ;
10944 void *argp1 = 0 ;
10945 int res1 = 0 ;
10946 int val2 ;
10947 int ecode2 = 0 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char * kwnames[] = {
10951 (char *) "self",(char *) "n", NULL
10952 };
10953
10954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetPortId",kwnames,&obj0,&obj1)) SWIG_fail;
10955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10956 if (!SWIG_IsOK(res1)) {
10957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetPortId" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10958 }
10959 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10960 ecode2 = SWIG_AsVal_int(obj1, &val2);
10961 if (!SWIG_IsOK(ecode2)) {
10962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetPortId" "', expected argument " "2"" of type '" "wxPortId""'");
10963 }
10964 arg2 = static_cast< wxPortId >(val2);
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 (arg1)->SetPortId(arg2);
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 resultobj = SWIG_Py_Void();
10972 return resultobj;
10973fail:
10974 return NULL;
10975}
10976
10977
10978SWIGINTERN PyObject *_wrap_PlatformInformation_SetArchitecture(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj = 0;
10980 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10981 wxArchitecture arg2 ;
10982 void *argp1 = 0 ;
10983 int res1 = 0 ;
10984 int val2 ;
10985 int ecode2 = 0 ;
10986 PyObject * obj0 = 0 ;
10987 PyObject * obj1 = 0 ;
10988 char * kwnames[] = {
10989 (char *) "self",(char *) "n", NULL
10990 };
10991
10992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetArchitecture",kwnames,&obj0,&obj1)) SWIG_fail;
10993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10994 if (!SWIG_IsOK(res1)) {
10995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetArchitecture" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10996 }
10997 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10998 ecode2 = SWIG_AsVal_int(obj1, &val2);
10999 if (!SWIG_IsOK(ecode2)) {
11000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetArchitecture" "', expected argument " "2"" of type '" "wxArchitecture""'");
11001 }
11002 arg2 = static_cast< wxArchitecture >(val2);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 (arg1)->SetArchitecture(arg2);
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 resultobj = SWIG_Py_Void();
11010 return resultobj;
11011fail:
11012 return NULL;
11013}
11014
11015
11016SWIGINTERN PyObject *_wrap_PlatformInformation_SetEndianness(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = 0;
11018 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
11019 wxEndianness arg2 ;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 int val2 ;
11023 int ecode2 = 0 ;
11024 PyObject * obj0 = 0 ;
11025 PyObject * obj1 = 0 ;
11026 char * kwnames[] = {
11027 (char *) "self",(char *) "n", NULL
11028 };
11029
11030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetEndianness",kwnames,&obj0,&obj1)) SWIG_fail;
11031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
11032 if (!SWIG_IsOK(res1)) {
11033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetEndianness" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
11034 }
11035 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
11036 ecode2 = SWIG_AsVal_int(obj1, &val2);
11037 if (!SWIG_IsOK(ecode2)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetEndianness" "', expected argument " "2"" of type '" "wxEndianness""'");
11039 }
11040 arg2 = static_cast< wxEndianness >(val2);
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 (arg1)->SetEndianness(arg2);
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 resultobj = SWIG_Py_Void();
11048 return resultobj;
11049fail:
11050 return NULL;
11051}
11052
11053
11054SWIGINTERN PyObject *_wrap_PlatformInformation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11055 PyObject *resultobj = 0;
11056 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
11057 bool result;
11058 void *argp1 = 0 ;
11059 int res1 = 0 ;
11060 PyObject *swig_obj[1] ;
11061
11062 if (!args) SWIG_fail;
11063 swig_obj[0] = args;
11064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
11065 if (!SWIG_IsOK(res1)) {
11066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_IsOk" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
11067 }
11068 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
11069 {
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 result = (bool)((wxPlatformInfo const *)arg1)->IsOk();
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 {
11076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11077 }
11078 return resultobj;
11079fail:
11080 return NULL;
11081}
11082
11083
11084SWIGINTERN PyObject *PlatformInformation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11085 PyObject *obj;
11086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11087 SWIG_TypeNewClientData(SWIGTYPE_p_wxPlatformInfo, SWIG_NewClientData(obj));
11088 return SWIG_Py_Void();
11089}
11090
11091SWIGINTERN PyObject *PlatformInformation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 return SWIG_Python_InitShadowInstance(args);
11093}
11094
0085ce49
RD
11095SWIGINTERN PyObject *_wrap_DrawWindowOnDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj = 0;
11097 wxWindow *arg1 = (wxWindow *) 0 ;
11098 wxDC *arg2 = 0 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 void *argp2 = 0 ;
11103 int res2 = 0 ;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 char * kwnames[] = {
11107 (char *) "window",(char *) "dc", NULL
11108 };
11109
11110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) SWIG_fail;
11111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11112 if (!SWIG_IsOK(res1)) {
11113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DrawWindowOnDC" "', expected argument " "1"" of type '" "wxWindow *""'");
11114 }
11115 arg1 = reinterpret_cast< wxWindow * >(argp1);
11116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 | 0);
11117 if (!SWIG_IsOK(res2)) {
11118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DrawWindowOnDC" "', expected argument " "2"" of type '" "wxDC const &""'");
11119 }
11120 if (!argp2) {
11121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DrawWindowOnDC" "', expected argument " "2"" of type '" "wxDC const &""'");
11122 }
11123 arg2 = reinterpret_cast< wxDC * >(argp2);
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2);
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 }
11133 return resultobj;
11134fail:
11135 return NULL;
d14a1e28
RD
11136}
11137
11138
0085ce49
RD
11139SWIGINTERN PyObject *_wrap_delete_TipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11142 void *argp1 = 0 ;
11143 int res1 = 0 ;
11144 PyObject *swig_obj[1] ;
11145
11146 if (!args) SWIG_fail;
11147 swig_obj[0] = args;
11148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, SWIG_POINTER_DISOWN | 0 );
11149 if (!SWIG_IsOK(res1)) {
11150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TipProvider" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11151 }
11152 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 delete arg1;
d14a1e28 11156
0085ce49
RD
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 resultobj = SWIG_Py_Void();
11161 return resultobj;
11162fail:
11163 return NULL;
d14a1e28
RD
11164}
11165
11166
0085ce49
RD
11167SWIGINTERN PyObject *_wrap_TipProvider_GetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11168 PyObject *resultobj = 0;
11169 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11170 wxString result;
11171 void *argp1 = 0 ;
11172 int res1 = 0 ;
11173 PyObject *swig_obj[1] ;
11174
11175 if (!args) SWIG_fail;
11176 swig_obj[0] = args;
11177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11178 if (!SWIG_IsOK(res1)) {
11179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_GetTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11180 }
11181 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 result = (arg1)->GetTip();
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 {
11189#if wxUSE_UNICODE
11190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11191#else
11192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11193#endif
11194 }
11195 return resultobj;
11196fail:
11197 return NULL;
d14a1e28
RD
11198}
11199
11200
0085ce49
RD
11201SWIGINTERN PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11202 PyObject *resultobj = 0;
11203 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11204 size_t result;
11205 void *argp1 = 0 ;
11206 int res1 = 0 ;
11207 PyObject *swig_obj[1] ;
11208
11209 if (!args) SWIG_fail;
11210 swig_obj[0] = args;
11211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_GetCurrentTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11214 }
11215 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 result = (size_t)(arg1)->GetCurrentTip();
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11223 return resultobj;
11224fail:
11225 return NULL;
11226}
11227
11228
11229SWIGINTERN PyObject *_wrap_TipProvider_PreprocessTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj = 0;
11231 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11232 wxString *arg2 = 0 ;
11233 wxString result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 bool temp2 = false ;
11237 PyObject * obj0 = 0 ;
11238 PyObject * obj1 = 0 ;
11239 char * kwnames[] = {
11240 (char *) "self",(char *) "tip", NULL
11241 };
11242
11243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) SWIG_fail;
11244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11245 if (!SWIG_IsOK(res1)) {
11246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_PreprocessTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11247 }
11248 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11249 {
11250 arg2 = wxString_in_helper(obj1);
11251 if (arg2 == NULL) SWIG_fail;
11252 temp2 = true;
11253 }
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 result = (arg1)->PreprocessTip((wxString const &)*arg2);
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 {
11261#if wxUSE_UNICODE
11262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11263#else
11264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11265#endif
11266 }
11267 {
11268 if (temp2)
11269 delete arg2;
11270 }
11271 return resultobj;
11272fail:
11273 {
11274 if (temp2)
11275 delete arg2;
11276 }
11277 return NULL;
d14a1e28
RD
11278}
11279
11280
0085ce49
RD
11281SWIGINTERN PyObject *TipProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11282 PyObject *obj;
11283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11284 SWIG_TypeNewClientData(SWIGTYPE_p_wxTipProvider, SWIG_NewClientData(obj));
11285 return SWIG_Py_Void();
d14a1e28
RD
11286}
11287
0085ce49
RD
11288SWIGINTERN PyObject *_wrap_new_PyTipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11289 PyObject *resultobj = 0;
11290 size_t arg1 ;
11291 wxPyTipProvider *result = 0 ;
11292 size_t val1 ;
11293 int ecode1 = 0 ;
11294 PyObject * obj0 = 0 ;
11295 char * kwnames[] = {
11296 (char *) "currentTip", NULL
11297 };
11298
11299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) SWIG_fail;
11300 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11301 if (!SWIG_IsOK(ecode1)) {
11302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyTipProvider" "', expected argument " "1"" of type '" "size_t""'");
11303 }
11304 arg1 = static_cast< size_t >(val1);
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_NEW | 0 );
11312 return resultobj;
11313fail:
11314 return NULL;
11315}
11316
11317
11318SWIGINTERN PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj = 0;
11320 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
11321 PyObject *arg2 = (PyObject *) 0 ;
11322 PyObject *arg3 = (PyObject *) 0 ;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 PyObject * obj2 = 0 ;
11328 char * kwnames[] = {
11329 (char *) "self",(char *) "self",(char *) "_class", NULL
11330 };
11331
11332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTipProvider, 0 | 0 );
11334 if (!SWIG_IsOK(res1)) {
11335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyTipProvider__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTipProvider *""'");
11336 }
11337 arg1 = reinterpret_cast< wxPyTipProvider * >(argp1);
11338 arg2 = obj1;
11339 arg3 = obj2;
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 (arg1)->_setCallbackInfo(arg2,arg3);
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_Py_Void();
11347 return resultobj;
11348fail:
11349 return NULL;
11350}
11351
11352
11353SWIGINTERN PyObject *PyTipProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *obj;
11355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11356 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTipProvider, SWIG_NewClientData(obj));
11357 return SWIG_Py_Void();
11358}
11359
11360SWIGINTERN PyObject *PyTipProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11361 return SWIG_Python_InitShadowInstance(args);
11362}
11363
11364SWIGINTERN PyObject *_wrap_ShowTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj = 0;
11366 wxWindow *arg1 = (wxWindow *) 0 ;
11367 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
11368 bool arg3 = (bool) true ;
11369 bool result;
11370 void *argp1 = 0 ;
11371 int res1 = 0 ;
11372 void *argp2 = 0 ;
11373 int res2 = 0 ;
11374 bool val3 ;
11375 int ecode3 = 0 ;
11376 PyObject * obj0 = 0 ;
11377 PyObject * obj1 = 0 ;
11378 PyObject * obj2 = 0 ;
11379 char * kwnames[] = {
11380 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
11381 };
11382
11383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowTip" "', expected argument " "1"" of type '" "wxWindow *""'");
11387 }
11388 arg1 = reinterpret_cast< wxWindow * >(argp1);
11389 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11390 if (!SWIG_IsOK(res2)) {
11391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShowTip" "', expected argument " "2"" of type '" "wxTipProvider *""'");
11392 }
11393 arg2 = reinterpret_cast< wxTipProvider * >(argp2);
11394 if (obj2) {
11395 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11396 if (!SWIG_IsOK(ecode3)) {
11397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ShowTip" "', expected argument " "3"" of type '" "bool""'");
11398 }
11399 arg3 = static_cast< bool >(val3);
11400 }
11401 {
11402 if (!wxPyCheckForApp()) SWIG_fail;
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 result = (bool)wxShowTip(arg1,arg2,arg3);
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11410 }
11411 return resultobj;
11412fail:
11413 return NULL;
11414}
11415
11416
11417SWIGINTERN PyObject *_wrap_CreateFileTipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj = 0;
11419 wxString *arg1 = 0 ;
11420 size_t arg2 ;
11421 wxTipProvider *result = 0 ;
11422 bool temp1 = false ;
11423 size_t val2 ;
11424 int ecode2 = 0 ;
11425 PyObject * obj0 = 0 ;
11426 PyObject * obj1 = 0 ;
11427 char * kwnames[] = {
11428 (char *) "filename",(char *) "currentTip", NULL
11429 };
11430
11431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) SWIG_fail;
11432 {
11433 arg1 = wxString_in_helper(obj0);
11434 if (arg1 == NULL) SWIG_fail;
11435 temp1 = true;
11436 }
11437 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
11438 if (!SWIG_IsOK(ecode2)) {
11439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreateFileTipProvider" "', expected argument " "2"" of type '" "size_t""'");
11440 }
11441 arg2 = static_cast< size_t >(val2);
11442 {
11443 if (!wxPyCheckForApp()) SWIG_fail;
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipProvider, SWIG_POINTER_OWN | 0 );
11450 {
11451 if (temp1)
11452 delete arg1;
11453 }
11454 return resultobj;
11455fail:
11456 {
11457 if (temp1)
11458 delete arg1;
11459 }
11460 return NULL;
11461}
11462
11463
11464SWIGINTERN PyObject *_wrap_new_Timer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11465 PyObject *resultobj = 0;
11466 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
11467 int arg2 = (int) wxID_ANY ;
11468 wxPyTimer *result = 0 ;
11469 void *argp1 = 0 ;
11470 int res1 = 0 ;
11471 int val2 ;
11472 int ecode2 = 0 ;
11473 PyObject * obj0 = 0 ;
11474 PyObject * obj1 = 0 ;
11475 char * kwnames[] = {
11476 (char *) "owner",(char *) "id", NULL
11477 };
11478
11479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) SWIG_fail;
11480 if (obj0) {
11481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
11482 if (!SWIG_IsOK(res1)) {
11483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Timer" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
d14a1e28 11484 }
0085ce49
RD
11485 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
11486 }
11487 if (obj1) {
11488 ecode2 = SWIG_AsVal_int(obj1, &val2);
11489 if (!SWIG_IsOK(ecode2)) {
11490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Timer" "', expected argument " "2"" of type '" "int""'");
11491 }
11492 arg2 = static_cast< int >(val2);
11493 }
11494 {
11495 if (!wxPyCheckForApp()) SWIG_fail;
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTimer, SWIG_POINTER_NEW | 0 );
11502 return resultobj;
11503fail:
11504 return NULL;
d14a1e28
RD
11505}
11506
11507
0085ce49
RD
11508SWIGINTERN PyObject *_wrap_delete_Timer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11509 PyObject *resultobj = 0;
11510 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11511 void *argp1 = 0 ;
11512 int res1 = 0 ;
11513 PyObject *swig_obj[1] ;
11514
11515 if (!args) SWIG_fail;
11516 swig_obj[0] = args;
11517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, SWIG_POINTER_DISOWN | 0 );
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Timer" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11520 }
11521 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11522 {
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 delete arg1;
d14a1e28 11525
0085ce49
RD
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 resultobj = SWIG_Py_Void();
11530 return resultobj;
11531fail:
11532 return NULL;
11533}
11534
11535
11536SWIGINTERN PyObject *_wrap_Timer__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11537 PyObject *resultobj = 0;
11538 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11539 PyObject *arg2 = (PyObject *) 0 ;
11540 PyObject *arg3 = (PyObject *) 0 ;
11541 int arg4 = (int) 1 ;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 int val4 ;
11545 int ecode4 = 0 ;
11546 PyObject * obj0 = 0 ;
11547 PyObject * obj1 = 0 ;
11548 PyObject * obj2 = 0 ;
11549 PyObject * obj3 = 0 ;
11550 char * kwnames[] = {
11551 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
11552 };
11553
11554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11556 if (!SWIG_IsOK(res1)) {
11557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11558 }
11559 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11560 arg2 = obj1;
11561 arg3 = obj2;
11562 if (obj3) {
11563 ecode4 = SWIG_AsVal_int(obj3, &val4);
11564 if (!SWIG_IsOK(ecode4)) {
11565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Timer__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
11566 }
11567 arg4 = static_cast< int >(val4);
11568 }
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 resultobj = SWIG_Py_Void();
11576 return resultobj;
11577fail:
11578 return NULL;
11579}
11580
11581
11582SWIGINTERN PyObject *_wrap_Timer_SetOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11583 PyObject *resultobj = 0;
11584 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11585 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11586 int arg3 = (int) wxID_ANY ;
11587 void *argp1 = 0 ;
11588 int res1 = 0 ;
11589 void *argp2 = 0 ;
11590 int res2 = 0 ;
11591 int val3 ;
11592 int ecode3 = 0 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 PyObject * obj2 = 0 ;
11596 char * kwnames[] = {
11597 (char *) "self",(char *) "owner",(char *) "id", NULL
11598 };
11599
11600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11602 if (!SWIG_IsOK(res1)) {
11603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_SetOwner" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11604 }
11605 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
11607 if (!SWIG_IsOK(res2)) {
11608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Timer_SetOwner" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
11609 }
11610 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
11611 if (obj2) {
11612 ecode3 = SWIG_AsVal_int(obj2, &val3);
11613 if (!SWIG_IsOK(ecode3)) {
11614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Timer_SetOwner" "', expected argument " "3"" of type '" "int""'");
11615 }
11616 arg3 = static_cast< int >(val3);
11617 }
11618 {
11619 PyThreadState* __tstate = wxPyBeginAllowThreads();
11620 (arg1)->SetOwner(arg2,arg3);
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 resultobj = SWIG_Py_Void();
11625 return resultobj;
11626fail:
11627 return NULL;
d14a1e28
RD
11628}
11629
11630
0085ce49
RD
11631SWIGINTERN PyObject *_wrap_Timer_GetOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11632 PyObject *resultobj = 0;
11633 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11634 wxEvtHandler *result = 0 ;
11635 void *argp1 = 0 ;
11636 int res1 = 0 ;
11637 PyObject *swig_obj[1] ;
11638
11639 if (!args) SWIG_fail;
11640 swig_obj[0] = args;
11641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11642 if (!SWIG_IsOK(res1)) {
11643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetOwner" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11644 }
11645 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11646 {
11647 PyThreadState* __tstate = wxPyBeginAllowThreads();
11648 result = (wxEvtHandler *)(arg1)->GetOwner();
11649 wxPyEndAllowThreads(__tstate);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 {
11653 resultobj = wxPyMake_wxObject(result, 0);
11654 }
11655 return resultobj;
11656fail:
11657 return NULL;
11658}
11659
11660
11661SWIGINTERN PyObject *_wrap_Timer_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11662 PyObject *resultobj = 0;
11663 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11664 int arg2 = (int) -1 ;
11665 bool arg3 = (bool) false ;
11666 bool result;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 int val2 ;
11670 int ecode2 = 0 ;
11671 bool val3 ;
11672 int ecode3 = 0 ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675 PyObject * obj2 = 0 ;
11676 char * kwnames[] = {
11677 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
11678 };
11679
11680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11682 if (!SWIG_IsOK(res1)) {
11683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Start" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11684 }
11685 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11686 if (obj1) {
11687 ecode2 = SWIG_AsVal_int(obj1, &val2);
11688 if (!SWIG_IsOK(ecode2)) {
11689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Timer_Start" "', expected argument " "2"" of type '" "int""'");
11690 }
11691 arg2 = static_cast< int >(val2);
11692 }
11693 if (obj2) {
11694 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11695 if (!SWIG_IsOK(ecode3)) {
11696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Timer_Start" "', expected argument " "3"" of type '" "bool""'");
11697 }
11698 arg3 = static_cast< bool >(val3);
11699 }
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = (bool)(arg1)->Start(arg2,arg3);
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 {
11707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11708 }
11709 return resultobj;
11710fail:
11711 return NULL;
d14a1e28
RD
11712}
11713
11714
0085ce49
RD
11715SWIGINTERN PyObject *_wrap_Timer_Stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11716 PyObject *resultobj = 0;
11717 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 PyObject *swig_obj[1] ;
11721
11722 if (!args) SWIG_fail;
11723 swig_obj[0] = args;
11724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Stop" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11727 }
11728 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->Stop();
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 resultobj = SWIG_Py_Void();
11736 return resultobj;
11737fail:
11738 return NULL;
d14a1e28
RD
11739}
11740
11741
0085ce49
RD
11742SWIGINTERN PyObject *_wrap_Timer_Notify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11743 PyObject *resultobj = 0;
11744 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11745 void *argp1 = 0 ;
11746 int res1 = 0 ;
11747 PyObject *swig_obj[1] ;
11748
11749 if (!args) SWIG_fail;
11750 swig_obj[0] = args;
11751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11752 if (!SWIG_IsOK(res1)) {
11753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Notify" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11754 }
11755 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 (arg1)->Notify();
11759 wxPyEndAllowThreads(__tstate);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
11762 resultobj = SWIG_Py_Void();
11763 return resultobj;
11764fail:
11765 return NULL;
d14a1e28
RD
11766}
11767
11768
0085ce49
RD
11769SWIGINTERN PyObject *_wrap_Timer_IsRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11770 PyObject *resultobj = 0;
11771 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11772 bool result;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 PyObject *swig_obj[1] ;
11776
11777 if (!args) SWIG_fail;
11778 swig_obj[0] = args;
11779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11780 if (!SWIG_IsOK(res1)) {
11781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_IsRunning" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11782 }
11783 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 {
11791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11792 }
11793 return resultobj;
11794fail:
11795 return NULL;
d14a1e28
RD
11796}
11797
11798
0085ce49
RD
11799SWIGINTERN PyObject *_wrap_Timer_GetInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11800 PyObject *resultobj = 0;
11801 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11802 int result;
11803 void *argp1 = 0 ;
11804 int res1 = 0 ;
11805 PyObject *swig_obj[1] ;
11806
11807 if (!args) SWIG_fail;
11808 swig_obj[0] = args;
11809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11810 if (!SWIG_IsOK(res1)) {
11811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetInterval" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11812 }
11813 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11814 {
11815 PyThreadState* __tstate = wxPyBeginAllowThreads();
11816 result = (int)((wxPyTimer const *)arg1)->GetInterval();
11817 wxPyEndAllowThreads(__tstate);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 }
11820 resultobj = SWIG_From_int(static_cast< int >(result));
11821 return resultobj;
11822fail:
11823 return NULL;
d14a1e28
RD
11824}
11825
11826
0085ce49
RD
11827SWIGINTERN PyObject *_wrap_Timer_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11828 PyObject *resultobj = 0;
11829 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11830 int result;
11831 void *argp1 = 0 ;
11832 int res1 = 0 ;
11833 PyObject *swig_obj[1] ;
11834
11835 if (!args) SWIG_fail;
11836 swig_obj[0] = args;
11837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11838 if (!SWIG_IsOK(res1)) {
11839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetId" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11840 }
11841 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11842 {
11843 PyThreadState* __tstate = wxPyBeginAllowThreads();
11844 result = (int)((wxPyTimer const *)arg1)->GetId();
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 resultobj = SWIG_From_int(static_cast< int >(result));
11849 return resultobj;
11850fail:
11851 return NULL;
d14a1e28
RD
11852}
11853
11854
0085ce49
RD
11855SWIGINTERN PyObject *_wrap_Timer_IsOneShot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11856 PyObject *resultobj = 0;
11857 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11858 bool result;
11859 void *argp1 = 0 ;
11860 int res1 = 0 ;
11861 PyObject *swig_obj[1] ;
11862
11863 if (!args) SWIG_fail;
11864 swig_obj[0] = args;
11865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_IsOneShot" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11868 }
11869 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 {
11877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11878 }
11879 return resultobj;
11880fail:
11881 return NULL;
d14a1e28
RD
11882}
11883
11884
0085ce49
RD
11885SWIGINTERN PyObject *Timer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11886 PyObject *obj;
11887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11888 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTimer, SWIG_NewClientData(obj));
11889 return SWIG_Py_Void();
d14a1e28
RD
11890}
11891
0085ce49
RD
11892SWIGINTERN PyObject *Timer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
11894}
11895
0085ce49
RD
11896SWIGINTERN PyObject *_wrap_new_TimerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj = 0;
11898 int arg1 = (int) 0 ;
11899 int arg2 = (int) 0 ;
11900 wxTimerEvent *result = 0 ;
11901 int val1 ;
11902 int ecode1 = 0 ;
11903 int val2 ;
11904 int ecode2 = 0 ;
11905 PyObject * obj0 = 0 ;
11906 PyObject * obj1 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "timerid",(char *) "interval", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11912 if (obj0) {
11913 ecode1 = SWIG_AsVal_int(obj0, &val1);
11914 if (!SWIG_IsOK(ecode1)) {
11915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimerEvent" "', expected argument " "1"" of type '" "int""'");
11916 }
11917 arg1 = static_cast< int >(val1);
11918 }
11919 if (obj1) {
11920 ecode2 = SWIG_AsVal_int(obj1, &val2);
11921 if (!SWIG_IsOK(ecode2)) {
11922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimerEvent" "', expected argument " "2"" of type '" "int""'");
11923 }
11924 arg2 = static_cast< int >(val2);
11925 }
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_NEW | 0 );
11933 return resultobj;
11934fail:
11935 return NULL;
d14a1e28
RD
11936}
11937
11938
0085ce49
RD
11939SWIGINTERN PyObject *_wrap_TimerEvent_GetInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11940 PyObject *resultobj = 0;
11941 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
11942 int result;
11943 void *argp1 = 0 ;
11944 int res1 = 0 ;
11945 PyObject *swig_obj[1] ;
11946
11947 if (!args) SWIG_fail;
11948 swig_obj[0] = args;
11949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimerEvent, 0 | 0 );
11950 if (!SWIG_IsOK(res1)) {
11951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimerEvent_GetInterval" "', expected argument " "1"" of type '" "wxTimerEvent const *""'");
11952 }
11953 arg1 = reinterpret_cast< wxTimerEvent * >(argp1);
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
11957 wxPyEndAllowThreads(__tstate);
11958 if (PyErr_Occurred()) SWIG_fail;
11959 }
11960 resultobj = SWIG_From_int(static_cast< int >(result));
11961 return resultobj;
11962fail:
11963 return NULL;
d14a1e28
RD
11964}
11965
11966
0085ce49
RD
11967SWIGINTERN PyObject *TimerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11968 PyObject *obj;
11969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11970 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimerEvent, SWIG_NewClientData(obj));
11971 return SWIG_Py_Void();
d14a1e28
RD
11972}
11973
0085ce49
RD
11974SWIGINTERN PyObject *TimerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11975 return SWIG_Python_InitShadowInstance(args);
11976}
d14a1e28 11977
0085ce49
RD
11978SWIGINTERN PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11979 PyObject *resultobj = 0;
11980 wxTimer *arg1 = 0 ;
11981 wxTimerRunner *result = 0 ;
11982 void *argp1 = 0 ;
11983 int res1 = 0 ;
11984
11985 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxTimer, 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
11989 }
11990 if (!argp1) {
11991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
11992 }
11993 arg1 = reinterpret_cast< wxTimer * >(argp1);
11994 {
11995 if (!wxPyCheckForApp()) SWIG_fail;
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_NEW | 0 );
12002 return resultobj;
12003fail:
12004 return NULL;
12005}
12006
12007
12008SWIGINTERN PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12009 PyObject *resultobj = 0;
12010 wxTimer *arg1 = 0 ;
12011 int arg2 ;
12012 bool arg3 = (bool) false ;
12013 wxTimerRunner *result = 0 ;
12014 void *argp1 = 0 ;
12015 int res1 = 0 ;
12016 int val2 ;
12017 int ecode2 = 0 ;
12018 bool val3 ;
12019 int ecode3 = 0 ;
12020
12021 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
12022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxTimer, 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
12025 }
12026 if (!argp1) {
12027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
12028 }
12029 arg1 = reinterpret_cast< wxTimer * >(argp1);
12030 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12031 if (!SWIG_IsOK(ecode2)) {
12032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimerRunner" "', expected argument " "2"" of type '" "int""'");
12033 }
12034 arg2 = static_cast< int >(val2);
12035 if (swig_obj[2]) {
12036 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
12037 if (!SWIG_IsOK(ecode3)) {
12038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TimerRunner" "', expected argument " "3"" of type '" "bool""'");
12039 }
12040 arg3 = static_cast< bool >(val3);
12041 }
12042 {
12043 if (!wxPyCheckForApp()) SWIG_fail;
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_NEW | 0 );
12050 return resultobj;
12051fail:
12052 return NULL;
d14a1e28
RD
12053}
12054
12055
0085ce49
RD
12056SWIGINTERN PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
12057 int argc;
12058 PyObject *argv[4];
12059
12060 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TimerRunner",0,3,argv))) SWIG_fail;
12061 --argc;
12062 if (argc == 1) {
12063 return _wrap_new_TimerRunner__SWIG_0(self, argc, argv);
12064 }
12065 if ((argc >= 2) && (argc <= 3)) {
12066 return _wrap_new_TimerRunner__SWIG_1(self, argc, argv);
12067 }
12068
12069fail:
12070 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'");
12071 return NULL;
68350608
RD
12072}
12073
12074
0085ce49
RD
12075SWIGINTERN PyObject *_wrap_delete_TimerRunner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12076 PyObject *resultobj = 0;
12077 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
12078 void *argp1 = 0 ;
12079 int res1 = 0 ;
12080 PyObject *swig_obj[1] ;
12081
12082 if (!args) SWIG_fail;
12083 swig_obj[0] = args;
12084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_DISOWN | 0 );
12085 if (!SWIG_IsOK(res1)) {
12086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimerRunner" "', expected argument " "1"" of type '" "wxTimerRunner *""'");
12087 }
12088 arg1 = reinterpret_cast< wxTimerRunner * >(argp1);
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 delete arg1;
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 resultobj = SWIG_Py_Void();
12097 return resultobj;
12098fail:
12099 return NULL;
12100}
12101
12102
12103SWIGINTERN PyObject *_wrap_TimerRunner_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj = 0;
12105 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
12106 int arg2 ;
12107 bool arg3 = (bool) false ;
12108 void *argp1 = 0 ;
12109 int res1 = 0 ;
12110 int val2 ;
12111 int ecode2 = 0 ;
12112 bool val3 ;
12113 int ecode3 = 0 ;
12114 PyObject * obj0 = 0 ;
12115 PyObject * obj1 = 0 ;
12116 PyObject * obj2 = 0 ;
12117 char * kwnames[] = {
12118 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
12119 };
12120
12121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimerRunner, 0 | 0 );
12123 if (!SWIG_IsOK(res1)) {
12124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimerRunner_Start" "', expected argument " "1"" of type '" "wxTimerRunner *""'");
12125 }
12126 arg1 = reinterpret_cast< wxTimerRunner * >(argp1);
12127 ecode2 = SWIG_AsVal_int(obj1, &val2);
12128 if (!SWIG_IsOK(ecode2)) {
12129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimerRunner_Start" "', expected argument " "2"" of type '" "int""'");
12130 }
12131 arg2 = static_cast< int >(val2);
12132 if (obj2) {
12133 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12134 if (!SWIG_IsOK(ecode3)) {
12135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TimerRunner_Start" "', expected argument " "3"" of type '" "bool""'");
12136 }
12137 arg3 = static_cast< bool >(val3);
12138 }
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->Start(arg2,arg3);
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_Py_Void();
12146 return resultobj;
12147fail:
12148 return NULL;
d14a1e28
RD
12149}
12150
12151
0085ce49
RD
12152SWIGINTERN PyObject *TimerRunner_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12153 PyObject *obj;
12154 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12155 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimerRunner, SWIG_NewClientData(obj));
12156 return SWIG_Py_Void();
d14a1e28
RD
12157}
12158
0085ce49
RD
12159SWIGINTERN PyObject *TimerRunner_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12160 return SWIG_Python_InitShadowInstance(args);
12161}
d14a1e28 12162
0085ce49
RD
12163SWIGINTERN PyObject *_wrap_new_Log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxLog *result = 0 ;
12166
12167 if (!SWIG_Python_UnpackTuple(args,"new_Log",0,0,0)) SWIG_fail;
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 result = (wxLog *)new wxLog();
12171 wxPyEndAllowThreads(__tstate);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, SWIG_POINTER_NEW | 0 );
12175 return resultobj;
12176fail:
12177 return NULL;
d14a1e28
RD
12178}
12179
12180
0085ce49
RD
12181SWIGINTERN PyObject *_wrap_delete_Log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12182 PyObject *resultobj = 0;
12183 wxLog *arg1 = (wxLog *) 0 ;
12184 void *argp1 = 0 ;
12185 int res1 = 0 ;
12186 PyObject *swig_obj[1] ;
12187
12188 if (!args) SWIG_fail;
12189 swig_obj[0] = args;
12190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, SWIG_POINTER_DISOWN | 0 );
12191 if (!SWIG_IsOK(res1)) {
12192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Log" "', expected argument " "1"" of type '" "wxLog *""'");
12193 }
12194 arg1 = reinterpret_cast< wxLog * >(argp1);
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 delete arg1;
d14a1e28 12198
0085ce49
RD
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 resultobj = SWIG_Py_Void();
12203 return resultobj;
12204fail:
12205 return NULL;
d14a1e28
RD
12206}
12207
12208
0085ce49
RD
12209SWIGINTERN PyObject *_wrap_Log_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 bool result;
12212
12213 if (!SWIG_Python_UnpackTuple(args,"Log_IsEnabled",0,0,0)) SWIG_fail;
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 result = (bool)wxLog::IsEnabled();
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 {
12221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12222 }
12223 return resultobj;
12224fail:
12225 return NULL;
d14a1e28
RD
12226}
12227
12228
0085ce49
RD
12229SWIGINTERN PyObject *_wrap_Log_EnableLogging(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj = 0;
12231 bool arg1 = (bool) true ;
12232 bool result;
12233 bool val1 ;
12234 int ecode1 = 0 ;
12235 PyObject * obj0 = 0 ;
12236 char * kwnames[] = {
12237 (char *) "doIt", NULL
12238 };
12239
12240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) SWIG_fail;
12241 if (obj0) {
12242 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12243 if (!SWIG_IsOK(ecode1)) {
12244 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_EnableLogging" "', expected argument " "1"" of type '" "bool""'");
12245 }
12246 arg1 = static_cast< bool >(val1);
12247 }
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 result = (bool)wxLog::EnableLogging(arg1);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 {
12255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12256 }
12257 return resultobj;
12258fail:
12259 return NULL;
12260}
12261
12262
12263SWIGINTERN PyObject *_wrap_Log_OnLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj = 0;
12265 wxLogLevel arg1 ;
12266 wxChar *arg2 = (wxChar *) 0 ;
12267 time_t arg3 ;
12268 unsigned long val1 ;
12269 int ecode1 = 0 ;
12270 void *argp2 = 0 ;
12271 int res2 = 0 ;
12272 unsigned int val3 ;
12273 int ecode3 = 0 ;
12274 PyObject * obj0 = 0 ;
12275 PyObject * obj1 = 0 ;
12276 PyObject * obj2 = 0 ;
12277 char * kwnames[] = {
12278 (char *) "level",(char *) "szString",(char *) "t", NULL
12279 };
12280
12281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12282 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12283 if (!SWIG_IsOK(ecode1)) {
12284 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_OnLog" "', expected argument " "1"" of type '" "wxLogLevel""'");
12285 }
12286 arg1 = static_cast< wxLogLevel >(val1);
12287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
12288 if (!SWIG_IsOK(res2)) {
12289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Log_OnLog" "', expected argument " "2"" of type '" "wxChar const *""'");
12290 }
12291 arg2 = reinterpret_cast< wxChar * >(argp2);
12292 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
12293 if (!SWIG_IsOK(ecode3)) {
12294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Log_OnLog" "', expected argument " "3"" of type '" "time_t""'");
12295 }
12296 arg3 = static_cast< time_t >(val3);
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = SWIG_Py_Void();
12304 return resultobj;
12305fail:
12306 return NULL;
d14a1e28
RD
12307}
12308
12309
0085ce49
RD
12310SWIGINTERN PyObject *_wrap_Log_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12311 PyObject *resultobj = 0;
12312 wxLog *arg1 = (wxLog *) 0 ;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 PyObject *swig_obj[1] ;
12316
12317 if (!args) SWIG_fail;
12318 swig_obj[0] = args;
12319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
12320 if (!SWIG_IsOK(res1)) {
12321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_Flush" "', expected argument " "1"" of type '" "wxLog *""'");
12322 }
12323 arg1 = reinterpret_cast< wxLog * >(argp1);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->Flush();
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_Py_Void();
12331 return resultobj;
12332fail:
12333 return NULL;
d14a1e28
RD
12334}
12335
12336
0085ce49
RD
12337SWIGINTERN PyObject *_wrap_Log_FlushActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12338 PyObject *resultobj = 0;
12339
12340 if (!SWIG_Python_UnpackTuple(args,"Log_FlushActive",0,0,0)) SWIG_fail;
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 wxLog::FlushActive();
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 resultobj = SWIG_Py_Void();
12348 return resultobj;
12349fail:
12350 return NULL;
d14a1e28
RD
12351}
12352
12353
0085ce49
RD
12354SWIGINTERN PyObject *_wrap_Log_GetActiveTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12355 PyObject *resultobj = 0;
12356 wxLog *result = 0 ;
12357
12358 if (!SWIG_Python_UnpackTuple(args,"Log_GetActiveTarget",0,0,0)) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = (wxLog *)wxLog::GetActiveTarget();
12362 wxPyEndAllowThreads(__tstate);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
12366 return resultobj;
12367fail:
12368 return NULL;
d14a1e28
RD
12369}
12370
12371
0085ce49
RD
12372SWIGINTERN PyObject *_wrap_Log_SetActiveTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12373 PyObject *resultobj = 0;
12374 wxLog *arg1 = (wxLog *) 0 ;
12375 wxLog *result = 0 ;
12376 int res1 = 0 ;
12377 PyObject * obj0 = 0 ;
12378 char * kwnames[] = {
12379 (char *) "pLogger", NULL
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxLog, SWIG_POINTER_DISOWN | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_SetActiveTarget" "', expected argument " "1"" of type '" "wxLog *""'");
12386 }
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 result = (wxLog *)wxLog::SetActiveTarget(arg1);
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, SWIG_POINTER_OWN | 0 );
12394 return resultobj;
12395fail:
12396 return NULL;
d14a1e28
RD
12397}
12398
12399
0085ce49
RD
12400SWIGINTERN PyObject *_wrap_Log_Suspend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12401 PyObject *resultobj = 0;
12402
12403 if (!SWIG_Python_UnpackTuple(args,"Log_Suspend",0,0,0)) SWIG_fail;
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 wxLog::Suspend();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_Py_Void();
12411 return resultobj;
12412fail:
12413 return NULL;
7722248d
RD
12414}
12415
12416
0085ce49
RD
12417SWIGINTERN PyObject *_wrap_Log_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419
12420 if (!SWIG_Python_UnpackTuple(args,"Log_Resume",0,0,0)) SWIG_fail;
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 wxLog::Resume();
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 resultobj = SWIG_Py_Void();
12428 return resultobj;
12429fail:
12430 return NULL;
d14a1e28
RD
12431}
12432
12433
0085ce49
RD
12434SWIGINTERN PyObject *_wrap_Log_SetVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12435 PyObject *resultobj = 0;
12436 bool arg1 = (bool) true ;
12437 bool val1 ;
12438 int ecode1 = 0 ;
12439 PyObject * obj0 = 0 ;
12440 char * kwnames[] = {
12441 (char *) "bVerbose", NULL
12442 };
12443
12444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) SWIG_fail;
12445 if (obj0) {
12446 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12447 if (!SWIG_IsOK(ecode1)) {
12448 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetVerbose" "', expected argument " "1"" of type '" "bool""'");
12449 }
12450 arg1 = static_cast< bool >(val1);
12451 }
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 wxLog::SetVerbose(arg1);
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = SWIG_Py_Void();
12459 return resultobj;
12460fail:
12461 return NULL;
1c0f361b
RD
12462}
12463
12464
0085ce49
RD
12465SWIGINTERN PyObject *_wrap_Log_SetLogLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj = 0;
12467 wxLogLevel arg1 ;
12468 unsigned long val1 ;
12469 int ecode1 = 0 ;
12470 PyObject * obj0 = 0 ;
12471 char * kwnames[] = {
12472 (char *) "logLevel", NULL
12473 };
12474
12475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) SWIG_fail;
12476 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12477 if (!SWIG_IsOK(ecode1)) {
12478 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetLogLevel" "', expected argument " "1"" of type '" "wxLogLevel""'");
12479 }
12480 arg1 = static_cast< wxLogLevel >(val1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 wxLog::SetLogLevel(arg1);
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_Py_Void();
12488 return resultobj;
12489fail:
12490 return NULL;
d14a1e28
RD
12491}
12492
12493
0085ce49
RD
12494SWIGINTERN PyObject *_wrap_Log_DontCreateOnDemand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496
12497 if (!SWIG_Python_UnpackTuple(args,"Log_DontCreateOnDemand",0,0,0)) SWIG_fail;
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 wxLog::DontCreateOnDemand();
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 resultobj = SWIG_Py_Void();
12505 return resultobj;
12506fail:
12507 return NULL;
d14a1e28
RD
12508}
12509
12510
10044bf1
RD
12511SWIGINTERN PyObject *_wrap_Log_SetRepetitionCounting(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12512 PyObject *resultobj = 0;
12513 bool arg1 = (bool) true ;
12514 bool val1 ;
12515 int ecode1 = 0 ;
12516 PyObject * obj0 = 0 ;
12517 char * kwnames[] = {
12518 (char *) "bRepetCounting", NULL
12519 };
12520
12521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetRepetitionCounting",kwnames,&obj0)) SWIG_fail;
12522 if (obj0) {
12523 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12524 if (!SWIG_IsOK(ecode1)) {
12525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetRepetitionCounting" "', expected argument " "1"" of type '" "bool""'");
12526 }
12527 arg1 = static_cast< bool >(val1);
12528 }
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 wxLog::SetRepetitionCounting(arg1);
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 resultobj = SWIG_Py_Void();
12536 return resultobj;
12537fail:
12538 return NULL;
12539}
12540
12541
12542SWIGINTERN PyObject *_wrap_Log_GetRepetitionCounting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12543 PyObject *resultobj = 0;
12544 bool result;
12545
12546 if (!SWIG_Python_UnpackTuple(args,"Log_GetRepetitionCounting",0,0,0)) SWIG_fail;
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 result = (bool)wxLog::GetRepetitionCounting();
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 {
12554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12555 }
12556 return resultobj;
12557fail:
12558 return NULL;
12559}
12560
12561
0085ce49
RD
12562SWIGINTERN PyObject *_wrap_Log_SetTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12563 PyObject *resultobj = 0;
12564 wxTraceMask arg1 ;
12565 unsigned long val1 ;
12566 int ecode1 = 0 ;
12567 PyObject * obj0 = 0 ;
12568 char * kwnames[] = {
12569 (char *) "ulMask", NULL
12570 };
12571
12572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) SWIG_fail;
12573 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12574 if (!SWIG_IsOK(ecode1)) {
12575 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetTraceMask" "', expected argument " "1"" of type '" "wxTraceMask""'");
12576 }
12577 arg1 = static_cast< wxTraceMask >(val1);
12578 {
12579 PyThreadState* __tstate = wxPyBeginAllowThreads();
12580 wxLog::SetTraceMask(arg1);
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 resultobj = SWIG_Py_Void();
12585 return resultobj;
12586fail:
12587 return NULL;
c26d9ab4
RD
12588}
12589
12590
0085ce49
RD
12591SWIGINTERN PyObject *_wrap_Log_AddTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj = 0;
12593 wxString *arg1 = 0 ;
12594 bool temp1 = false ;
12595 PyObject * obj0 = 0 ;
12596 char * kwnames[] = {
12597 (char *) "str", NULL
12598 };
12599
12600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) SWIG_fail;
12601 {
12602 arg1 = wxString_in_helper(obj0);
12603 if (arg1 == NULL) SWIG_fail;
12604 temp1 = true;
12605 }
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 wxLog::AddTraceMask((wxString const &)*arg1);
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = SWIG_Py_Void();
12613 {
12614 if (temp1)
12615 delete arg1;
12616 }
12617 return resultobj;
12618fail:
12619 {
12620 if (temp1)
12621 delete arg1;
12622 }
12623 return NULL;
d14a1e28
RD
12624}
12625
12626
0085ce49
RD
12627SWIGINTERN PyObject *_wrap_Log_RemoveTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj = 0;
12629 wxString *arg1 = 0 ;
12630 bool temp1 = false ;
12631 PyObject * obj0 = 0 ;
12632 char * kwnames[] = {
12633 (char *) "str", NULL
12634 };
12635
12636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) SWIG_fail;
12637 {
12638 arg1 = wxString_in_helper(obj0);
12639 if (arg1 == NULL) SWIG_fail;
12640 temp1 = true;
12641 }
12642 {
12643 PyThreadState* __tstate = wxPyBeginAllowThreads();
12644 wxLog::RemoveTraceMask((wxString const &)*arg1);
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 resultobj = SWIG_Py_Void();
12649 {
12650 if (temp1)
12651 delete arg1;
12652 }
12653 return resultobj;
12654fail:
12655 {
12656 if (temp1)
12657 delete arg1;
12658 }
12659 return NULL;
d14a1e28
RD
12660}
12661
12662
0085ce49
RD
12663SWIGINTERN PyObject *_wrap_Log_ClearTraceMasks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12664 PyObject *resultobj = 0;
12665
12666 if (!SWIG_Python_UnpackTuple(args,"Log_ClearTraceMasks",0,0,0)) SWIG_fail;
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 wxLog::ClearTraceMasks();
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_Py_Void();
12674 return resultobj;
12675fail:
12676 return NULL;
d14a1e28
RD
12677}
12678
12679
0085ce49
RD
12680SWIGINTERN PyObject *_wrap_Log_GetTraceMasks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12681 PyObject *resultobj = 0;
12682 wxArrayString *result = 0 ;
12683
12684 if (!SWIG_Python_UnpackTuple(args,"Log_GetTraceMasks",0,0,0)) SWIG_fail;
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12687 {
0085ce49
RD
12688 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
12689 result = (wxArrayString *) &_result_ref;
093d3ff1 12690 }
0085ce49
RD
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 {
12695 resultobj = wxArrayString2PyList_helper(*result);
12696 }
12697 return resultobj;
12698fail:
12699 return NULL;
cc6dd355
RD
12700}
12701
12702
0085ce49
RD
12703SWIGINTERN PyObject *_wrap_Log_SetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj = 0;
12705 wxChar *arg1 = (wxChar *) 0 ;
12706 void *argp1 = 0 ;
12707 int res1 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 char * kwnames[] = {
12710 (char *) "ts", NULL
12711 };
12712
12713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) SWIG_fail;
12714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 );
12715 if (!SWIG_IsOK(res1)) {
12716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_SetTimestamp" "', expected argument " "1"" of type '" "wxChar const *""'");
12717 }
12718 arg1 = reinterpret_cast< wxChar * >(argp1);
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 wxLog::SetTimestamp((wxChar const *)arg1);
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 resultobj = SWIG_Py_Void();
12726 return resultobj;
12727fail:
12728 return NULL;
d14a1e28
RD
12729}
12730
12731
0085ce49
RD
12732SWIGINTERN PyObject *_wrap_Log_GetVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12733 PyObject *resultobj = 0;
12734 bool result;
12735
12736 if (!SWIG_Python_UnpackTuple(args,"Log_GetVerbose",0,0,0)) SWIG_fail;
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 result = (bool)wxLog::GetVerbose();
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 {
12744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12745 }
12746 return resultobj;
12747fail:
12748 return NULL;
d14a1e28
RD
12749}
12750
12751
0085ce49
RD
12752SWIGINTERN PyObject *_wrap_Log_GetTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12753 PyObject *resultobj = 0;
12754 wxTraceMask result;
12755
12756 if (!SWIG_Python_UnpackTuple(args,"Log_GetTraceMask",0,0,0)) SWIG_fail;
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 result = (wxTraceMask)wxLog::GetTraceMask();
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12764 return resultobj;
12765fail:
12766 return NULL;
12767}
12768
12769
12770SWIGINTERN PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12771 PyObject *resultobj = 0;
12772 wxChar *arg1 = (wxChar *) 0 ;
12773 bool result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 PyObject * obj0 = 0 ;
12777 char * kwnames[] = {
12778 (char *) "mask", NULL
12779 };
12780
12781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) SWIG_fail;
12782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 );
12783 if (!SWIG_IsOK(res1)) {
12784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_IsAllowedTraceMask" "', expected argument " "1"" of type '" "wxChar const *""'");
12785 }
12786 arg1 = reinterpret_cast< wxChar * >(argp1);
12787 {
12788 PyThreadState* __tstate = wxPyBeginAllowThreads();
12789 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 {
12794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12795 }
12796 return resultobj;
12797fail:
12798 return NULL;
d14a1e28
RD
12799}
12800
12801
0085ce49
RD
12802SWIGINTERN PyObject *_wrap_Log_GetLogLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12803 PyObject *resultobj = 0;
12804 wxLogLevel result;
12805
12806 if (!SWIG_Python_UnpackTuple(args,"Log_GetLogLevel",0,0,0)) SWIG_fail;
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 result = (wxLogLevel)wxLog::GetLogLevel();
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12814 return resultobj;
12815fail:
12816 return NULL;
32fe5131
RD
12817}
12818
12819
0085ce49
RD
12820SWIGINTERN PyObject *_wrap_Log_GetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12821 PyObject *resultobj = 0;
12822 wxChar *result = 0 ;
12823
12824 if (!SWIG_Python_UnpackTuple(args,"Log_GetTimestamp",0,0,0)) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (wxChar *)wxLog::GetTimestamp();
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
12832 return resultobj;
12833fail:
12834 return NULL;
d14a1e28
RD
12835}
12836
12837
0085ce49
RD
12838SWIGINTERN PyObject *_wrap_Log_TimeStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12839 PyObject *resultobj = 0;
12840 wxString result;
12841
12842 if (!SWIG_Python_UnpackTuple(args,"Log_TimeStamp",0,0,0)) SWIG_fail;
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 result = wxLog_TimeStamp();
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850#if wxUSE_UNICODE
12851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12852#else
12853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12854#endif
12855 }
12856 return resultobj;
12857fail:
12858 return NULL;
d14a1e28
RD
12859}
12860
12861
0085ce49
RD
12862SWIGINTERN PyObject *_wrap_Log_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12863 PyObject *resultobj = 0;
12864 wxLog *arg1 = (wxLog *) 0 ;
12865 void *argp1 = 0 ;
12866 int res1 = 0 ;
12867 PyObject *swig_obj[1] ;
12868
12869 if (!args) SWIG_fail;
12870 swig_obj[0] = args;
12871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
12872 if (!SWIG_IsOK(res1)) {
12873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_Destroy" "', expected argument " "1"" of type '" "wxLog *""'");
12874 }
12875 arg1 = reinterpret_cast< wxLog * >(argp1);
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 wxLog_Destroy(arg1);
12879 wxPyEndAllowThreads(__tstate);
12880 if (PyErr_Occurred()) SWIG_fail;
12881 }
12882 resultobj = SWIG_Py_Void();
12883 return resultobj;
12884fail:
12885 return NULL;
d14a1e28
RD
12886}
12887
12888
0085ce49
RD
12889SWIGINTERN PyObject *Log_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12890 PyObject *obj;
12891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12892 SWIG_TypeNewClientData(SWIGTYPE_p_wxLog, SWIG_NewClientData(obj));
12893 return SWIG_Py_Void();
d14a1e28
RD
12894}
12895
0085ce49
RD
12896SWIGINTERN PyObject *Log_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12897 return SWIG_Python_InitShadowInstance(args);
12898}
d14a1e28 12899
0085ce49
RD
12900SWIGINTERN PyObject *_wrap_new_LogStderr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12901 PyObject *resultobj = 0;
12902 wxLogStderr *result = 0 ;
12903
12904 if (!SWIG_Python_UnpackTuple(args,"new_LogStderr",0,0,0)) SWIG_fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (wxLogStderr *)new wxLogStderr();
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogStderr, SWIG_POINTER_NEW | 0 );
12912 return resultobj;
12913fail:
12914 return NULL;
7e08d4ef
RD
12915}
12916
12917
0085ce49
RD
12918SWIGINTERN PyObject *LogStderr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12919 PyObject *obj;
12920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12921 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogStderr, SWIG_NewClientData(obj));
12922 return SWIG_Py_Void();
d14a1e28
RD
12923}
12924
0085ce49
RD
12925SWIGINTERN PyObject *LogStderr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12926 return SWIG_Python_InitShadowInstance(args);
12927}
d14a1e28 12928
0085ce49
RD
12929SWIGINTERN PyObject *_wrap_new_LogTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj = 0;
12931 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12932 wxLogTextCtrl *result = 0 ;
12933 void *argp1 = 0 ;
12934 int res1 = 0 ;
12935 PyObject * obj0 = 0 ;
12936 char * kwnames[] = {
12937 (char *) "pTextCtrl", NULL
12938 };
12939
12940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) SWIG_fail;
12941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12942 if (!SWIG_IsOK(res1)) {
12943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogTextCtrl" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12944 }
12945 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
12949 wxPyEndAllowThreads(__tstate);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogTextCtrl, SWIG_POINTER_NEW | 0 );
12953 return resultobj;
12954fail:
12955 return NULL;
d14a1e28
RD
12956}
12957
12958
0085ce49
RD
12959SWIGINTERN PyObject *LogTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 PyObject *obj;
12961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12962 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogTextCtrl, SWIG_NewClientData(obj));
12963 return SWIG_Py_Void();
d14a1e28
RD
12964}
12965
0085ce49
RD
12966SWIGINTERN PyObject *LogTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 return SWIG_Python_InitShadowInstance(args);
12968}
d14a1e28 12969
0085ce49
RD
12970SWIGINTERN PyObject *_wrap_new_LogGui(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12971 PyObject *resultobj = 0;
12972 wxLogGui *result = 0 ;
12973
12974 if (!SWIG_Python_UnpackTuple(args,"new_LogGui",0,0,0)) SWIG_fail;
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 result = (wxLogGui *)new wxLogGui();
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogGui, SWIG_POINTER_NEW | 0 );
12982 return resultobj;
12983fail:
12984 return NULL;
12985}
12986
12987
12988SWIGINTERN PyObject *LogGui_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12989 PyObject *obj;
12990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12991 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogGui, SWIG_NewClientData(obj));
12992 return SWIG_Py_Void();
12993}
12994
12995SWIGINTERN PyObject *LogGui_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12996 return SWIG_Python_InitShadowInstance(args);
12997}
12998
12999SWIGINTERN PyObject *_wrap_new_LogWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj = 0;
13001 wxFrame *arg1 = (wxFrame *) 0 ;
13002 wxString *arg2 = 0 ;
13003 bool arg3 = (bool) true ;
13004 bool arg4 = (bool) true ;
13005 wxLogWindow *result = 0 ;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 bool temp2 = false ;
13009 bool val3 ;
13010 int ecode3 = 0 ;
13011 bool val4 ;
13012 int ecode4 = 0 ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 PyObject * obj2 = 0 ;
13016 PyObject * obj3 = 0 ;
13017 char * kwnames[] = {
13018 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
13019 };
13020
13021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 );
13023 if (!SWIG_IsOK(res1)) {
13024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogWindow" "', expected argument " "1"" of type '" "wxFrame *""'");
13025 }
13026 arg1 = reinterpret_cast< wxFrame * >(argp1);
13027 {
13028 arg2 = wxString_in_helper(obj1);
13029 if (arg2 == NULL) SWIG_fail;
13030 temp2 = true;
13031 }
13032 if (obj2) {
13033 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13034 if (!SWIG_IsOK(ecode3)) {
13035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LogWindow" "', expected argument " "3"" of type '" "bool""'");
13036 }
13037 arg3 = static_cast< bool >(val3);
13038 }
13039 if (obj3) {
13040 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13041 if (!SWIG_IsOK(ecode4)) {
13042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LogWindow" "', expected argument " "4"" of type '" "bool""'");
13043 }
13044 arg4 = static_cast< bool >(val4);
13045 }
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogWindow, SWIG_POINTER_NEW | 0 );
13053 {
13054 if (temp2)
13055 delete arg2;
13056 }
13057 return resultobj;
13058fail:
13059 {
13060 if (temp2)
13061 delete arg2;
13062 }
13063 return NULL;
13064}
13065
13066
13067SWIGINTERN PyObject *_wrap_LogWindow_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj = 0;
13069 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13070 bool arg2 = (bool) true ;
13071 void *argp1 = 0 ;
13072 int res1 = 0 ;
13073 bool val2 ;
13074 int ecode2 = 0 ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "self",(char *) "bShow", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) SWIG_fail;
13082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13083 if (!SWIG_IsOK(res1)) {
13084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_Show" "', expected argument " "1"" of type '" "wxLogWindow *""'");
13085 }
13086 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13087 if (obj1) {
13088 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13089 if (!SWIG_IsOK(ecode2)) {
13090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogWindow_Show" "', expected argument " "2"" of type '" "bool""'");
13091 }
13092 arg2 = static_cast< bool >(val2);
13093 }
13094 {
13095 PyThreadState* __tstate = wxPyBeginAllowThreads();
13096 (arg1)->Show(arg2);
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 resultobj = SWIG_Py_Void();
13101 return resultobj;
13102fail:
13103 return NULL;
d14a1e28
RD
13104}
13105
13106
0085ce49
RD
13107SWIGINTERN PyObject *_wrap_LogWindow_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13110 wxFrame *result = 0 ;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_GetFrame" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13120 }
13121 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 {
13129 resultobj = wxPyMake_wxObject(result, (bool)0);
13130 }
13131 return resultobj;
13132fail:
13133 return NULL;
d14a1e28
RD
13134}
13135
13136
0085ce49
RD
13137SWIGINTERN PyObject *_wrap_LogWindow_GetOldLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13138 PyObject *resultobj = 0;
13139 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13140 wxLog *result = 0 ;
13141 void *argp1 = 0 ;
13142 int res1 = 0 ;
13143 PyObject *swig_obj[1] ;
13144
13145 if (!args) SWIG_fail;
13146 swig_obj[0] = args;
13147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13148 if (!SWIG_IsOK(res1)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_GetOldLog" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13150 }
13151 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
13159 return resultobj;
13160fail:
13161 return NULL;
d14a1e28
RD
13162}
13163
13164
0085ce49
RD
13165SWIGINTERN PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13166 PyObject *resultobj = 0;
13167 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13168 bool result;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 PyObject *swig_obj[1] ;
13172
13173 if (!args) SWIG_fail;
13174 swig_obj[0] = args;
13175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13176 if (!SWIG_IsOK(res1)) {
13177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_IsPassingMessages" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13178 }
13179 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 {
13187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13188 }
13189 return resultobj;
13190fail:
13191 return NULL;
13192}
13193
13194
13195SWIGINTERN PyObject *_wrap_LogWindow_PassMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj = 0;
13197 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13198 bool arg2 ;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 bool val2 ;
13202 int ecode2 = 0 ;
13203 PyObject * obj0 = 0 ;
13204 PyObject * obj1 = 0 ;
13205 char * kwnames[] = {
13206 (char *) "self",(char *) "bDoPass", NULL
13207 };
13208
13209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) SWIG_fail;
13210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13211 if (!SWIG_IsOK(res1)) {
13212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_PassMessages" "', expected argument " "1"" of type '" "wxLogWindow *""'");
13213 }
13214 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13215 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13216 if (!SWIG_IsOK(ecode2)) {
13217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogWindow_PassMessages" "', expected argument " "2"" of type '" "bool""'");
13218 }
13219 arg2 = static_cast< bool >(val2);
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 (arg1)->PassMessages(arg2);
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 resultobj = SWIG_Py_Void();
13227 return resultobj;
13228fail:
13229 return NULL;
d14a1e28
RD
13230}
13231
13232
0085ce49
RD
13233SWIGINTERN PyObject *LogWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13234 PyObject *obj;
13235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13236 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogWindow, SWIG_NewClientData(obj));
13237 return SWIG_Py_Void();
d14a1e28
RD
13238}
13239
0085ce49
RD
13240SWIGINTERN PyObject *LogWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13241 return SWIG_Python_InitShadowInstance(args);
13242}
d14a1e28 13243
0085ce49
RD
13244SWIGINTERN PyObject *_wrap_new_LogChain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj = 0;
13246 wxLog *arg1 = (wxLog *) 0 ;
13247 wxLogChain *result = 0 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 PyObject * obj0 = 0 ;
13251 char * kwnames[] = {
13252 (char *) "logger", NULL
13253 };
13254
13255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) SWIG_fail;
13256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
13257 if (!SWIG_IsOK(res1)) {
13258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogChain" "', expected argument " "1"" of type '" "wxLog *""'");
13259 }
13260 arg1 = reinterpret_cast< wxLog * >(argp1);
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (wxLogChain *)new wxLogChain(arg1);
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogChain, SWIG_POINTER_NEW | 0 );
13268 return resultobj;
13269fail:
13270 return NULL;
13271}
13272
13273
13274SWIGINTERN PyObject *_wrap_LogChain_SetLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj = 0;
13276 wxLogChain *arg1 = (wxLogChain *) 0 ;
13277 wxLog *arg2 = (wxLog *) 0 ;
13278 void *argp1 = 0 ;
13279 int res1 = 0 ;
13280 void *argp2 = 0 ;
13281 int res2 = 0 ;
13282 PyObject * obj0 = 0 ;
13283 PyObject * obj1 = 0 ;
13284 char * kwnames[] = {
13285 (char *) "self",(char *) "logger", NULL
13286 };
13287
13288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) SWIG_fail;
13289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13290 if (!SWIG_IsOK(res1)) {
13291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_SetLog" "', expected argument " "1"" of type '" "wxLogChain *""'");
13292 }
13293 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxLog, 0 | 0 );
13295 if (!SWIG_IsOK(res2)) {
13296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LogChain_SetLog" "', expected argument " "2"" of type '" "wxLog *""'");
13297 }
13298 arg2 = reinterpret_cast< wxLog * >(argp2);
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 (arg1)->SetLog(arg2);
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_Py_Void();
13306 return resultobj;
13307fail:
13308 return NULL;
13309}
13310
13311
13312SWIGINTERN PyObject *_wrap_LogChain_PassMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj = 0;
13314 wxLogChain *arg1 = (wxLogChain *) 0 ;
13315 bool arg2 ;
13316 void *argp1 = 0 ;
13317 int res1 = 0 ;
13318 bool val2 ;
13319 int ecode2 = 0 ;
13320 PyObject * obj0 = 0 ;
13321 PyObject * obj1 = 0 ;
13322 char * kwnames[] = {
13323 (char *) "self",(char *) "bDoPass", NULL
13324 };
13325
13326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) SWIG_fail;
13327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13328 if (!SWIG_IsOK(res1)) {
13329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_PassMessages" "', expected argument " "1"" of type '" "wxLogChain *""'");
13330 }
13331 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13332 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13333 if (!SWIG_IsOK(ecode2)) {
13334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogChain_PassMessages" "', expected argument " "2"" of type '" "bool""'");
13335 }
13336 arg2 = static_cast< bool >(val2);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 (arg1)->PassMessages(arg2);
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 resultobj = SWIG_Py_Void();
13344 return resultobj;
13345fail:
13346 return NULL;
d14a1e28
RD
13347}
13348
13349
0085ce49
RD
13350SWIGINTERN PyObject *_wrap_LogChain_IsPassingMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13351 PyObject *resultobj = 0;
13352 wxLogChain *arg1 = (wxLogChain *) 0 ;
13353 bool result;
13354 void *argp1 = 0 ;
13355 int res1 = 0 ;
13356 PyObject *swig_obj[1] ;
13357
13358 if (!args) SWIG_fail;
13359 swig_obj[0] = args;
13360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_IsPassingMessages" "', expected argument " "1"" of type '" "wxLogChain *""'");
13363 }
13364 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 result = (bool)(arg1)->IsPassingMessages();
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 {
13372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13373 }
13374 return resultobj;
13375fail:
13376 return NULL;
d14a1e28
RD
13377}
13378
13379
0085ce49
RD
13380SWIGINTERN PyObject *_wrap_LogChain_GetOldLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13381 PyObject *resultobj = 0;
13382 wxLogChain *arg1 = (wxLogChain *) 0 ;
13383 wxLog *result = 0 ;
13384 void *argp1 = 0 ;
13385 int res1 = 0 ;
13386 PyObject *swig_obj[1] ;
13387
13388 if (!args) SWIG_fail;
13389 swig_obj[0] = args;
13390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13391 if (!SWIG_IsOK(res1)) {
13392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_GetOldLog" "', expected argument " "1"" of type '" "wxLogChain *""'");
13393 }
13394 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13395 {
13396 PyThreadState* __tstate = wxPyBeginAllowThreads();
13397 result = (wxLog *)(arg1)->GetOldLog();
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
13402 return resultobj;
13403fail:
13404 return NULL;
d14a1e28
RD
13405}
13406
13407
0085ce49
RD
13408SWIGINTERN PyObject *LogChain_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13409 PyObject *obj;
13410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13411 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogChain, SWIG_NewClientData(obj));
13412 return SWIG_Py_Void();
d14a1e28
RD
13413}
13414
0085ce49
RD
13415SWIGINTERN PyObject *LogChain_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13416 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
13417}
13418
0085ce49
RD
13419SWIGINTERN PyObject *_wrap_new_LogBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13420 PyObject *resultobj = 0;
13421 wxLogBuffer *result = 0 ;
13422
13423 if (!SWIG_Python_UnpackTuple(args,"new_LogBuffer",0,0,0)) SWIG_fail;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (wxLogBuffer *)new wxLogBuffer();
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_NEW | 0 );
13431 return resultobj;
13432fail:
13433 return NULL;
d14a1e28
RD
13434}
13435
13436
0085ce49
RD
13437SWIGINTERN PyObject *_wrap_LogBuffer_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13438 PyObject *resultobj = 0;
13439 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
13440 wxString *result = 0 ;
13441 void *argp1 = 0 ;
13442 int res1 = 0 ;
13443 PyObject *swig_obj[1] ;
13444
13445 if (!args) SWIG_fail;
13446 swig_obj[0] = args;
13447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogBuffer, 0 | 0 );
13448 if (!SWIG_IsOK(res1)) {
13449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogBuffer_GetBuffer" "', expected argument " "1"" of type '" "wxLogBuffer const *""'");
13450 }
13451 arg1 = reinterpret_cast< wxLogBuffer * >(argp1);
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 13454 {
0085ce49
RD
13455 wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer();
13456 result = (wxString *) &_result_ref;
d14a1e28 13457 }
0085ce49
RD
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 {
13462#if wxUSE_UNICODE
13463 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13464#else
13465 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13466#endif
13467 }
13468 return resultobj;
13469fail:
13470 return NULL;
d14a1e28
RD
13471}
13472
13473
0085ce49
RD
13474SWIGINTERN PyObject *LogBuffer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *obj;
13476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13477 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogBuffer, SWIG_NewClientData(obj));
13478 return SWIG_Py_Void();
d14a1e28
RD
13479}
13480
0085ce49
RD
13481SWIGINTERN PyObject *LogBuffer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
13483}
13484
0085ce49
RD
13485SWIGINTERN PyObject *_wrap_SysErrorCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13486 PyObject *resultobj = 0;
13487 unsigned long result;
13488
13489 if (!SWIG_Python_UnpackTuple(args,"SysErrorCode",0,0,0)) SWIG_fail;
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (unsigned long)wxSysErrorCode();
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
13497 return resultobj;
13498fail:
13499 return NULL;
13500}
13501
13502
13503SWIGINTERN PyObject *_wrap_SysErrorMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj = 0;
13505 unsigned long arg1 = (unsigned long) 0 ;
13506 wxString result;
13507 unsigned long val1 ;
13508 int ecode1 = 0 ;
13509 PyObject * obj0 = 0 ;
13510 char * kwnames[] = {
13511 (char *) "nErrCode", NULL
13512 };
13513
13514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) SWIG_fail;
13515 if (obj0) {
13516 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
13517 if (!SWIG_IsOK(ecode1)) {
13518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SysErrorMsg" "', expected argument " "1"" of type '" "unsigned long""'");
13519 }
13520 arg1 = static_cast< unsigned long >(val1);
13521 }
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 result = wxSysErrorMsg(arg1);
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 {
13529#if wxUSE_UNICODE
13530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13531#else
13532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13533#endif
13534 }
13535 return resultobj;
13536fail:
13537 return NULL;
d14a1e28
RD
13538}
13539
13540
0085ce49
RD
13541SWIGINTERN PyObject *_wrap_LogFatalError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj = 0;
13543 wxString *arg1 = 0 ;
13544 bool temp1 = false ;
13545 PyObject * obj0 = 0 ;
13546 char * kwnames[] = {
13547 (char *) "msg", NULL
13548 };
13549
13550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) SWIG_fail;
13551 {
13552 arg1 = wxString_in_helper(obj0);
13553 if (arg1 == NULL) SWIG_fail;
13554 temp1 = true;
13555 }
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 wxPyLogFatalError((wxString const &)*arg1);
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = SWIG_Py_Void();
13563 {
13564 if (temp1)
13565 delete arg1;
13566 }
13567 return resultobj;
13568fail:
13569 {
13570 if (temp1)
13571 delete arg1;
13572 }
13573 return NULL;
d14a1e28
RD
13574}
13575
13576
0085ce49
RD
13577SWIGINTERN PyObject *_wrap_LogError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = 0;
13579 wxString *arg1 = 0 ;
13580 bool temp1 = false ;
13581 PyObject * obj0 = 0 ;
13582 char * kwnames[] = {
13583 (char *) "msg", NULL
13584 };
13585
13586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) SWIG_fail;
13587 {
13588 arg1 = wxString_in_helper(obj0);
13589 if (arg1 == NULL) SWIG_fail;
13590 temp1 = true;
13591 }
13592 {
13593 PyThreadState* __tstate = wxPyBeginAllowThreads();
13594 wxPyLogError((wxString const &)*arg1);
13595 wxPyEndAllowThreads(__tstate);
13596 if (PyErr_Occurred()) SWIG_fail;
13597 }
13598 resultobj = SWIG_Py_Void();
13599 {
13600 if (temp1)
13601 delete arg1;
13602 }
13603 return resultobj;
13604fail:
13605 {
13606 if (temp1)
13607 delete arg1;
13608 }
13609 return NULL;
d14a1e28
RD
13610}
13611
13612
0085ce49
RD
13613SWIGINTERN PyObject *_wrap_LogWarning(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13614 PyObject *resultobj = 0;
13615 wxString *arg1 = 0 ;
13616 bool temp1 = false ;
13617 PyObject * obj0 = 0 ;
13618 char * kwnames[] = {
13619 (char *) "msg", NULL
13620 };
13621
13622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) SWIG_fail;
13623 {
13624 arg1 = wxString_in_helper(obj0);
13625 if (arg1 == NULL) SWIG_fail;
13626 temp1 = true;
13627 }
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 wxPyLogWarning((wxString const &)*arg1);
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 resultobj = SWIG_Py_Void();
13635 {
13636 if (temp1)
13637 delete arg1;
13638 }
13639 return resultobj;
13640fail:
13641 {
13642 if (temp1)
13643 delete arg1;
13644 }
13645 return NULL;
d14a1e28
RD
13646}
13647
13648
0085ce49
RD
13649SWIGINTERN PyObject *_wrap_LogMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 wxString *arg1 = 0 ;
13652 bool temp1 = false ;
13653 PyObject * obj0 = 0 ;
13654 char * kwnames[] = {
13655 (char *) "msg", NULL
13656 };
13657
13658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) SWIG_fail;
13659 {
13660 arg1 = wxString_in_helper(obj0);
13661 if (arg1 == NULL) SWIG_fail;
13662 temp1 = true;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 wxPyLogMessage((wxString const &)*arg1);
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 resultobj = SWIG_Py_Void();
13671 {
13672 if (temp1)
13673 delete arg1;
13674 }
13675 return resultobj;
13676fail:
13677 {
13678 if (temp1)
13679 delete arg1;
13680 }
13681 return NULL;
d14a1e28
RD
13682}
13683
13684
0085ce49
RD
13685SWIGINTERN PyObject *_wrap_LogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13686 PyObject *resultobj = 0;
13687 wxString *arg1 = 0 ;
13688 bool temp1 = false ;
13689 PyObject * obj0 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "msg", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) SWIG_fail;
13695 {
13696 arg1 = wxString_in_helper(obj0);
13697 if (arg1 == NULL) SWIG_fail;
13698 temp1 = true;
13699 }
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 wxPyLogInfo((wxString const &)*arg1);
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 resultobj = SWIG_Py_Void();
13707 {
13708 if (temp1)
13709 delete arg1;
13710 }
13711 return resultobj;
13712fail:
13713 {
13714 if (temp1)
13715 delete arg1;
13716 }
13717 return NULL;
d14a1e28
RD
13718}
13719
13720
0085ce49
RD
13721SWIGINTERN PyObject *_wrap_LogDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxString *arg1 = 0 ;
13724 bool temp1 = false ;
13725 PyObject * obj0 = 0 ;
13726 char * kwnames[] = {
13727 (char *) "msg", NULL
13728 };
13729
13730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) SWIG_fail;
13731 {
13732 arg1 = wxString_in_helper(obj0);
13733 if (arg1 == NULL) SWIG_fail;
13734 temp1 = true;
13735 }
13736 {
13737 PyThreadState* __tstate = wxPyBeginAllowThreads();
13738 wxPyLogDebug((wxString const &)*arg1);
13739 wxPyEndAllowThreads(__tstate);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 resultobj = SWIG_Py_Void();
13743 {
13744 if (temp1)
13745 delete arg1;
13746 }
13747 return resultobj;
13748fail:
13749 {
13750 if (temp1)
13751 delete arg1;
13752 }
13753 return NULL;
d14a1e28
RD
13754}
13755
13756
0085ce49
RD
13757SWIGINTERN PyObject *_wrap_LogVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13758 PyObject *resultobj = 0;
13759 wxString *arg1 = 0 ;
13760 bool temp1 = false ;
13761 PyObject * obj0 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "msg", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) SWIG_fail;
13767 {
13768 arg1 = wxString_in_helper(obj0);
13769 if (arg1 == NULL) SWIG_fail;
13770 temp1 = true;
13771 }
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 wxPyLogVerbose((wxString const &)*arg1);
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
13778 resultobj = SWIG_Py_Void();
13779 {
13780 if (temp1)
13781 delete arg1;
13782 }
13783 return resultobj;
13784fail:
13785 {
13786 if (temp1)
13787 delete arg1;
13788 }
13789 return NULL;
d14a1e28
RD
13790}
13791
13792
0085ce49
RD
13793SWIGINTERN PyObject *_wrap_LogStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj = 0;
13795 wxString *arg1 = 0 ;
13796 bool temp1 = false ;
13797 PyObject * obj0 = 0 ;
13798 char * kwnames[] = {
13799 (char *) "msg", NULL
13800 };
13801
13802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) SWIG_fail;
13803 {
13804 arg1 = wxString_in_helper(obj0);
13805 if (arg1 == NULL) SWIG_fail;
13806 temp1 = true;
13807 }
13808 {
13809 PyThreadState* __tstate = wxPyBeginAllowThreads();
13810 wxPyLogStatus((wxString const &)*arg1);
13811 wxPyEndAllowThreads(__tstate);
13812 if (PyErr_Occurred()) SWIG_fail;
13813 }
13814 resultobj = SWIG_Py_Void();
13815 {
13816 if (temp1)
13817 delete arg1;
13818 }
13819 return resultobj;
13820fail:
13821 {
13822 if (temp1)
13823 delete arg1;
13824 }
13825 return NULL;
d14a1e28
RD
13826}
13827
13828
0085ce49
RD
13829SWIGINTERN PyObject *_wrap_LogStatusFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13830 PyObject *resultobj = 0;
13831 wxFrame *arg1 = (wxFrame *) 0 ;
13832 wxString *arg2 = 0 ;
13833 void *argp1 = 0 ;
13834 int res1 = 0 ;
13835 bool temp2 = false ;
13836 PyObject * obj0 = 0 ;
13837 PyObject * obj1 = 0 ;
13838 char * kwnames[] = {
13839 (char *) "pFrame",(char *) "msg", NULL
13840 };
13841
13842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) SWIG_fail;
13843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogStatusFrame" "', expected argument " "1"" of type '" "wxFrame *""'");
13846 }
13847 arg1 = reinterpret_cast< wxFrame * >(argp1);
13848 {
13849 arg2 = wxString_in_helper(obj1);
13850 if (arg2 == NULL) SWIG_fail;
13851 temp2 = true;
13852 }
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_Py_Void();
13860 {
13861 if (temp2)
13862 delete arg2;
13863 }
13864 return resultobj;
13865fail:
13866 {
13867 if (temp2)
13868 delete arg2;
13869 }
13870 return NULL;
d14a1e28
RD
13871}
13872
13873
0085ce49
RD
13874SWIGINTERN PyObject *_wrap_LogSysError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13875 PyObject *resultobj = 0;
13876 wxString *arg1 = 0 ;
13877 bool temp1 = false ;
13878 PyObject * obj0 = 0 ;
13879 char * kwnames[] = {
13880 (char *) "msg", NULL
13881 };
13882
13883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) SWIG_fail;
13884 {
13885 arg1 = wxString_in_helper(obj0);
13886 if (arg1 == NULL) SWIG_fail;
13887 temp1 = true;
13888 }
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 wxPyLogSysError((wxString const &)*arg1);
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_Py_Void();
13896 {
13897 if (temp1)
13898 delete arg1;
13899 }
13900 return resultobj;
13901fail:
13902 {
13903 if (temp1)
13904 delete arg1;
13905 }
13906 return NULL;
d14a1e28
RD
13907}
13908
13909
0085ce49
RD
13910SWIGINTERN PyObject *_wrap_LogGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13911 PyObject *resultobj = 0;
13912 unsigned long arg1 ;
13913 wxString *arg2 = 0 ;
13914 unsigned long val1 ;
13915 int ecode1 = 0 ;
13916 bool temp2 = false ;
13917 PyObject * obj0 = 0 ;
13918 PyObject * obj1 = 0 ;
13919 char * kwnames[] = {
13920 (char *) "level",(char *) "msg", NULL
13921 };
13922
13923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) SWIG_fail;
13924 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
13925 if (!SWIG_IsOK(ecode1)) {
13926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "LogGeneric" "', expected argument " "1"" of type '" "unsigned long""'");
13927 }
13928 arg1 = static_cast< unsigned long >(val1);
13929 {
13930 arg2 = wxString_in_helper(obj1);
13931 if (arg2 == NULL) SWIG_fail;
13932 temp2 = true;
13933 }
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
13936 wxPyLogGeneric(arg1,(wxString const &)*arg2);
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 resultobj = SWIG_Py_Void();
13941 {
13942 if (temp2)
13943 delete arg2;
13944 }
13945 return resultobj;
13946fail:
13947 {
13948 if (temp2)
13949 delete arg2;
13950 }
13951 return NULL;
d14a1e28
RD
13952}
13953
13954
0085ce49
RD
13955SWIGINTERN PyObject *_wrap_LogTrace__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13956 PyObject *resultobj = 0;
13957 unsigned long arg1 ;
13958 wxString *arg2 = 0 ;
13959 unsigned long val1 ;
13960 int ecode1 = 0 ;
13961 bool temp2 = false ;
13962
13963 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13964 ecode1 = SWIG_AsVal_unsigned_SS_long(swig_obj[0], &val1);
13965 if (!SWIG_IsOK(ecode1)) {
13966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "LogTrace" "', expected argument " "1"" of type '" "unsigned long""'");
13967 }
13968 arg1 = static_cast< unsigned long >(val1);
13969 {
13970 arg2 = wxString_in_helper(swig_obj[1]);
13971 if (arg2 == NULL) SWIG_fail;
13972 temp2 = true;
13973 }
13974 {
13975 PyThreadState* __tstate = wxPyBeginAllowThreads();
13976 wxPyLogTrace(arg1,(wxString const &)*arg2);
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 resultobj = SWIG_Py_Void();
13981 {
13982 if (temp2)
13983 delete arg2;
13984 }
13985 return resultobj;
13986fail:
13987 {
13988 if (temp2)
13989 delete arg2;
13990 }
13991 return NULL;
d14a1e28
RD
13992}
13993
13994
0085ce49
RD
13995SWIGINTERN PyObject *_wrap_LogTrace__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13996 PyObject *resultobj = 0;
13997 wxString *arg1 = 0 ;
13998 wxString *arg2 = 0 ;
13999 bool temp1 = false ;
14000 bool temp2 = false ;
14001
14002 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
14003 {
14004 arg1 = wxString_in_helper(swig_obj[0]);
14005 if (arg1 == NULL) SWIG_fail;
14006 temp1 = true;
14007 }
14008 {
14009 arg2 = wxString_in_helper(swig_obj[1]);
14010 if (arg2 == NULL) SWIG_fail;
14011 temp2 = true;
14012 }
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 resultobj = SWIG_Py_Void();
14020 {
14021 if (temp1)
14022 delete arg1;
14023 }
14024 {
14025 if (temp2)
14026 delete arg2;
14027 }
14028 return resultobj;
14029fail:
14030 {
14031 if (temp1)
14032 delete arg1;
14033 }
14034 {
14035 if (temp2)
14036 delete arg2;
14037 }
14038 return NULL;
d14a1e28
RD
14039}
14040
14041
0085ce49
RD
14042SWIGINTERN PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
14043 int argc;
14044 PyObject *argv[3];
14045
14046 if (!(argc = SWIG_Python_UnpackTuple(args,"LogTrace",0,2,argv))) SWIG_fail;
14047 --argc;
14048 if (argc == 2) {
14049 int _v = 0;
d14a1e28 14050 {
0085ce49
RD
14051 {
14052 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
14053 }
d14a1e28 14054 }
0085ce49
RD
14055 if (!_v) goto check_1;
14056 return _wrap_LogTrace__SWIG_1(self, argc, argv);
14057 }
14058check_1:
14059
14060 if (argc == 2) {
14061 return _wrap_LogTrace__SWIG_0(self, argc, argv);
14062 }
14063
14064fail:
14065 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'");
14066 return NULL;
14067}
14068
14069
14070SWIGINTERN PyObject *_wrap_SafeShowMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj = 0;
14072 wxString *arg1 = 0 ;
14073 wxString *arg2 = 0 ;
14074 bool temp1 = false ;
14075 bool temp2 = false ;
14076 PyObject * obj0 = 0 ;
14077 PyObject * obj1 = 0 ;
14078 char * kwnames[] = {
14079 (char *) "title",(char *) "text", NULL
14080 };
14081
14082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) SWIG_fail;
14083 {
14084 arg1 = wxString_in_helper(obj0);
14085 if (arg1 == NULL) SWIG_fail;
14086 temp1 = true;
14087 }
14088 {
14089 arg2 = wxString_in_helper(obj1);
14090 if (arg2 == NULL) SWIG_fail;
14091 temp2 = true;
14092 }
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_Py_Void();
14100 {
14101 if (temp1)
14102 delete arg1;
14103 }
14104 {
14105 if (temp2)
14106 delete arg2;
14107 }
14108 return resultobj;
14109fail:
14110 {
14111 if (temp1)
14112 delete arg1;
14113 }
14114 {
14115 if (temp2)
14116 delete arg2;
14117 }
14118 return NULL;
d14a1e28
RD
14119}
14120
14121
0085ce49
RD
14122SWIGINTERN PyObject *_wrap_new_LogNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14123 PyObject *resultobj = 0;
14124 wxLogNull *result = 0 ;
14125
14126 if (!SWIG_Python_UnpackTuple(args,"new_LogNull",0,0,0)) SWIG_fail;
14127 {
14128 PyThreadState* __tstate = wxPyBeginAllowThreads();
14129 result = (wxLogNull *)new wxLogNull();
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogNull, SWIG_POINTER_NEW | 0 );
14134 return resultobj;
14135fail:
14136 return NULL;
d14a1e28
RD
14137}
14138
14139
0085ce49
RD
14140SWIGINTERN PyObject *_wrap_delete_LogNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14141 PyObject *resultobj = 0;
14142 wxLogNull *arg1 = (wxLogNull *) 0 ;
14143 void *argp1 = 0 ;
14144 int res1 = 0 ;
14145 PyObject *swig_obj[1] ;
14146
14147 if (!args) SWIG_fail;
14148 swig_obj[0] = args;
14149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogNull, SWIG_POINTER_DISOWN | 0 );
14150 if (!SWIG_IsOK(res1)) {
14151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogNull" "', expected argument " "1"" of type '" "wxLogNull *""'");
14152 }
14153 arg1 = reinterpret_cast< wxLogNull * >(argp1);
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 delete arg1;
d14a1e28 14157
0085ce49
RD
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 resultobj = SWIG_Py_Void();
14162 return resultobj;
14163fail:
14164 return NULL;
d14a1e28
RD
14165}
14166
14167
0085ce49
RD
14168SWIGINTERN PyObject *LogNull_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14169 PyObject *obj;
14170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14171 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogNull, SWIG_NewClientData(obj));
14172 return SWIG_Py_Void();
d14a1e28
RD
14173}
14174
0085ce49
RD
14175SWIGINTERN PyObject *LogNull_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14176 return SWIG_Python_InitShadowInstance(args);
14177}
d14a1e28 14178
0085ce49
RD
14179SWIGINTERN PyObject *_wrap_new_PyLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14180 PyObject *resultobj = 0;
14181 wxPyLog *result = 0 ;
14182
14183 if (!SWIG_Python_UnpackTuple(args,"new_PyLog",0,0,0)) SWIG_fail;
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = (wxPyLog *)new wxPyLog();
14187 wxPyEndAllowThreads(__tstate);
14188 if (PyErr_Occurred()) SWIG_fail;
14189 }
14190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLog, SWIG_POINTER_NEW | 0 );
14191 return resultobj;
14192fail:
14193 return NULL;
14194}
14195
14196
14197SWIGINTERN PyObject *_wrap_PyLog__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14198 PyObject *resultobj = 0;
14199 wxPyLog *arg1 = (wxPyLog *) 0 ;
14200 PyObject *arg2 = (PyObject *) 0 ;
14201 PyObject *arg3 = (PyObject *) 0 ;
14202 void *argp1 = 0 ;
14203 int res1 = 0 ;
14204 PyObject * obj0 = 0 ;
14205 PyObject * obj1 = 0 ;
14206 PyObject * obj2 = 0 ;
14207 char * kwnames[] = {
14208 (char *) "self",(char *) "self",(char *) "_class", NULL
14209 };
14210
14211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLog, 0 | 0 );
14213 if (!SWIG_IsOK(res1)) {
14214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLog__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLog *""'");
14215 }
14216 arg1 = reinterpret_cast< wxPyLog * >(argp1);
14217 arg2 = obj1;
14218 arg3 = obj2;
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 (arg1)->_setCallbackInfo(arg2,arg3);
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 resultobj = SWIG_Py_Void();
14226 return resultobj;
14227fail:
14228 return NULL;
14229}
14230
14231
14232SWIGINTERN PyObject *PyLog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14233 PyObject *obj;
14234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14235 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLog, SWIG_NewClientData(obj));
14236 return SWIG_Py_Void();
14237}
14238
14239SWIGINTERN PyObject *PyLog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14240 return SWIG_Python_InitShadowInstance(args);
14241}
14242
14243SWIGINTERN PyObject *_wrap_Process_Kill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj = 0;
14245 int arg1 ;
14246 wxSignal arg2 = (wxSignal) wxSIGTERM ;
14247 int arg3 = (int) wxKILL_NOCHILDREN ;
14248 wxKillError result;
14249 int val1 ;
14250 int ecode1 = 0 ;
14251 int val2 ;
14252 int ecode2 = 0 ;
14253 int val3 ;
14254 int ecode3 = 0 ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 PyObject * obj2 = 0 ;
14258 char * kwnames[] = {
14259 (char *) "pid",(char *) "sig",(char *) "flags", NULL
14260 };
14261
14262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14263 ecode1 = SWIG_AsVal_int(obj0, &val1);
14264 if (!SWIG_IsOK(ecode1)) {
14265 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Process_Kill" "', expected argument " "1"" of type '" "int""'");
14266 }
14267 arg1 = static_cast< int >(val1);
14268 if (obj1) {
14269 ecode2 = SWIG_AsVal_int(obj1, &val2);
14270 if (!SWIG_IsOK(ecode2)) {
14271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_Kill" "', expected argument " "2"" of type '" "wxSignal""'");
14272 }
14273 arg2 = static_cast< wxSignal >(val2);
14274 }
14275 if (obj2) {
14276 ecode3 = SWIG_AsVal_int(obj2, &val3);
14277 if (!SWIG_IsOK(ecode3)) {
14278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Process_Kill" "', expected argument " "3"" of type '" "int""'");
14279 }
14280 arg3 = static_cast< int >(val3);
14281 }
14282 {
14283 PyThreadState* __tstate = wxPyBeginAllowThreads();
14284 result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3);
14285 wxPyEndAllowThreads(__tstate);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 }
14288 resultobj = SWIG_From_int(static_cast< int >(result));
14289 return resultobj;
14290fail:
14291 return NULL;
14292}
14293
14294
14295SWIGINTERN PyObject *_wrap_Process_Exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14296 PyObject *resultobj = 0;
14297 int arg1 ;
14298 bool result;
14299 int val1 ;
14300 int ecode1 = 0 ;
14301 PyObject * obj0 = 0 ;
14302 char * kwnames[] = {
14303 (char *) "pid", NULL
14304 };
14305
14306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) SWIG_fail;
14307 ecode1 = SWIG_AsVal_int(obj0, &val1);
14308 if (!SWIG_IsOK(ecode1)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Process_Exists" "', expected argument " "1"" of type '" "int""'");
14310 }
14311 arg1 = static_cast< int >(val1);
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (bool)wxPyProcess::Exists(arg1);
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14320 }
14321 return resultobj;
14322fail:
14323 return NULL;
14324}
14325
14326
14327SWIGINTERN PyObject *_wrap_Process_Open(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj = 0;
14329 wxString *arg1 = 0 ;
14330 int arg2 = (int) wxEXEC_ASYNC ;
14331 wxPyProcess *result = 0 ;
14332 bool temp1 = false ;
14333 int val2 ;
14334 int ecode2 = 0 ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 char * kwnames[] = {
14338 (char *) "cmd",(char *) "flags", NULL
14339 };
14340
14341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) SWIG_fail;
14342 {
14343 arg1 = wxString_in_helper(obj0);
14344 if (arg1 == NULL) SWIG_fail;
14345 temp1 = true;
14346 }
14347 if (obj1) {
14348 ecode2 = SWIG_AsVal_int(obj1, &val2);
14349 if (!SWIG_IsOK(ecode2)) {
14350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_Open" "', expected argument " "2"" of type '" "int""'");
14351 }
14352 arg2 = static_cast< int >(val2);
14353 }
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyProcess, 0 | 0 );
14361 {
14362 if (temp1)
14363 delete arg1;
14364 }
14365 return resultobj;
14366fail:
14367 {
14368 if (temp1)
14369 delete arg1;
14370 }
14371 return NULL;
14372}
14373
14374
14375SWIGINTERN PyObject *_wrap_new_Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
14378 int arg2 = (int) -1 ;
14379 wxPyProcess *result = 0 ;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 int val2 ;
14383 int ecode2 = 0 ;
14384 PyObject * obj0 = 0 ;
14385 PyObject * obj1 = 0 ;
14386 char * kwnames[] = {
14387 (char *) "parent",(char *) "id", NULL
14388 };
14389
14390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) SWIG_fail;
14391 if (obj0) {
14392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
14393 if (!SWIG_IsOK(res1)) {
14394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Process" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
d14a1e28 14395 }
0085ce49
RD
14396 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
14397 }
14398 if (obj1) {
14399 ecode2 = SWIG_AsVal_int(obj1, &val2);
14400 if (!SWIG_IsOK(ecode2)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Process" "', expected argument " "2"" of type '" "int""'");
14402 }
14403 arg2 = static_cast< int >(val2);
14404 }
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyProcess, SWIG_POINTER_NEW | 0 );
14412 return resultobj;
14413fail:
14414 return NULL;
14415}
14416
14417
14418SWIGINTERN PyObject *_wrap_Process__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj = 0;
14420 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14421 PyObject *arg2 = (PyObject *) 0 ;
14422 PyObject *arg3 = (PyObject *) 0 ;
14423 void *argp1 = 0 ;
14424 int res1 = 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 PyObject * obj2 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "self",(char *) "self",(char *) "_class", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14434 if (!SWIG_IsOK(res1)) {
14435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14436 }
14437 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14438 arg2 = obj1;
14439 arg3 = obj2;
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 (arg1)->_setCallbackInfo(arg2,arg3);
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 resultobj = SWIG_Py_Void();
14447 return resultobj;
14448fail:
14449 return NULL;
14450}
14451
14452
14453SWIGINTERN PyObject *_wrap_Process_OnTerminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj = 0;
14455 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14456 int arg2 ;
14457 int arg3 ;
14458 void *argp1 = 0 ;
14459 int res1 = 0 ;
14460 int val2 ;
14461 int ecode2 = 0 ;
14462 int val3 ;
14463 int ecode3 = 0 ;
14464 PyObject * obj0 = 0 ;
14465 PyObject * obj1 = 0 ;
14466 PyObject * obj2 = 0 ;
14467 char * kwnames[] = {
14468 (char *) "self",(char *) "pid",(char *) "status", NULL
14469 };
14470
14471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_OnTerminate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14473 if (!SWIG_IsOK(res1)) {
14474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_OnTerminate" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14475 }
14476 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14477 ecode2 = SWIG_AsVal_int(obj1, &val2);
14478 if (!SWIG_IsOK(ecode2)) {
14479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_OnTerminate" "', expected argument " "2"" of type '" "int""'");
14480 }
14481 arg2 = static_cast< int >(val2);
14482 ecode3 = SWIG_AsVal_int(obj2, &val3);
14483 if (!SWIG_IsOK(ecode3)) {
14484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Process_OnTerminate" "', expected argument " "3"" of type '" "int""'");
14485 }
14486 arg3 = static_cast< int >(val3);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 (arg1)->OnTerminate(arg2,arg3);
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_Py_Void();
14494 return resultobj;
14495fail:
14496 return NULL;
d14a1e28
RD
14497}
14498
14499
0085ce49
RD
14500SWIGINTERN PyObject *_wrap_Process_Redirect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14501 PyObject *resultobj = 0;
14502 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14503 void *argp1 = 0 ;
14504 int res1 = 0 ;
14505 PyObject *swig_obj[1] ;
14506
14507 if (!args) SWIG_fail;
14508 swig_obj[0] = args;
14509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14510 if (!SWIG_IsOK(res1)) {
14511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_Redirect" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14512 }
14513 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 (arg1)->Redirect();
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 resultobj = SWIG_Py_Void();
14521 return resultobj;
14522fail:
14523 return NULL;
d14a1e28
RD
14524}
14525
14526
0085ce49
RD
14527SWIGINTERN PyObject *_wrap_Process_IsRedirected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14528 PyObject *resultobj = 0;
14529 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14530 bool result;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 PyObject *swig_obj[1] ;
14534
14535 if (!args) SWIG_fail;
14536 swig_obj[0] = args;
14537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsRedirected" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14540 }
14541 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (bool)(arg1)->IsRedirected();
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 {
14549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14550 }
14551 return resultobj;
14552fail:
14553 return NULL;
d14a1e28
RD
14554}
14555
14556
0085ce49
RD
14557SWIGINTERN PyObject *_wrap_Process_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14558 PyObject *resultobj = 0;
14559 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14560 void *argp1 = 0 ;
14561 int res1 = 0 ;
14562 PyObject *swig_obj[1] ;
14563
14564 if (!args) SWIG_fail;
14565 swig_obj[0] = args;
14566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14567 if (!SWIG_IsOK(res1)) {
14568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_Detach" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14569 }
14570 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14571 {
14572 PyThreadState* __tstate = wxPyBeginAllowThreads();
14573 (arg1)->Detach();
14574 wxPyEndAllowThreads(__tstate);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 }
14577 resultobj = SWIG_Py_Void();
14578 return resultobj;
14579fail:
14580 return NULL;
d14a1e28
RD
14581}
14582
14583
0085ce49
RD
14584SWIGINTERN PyObject *_wrap_Process_GetInputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14585 PyObject *resultobj = 0;
14586 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14587 wxInputStream *result = 0 ;
14588 void *argp1 = 0 ;
14589 int res1 = 0 ;
14590 PyObject *swig_obj[1] ;
14591
14592 if (!args) SWIG_fail;
14593 swig_obj[0] = args;
14594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14595 if (!SWIG_IsOK(res1)) {
14596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetInputStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14597 }
14598 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 result = (wxInputStream *)(arg1)->GetInputStream();
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 {
14606 wxPyInputStream * _ptr = NULL;
53307de4 14607
0085ce49
RD
14608 if (result) {
14609 _ptr = new wxPyInputStream(result);
53307de4 14610 }
0085ce49
RD
14611 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
14612 }
14613 return resultobj;
14614fail:
14615 return NULL;
53307de4
RD
14616}
14617
14618
0085ce49
RD
14619SWIGINTERN PyObject *_wrap_Process_GetErrorStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14622 wxInputStream *result = 0 ;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 PyObject *swig_obj[1] ;
14626
14627 if (!args) SWIG_fail;
14628 swig_obj[0] = args;
14629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetErrorStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14632 }
14633 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (wxInputStream *)(arg1)->GetErrorStream();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 {
14641 wxPyInputStream * _ptr = NULL;
53307de4 14642
0085ce49
RD
14643 if (result) {
14644 _ptr = new wxPyInputStream(result);
53307de4 14645 }
0085ce49
RD
14646 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
14647 }
14648 return resultobj;
14649fail:
14650 return NULL;
53307de4
RD
14651}
14652
14653
0085ce49
RD
14654SWIGINTERN PyObject *_wrap_Process_GetOutputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14655 PyObject *resultobj = 0;
14656 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14657 wxOutputStream *result = 0 ;
14658 void *argp1 = 0 ;
14659 int res1 = 0 ;
14660 PyObject *swig_obj[1] ;
14661
14662 if (!args) SWIG_fail;
14663 swig_obj[0] = args;
14664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14665 if (!SWIG_IsOK(res1)) {
14666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetOutputStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14667 }
14668 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 result = (wxOutputStream *)(arg1)->GetOutputStream();
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOutputStream, 0 | 0 );
14676 return resultobj;
14677fail:
14678 return NULL;
53307de4
RD
14679}
14680
14681
0085ce49
RD
14682SWIGINTERN PyObject *_wrap_Process_CloseOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14683 PyObject *resultobj = 0;
14684 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14685 void *argp1 = 0 ;
14686 int res1 = 0 ;
14687 PyObject *swig_obj[1] ;
14688
14689 if (!args) SWIG_fail;
14690 swig_obj[0] = args;
14691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14692 if (!SWIG_IsOK(res1)) {
14693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_CloseOutput" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14694 }
14695 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 (arg1)->CloseOutput();
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 resultobj = SWIG_Py_Void();
14703 return resultobj;
14704fail:
14705 return NULL;
d14a1e28
RD
14706}
14707
14708
0085ce49
RD
14709SWIGINTERN PyObject *_wrap_Process_IsInputOpened(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14710 PyObject *resultobj = 0;
14711 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14712 bool result;
14713 void *argp1 = 0 ;
14714 int res1 = 0 ;
14715 PyObject *swig_obj[1] ;
14716
14717 if (!args) SWIG_fail;
14718 swig_obj[0] = args;
14719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14720 if (!SWIG_IsOK(res1)) {
14721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsInputOpened" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14722 }
14723 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 {
14731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14732 }
14733 return resultobj;
14734fail:
14735 return NULL;
d14a1e28
RD
14736}
14737
14738
0085ce49
RD
14739SWIGINTERN PyObject *_wrap_Process_IsInputAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14740 PyObject *resultobj = 0;
14741 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14742 bool result;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 PyObject *swig_obj[1] ;
14746
14747 if (!args) SWIG_fail;
14748 swig_obj[0] = args;
14749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14750 if (!SWIG_IsOK(res1)) {
14751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsInputAvailable" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14752 }
14753 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 {
14761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14762 }
14763 return resultobj;
14764fail:
14765 return NULL;
d14a1e28
RD
14766}
14767
14768
0085ce49
RD
14769SWIGINTERN PyObject *_wrap_Process_IsErrorAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14770 PyObject *resultobj = 0;
14771 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14772 bool result;
14773 void *argp1 = 0 ;
14774 int res1 = 0 ;
14775 PyObject *swig_obj[1] ;
14776
14777 if (!args) SWIG_fail;
14778 swig_obj[0] = args;
14779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14780 if (!SWIG_IsOK(res1)) {
14781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsErrorAvailable" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14782 }
14783 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14784 {
14785 PyThreadState* __tstate = wxPyBeginAllowThreads();
14786 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 {
14791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14792 }
14793 return resultobj;
14794fail:
14795 return NULL;
14796}
14797
14798
14799SWIGINTERN PyObject *Process_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14800 PyObject *obj;
14801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14802 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyProcess, SWIG_NewClientData(obj));
14803 return SWIG_Py_Void();
14804}
14805
14806SWIGINTERN PyObject *Process_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14807 return SWIG_Python_InitShadowInstance(args);
14808}
14809
14810SWIGINTERN PyObject *_wrap_new_ProcessEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14811 PyObject *resultobj = 0;
14812 int arg1 = (int) 0 ;
14813 int arg2 = (int) 0 ;
14814 int arg3 = (int) 0 ;
14815 wxProcessEvent *result = 0 ;
14816 int val1 ;
14817 int ecode1 = 0 ;
14818 int val2 ;
14819 int ecode2 = 0 ;
14820 int val3 ;
14821 int ecode3 = 0 ;
14822 PyObject * obj0 = 0 ;
14823 PyObject * obj1 = 0 ;
14824 PyObject * obj2 = 0 ;
14825 char * kwnames[] = {
14826 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
14827 };
14828
14829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14830 if (obj0) {
14831 ecode1 = SWIG_AsVal_int(obj0, &val1);
14832 if (!SWIG_IsOK(ecode1)) {
14833 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ProcessEvent" "', expected argument " "1"" of type '" "int""'");
14834 }
14835 arg1 = static_cast< int >(val1);
14836 }
14837 if (obj1) {
14838 ecode2 = SWIG_AsVal_int(obj1, &val2);
14839 if (!SWIG_IsOK(ecode2)) {
14840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ProcessEvent" "', expected argument " "2"" of type '" "int""'");
14841 }
14842 arg2 = static_cast< int >(val2);
14843 }
14844 if (obj2) {
14845 ecode3 = SWIG_AsVal_int(obj2, &val3);
14846 if (!SWIG_IsOK(ecode3)) {
14847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProcessEvent" "', expected argument " "3"" of type '" "int""'");
14848 }
14849 arg3 = static_cast< int >(val3);
14850 }
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_NEW | 0 );
14858 return resultobj;
14859fail:
14860 return NULL;
d14a1e28
RD
14861}
14862
14863
0085ce49
RD
14864SWIGINTERN PyObject *_wrap_ProcessEvent_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14865 PyObject *resultobj = 0;
14866 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14867 int result;
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 PyObject *swig_obj[1] ;
14871
14872 if (!args) SWIG_fail;
14873 swig_obj[0] = args;
14874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14875 if (!SWIG_IsOK(res1)) {
14876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_GetPid" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14877 }
14878 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (int)(arg1)->GetPid();
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 resultobj = SWIG_From_int(static_cast< int >(result));
14886 return resultobj;
14887fail:
14888 return NULL;
d14a1e28
RD
14889}
14890
14891
0085ce49
RD
14892SWIGINTERN PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14893 PyObject *resultobj = 0;
14894 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14895 int result;
14896 void *argp1 = 0 ;
14897 int res1 = 0 ;
14898 PyObject *swig_obj[1] ;
14899
14900 if (!args) SWIG_fail;
14901 swig_obj[0] = args;
14902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14903 if (!SWIG_IsOK(res1)) {
14904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_GetExitCode" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14905 }
14906 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14907 {
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
14909 result = (int)(arg1)->GetExitCode();
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 resultobj = SWIG_From_int(static_cast< int >(result));
14914 return resultobj;
14915fail:
14916 return NULL;
14917}
14918
14919
14920SWIGINTERN PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14921 PyObject *resultobj = 0;
14922 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14923 int arg2 ;
14924 void *argp1 = 0 ;
14925 int res1 = 0 ;
14926 int val2 ;
14927 int ecode2 = 0 ;
14928 PyObject *swig_obj[2] ;
14929
14930 if (!SWIG_Python_UnpackTuple(args,"ProcessEvent_m_pid_set",2,2,swig_obj)) SWIG_fail;
14931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14932 if (!SWIG_IsOK(res1)) {
14933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_pid_set" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14934 }
14935 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14936 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14937 if (!SWIG_IsOK(ecode2)) {
14938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProcessEvent_m_pid_set" "', expected argument " "2"" of type '" "int""'");
14939 }
14940 arg2 = static_cast< int >(val2);
14941 if (arg1) (arg1)->m_pid = arg2;
14942
14943 resultobj = SWIG_Py_Void();
14944 return resultobj;
14945fail:
14946 return NULL;
d14a1e28
RD
14947}
14948
14949
0085ce49
RD
14950SWIGINTERN PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14951 PyObject *resultobj = 0;
14952 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14953 int result;
14954 void *argp1 = 0 ;
14955 int res1 = 0 ;
14956 PyObject *swig_obj[1] ;
14957
14958 if (!args) SWIG_fail;
14959 swig_obj[0] = args;
14960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_pid_get" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14963 }
14964 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14965 result = (int) ((arg1)->m_pid);
14966 resultobj = SWIG_From_int(static_cast< int >(result));
14967 return resultobj;
14968fail:
14969 return NULL;
14970}
14971
14972
14973SWIGINTERN PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14974 PyObject *resultobj = 0;
14975 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14976 int arg2 ;
14977 void *argp1 = 0 ;
14978 int res1 = 0 ;
14979 int val2 ;
14980 int ecode2 = 0 ;
14981 PyObject *swig_obj[2] ;
14982
14983 if (!SWIG_Python_UnpackTuple(args,"ProcessEvent_m_exitcode_set",2,2,swig_obj)) SWIG_fail;
14984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_exitcode_set" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14987 }
14988 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14989 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14990 if (!SWIG_IsOK(ecode2)) {
14991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProcessEvent_m_exitcode_set" "', expected argument " "2"" of type '" "int""'");
14992 }
14993 arg2 = static_cast< int >(val2);
14994 if (arg1) (arg1)->m_exitcode = arg2;
14995
14996 resultobj = SWIG_Py_Void();
14997 return resultobj;
14998fail:
14999 return NULL;
d14a1e28
RD
15000}
15001
15002
0085ce49
RD
15003SWIGINTERN PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15004 PyObject *resultobj = 0;
15005 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
15006 int result;
15007 void *argp1 = 0 ;
15008 int res1 = 0 ;
15009 PyObject *swig_obj[1] ;
15010
15011 if (!args) SWIG_fail;
15012 swig_obj[0] = args;
15013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
15014 if (!SWIG_IsOK(res1)) {
15015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_exitcode_get" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
15016 }
15017 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
15018 result = (int) ((arg1)->m_exitcode);
15019 resultobj = SWIG_From_int(static_cast< int >(result));
15020 return resultobj;
15021fail:
15022 return NULL;
15023}
15024
15025
15026SWIGINTERN PyObject *ProcessEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15027 PyObject *obj;
15028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15029 SWIG_TypeNewClientData(SWIGTYPE_p_wxProcessEvent, SWIG_NewClientData(obj));
15030 return SWIG_Py_Void();
15031}
15032
15033SWIGINTERN PyObject *ProcessEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 return SWIG_Python_InitShadowInstance(args);
15035}
15036
15037SWIGINTERN PyObject *_wrap_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj = 0;
15039 wxString *arg1 = 0 ;
15040 int arg2 = (int) wxEXEC_ASYNC ;
15041 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
15042 long result;
15043 bool temp1 = false ;
15044 int val2 ;
15045 int ecode2 = 0 ;
15046 void *argp3 = 0 ;
15047 int res3 = 0 ;
15048 PyObject * obj0 = 0 ;
15049 PyObject * obj1 = 0 ;
15050 PyObject * obj2 = 0 ;
15051 char * kwnames[] = {
15052 (char *) "command",(char *) "flags",(char *) "process", NULL
15053 };
15054
15055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15056 {
15057 arg1 = wxString_in_helper(obj0);
15058 if (arg1 == NULL) SWIG_fail;
15059 temp1 = true;
15060 }
15061 if (obj1) {
15062 ecode2 = SWIG_AsVal_int(obj1, &val2);
15063 if (!SWIG_IsOK(ecode2)) {
15064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Execute" "', expected argument " "2"" of type '" "int""'");
15065 }
15066 arg2 = static_cast< int >(val2);
15067 }
15068 if (obj2) {
15069 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyProcess, 0 | 0 );
15070 if (!SWIG_IsOK(res3)) {
15071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Execute" "', expected argument " "3"" of type '" "wxPyProcess *""'");
d14a1e28 15072 }
0085ce49
RD
15073 arg3 = reinterpret_cast< wxPyProcess * >(argp3);
15074 }
15075 {
15076 if (!wxPyCheckForApp()) SWIG_fail;
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_From_long(static_cast< long >(result));
15083 {
15084 if (temp1)
15085 delete arg1;
15086 }
15087 return resultobj;
15088fail:
15089 {
15090 if (temp1)
15091 delete arg1;
15092 }
15093 return NULL;
15094}
15095
15096
15097SWIGINTERN PyObject *_wrap_Kill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj = 0;
15099 long arg1 ;
15100 wxSignal arg2 = (wxSignal) wxSIGTERM ;
15101 wxKillError *arg3 = (wxKillError *) 0 ;
15102 int arg4 = (int) wxKILL_NOCHILDREN ;
15103 int result;
15104 long val1 ;
15105 int ecode1 = 0 ;
15106 int val2 ;
15107 int ecode2 = 0 ;
15108 wxKillError temp3 ;
15109 int val4 ;
15110 int ecode4 = 0 ;
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
15113 PyObject * obj2 = 0 ;
15114 char * kwnames[] = {
15115 (char *) "pid",(char *) "sig",(char *) "flags", NULL
15116 };
15117
15118 {
15119 arg3 = &temp3;
15120 }
15121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15122 ecode1 = SWIG_AsVal_long(obj0, &val1);
15123 if (!SWIG_IsOK(ecode1)) {
15124 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Kill" "', expected argument " "1"" of type '" "long""'");
15125 }
15126 arg1 = static_cast< long >(val1);
15127 if (obj1) {
15128 ecode2 = SWIG_AsVal_int(obj1, &val2);
15129 if (!SWIG_IsOK(ecode2)) {
15130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Kill" "', expected argument " "2"" of type '" "wxSignal""'");
15131 }
15132 arg2 = static_cast< wxSignal >(val2);
15133 }
15134 if (obj2) {
15135 ecode4 = SWIG_AsVal_int(obj2, &val4);
15136 if (!SWIG_IsOK(ecode4)) {
15137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Kill" "', expected argument " "4"" of type '" "int""'");
15138 }
15139 arg4 = static_cast< int >(val4);
15140 }
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 result = (int)wxKill(arg1,arg2,arg3,arg4);
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 resultobj = SWIG_From_int(static_cast< int >(result));
15148 {
15149 PyObject* o;
15150 o = PyInt_FromLong((long) (*arg3));
d14a1e28 15151
0085ce49
RD
15152
15153
15154 resultobj = SWIG_Python_AppendOutput(resultobj, o);
15155
15156 }
15157 return resultobj;
15158fail:
15159 return NULL;
d14a1e28
RD
15160}
15161
15162
0085ce49
RD
15163SWIGINTERN PyObject *_wrap_new_Joystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj = 0;
15165 int arg1 = (int) wxJOYSTICK1 ;
15166 wxJoystick *result = 0 ;
15167 int val1 ;
15168 int ecode1 = 0 ;
15169 PyObject * obj0 = 0 ;
15170 char * kwnames[] = {
15171 (char *) "joystick", NULL
15172 };
15173
15174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) SWIG_fail;
15175 if (obj0) {
15176 ecode1 = SWIG_AsVal_int(obj0, &val1);
15177 if (!SWIG_IsOK(ecode1)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Joystick" "', expected argument " "1"" of type '" "int""'");
15179 }
15180 arg1 = static_cast< int >(val1);
15181 }
15182 {
15183 if (!wxPyCheckForApp()) SWIG_fail;
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = (wxJoystick *)new wxJoystick(arg1);
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJoystick, SWIG_POINTER_NEW | 0 );
15190 return resultobj;
15191fail:
15192 return NULL;
d14a1e28
RD
15193}
15194
15195
0085ce49
RD
15196SWIGINTERN PyObject *_wrap_delete_Joystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15197 PyObject *resultobj = 0;
15198 wxJoystick *arg1 = (wxJoystick *) 0 ;
15199 void *argp1 = 0 ;
15200 int res1 = 0 ;
15201 PyObject *swig_obj[1] ;
15202
15203 if (!args) SWIG_fail;
15204 swig_obj[0] = args;
15205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, SWIG_POINTER_DISOWN | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Joystick" "', expected argument " "1"" of type '" "wxJoystick *""'");
15208 }
15209 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 delete arg1;
d14a1e28 15213
0085ce49
RD
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = SWIG_Py_Void();
15218 return resultobj;
15219fail:
15220 return NULL;
d14a1e28
RD
15221}
15222
15223
0085ce49
RD
15224SWIGINTERN PyObject *_wrap_Joystick_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15225 PyObject *resultobj = 0;
15226 wxJoystick *arg1 = (wxJoystick *) 0 ;
15227 wxPoint result;
15228 void *argp1 = 0 ;
15229 int res1 = 0 ;
15230 PyObject *swig_obj[1] ;
15231
15232 if (!args) SWIG_fail;
15233 swig_obj[0] = args;
15234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15235 if (!SWIG_IsOK(res1)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15237 }
15238 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 result = (arg1)->GetPosition();
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
15246 return resultobj;
15247fail:
15248 return NULL;
d14a1e28
RD
15249}
15250
15251
0085ce49
RD
15252SWIGINTERN PyObject *_wrap_Joystick_GetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15253 PyObject *resultobj = 0;
15254 wxJoystick *arg1 = (wxJoystick *) 0 ;
15255 int result;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 PyObject *swig_obj[1] ;
15259
15260 if (!args) SWIG_fail;
15261 swig_obj[0] = args;
15262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15263 if (!SWIG_IsOK(res1)) {
15264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15265 }
15266 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (int)(arg1)->GetZPosition();
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 resultobj = SWIG_From_int(static_cast< int >(result));
15274 return resultobj;
15275fail:
15276 return NULL;
f78cc896
RD
15277}
15278
15279
0085ce49
RD
15280SWIGINTERN PyObject *_wrap_Joystick_GetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15281 PyObject *resultobj = 0;
15282 wxJoystick *arg1 = (wxJoystick *) 0 ;
15283 int result;
15284 void *argp1 = 0 ;
15285 int res1 = 0 ;
15286 PyObject *swig_obj[1] ;
15287
15288 if (!args) SWIG_fail;
15289 swig_obj[0] = args;
15290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15291 if (!SWIG_IsOK(res1)) {
15292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetButtonState" "', expected argument " "1"" of type '" "wxJoystick *""'");
15293 }
15294 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 result = (int)(arg1)->GetButtonState();
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 resultobj = SWIG_From_int(static_cast< int >(result));
15302 return resultobj;
15303fail:
15304 return NULL;
d14a1e28
RD
15305}
15306
15307
0085ce49
RD
15308SWIGINTERN PyObject *_wrap_Joystick_GetPOVPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15309 PyObject *resultobj = 0;
15310 wxJoystick *arg1 = (wxJoystick *) 0 ;
15311 int result;
15312 void *argp1 = 0 ;
15313 int res1 = 0 ;
15314 PyObject *swig_obj[1] ;
15315
15316 if (!args) SWIG_fail;
15317 swig_obj[0] = args;
15318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15319 if (!SWIG_IsOK(res1)) {
15320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPOVPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15321 }
15322 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 result = (int)(arg1)->GetPOVPosition();
15326 wxPyEndAllowThreads(__tstate);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 resultobj = SWIG_From_int(static_cast< int >(result));
15330 return resultobj;
15331fail:
15332 return NULL;
d14a1e28
RD
15333}
15334
15335
0085ce49
RD
15336SWIGINTERN PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxJoystick *arg1 = (wxJoystick *) 0 ;
15339 int result;
15340 void *argp1 = 0 ;
15341 int res1 = 0 ;
15342 PyObject *swig_obj[1] ;
15343
15344 if (!args) SWIG_fail;
15345 swig_obj[0] = args;
15346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPOVCTSPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15349 }
15350 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15351 {
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 result = (int)(arg1)->GetPOVCTSPosition();
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 resultobj = SWIG_From_int(static_cast< int >(result));
15358 return resultobj;
15359fail:
15360 return NULL;
cc6dd355
RD
15361}
15362
15363
0085ce49
RD
15364SWIGINTERN PyObject *_wrap_Joystick_GetRudderPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 PyObject *resultobj = 0;
15366 wxJoystick *arg1 = (wxJoystick *) 0 ;
15367 int result;
15368 void *argp1 = 0 ;
15369 int res1 = 0 ;
15370 PyObject *swig_obj[1] ;
15371
15372 if (!args) SWIG_fail;
15373 swig_obj[0] = args;
15374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15377 }
15378 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 result = (int)(arg1)->GetRudderPosition();
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = SWIG_From_int(static_cast< int >(result));
15386 return resultobj;
15387fail:
15388 return NULL;
d14a1e28
RD
15389}
15390
15391
0085ce49
RD
15392SWIGINTERN PyObject *_wrap_Joystick_GetUPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 PyObject *resultobj = 0;
15394 wxJoystick *arg1 = (wxJoystick *) 0 ;
15395 int result;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 PyObject *swig_obj[1] ;
15399
15400 if (!args) SWIG_fail;
15401 swig_obj[0] = args;
15402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15405 }
15406 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 result = (int)(arg1)->GetUPosition();
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 resultobj = SWIG_From_int(static_cast< int >(result));
15414 return resultobj;
15415fail:
15416 return NULL;
d14a1e28
RD
15417}
15418
15419
0085ce49
RD
15420SWIGINTERN PyObject *_wrap_Joystick_GetVPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15421 PyObject *resultobj = 0;
15422 wxJoystick *arg1 = (wxJoystick *) 0 ;
15423 int result;
15424 void *argp1 = 0 ;
15425 int res1 = 0 ;
15426 PyObject *swig_obj[1] ;
15427
15428 if (!args) SWIG_fail;
15429 swig_obj[0] = args;
15430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15431 if (!SWIG_IsOK(res1)) {
15432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15433 }
15434 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
15437 result = (int)(arg1)->GetVPosition();
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 resultobj = SWIG_From_int(static_cast< int >(result));
15442 return resultobj;
15443fail:
15444 return NULL;
d14a1e28
RD
15445}
15446
15447
0085ce49
RD
15448SWIGINTERN PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15449 PyObject *resultobj = 0;
15450 wxJoystick *arg1 = (wxJoystick *) 0 ;
15451 int result;
15452 void *argp1 = 0 ;
15453 int res1 = 0 ;
15454 PyObject *swig_obj[1] ;
15455
15456 if (!args) SWIG_fail;
15457 swig_obj[0] = args;
15458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15459 if (!SWIG_IsOK(res1)) {
15460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMovementThreshold" "', expected argument " "1"" of type '" "wxJoystick *""'");
15461 }
15462 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (int)(arg1)->GetMovementThreshold();
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 resultobj = SWIG_From_int(static_cast< int >(result));
15470 return resultobj;
15471fail:
15472 return NULL;
15473}
15474
15475
15476SWIGINTERN PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = 0;
15478 wxJoystick *arg1 = (wxJoystick *) 0 ;
15479 int arg2 ;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 int val2 ;
15483 int ecode2 = 0 ;
15484 PyObject * obj0 = 0 ;
15485 PyObject * obj1 = 0 ;
15486 char * kwnames[] = {
15487 (char *) "self",(char *) "threshold", NULL
15488 };
15489
15490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
15491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15492 if (!SWIG_IsOK(res1)) {
15493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_SetMovementThreshold" "', expected argument " "1"" of type '" "wxJoystick *""'");
15494 }
15495 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15496 ecode2 = SWIG_AsVal_int(obj1, &val2);
15497 if (!SWIG_IsOK(ecode2)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Joystick_SetMovementThreshold" "', expected argument " "2"" of type '" "int""'");
15499 }
15500 arg2 = static_cast< int >(val2);
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 (arg1)->SetMovementThreshold(arg2);
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_Py_Void();
15508 return resultobj;
15509fail:
15510 return NULL;
d14a1e28 15511}
0085ce49
RD
15512
15513
15514SWIGINTERN PyObject *_wrap_Joystick_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 PyObject *resultobj = 0;
15516 wxJoystick *arg1 = (wxJoystick *) 0 ;
15517 bool result;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 PyObject *swig_obj[1] ;
15521
15522 if (!args) SWIG_fail;
15523 swig_obj[0] = args;
15524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15525 if (!SWIG_IsOK(res1)) {
15526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_IsOk" "', expected argument " "1"" of type '" "wxJoystick *""'");
15527 }
15528 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (bool)(arg1)->IsOk();
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15537 }
15538 return resultobj;
15539fail:
15540 return NULL;
d14a1e28
RD
15541}
15542
15543
0085ce49
RD
15544SWIGINTERN PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15545 PyObject *resultobj = 0;
15546 wxJoystick *arg1 = (wxJoystick *) 0 ;
15547 int result;
15548 void *argp1 = 0 ;
15549 int res1 = 0 ;
15550 PyObject *swig_obj[1] ;
15551
15552 if (!args) SWIG_fail;
15553 swig_obj[0] = args;
15554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15555 if (!SWIG_IsOK(res1)) {
15556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberJoysticks" "', expected argument " "1"" of type '" "wxJoystick *""'");
15557 }
15558 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 result = (int)(arg1)->GetNumberJoysticks();
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_From_int(static_cast< int >(result));
15566 return resultobj;
15567fail:
15568 return NULL;
d14a1e28
RD
15569}
15570
15571
0085ce49
RD
15572SWIGINTERN PyObject *_wrap_Joystick_GetManufacturerId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15573 PyObject *resultobj = 0;
15574 wxJoystick *arg1 = (wxJoystick *) 0 ;
15575 int result;
15576 void *argp1 = 0 ;
15577 int res1 = 0 ;
15578 PyObject *swig_obj[1] ;
15579
15580 if (!args) SWIG_fail;
15581 swig_obj[0] = args;
15582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15583 if (!SWIG_IsOK(res1)) {
15584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetManufacturerId" "', expected argument " "1"" of type '" "wxJoystick *""'");
15585 }
15586 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 result = (int)(arg1)->GetManufacturerId();
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_From_int(static_cast< int >(result));
15594 return resultobj;
15595fail:
15596 return NULL;
d14a1e28
RD
15597}
15598
15599
0085ce49
RD
15600SWIGINTERN PyObject *_wrap_Joystick_GetProductId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15601 PyObject *resultobj = 0;
15602 wxJoystick *arg1 = (wxJoystick *) 0 ;
15603 int result;
15604 void *argp1 = 0 ;
15605 int res1 = 0 ;
15606 PyObject *swig_obj[1] ;
15607
15608 if (!args) SWIG_fail;
15609 swig_obj[0] = args;
15610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15611 if (!SWIG_IsOK(res1)) {
15612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetProductId" "', expected argument " "1"" of type '" "wxJoystick *""'");
15613 }
15614 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15615 {
15616 PyThreadState* __tstate = wxPyBeginAllowThreads();
15617 result = (int)(arg1)->GetProductId();
15618 wxPyEndAllowThreads(__tstate);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 resultobj = SWIG_From_int(static_cast< int >(result));
15622 return resultobj;
15623fail:
15624 return NULL;
d14a1e28
RD
15625}
15626
15627
0085ce49
RD
15628SWIGINTERN PyObject *_wrap_Joystick_GetProductName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15629 PyObject *resultobj = 0;
15630 wxJoystick *arg1 = (wxJoystick *) 0 ;
15631 wxString result;
15632 void *argp1 = 0 ;
15633 int res1 = 0 ;
15634 PyObject *swig_obj[1] ;
15635
15636 if (!args) SWIG_fail;
15637 swig_obj[0] = args;
15638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15639 if (!SWIG_IsOK(res1)) {
15640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetProductName" "', expected argument " "1"" of type '" "wxJoystick *""'");
15641 }
15642 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15643 {
15644 PyThreadState* __tstate = wxPyBeginAllowThreads();
15645 result = (arg1)->GetProductName();
15646 wxPyEndAllowThreads(__tstate);
15647 if (PyErr_Occurred()) SWIG_fail;
15648 }
15649 {
15650#if wxUSE_UNICODE
15651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15652#else
15653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15654#endif
15655 }
15656 return resultobj;
15657fail:
15658 return NULL;
d14a1e28
RD
15659}
15660
15661
0085ce49
RD
15662SWIGINTERN PyObject *_wrap_Joystick_GetXMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15663 PyObject *resultobj = 0;
15664 wxJoystick *arg1 = (wxJoystick *) 0 ;
15665 int result;
15666 void *argp1 = 0 ;
15667 int res1 = 0 ;
15668 PyObject *swig_obj[1] ;
15669
15670 if (!args) SWIG_fail;
15671 swig_obj[0] = args;
15672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15673 if (!SWIG_IsOK(res1)) {
15674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetXMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15675 }
15676 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15677 {
15678 PyThreadState* __tstate = wxPyBeginAllowThreads();
15679 result = (int)(arg1)->GetXMin();
15680 wxPyEndAllowThreads(__tstate);
15681 if (PyErr_Occurred()) SWIG_fail;
15682 }
15683 resultobj = SWIG_From_int(static_cast< int >(result));
15684 return resultobj;
15685fail:
15686 return NULL;
d14a1e28
RD
15687}
15688
15689
0085ce49
RD
15690SWIGINTERN PyObject *_wrap_Joystick_GetYMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15691 PyObject *resultobj = 0;
15692 wxJoystick *arg1 = (wxJoystick *) 0 ;
15693 int result;
15694 void *argp1 = 0 ;
15695 int res1 = 0 ;
15696 PyObject *swig_obj[1] ;
15697
15698 if (!args) SWIG_fail;
15699 swig_obj[0] = args;
15700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15701 if (!SWIG_IsOK(res1)) {
15702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetYMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15703 }
15704 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 result = (int)(arg1)->GetYMin();
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 resultobj = SWIG_From_int(static_cast< int >(result));
15712 return resultobj;
15713fail:
15714 return NULL;
d14a1e28
RD
15715}
15716
15717
0085ce49
RD
15718SWIGINTERN PyObject *_wrap_Joystick_GetZMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15719 PyObject *resultobj = 0;
15720 wxJoystick *arg1 = (wxJoystick *) 0 ;
15721 int result;
15722 void *argp1 = 0 ;
15723 int res1 = 0 ;
15724 PyObject *swig_obj[1] ;
15725
15726 if (!args) SWIG_fail;
15727 swig_obj[0] = args;
15728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15729 if (!SWIG_IsOK(res1)) {
15730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15731 }
15732 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 result = (int)(arg1)->GetZMin();
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_From_int(static_cast< int >(result));
15740 return resultobj;
15741fail:
15742 return NULL;
d14a1e28
RD
15743}
15744
15745
0085ce49
RD
15746SWIGINTERN PyObject *_wrap_Joystick_GetXMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15747 PyObject *resultobj = 0;
15748 wxJoystick *arg1 = (wxJoystick *) 0 ;
15749 int result;
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 PyObject *swig_obj[1] ;
15753
15754 if (!args) SWIG_fail;
15755 swig_obj[0] = args;
15756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15757 if (!SWIG_IsOK(res1)) {
15758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetXMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15759 }
15760 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 result = (int)(arg1)->GetXMax();
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 resultobj = SWIG_From_int(static_cast< int >(result));
15768 return resultobj;
15769fail:
15770 return NULL;
d14a1e28
RD
15771}
15772
15773
0085ce49
RD
15774SWIGINTERN PyObject *_wrap_Joystick_GetYMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15775 PyObject *resultobj = 0;
15776 wxJoystick *arg1 = (wxJoystick *) 0 ;
15777 int result;
15778 void *argp1 = 0 ;
15779 int res1 = 0 ;
15780 PyObject *swig_obj[1] ;
15781
15782 if (!args) SWIG_fail;
15783 swig_obj[0] = args;
15784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15785 if (!SWIG_IsOK(res1)) {
15786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetYMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15787 }
15788 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (int)(arg1)->GetYMax();
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 resultobj = SWIG_From_int(static_cast< int >(result));
15796 return resultobj;
15797fail:
15798 return NULL;
d14a1e28
RD
15799}
15800
15801
0085ce49
RD
15802SWIGINTERN PyObject *_wrap_Joystick_GetZMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15803 PyObject *resultobj = 0;
15804 wxJoystick *arg1 = (wxJoystick *) 0 ;
15805 int result;
15806 void *argp1 = 0 ;
15807 int res1 = 0 ;
15808 PyObject *swig_obj[1] ;
15809
15810 if (!args) SWIG_fail;
15811 swig_obj[0] = args;
15812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15813 if (!SWIG_IsOK(res1)) {
15814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15815 }
15816 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (int)(arg1)->GetZMax();
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 resultobj = SWIG_From_int(static_cast< int >(result));
15824 return resultobj;
15825fail:
15826 return NULL;
d14a1e28
RD
15827}
15828
15829
0085ce49
RD
15830SWIGINTERN PyObject *_wrap_Joystick_GetNumberButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15831 PyObject *resultobj = 0;
15832 wxJoystick *arg1 = (wxJoystick *) 0 ;
15833 int result;
15834 void *argp1 = 0 ;
15835 int res1 = 0 ;
15836 PyObject *swig_obj[1] ;
15837
15838 if (!args) SWIG_fail;
15839 swig_obj[0] = args;
15840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberButtons" "', expected argument " "1"" of type '" "wxJoystick *""'");
15843 }
15844 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15845 {
15846 PyThreadState* __tstate = wxPyBeginAllowThreads();
15847 result = (int)(arg1)->GetNumberButtons();
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 resultobj = SWIG_From_int(static_cast< int >(result));
15852 return resultobj;
15853fail:
15854 return NULL;
d14a1e28
RD
15855}
15856
15857
0085ce49
RD
15858SWIGINTERN PyObject *_wrap_Joystick_GetNumberAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15859 PyObject *resultobj = 0;
15860 wxJoystick *arg1 = (wxJoystick *) 0 ;
15861 int result;
15862 void *argp1 = 0 ;
15863 int res1 = 0 ;
15864 PyObject *swig_obj[1] ;
15865
15866 if (!args) SWIG_fail;
15867 swig_obj[0] = args;
15868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15869 if (!SWIG_IsOK(res1)) {
15870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberAxes" "', expected argument " "1"" of type '" "wxJoystick *""'");
15871 }
15872 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (int)(arg1)->GetNumberAxes();
15876 wxPyEndAllowThreads(__tstate);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 resultobj = SWIG_From_int(static_cast< int >(result));
15880 return resultobj;
15881fail:
15882 return NULL;
d14a1e28
RD
15883}
15884
15885
0085ce49
RD
15886SWIGINTERN PyObject *_wrap_Joystick_GetMaxButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15887 PyObject *resultobj = 0;
15888 wxJoystick *arg1 = (wxJoystick *) 0 ;
15889 int result;
15890 void *argp1 = 0 ;
15891 int res1 = 0 ;
15892 PyObject *swig_obj[1] ;
15893
15894 if (!args) SWIG_fail;
15895 swig_obj[0] = args;
15896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15897 if (!SWIG_IsOK(res1)) {
15898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMaxButtons" "', expected argument " "1"" of type '" "wxJoystick *""'");
15899 }
15900 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15901 {
15902 PyThreadState* __tstate = wxPyBeginAllowThreads();
15903 result = (int)(arg1)->GetMaxButtons();
15904 wxPyEndAllowThreads(__tstate);
15905 if (PyErr_Occurred()) SWIG_fail;
15906 }
15907 resultobj = SWIG_From_int(static_cast< int >(result));
15908 return resultobj;
15909fail:
15910 return NULL;
d14a1e28
RD
15911}
15912
15913
0085ce49
RD
15914SWIGINTERN PyObject *_wrap_Joystick_GetMaxAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15915 PyObject *resultobj = 0;
15916 wxJoystick *arg1 = (wxJoystick *) 0 ;
15917 int result;
15918 void *argp1 = 0 ;
15919 int res1 = 0 ;
15920 PyObject *swig_obj[1] ;
15921
15922 if (!args) SWIG_fail;
15923 swig_obj[0] = args;
15924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15925 if (!SWIG_IsOK(res1)) {
15926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMaxAxes" "', expected argument " "1"" of type '" "wxJoystick *""'");
15927 }
15928 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15929 {
15930 PyThreadState* __tstate = wxPyBeginAllowThreads();
15931 result = (int)(arg1)->GetMaxAxes();
15932 wxPyEndAllowThreads(__tstate);
15933 if (PyErr_Occurred()) SWIG_fail;
15934 }
15935 resultobj = SWIG_From_int(static_cast< int >(result));
15936 return resultobj;
15937fail:
15938 return NULL;
d14a1e28
RD
15939}
15940
15941
0085ce49
RD
15942SWIGINTERN PyObject *_wrap_Joystick_GetPollingMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15943 PyObject *resultobj = 0;
15944 wxJoystick *arg1 = (wxJoystick *) 0 ;
15945 int result;
15946 void *argp1 = 0 ;
15947 int res1 = 0 ;
15948 PyObject *swig_obj[1] ;
15949
15950 if (!args) SWIG_fail;
15951 swig_obj[0] = args;
15952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15953 if (!SWIG_IsOK(res1)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPollingMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15955 }
15956 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15957 {
15958 PyThreadState* __tstate = wxPyBeginAllowThreads();
15959 result = (int)(arg1)->GetPollingMin();
15960 wxPyEndAllowThreads(__tstate);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 resultobj = SWIG_From_int(static_cast< int >(result));
15964 return resultobj;
15965fail:
15966 return NULL;
d14a1e28
RD
15967}
15968
15969
0085ce49
RD
15970SWIGINTERN PyObject *_wrap_Joystick_GetPollingMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15971 PyObject *resultobj = 0;
15972 wxJoystick *arg1 = (wxJoystick *) 0 ;
15973 int result;
15974 void *argp1 = 0 ;
15975 int res1 = 0 ;
15976 PyObject *swig_obj[1] ;
15977
15978 if (!args) SWIG_fail;
15979 swig_obj[0] = args;
15980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15981 if (!SWIG_IsOK(res1)) {
15982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPollingMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15983 }
15984 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15985 {
15986 PyThreadState* __tstate = wxPyBeginAllowThreads();
15987 result = (int)(arg1)->GetPollingMax();
15988 wxPyEndAllowThreads(__tstate);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 resultobj = SWIG_From_int(static_cast< int >(result));
15992 return resultobj;
15993fail:
15994 return NULL;
d14a1e28
RD
15995}
15996
15997
0085ce49
RD
15998SWIGINTERN PyObject *_wrap_Joystick_GetRudderMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15999 PyObject *resultobj = 0;
16000 wxJoystick *arg1 = (wxJoystick *) 0 ;
16001 int result;
16002 void *argp1 = 0 ;
16003 int res1 = 0 ;
16004 PyObject *swig_obj[1] ;
16005
16006 if (!args) SWIG_fail;
16007 swig_obj[0] = args;
16008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16009 if (!SWIG_IsOK(res1)) {
16010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16011 }
16012 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16013 {
16014 PyThreadState* __tstate = wxPyBeginAllowThreads();
16015 result = (int)(arg1)->GetRudderMin();
16016 wxPyEndAllowThreads(__tstate);
16017 if (PyErr_Occurred()) SWIG_fail;
16018 }
16019 resultobj = SWIG_From_int(static_cast< int >(result));
16020 return resultobj;
16021fail:
16022 return NULL;
d14a1e28
RD
16023}
16024
16025
0085ce49
RD
16026SWIGINTERN PyObject *_wrap_Joystick_GetRudderMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16027 PyObject *resultobj = 0;
16028 wxJoystick *arg1 = (wxJoystick *) 0 ;
16029 int result;
16030 void *argp1 = 0 ;
16031 int res1 = 0 ;
16032 PyObject *swig_obj[1] ;
16033
16034 if (!args) SWIG_fail;
16035 swig_obj[0] = args;
16036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16037 if (!SWIG_IsOK(res1)) {
16038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16039 }
16040 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = (int)(arg1)->GetRudderMax();
16044 wxPyEndAllowThreads(__tstate);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 resultobj = SWIG_From_int(static_cast< int >(result));
16048 return resultobj;
16049fail:
16050 return NULL;
d14a1e28
RD
16051}
16052
16053
0085ce49
RD
16054SWIGINTERN PyObject *_wrap_Joystick_GetUMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16055 PyObject *resultobj = 0;
16056 wxJoystick *arg1 = (wxJoystick *) 0 ;
16057 int result;
16058 void *argp1 = 0 ;
16059 int res1 = 0 ;
16060 PyObject *swig_obj[1] ;
16061
16062 if (!args) SWIG_fail;
16063 swig_obj[0] = args;
16064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16065 if (!SWIG_IsOK(res1)) {
16066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16067 }
16068 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
16071 result = (int)(arg1)->GetUMin();
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_From_int(static_cast< int >(result));
16076 return resultobj;
16077fail:
16078 return NULL;
d14a1e28
RD
16079}
16080
16081
0085ce49
RD
16082SWIGINTERN PyObject *_wrap_Joystick_GetUMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16083 PyObject *resultobj = 0;
16084 wxJoystick *arg1 = (wxJoystick *) 0 ;
16085 int result;
16086 void *argp1 = 0 ;
16087 int res1 = 0 ;
16088 PyObject *swig_obj[1] ;
16089
16090 if (!args) SWIG_fail;
16091 swig_obj[0] = args;
16092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16093 if (!SWIG_IsOK(res1)) {
16094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16095 }
16096 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16097 {
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 result = (int)(arg1)->GetUMax();
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 resultobj = SWIG_From_int(static_cast< int >(result));
16104 return resultobj;
16105fail:
16106 return NULL;
d14a1e28
RD
16107}
16108
16109
0085ce49
RD
16110SWIGINTERN PyObject *_wrap_Joystick_GetVMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16111 PyObject *resultobj = 0;
16112 wxJoystick *arg1 = (wxJoystick *) 0 ;
16113 int result;
16114 void *argp1 = 0 ;
16115 int res1 = 0 ;
16116 PyObject *swig_obj[1] ;
16117
16118 if (!args) SWIG_fail;
16119 swig_obj[0] = args;
16120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16121 if (!SWIG_IsOK(res1)) {
16122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16123 }
16124 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (int)(arg1)->GetVMin();
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 resultobj = SWIG_From_int(static_cast< int >(result));
16132 return resultobj;
16133fail:
16134 return NULL;
d14a1e28
RD
16135}
16136
16137
0085ce49
RD
16138SWIGINTERN PyObject *_wrap_Joystick_GetVMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16139 PyObject *resultobj = 0;
16140 wxJoystick *arg1 = (wxJoystick *) 0 ;
16141 int result;
16142 void *argp1 = 0 ;
16143 int res1 = 0 ;
16144 PyObject *swig_obj[1] ;
16145
16146 if (!args) SWIG_fail;
16147 swig_obj[0] = args;
16148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16149 if (!SWIG_IsOK(res1)) {
16150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16151 }
16152 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 result = (int)(arg1)->GetVMax();
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 resultobj = SWIG_From_int(static_cast< int >(result));
16160 return resultobj;
16161fail:
16162 return NULL;
d14a1e28
RD
16163}
16164
16165
0085ce49
RD
16166SWIGINTERN PyObject *_wrap_Joystick_HasRudder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16167 PyObject *resultobj = 0;
16168 wxJoystick *arg1 = (wxJoystick *) 0 ;
16169 bool result;
16170 void *argp1 = 0 ;
16171 int res1 = 0 ;
16172 PyObject *swig_obj[1] ;
16173
16174 if (!args) SWIG_fail;
16175 swig_obj[0] = args;
16176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16177 if (!SWIG_IsOK(res1)) {
16178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasRudder" "', expected argument " "1"" of type '" "wxJoystick *""'");
16179 }
16180 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (bool)(arg1)->HasRudder();
16184 wxPyEndAllowThreads(__tstate);
16185 if (PyErr_Occurred()) SWIG_fail;
16186 }
16187 {
16188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16189 }
16190 return resultobj;
16191fail:
16192 return NULL;
d14a1e28
RD
16193}
16194
16195
0085ce49
RD
16196SWIGINTERN PyObject *_wrap_Joystick_HasZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16197 PyObject *resultobj = 0;
16198 wxJoystick *arg1 = (wxJoystick *) 0 ;
16199 bool result;
16200 void *argp1 = 0 ;
16201 int res1 = 0 ;
16202 PyObject *swig_obj[1] ;
16203
16204 if (!args) SWIG_fail;
16205 swig_obj[0] = args;
16206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasZ" "', expected argument " "1"" of type '" "wxJoystick *""'");
16209 }
16210 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = (bool)(arg1)->HasZ();
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 {
16218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16219 }
16220 return resultobj;
16221fail:
16222 return NULL;
d14a1e28
RD
16223}
16224
16225
0085ce49
RD
16226SWIGINTERN PyObject *_wrap_Joystick_HasU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16227 PyObject *resultobj = 0;
16228 wxJoystick *arg1 = (wxJoystick *) 0 ;
16229 bool result;
16230 void *argp1 = 0 ;
16231 int res1 = 0 ;
16232 PyObject *swig_obj[1] ;
16233
16234 if (!args) SWIG_fail;
16235 swig_obj[0] = args;
16236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16237 if (!SWIG_IsOK(res1)) {
16238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasU" "', expected argument " "1"" of type '" "wxJoystick *""'");
16239 }
16240 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16241 {
16242 PyThreadState* __tstate = wxPyBeginAllowThreads();
16243 result = (bool)(arg1)->HasU();
16244 wxPyEndAllowThreads(__tstate);
16245 if (PyErr_Occurred()) SWIG_fail;
16246 }
16247 {
16248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16249 }
16250 return resultobj;
16251fail:
16252 return NULL;
d14a1e28
RD
16253}
16254
16255
0085ce49
RD
16256SWIGINTERN PyObject *_wrap_Joystick_HasV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16257 PyObject *resultobj = 0;
16258 wxJoystick *arg1 = (wxJoystick *) 0 ;
16259 bool result;
16260 void *argp1 = 0 ;
16261 int res1 = 0 ;
16262 PyObject *swig_obj[1] ;
16263
16264 if (!args) SWIG_fail;
16265 swig_obj[0] = args;
16266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16267 if (!SWIG_IsOK(res1)) {
16268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasV" "', expected argument " "1"" of type '" "wxJoystick *""'");
16269 }
16270 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (bool)(arg1)->HasV();
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 {
16278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16279 }
16280 return resultobj;
16281fail:
16282 return NULL;
1823fbb4
RD
16283}
16284
16285
0085ce49
RD
16286SWIGINTERN PyObject *_wrap_Joystick_HasPOV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16287 PyObject *resultobj = 0;
16288 wxJoystick *arg1 = (wxJoystick *) 0 ;
16289 bool result;
16290 void *argp1 = 0 ;
16291 int res1 = 0 ;
16292 PyObject *swig_obj[1] ;
16293
16294 if (!args) SWIG_fail;
16295 swig_obj[0] = args;
16296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16297 if (!SWIG_IsOK(res1)) {
16298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOV" "', expected argument " "1"" of type '" "wxJoystick *""'");
16299 }
16300 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 result = (bool)(arg1)->HasPOV();
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 {
16308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16309 }
16310 return resultobj;
16311fail:
16312 return NULL;
d14a1e28
RD
16313}
16314
16315
0085ce49
RD
16316SWIGINTERN PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16317 PyObject *resultobj = 0;
16318 wxJoystick *arg1 = (wxJoystick *) 0 ;
16319 bool result;
16320 void *argp1 = 0 ;
16321 int res1 = 0 ;
16322 PyObject *swig_obj[1] ;
16323
16324 if (!args) SWIG_fail;
16325 swig_obj[0] = args;
16326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16327 if (!SWIG_IsOK(res1)) {
16328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOV4Dir" "', expected argument " "1"" of type '" "wxJoystick *""'");
16329 }
16330 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (bool)(arg1)->HasPOV4Dir();
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 {
16338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16339 }
16340 return resultobj;
16341fail:
16342 return NULL;
d14a1e28
RD
16343}
16344
16345
0085ce49
RD
16346SWIGINTERN PyObject *_wrap_Joystick_HasPOVCTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16347 PyObject *resultobj = 0;
16348 wxJoystick *arg1 = (wxJoystick *) 0 ;
16349 bool result;
16350 void *argp1 = 0 ;
16351 int res1 = 0 ;
16352 PyObject *swig_obj[1] ;
16353
16354 if (!args) SWIG_fail;
16355 swig_obj[0] = args;
16356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16357 if (!SWIG_IsOK(res1)) {
16358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOVCTS" "', expected argument " "1"" of type '" "wxJoystick *""'");
16359 }
16360 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16361 {
16362 PyThreadState* __tstate = wxPyBeginAllowThreads();
16363 result = (bool)(arg1)->HasPOVCTS();
16364 wxPyEndAllowThreads(__tstate);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 }
16367 {
16368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16369 }
16370 return resultobj;
16371fail:
16372 return NULL;
16373}
16374
16375
16376SWIGINTERN PyObject *_wrap_Joystick_SetCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj = 0;
16378 wxJoystick *arg1 = (wxJoystick *) 0 ;
16379 wxWindow *arg2 = (wxWindow *) 0 ;
16380 int arg3 = (int) 0 ;
16381 bool result;
16382 void *argp1 = 0 ;
16383 int res1 = 0 ;
16384 void *argp2 = 0 ;
16385 int res2 = 0 ;
16386 int val3 ;
16387 int ecode3 = 0 ;
16388 PyObject * obj0 = 0 ;
16389 PyObject * obj1 = 0 ;
16390 PyObject * obj2 = 0 ;
16391 char * kwnames[] = {
16392 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
16393 };
16394
16395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_SetCapture" "', expected argument " "1"" of type '" "wxJoystick *""'");
16399 }
16400 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16402 if (!SWIG_IsOK(res2)) {
16403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Joystick_SetCapture" "', expected argument " "2"" of type '" "wxWindow *""'");
16404 }
16405 arg2 = reinterpret_cast< wxWindow * >(argp2);
16406 if (obj2) {
16407 ecode3 = SWIG_AsVal_int(obj2, &val3);
16408 if (!SWIG_IsOK(ecode3)) {
16409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Joystick_SetCapture" "', expected argument " "3"" of type '" "int""'");
16410 }
16411 arg3 = static_cast< int >(val3);
16412 }
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 result = (bool)(arg1)->SetCapture(arg2,arg3);
16416 wxPyEndAllowThreads(__tstate);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 {
16420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16421 }
16422 return resultobj;
16423fail:
16424 return NULL;
d14a1e28
RD
16425}
16426
16427
0085ce49
RD
16428SWIGINTERN PyObject *_wrap_Joystick_ReleaseCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16429 PyObject *resultobj = 0;
16430 wxJoystick *arg1 = (wxJoystick *) 0 ;
16431 bool result;
16432 void *argp1 = 0 ;
16433 int res1 = 0 ;
16434 PyObject *swig_obj[1] ;
16435
16436 if (!args) SWIG_fail;
16437 swig_obj[0] = args;
16438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16439 if (!SWIG_IsOK(res1)) {
16440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_ReleaseCapture" "', expected argument " "1"" of type '" "wxJoystick *""'");
16441 }
16442 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16443 {
16444 PyThreadState* __tstate = wxPyBeginAllowThreads();
16445 result = (bool)(arg1)->ReleaseCapture();
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 {
16450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16451 }
16452 return resultobj;
16453fail:
16454 return NULL;
16455}
16456
16457
16458SWIGINTERN PyObject *Joystick_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16459 PyObject *obj;
16460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16461 SWIG_TypeNewClientData(SWIGTYPE_p_wxJoystick, SWIG_NewClientData(obj));
16462 return SWIG_Py_Void();
16463}
16464
16465SWIGINTERN PyObject *Joystick_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16466 return SWIG_Python_InitShadowInstance(args);
16467}
16468
16469SWIGINTERN PyObject *_wrap_new_JoystickEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16472 int arg2 = (int) 0 ;
16473 int arg3 = (int) wxJOYSTICK1 ;
16474 int arg4 = (int) 0 ;
16475 wxJoystickEvent *result = 0 ;
16476 int val1 ;
16477 int ecode1 = 0 ;
16478 int val2 ;
16479 int ecode2 = 0 ;
16480 int val3 ;
16481 int ecode3 = 0 ;
16482 int val4 ;
16483 int ecode4 = 0 ;
16484 PyObject * obj0 = 0 ;
16485 PyObject * obj1 = 0 ;
16486 PyObject * obj2 = 0 ;
16487 PyObject * obj3 = 0 ;
16488 char * kwnames[] = {
16489 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
16490 };
16491
16492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16493 if (obj0) {
16494 ecode1 = SWIG_AsVal_int(obj0, &val1);
16495 if (!SWIG_IsOK(ecode1)) {
16496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_JoystickEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16497 }
16498 arg1 = static_cast< wxEventType >(val1);
16499 }
16500 if (obj1) {
16501 ecode2 = SWIG_AsVal_int(obj1, &val2);
16502 if (!SWIG_IsOK(ecode2)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_JoystickEvent" "', expected argument " "2"" of type '" "int""'");
16504 }
16505 arg2 = static_cast< int >(val2);
16506 }
16507 if (obj2) {
16508 ecode3 = SWIG_AsVal_int(obj2, &val3);
16509 if (!SWIG_IsOK(ecode3)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_JoystickEvent" "', expected argument " "3"" of type '" "int""'");
16511 }
16512 arg3 = static_cast< int >(val3);
16513 }
16514 if (obj3) {
16515 ecode4 = SWIG_AsVal_int(obj3, &val4);
16516 if (!SWIG_IsOK(ecode4)) {
16517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_JoystickEvent" "', expected argument " "4"" of type '" "int""'");
16518 }
16519 arg4 = static_cast< int >(val4);
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_NEW | 0 );
16528 return resultobj;
16529fail:
16530 return NULL;
d14a1e28
RD
16531}
16532
16533
0085ce49
RD
16534SWIGINTERN PyObject *_wrap_JoystickEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16535 PyObject *resultobj = 0;
16536 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16537 wxPoint result;
16538 void *argp1 = 0 ;
16539 int res1 = 0 ;
16540 PyObject *swig_obj[1] ;
16541
16542 if (!args) SWIG_fail;
16543 swig_obj[0] = args;
16544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16545 if (!SWIG_IsOK(res1)) {
16546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetPosition" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16547 }
16548 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16549 {
16550 PyThreadState* __tstate = wxPyBeginAllowThreads();
16551 result = ((wxJoystickEvent const *)arg1)->GetPosition();
16552 wxPyEndAllowThreads(__tstate);
16553 if (PyErr_Occurred()) SWIG_fail;
16554 }
16555 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
16556 return resultobj;
16557fail:
16558 return NULL;
d14a1e28
RD
16559}
16560
16561
0085ce49
RD
16562SWIGINTERN PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16563 PyObject *resultobj = 0;
16564 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16565 int result;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
16568 PyObject *swig_obj[1] ;
16569
16570 if (!args) SWIG_fail;
16571 swig_obj[0] = args;
16572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16573 if (!SWIG_IsOK(res1)) {
16574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetZPosition" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16575 }
16576 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16577 {
16578 PyThreadState* __tstate = wxPyBeginAllowThreads();
16579 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
16580 wxPyEndAllowThreads(__tstate);
16581 if (PyErr_Occurred()) SWIG_fail;
16582 }
16583 resultobj = SWIG_From_int(static_cast< int >(result));
16584 return resultobj;
16585fail:
16586 return NULL;
d14a1e28
RD
16587}
16588
16589
0085ce49
RD
16590SWIGINTERN PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16591 PyObject *resultobj = 0;
16592 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16593 int result;
16594 void *argp1 = 0 ;
16595 int res1 = 0 ;
16596 PyObject *swig_obj[1] ;
16597
16598 if (!args) SWIG_fail;
16599 swig_obj[0] = args;
16600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetButtonState" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16603 }
16604 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
16608 wxPyEndAllowThreads(__tstate);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 }
16611 resultobj = SWIG_From_int(static_cast< int >(result));
16612 return resultobj;
16613fail:
16614 return NULL;
d14a1e28
RD
16615}
16616
16617
0085ce49
RD
16618SWIGINTERN PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16619 PyObject *resultobj = 0;
16620 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16621 int result;
16622 void *argp1 = 0 ;
16623 int res1 = 0 ;
16624 PyObject *swig_obj[1] ;
16625
16626 if (!args) SWIG_fail;
16627 swig_obj[0] = args;
16628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16629 if (!SWIG_IsOK(res1)) {
16630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetButtonChange" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16631 }
16632 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 resultobj = SWIG_From_int(static_cast< int >(result));
16640 return resultobj;
16641fail:
16642 return NULL;
d14a1e28
RD
16643}
16644
16645
0085ce49
RD
16646SWIGINTERN PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16647 PyObject *resultobj = 0;
16648 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16649 int result;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 PyObject *swig_obj[1] ;
16653
16654 if (!args) SWIG_fail;
16655 swig_obj[0] = args;
16656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16657 if (!SWIG_IsOK(res1)) {
16658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetJoystick" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16659 }
16660 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
16664 wxPyEndAllowThreads(__tstate);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 }
16667 resultobj = SWIG_From_int(static_cast< int >(result));
16668 return resultobj;
16669fail:
16670 return NULL;
16671}
16672
16673
16674SWIGINTERN PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj = 0;
16676 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16677 int arg2 ;
16678 void *argp1 = 0 ;
16679 int res1 = 0 ;
16680 int val2 ;
16681 int ecode2 = 0 ;
16682 PyObject * obj0 = 0 ;
16683 PyObject * obj1 = 0 ;
16684 char * kwnames[] = {
16685 (char *) "self",(char *) "stick", NULL
16686 };
16687
16688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) SWIG_fail;
16689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16690 if (!SWIG_IsOK(res1)) {
16691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetJoystick" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16692 }
16693 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16694 ecode2 = SWIG_AsVal_int(obj1, &val2);
16695 if (!SWIG_IsOK(ecode2)) {
16696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetJoystick" "', expected argument " "2"" of type '" "int""'");
16697 }
16698 arg2 = static_cast< int >(val2);
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 (arg1)->SetJoystick(arg2);
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 resultobj = SWIG_Py_Void();
16706 return resultobj;
16707fail:
16708 return NULL;
16709}
16710
16711
16712SWIGINTERN PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16713 PyObject *resultobj = 0;
16714 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16715 int arg2 ;
16716 void *argp1 = 0 ;
16717 int res1 = 0 ;
16718 int val2 ;
16719 int ecode2 = 0 ;
16720 PyObject * obj0 = 0 ;
16721 PyObject * obj1 = 0 ;
16722 char * kwnames[] = {
16723 (char *) "self",(char *) "state", NULL
16724 };
16725
16726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) SWIG_fail;
16727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16728 if (!SWIG_IsOK(res1)) {
16729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetButtonState" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16730 }
16731 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16732 ecode2 = SWIG_AsVal_int(obj1, &val2);
16733 if (!SWIG_IsOK(ecode2)) {
16734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetButtonState" "', expected argument " "2"" of type '" "int""'");
16735 }
16736 arg2 = static_cast< int >(val2);
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 (arg1)->SetButtonState(arg2);
16740 wxPyEndAllowThreads(__tstate);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 }
16743 resultobj = SWIG_Py_Void();
16744 return resultobj;
16745fail:
16746 return NULL;
16747}
16748
16749
16750SWIGINTERN PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj = 0;
16752 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16753 int arg2 ;
16754 void *argp1 = 0 ;
16755 int res1 = 0 ;
16756 int val2 ;
16757 int ecode2 = 0 ;
16758 PyObject * obj0 = 0 ;
16759 PyObject * obj1 = 0 ;
16760 char * kwnames[] = {
16761 (char *) "self",(char *) "change", NULL
16762 };
16763
16764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) SWIG_fail;
16765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16766 if (!SWIG_IsOK(res1)) {
16767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetButtonChange" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16768 }
16769 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16770 ecode2 = SWIG_AsVal_int(obj1, &val2);
16771 if (!SWIG_IsOK(ecode2)) {
16772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetButtonChange" "', expected argument " "2"" of type '" "int""'");
16773 }
16774 arg2 = static_cast< int >(val2);
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 (arg1)->SetButtonChange(arg2);
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 resultobj = SWIG_Py_Void();
16782 return resultobj;
16783fail:
16784 return NULL;
16785}
16786
16787
16788SWIGINTERN PyObject *_wrap_JoystickEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj = 0;
16790 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16791 wxPoint *arg2 = 0 ;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 wxPoint temp2 ;
16795 PyObject * obj0 = 0 ;
16796 PyObject * obj1 = 0 ;
16797 char * kwnames[] = {
16798 (char *) "self",(char *) "pos", NULL
16799 };
16800
16801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16803 if (!SWIG_IsOK(res1)) {
16804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetPosition" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16805 }
16806 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16807 {
16808 arg2 = &temp2;
16809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16810 }
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 (arg1)->SetPosition((wxPoint const &)*arg2);
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 resultobj = SWIG_Py_Void();
16818 return resultobj;
16819fail:
16820 return NULL;
16821}
16822
16823
16824SWIGINTERN PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16825 PyObject *resultobj = 0;
16826 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16827 int arg2 ;
16828 void *argp1 = 0 ;
16829 int res1 = 0 ;
16830 int val2 ;
16831 int ecode2 = 0 ;
16832 PyObject * obj0 = 0 ;
16833 PyObject * obj1 = 0 ;
16834 char * kwnames[] = {
16835 (char *) "self",(char *) "zPos", NULL
16836 };
16837
16838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16840 if (!SWIG_IsOK(res1)) {
16841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetZPosition" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16842 }
16843 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16844 ecode2 = SWIG_AsVal_int(obj1, &val2);
16845 if (!SWIG_IsOK(ecode2)) {
16846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetZPosition" "', expected argument " "2"" of type '" "int""'");
16847 }
16848 arg2 = static_cast< int >(val2);
16849 {
16850 PyThreadState* __tstate = wxPyBeginAllowThreads();
16851 (arg1)->SetZPosition(arg2);
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_Py_Void();
16856 return resultobj;
16857fail:
16858 return NULL;
d14a1e28
RD
16859}
16860
16861
0085ce49
RD
16862SWIGINTERN PyObject *_wrap_JoystickEvent_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16863 PyObject *resultobj = 0;
16864 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16865 bool result;
16866 void *argp1 = 0 ;
16867 int res1 = 0 ;
16868 PyObject *swig_obj[1] ;
16869
16870 if (!args) SWIG_fail;
16871 swig_obj[0] = args;
16872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsButton" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16875 }
16876 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16877 {
16878 PyThreadState* __tstate = wxPyBeginAllowThreads();
16879 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 {
16884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16885 }
16886 return resultobj;
16887fail:
16888 return NULL;
d14a1e28
RD
16889}
16890
16891
0085ce49
RD
16892SWIGINTERN PyObject *_wrap_JoystickEvent_IsMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16893 PyObject *resultobj = 0;
16894 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16895 bool result;
16896 void *argp1 = 0 ;
16897 int res1 = 0 ;
16898 PyObject *swig_obj[1] ;
16899
16900 if (!args) SWIG_fail;
16901 swig_obj[0] = args;
16902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16903 if (!SWIG_IsOK(res1)) {
16904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsMove" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16905 }
16906 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16907 {
16908 PyThreadState* __tstate = wxPyBeginAllowThreads();
16909 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 {
16914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16915 }
16916 return resultobj;
16917fail:
16918 return NULL;
d14a1e28
RD
16919}
16920
16921
0085ce49
RD
16922SWIGINTERN PyObject *_wrap_JoystickEvent_IsZMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16923 PyObject *resultobj = 0;
16924 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16925 bool result;
16926 void *argp1 = 0 ;
16927 int res1 = 0 ;
16928 PyObject *swig_obj[1] ;
16929
16930 if (!args) SWIG_fail;
16931 swig_obj[0] = args;
16932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16933 if (!SWIG_IsOK(res1)) {
16934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsZMove" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16935 }
16936 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16937 {
16938 PyThreadState* __tstate = wxPyBeginAllowThreads();
16939 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 {
16944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16945 }
16946 return resultobj;
16947fail:
16948 return NULL;
16949}
16950
16951
16952SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16953 PyObject *resultobj = 0;
16954 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16955 int arg2 = (int) wxJOY_BUTTON_ANY ;
16956 bool result;
16957 void *argp1 = 0 ;
16958 int res1 = 0 ;
16959 int val2 ;
16960 int ecode2 = 0 ;
16961 PyObject * obj0 = 0 ;
16962 PyObject * obj1 = 0 ;
16963 char * kwnames[] = {
16964 (char *) "self",(char *) "but", NULL
16965 };
16966
16967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) SWIG_fail;
16968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonDown" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16971 }
16972 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16973 if (obj1) {
16974 ecode2 = SWIG_AsVal_int(obj1, &val2);
16975 if (!SWIG_IsOK(ecode2)) {
16976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonDown" "', expected argument " "2"" of type '" "int""'");
16977 }
16978 arg2 = static_cast< int >(val2);
16979 }
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16988 }
16989 return resultobj;
16990fail:
16991 return NULL;
16992}
16993
16994
16995SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16998 int arg2 = (int) wxJOY_BUTTON_ANY ;
16999 bool result;
17000 void *argp1 = 0 ;
17001 int res1 = 0 ;
17002 int val2 ;
17003 int ecode2 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "self",(char *) "but", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) SWIG_fail;
17011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
17012 if (!SWIG_IsOK(res1)) {
17013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonUp" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
17014 }
17015 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
17016 if (obj1) {
17017 ecode2 = SWIG_AsVal_int(obj1, &val2);
17018 if (!SWIG_IsOK(ecode2)) {
17019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonUp" "', expected argument " "2"" of type '" "int""'");
17020 }
17021 arg2 = static_cast< int >(val2);
17022 }
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 {
17030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17031 }
17032 return resultobj;
17033fail:
17034 return NULL;
17035}
17036
17037
17038SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj = 0;
17040 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
17041 int arg2 = (int) wxJOY_BUTTON_ANY ;
17042 bool result;
17043 void *argp1 = 0 ;
17044 int res1 = 0 ;
17045 int val2 ;
17046 int ecode2 = 0 ;
17047 PyObject * obj0 = 0 ;
17048 PyObject * obj1 = 0 ;
17049 char * kwnames[] = {
17050 (char *) "self",(char *) "but", NULL
17051 };
17052
17053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) SWIG_fail;
17054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
17055 if (!SWIG_IsOK(res1)) {
17056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonIsDown" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
17057 }
17058 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
17059 if (obj1) {
17060 ecode2 = SWIG_AsVal_int(obj1, &val2);
17061 if (!SWIG_IsOK(ecode2)) {
17062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonIsDown" "', expected argument " "2"" of type '" "int""'");
17063 }
17064 arg2 = static_cast< int >(val2);
17065 }
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
17069 wxPyEndAllowThreads(__tstate);
17070 if (PyErr_Occurred()) SWIG_fail;
17071 }
17072 {
17073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17074 }
17075 return resultobj;
17076fail:
17077 return NULL;
d14a1e28
RD
17078}
17079
17080
0085ce49
RD
17081SWIGINTERN PyObject *JoystickEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17082 PyObject *obj;
17083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17084 SWIG_TypeNewClientData(SWIGTYPE_p_wxJoystickEvent, SWIG_NewClientData(obj));
17085 return SWIG_Py_Void();
d14a1e28
RD
17086}
17087
0085ce49
RD
17088SWIGINTERN PyObject *JoystickEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17089 return SWIG_Python_InitShadowInstance(args);
17090}
d14a1e28 17091
0085ce49
RD
17092SWIGINTERN PyObject *_wrap_new_Sound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17093 PyObject *resultobj = 0;
17094 wxString const &arg1_defvalue = wxPyEmptyString ;
17095 wxString *arg1 = (wxString *) &arg1_defvalue ;
17096 wxSound *result = 0 ;
17097 bool temp1 = false ;
17098 PyObject * obj0 = 0 ;
17099 char * kwnames[] = {
17100 (char *) "fileName", NULL
17101 };
17102
17103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) SWIG_fail;
17104 if (obj0) {
093d3ff1 17105 {
0085ce49
RD
17106 arg1 = wxString_in_helper(obj0);
17107 if (arg1 == NULL) SWIG_fail;
17108 temp1 = true;
093d3ff1 17109 }
0085ce49
RD
17110 }
17111 {
17112 if (!wxPyCheckForApp()) SWIG_fail;
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (wxSound *)new_wxSound((wxString const &)*arg1);
17115 wxPyEndAllowThreads(__tstate);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 }
17118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSound, SWIG_POINTER_NEW | 0 );
17119 {
17120 if (temp1)
17121 delete arg1;
17122 }
17123 return resultobj;
17124fail:
17125 {
17126 if (temp1)
17127 delete arg1;
17128 }
17129 return NULL;
d14a1e28
RD
17130}
17131
17132
0085ce49
RD
17133SWIGINTERN PyObject *_wrap_new_SoundFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj = 0;
17135 PyObject *arg1 = (PyObject *) 0 ;
17136 wxSound *result = 0 ;
17137 PyObject * obj0 = 0 ;
17138 char * kwnames[] = {
17139 (char *) "data", NULL
17140 };
17141
17142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) SWIG_fail;
17143 arg1 = obj0;
17144 {
17145 if (!wxPyCheckForApp()) SWIG_fail;
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = (wxSound *)new_wxSound(arg1);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSound, SWIG_POINTER_OWN | 0 );
17152 return resultobj;
17153fail:
17154 return NULL;
d14a1e28
RD
17155}
17156
17157
0085ce49
RD
17158SWIGINTERN PyObject *_wrap_delete_Sound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17159 PyObject *resultobj = 0;
17160 wxSound *arg1 = (wxSound *) 0 ;
17161 void *argp1 = 0 ;
17162 int res1 = 0 ;
17163 PyObject *swig_obj[1] ;
17164
17165 if (!args) SWIG_fail;
17166 swig_obj[0] = args;
17167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSound, SWIG_POINTER_DISOWN | 0 );
17168 if (!SWIG_IsOK(res1)) {
17169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sound" "', expected argument " "1"" of type '" "wxSound *""'");
17170 }
17171 arg1 = reinterpret_cast< wxSound * >(argp1);
17172 {
17173 PyThreadState* __tstate = wxPyBeginAllowThreads();
17174 delete arg1;
d14a1e28 17175
0085ce49
RD
17176 wxPyEndAllowThreads(__tstate);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 }
17179 resultobj = SWIG_Py_Void();
17180 return resultobj;
17181fail:
17182 return NULL;
17183}
17184
17185
17186SWIGINTERN PyObject *_wrap_Sound_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17187 PyObject *resultobj = 0;
17188 wxSound *arg1 = (wxSound *) 0 ;
17189 wxString *arg2 = 0 ;
17190 bool result;
17191 void *argp1 = 0 ;
17192 int res1 = 0 ;
17193 bool temp2 = false ;
17194 PyObject * obj0 = 0 ;
17195 PyObject * obj1 = 0 ;
17196 char * kwnames[] = {
17197 (char *) "self",(char *) "fileName", NULL
17198 };
17199
17200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) SWIG_fail;
17201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17202 if (!SWIG_IsOK(res1)) {
17203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_Create" "', expected argument " "1"" of type '" "wxSound *""'");
17204 }
17205 arg1 = reinterpret_cast< wxSound * >(argp1);
17206 {
17207 arg2 = wxString_in_helper(obj1);
17208 if (arg2 == NULL) SWIG_fail;
17209 temp2 = true;
17210 }
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 result = (bool)(arg1)->Create((wxString const &)*arg2);
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 {
17218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17219 }
17220 {
17221 if (temp2)
17222 delete arg2;
17223 }
17224 return resultobj;
17225fail:
17226 {
17227 if (temp2)
17228 delete arg2;
17229 }
17230 return NULL;
d14a1e28
RD
17231}
17232
17233
0085ce49
RD
17234SWIGINTERN PyObject *_wrap_Sound_CreateFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj = 0;
17236 wxSound *arg1 = (wxSound *) 0 ;
17237 PyObject *arg2 = (PyObject *) 0 ;
17238 bool result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 char * kwnames[] = {
17244 (char *) "self",(char *) "data", NULL
17245 };
17246
17247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) SWIG_fail;
17248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17249 if (!SWIG_IsOK(res1)) {
17250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_CreateFromData" "', expected argument " "1"" of type '" "wxSound *""'");
17251 }
17252 arg1 = reinterpret_cast< wxSound * >(argp1);
17253 arg2 = obj1;
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 result = (bool)wxSound_CreateFromData(arg1,arg2);
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 {
17261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17262 }
17263 return resultobj;
17264fail:
17265 return NULL;
d14a1e28
RD
17266}
17267
17268
0085ce49
RD
17269SWIGINTERN PyObject *_wrap_Sound_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17270 PyObject *resultobj = 0;
17271 wxSound *arg1 = (wxSound *) 0 ;
17272 bool result;
17273 void *argp1 = 0 ;
17274 int res1 = 0 ;
17275 PyObject *swig_obj[1] ;
17276
17277 if (!args) SWIG_fail;
17278 swig_obj[0] = args;
17279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17280 if (!SWIG_IsOK(res1)) {
17281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_IsOk" "', expected argument " "1"" of type '" "wxSound *""'");
17282 }
17283 arg1 = reinterpret_cast< wxSound * >(argp1);
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)(arg1)->IsOk();
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 {
17291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17292 }
17293 return resultobj;
17294fail:
17295 return NULL;
17296}
17297
17298
17299SWIGINTERN PyObject *_wrap_Sound_Play(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxSound *arg1 = (wxSound *) 0 ;
17302 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
17303 bool result;
17304 void *argp1 = 0 ;
17305 int res1 = 0 ;
17306 unsigned int val2 ;
17307 int ecode2 = 0 ;
17308 PyObject * obj0 = 0 ;
17309 PyObject * obj1 = 0 ;
17310 char * kwnames[] = {
17311 (char *) "self",(char *) "flags", NULL
17312 };
17313
17314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) SWIG_fail;
17315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17316 if (!SWIG_IsOK(res1)) {
17317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_Play" "', expected argument " "1"" of type '" "wxSound const *""'");
17318 }
17319 arg1 = reinterpret_cast< wxSound * >(argp1);
17320 if (obj1) {
17321 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17322 if (!SWIG_IsOK(ecode2)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sound_Play" "', expected argument " "2"" of type '" "unsigned int""'");
17324 }
17325 arg2 = static_cast< unsigned int >(val2);
17326 }
17327 {
17328 if (!wxPyCheckForApp()) SWIG_fail;
17329 PyThreadState* __tstate = wxPyBeginAllowThreads();
17330 result = (bool)((wxSound const *)arg1)->Play(arg2);
17331 wxPyEndAllowThreads(__tstate);
17332 if (PyErr_Occurred()) SWIG_fail;
17333 }
17334 {
17335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17336 }
17337 return resultobj;
17338fail:
17339 return NULL;
17340}
17341
17342
17343SWIGINTERN PyObject *_wrap_Sound_PlaySound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17344 PyObject *resultobj = 0;
17345 wxString *arg1 = 0 ;
17346 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
17347 bool result;
17348 bool temp1 = false ;
17349 unsigned int val2 ;
17350 int ecode2 = 0 ;
17351 PyObject * obj0 = 0 ;
17352 PyObject * obj1 = 0 ;
17353 char * kwnames[] = {
17354 (char *) "filename",(char *) "flags", NULL
17355 };
17356
17357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) SWIG_fail;
17358 {
17359 arg1 = wxString_in_helper(obj0);
17360 if (arg1 == NULL) SWIG_fail;
17361 temp1 = true;
17362 }
17363 if (obj1) {
17364 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17365 if (!SWIG_IsOK(ecode2)) {
17366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sound_PlaySound" "', expected argument " "2"" of type '" "unsigned int""'");
17367 }
17368 arg2 = static_cast< unsigned int >(val2);
17369 }
17370 {
17371 if (!wxPyCheckForApp()) SWIG_fail;
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
17374 wxPyEndAllowThreads(__tstate);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 {
17378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17379 }
17380 {
17381 if (temp1)
17382 delete arg1;
17383 }
17384 return resultobj;
17385fail:
17386 {
17387 if (temp1)
17388 delete arg1;
17389 }
17390 return NULL;
d14a1e28
RD
17391}
17392
17393
0085ce49
RD
17394SWIGINTERN PyObject *_wrap_Sound_Stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17395 PyObject *resultobj = 0;
17396
17397 if (!SWIG_Python_UnpackTuple(args,"Sound_Stop",0,0,0)) SWIG_fail;
17398 {
17399 if (!wxPyCheckForApp()) SWIG_fail;
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
17401 wxSound::Stop();
17402 wxPyEndAllowThreads(__tstate);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 }
17405 resultobj = SWIG_Py_Void();
17406 return resultobj;
17407fail:
17408 return NULL;
17409}
17410
17411
17412SWIGINTERN PyObject *Sound_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17413 PyObject *obj;
17414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17415 SWIG_TypeNewClientData(SWIGTYPE_p_wxSound, SWIG_NewClientData(obj));
17416 return SWIG_Py_Void();
17417}
17418
17419SWIGINTERN PyObject *Sound_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17420 return SWIG_Python_InitShadowInstance(args);
17421}
17422
17423SWIGINTERN PyObject *_wrap_new_FileTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17424 PyObject *resultobj = 0;
17425 wxString *arg1 = 0 ;
17426 wxString *arg2 = 0 ;
17427 wxString *arg3 = 0 ;
17428 wxString *arg4 = 0 ;
17429 wxFileTypeInfo *result = 0 ;
17430 bool temp1 = false ;
17431 bool temp2 = false ;
17432 bool temp3 = false ;
17433 bool temp4 = false ;
17434 PyObject * obj0 = 0 ;
17435 PyObject * obj1 = 0 ;
17436 PyObject * obj2 = 0 ;
17437 PyObject * obj3 = 0 ;
17438 char * kwnames[] = {
17439 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
17440 };
17441
17442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17443 {
17444 arg1 = wxString_in_helper(obj0);
17445 if (arg1 == NULL) SWIG_fail;
17446 temp1 = true;
17447 }
17448 {
17449 arg2 = wxString_in_helper(obj1);
17450 if (arg2 == NULL) SWIG_fail;
17451 temp2 = true;
17452 }
17453 {
17454 arg3 = wxString_in_helper(obj2);
17455 if (arg3 == NULL) SWIG_fail;
17456 temp3 = true;
17457 }
17458 {
17459 arg4 = wxString_in_helper(obj3);
17460 if (arg4 == NULL) SWIG_fail;
17461 temp4 = true;
17462 }
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_NEW | 0 );
17470 {
17471 if (temp1)
17472 delete arg1;
17473 }
17474 {
17475 if (temp2)
17476 delete arg2;
17477 }
17478 {
17479 if (temp3)
17480 delete arg3;
17481 }
17482 {
17483 if (temp4)
17484 delete arg4;
17485 }
17486 return resultobj;
17487fail:
17488 {
17489 if (temp1)
17490 delete arg1;
17491 }
17492 {
17493 if (temp2)
17494 delete arg2;
17495 }
17496 {
17497 if (temp3)
17498 delete arg3;
17499 }
17500 {
17501 if (temp4)
17502 delete arg4;
17503 }
17504 return NULL;
d14a1e28
RD
17505}
17506
17507
0085ce49
RD
17508SWIGINTERN PyObject *_wrap_new_FileTypeInfoSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17509 PyObject *resultobj = 0;
17510 wxArrayString *arg1 = 0 ;
17511 wxFileTypeInfo *result = 0 ;
17512 bool temp1 = false ;
17513 PyObject * obj0 = 0 ;
17514 char * kwnames[] = {
17515 (char *) "sArray", NULL
17516 };
17517
17518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) SWIG_fail;
17519 {
17520 if (! PySequence_Check(obj0)) {
17521 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
17522 SWIG_fail;
17523 }
17524 arg1 = new wxArrayString;
17525 temp1 = true;
17526 int i, len=PySequence_Length(obj0);
17527 for (i=0; i<len; i++) {
17528 PyObject* item = PySequence_GetItem(obj0, i);
17529 wxString* s = wxString_in_helper(item);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 arg1->Add(*s);
17532 delete s;
17533 Py_DECREF(item);
d14a1e28 17534 }
0085ce49
RD
17535 }
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_OWN | 0 );
17543 {
17544 if (temp1) delete arg1;
17545 }
17546 return resultobj;
17547fail:
17548 {
17549 if (temp1) delete arg1;
17550 }
17551 return NULL;
d14a1e28
RD
17552}
17553
17554
0085ce49
RD
17555SWIGINTERN PyObject *_wrap_new_NullFileTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17556 PyObject *resultobj = 0;
17557 wxFileTypeInfo *result = 0 ;
17558
17559 if (!SWIG_Python_UnpackTuple(args,"new_NullFileTypeInfo",0,0,0)) SWIG_fail;
17560 {
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 result = (wxFileTypeInfo *)new wxFileTypeInfo();
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_OWN | 0 );
17567 return resultobj;
17568fail:
17569 return NULL;
d14a1e28
RD
17570}
17571
17572
0085ce49
RD
17573SWIGINTERN PyObject *_wrap_FileTypeInfo_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17574 PyObject *resultobj = 0;
17575 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17576 bool result;
17577 void *argp1 = 0 ;
17578 int res1 = 0 ;
17579 PyObject *swig_obj[1] ;
17580
17581 if (!args) SWIG_fail;
17582 swig_obj[0] = args;
17583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17584 if (!SWIG_IsOK(res1)) {
17585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_IsValid" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17586 }
17587 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17588 {
17589 PyThreadState* __tstate = wxPyBeginAllowThreads();
17590 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 {
17595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17596 }
17597 return resultobj;
17598fail:
17599 return NULL;
17600}
17601
17602
17603SWIGINTERN PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj = 0;
17605 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17606 wxString *arg2 = 0 ;
17607 int arg3 = (int) 0 ;
17608 void *argp1 = 0 ;
17609 int res1 = 0 ;
17610 bool temp2 = false ;
17611 int val3 ;
17612 int ecode3 = 0 ;
17613 PyObject * obj0 = 0 ;
17614 PyObject * obj1 = 0 ;
17615 PyObject * obj2 = 0 ;
17616 char * kwnames[] = {
17617 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
17618 };
17619
17620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17622 if (!SWIG_IsOK(res1)) {
17623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_SetIcon" "', expected argument " "1"" of type '" "wxFileTypeInfo *""'");
17624 }
17625 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17626 {
17627 arg2 = wxString_in_helper(obj1);
17628 if (arg2 == NULL) SWIG_fail;
17629 temp2 = true;
17630 }
17631 if (obj2) {
17632 ecode3 = SWIG_AsVal_int(obj2, &val3);
17633 if (!SWIG_IsOK(ecode3)) {
17634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileTypeInfo_SetIcon" "', expected argument " "3"" of type '" "int""'");
17635 }
17636 arg3 = static_cast< int >(val3);
17637 }
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 (arg1)->SetIcon((wxString const &)*arg2,arg3);
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 resultobj = SWIG_Py_Void();
17645 {
17646 if (temp2)
17647 delete arg2;
17648 }
17649 return resultobj;
17650fail:
17651 {
17652 if (temp2)
17653 delete arg2;
17654 }
17655 return NULL;
d14a1e28
RD
17656}
17657
17658
0085ce49
RD
17659SWIGINTERN PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17660 PyObject *resultobj = 0;
17661 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17662 wxString *arg2 = 0 ;
17663 void *argp1 = 0 ;
17664 int res1 = 0 ;
17665 bool temp2 = false ;
17666 PyObject * obj0 = 0 ;
17667 PyObject * obj1 = 0 ;
17668 char * kwnames[] = {
17669 (char *) "self",(char *) "shortDesc", NULL
17670 };
17671
17672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) SWIG_fail;
17673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17674 if (!SWIG_IsOK(res1)) {
17675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_SetShortDesc" "', expected argument " "1"" of type '" "wxFileTypeInfo *""'");
17676 }
17677 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17678 {
17679 arg2 = wxString_in_helper(obj1);
17680 if (arg2 == NULL) SWIG_fail;
17681 temp2 = true;
17682 }
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 (arg1)->SetShortDesc((wxString const &)*arg2);
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 resultobj = SWIG_Py_Void();
17690 {
17691 if (temp2)
17692 delete arg2;
17693 }
17694 return resultobj;
17695fail:
17696 {
17697 if (temp2)
17698 delete arg2;
17699 }
17700 return NULL;
d14a1e28
RD
17701}
17702
17703
0085ce49
RD
17704SWIGINTERN PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17705 PyObject *resultobj = 0;
17706 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17707 wxString *result = 0 ;
17708 void *argp1 = 0 ;
17709 int res1 = 0 ;
17710 PyObject *swig_obj[1] ;
17711
17712 if (!args) SWIG_fail;
17713 swig_obj[0] = args;
17714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17715 if (!SWIG_IsOK(res1)) {
17716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetMimeType" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17717 }
17718 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17721 {
0085ce49
RD
17722 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
17723 result = (wxString *) &_result_ref;
093d3ff1 17724 }
0085ce49
RD
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 {
17729#if wxUSE_UNICODE
17730 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17731#else
17732 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17733#endif
17734 }
17735 return resultobj;
17736fail:
17737 return NULL;
d14a1e28
RD
17738}
17739
17740
0085ce49
RD
17741SWIGINTERN PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17742 PyObject *resultobj = 0;
17743 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17744 wxString *result = 0 ;
17745 void *argp1 = 0 ;
17746 int res1 = 0 ;
17747 PyObject *swig_obj[1] ;
17748
17749 if (!args) SWIG_fail;
17750 swig_obj[0] = args;
17751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17752 if (!SWIG_IsOK(res1)) {
17753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetOpenCommand" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17754 }
17755 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17758 {
0085ce49
RD
17759 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
17760 result = (wxString *) &_result_ref;
093d3ff1 17761 }
0085ce49
RD
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 {
17766#if wxUSE_UNICODE
17767 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17768#else
17769 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17770#endif
17771 }
17772 return resultobj;
17773fail:
17774 return NULL;
d14a1e28
RD
17775}
17776
17777
0085ce49
RD
17778SWIGINTERN PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17779 PyObject *resultobj = 0;
17780 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17781 wxString *result = 0 ;
17782 void *argp1 = 0 ;
17783 int res1 = 0 ;
17784 PyObject *swig_obj[1] ;
17785
17786 if (!args) SWIG_fail;
17787 swig_obj[0] = args;
17788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17789 if (!SWIG_IsOK(res1)) {
17790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetPrintCommand" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17791 }
17792 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17793 {
17794 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17795 {
0085ce49
RD
17796 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
17797 result = (wxString *) &_result_ref;
093d3ff1 17798 }
0085ce49
RD
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 {
17803#if wxUSE_UNICODE
17804 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17805#else
17806 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17807#endif
17808 }
17809 return resultobj;
17810fail:
17811 return NULL;
d14a1e28
RD
17812}
17813
17814
0085ce49
RD
17815SWIGINTERN PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17816 PyObject *resultobj = 0;
17817 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17818 wxString *result = 0 ;
17819 void *argp1 = 0 ;
17820 int res1 = 0 ;
17821 PyObject *swig_obj[1] ;
17822
17823 if (!args) SWIG_fail;
17824 swig_obj[0] = args;
17825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17826 if (!SWIG_IsOK(res1)) {
17827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetShortDesc" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17828 }
17829 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17832 {
0085ce49
RD
17833 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
17834 result = (wxString *) &_result_ref;
093d3ff1 17835 }
0085ce49
RD
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 {
17840#if wxUSE_UNICODE
17841 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17842#else
17843 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17844#endif
17845 }
17846 return resultobj;
17847fail:
17848 return NULL;
d14a1e28
RD
17849}
17850
17851
0085ce49
RD
17852SWIGINTERN PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17853 PyObject *resultobj = 0;
17854 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17855 wxString *result = 0 ;
17856 void *argp1 = 0 ;
17857 int res1 = 0 ;
17858 PyObject *swig_obj[1] ;
17859
17860 if (!args) SWIG_fail;
17861 swig_obj[0] = args;
17862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17863 if (!SWIG_IsOK(res1)) {
17864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetDescription" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17865 }
17866 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17869 {
0085ce49
RD
17870 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
17871 result = (wxString *) &_result_ref;
093d3ff1 17872 }
0085ce49
RD
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 {
17877#if wxUSE_UNICODE
17878 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17879#else
17880 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17881#endif
17882 }
17883 return resultobj;
17884fail:
17885 return NULL;
d14a1e28
RD
17886}
17887
17888
0085ce49
RD
17889SWIGINTERN PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17890 PyObject *resultobj = 0;
17891 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17892 wxArrayString *result = 0 ;
17893 void *argp1 = 0 ;
17894 int res1 = 0 ;
17895 PyObject *swig_obj[1] ;
17896
17897 if (!args) SWIG_fail;
17898 swig_obj[0] = args;
17899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetExtensions" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17902 }
17903 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17904 {
17905 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17906 {
0085ce49
RD
17907 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
17908 result = (wxArrayString *) &_result_ref;
093d3ff1 17909 }
0085ce49
RD
17910 wxPyEndAllowThreads(__tstate);
17911 if (PyErr_Occurred()) SWIG_fail;
17912 }
17913 {
17914 resultobj = wxArrayString2PyList_helper(*result);
17915 }
17916 return resultobj;
17917fail:
17918 return NULL;
d14a1e28
RD
17919}
17920
17921
0085ce49
RD
17922SWIGINTERN PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17923 PyObject *resultobj = 0;
17924 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17925 size_t result;
17926 void *argp1 = 0 ;
17927 int res1 = 0 ;
17928 PyObject *swig_obj[1] ;
17929
17930 if (!args) SWIG_fail;
17931 swig_obj[0] = args;
17932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17933 if (!SWIG_IsOK(res1)) {
17934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetExtensionsCount" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17935 }
17936 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 result = (size_t)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17944 return resultobj;
17945fail:
17946 return NULL;
d14a1e28
RD
17947}
17948
17949
0085ce49
RD
17950SWIGINTERN PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17951 PyObject *resultobj = 0;
17952 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17953 wxString *result = 0 ;
17954 void *argp1 = 0 ;
17955 int res1 = 0 ;
17956 PyObject *swig_obj[1] ;
17957
17958 if (!args) SWIG_fail;
17959 swig_obj[0] = args;
17960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17961 if (!SWIG_IsOK(res1)) {
17962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetIconFile" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17963 }
17964 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17967 {
0085ce49
RD
17968 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
17969 result = (wxString *) &_result_ref;
093d3ff1 17970 }
0085ce49
RD
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 {
17975#if wxUSE_UNICODE
17976 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17977#else
17978 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17979#endif
17980 }
17981 return resultobj;
17982fail:
17983 return NULL;
d14a1e28
RD
17984}
17985
17986
0085ce49
RD
17987SWIGINTERN PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17988 PyObject *resultobj = 0;
17989 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17990 int result;
17991 void *argp1 = 0 ;
17992 int res1 = 0 ;
17993 PyObject *swig_obj[1] ;
17994
17995 if (!args) SWIG_fail;
17996 swig_obj[0] = args;
17997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17998 if (!SWIG_IsOK(res1)) {
17999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetIconIndex" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
18000 }
18001 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
18002 {
18003 PyThreadState* __tstate = wxPyBeginAllowThreads();
18004 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 resultobj = SWIG_From_int(static_cast< int >(result));
18009 return resultobj;
18010fail:
18011 return NULL;
d14a1e28
RD
18012}
18013
18014
0085ce49
RD
18015SWIGINTERN PyObject *FileTypeInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18016 PyObject *obj;
18017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18018 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileTypeInfo, SWIG_NewClientData(obj));
18019 return SWIG_Py_Void();
d14a1e28
RD
18020}
18021
0085ce49
RD
18022SWIGINTERN PyObject *FileTypeInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18023 return SWIG_Python_InitShadowInstance(args);
18024}
d14a1e28 18025
0085ce49
RD
18026SWIGINTERN PyObject *_wrap_new_FileType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj = 0;
18028 wxFileTypeInfo *arg1 = 0 ;
18029 wxFileType *result = 0 ;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 PyObject * obj0 = 0 ;
18033 char * kwnames[] = {
18034 (char *) "ftInfo", NULL
18035 };
18036
18037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) SWIG_fail;
18038 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
18039 if (!SWIG_IsOK(res1)) {
18040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileType" "', expected argument " "1"" of type '" "wxFileTypeInfo const &""'");
18041 }
18042 if (!argp1) {
18043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FileType" "', expected argument " "1"" of type '" "wxFileTypeInfo const &""'");
18044 }
18045 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_NEW | 0 );
18053 return resultobj;
18054fail:
18055 return NULL;
d14a1e28
RD
18056}
18057
18058
0085ce49
RD
18059SWIGINTERN PyObject *_wrap_delete_FileType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18060 PyObject *resultobj = 0;
18061 wxFileType *arg1 = (wxFileType *) 0 ;
18062 void *argp1 = 0 ;
18063 int res1 = 0 ;
18064 PyObject *swig_obj[1] ;
18065
18066 if (!args) SWIG_fail;
18067 swig_obj[0] = args;
18068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, SWIG_POINTER_DISOWN | 0 );
18069 if (!SWIG_IsOK(res1)) {
18070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileType" "', expected argument " "1"" of type '" "wxFileType *""'");
18071 }
18072 arg1 = reinterpret_cast< wxFileType * >(argp1);
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 delete arg1;
d14a1e28 18076
0085ce49
RD
18077 wxPyEndAllowThreads(__tstate);
18078 if (PyErr_Occurred()) SWIG_fail;
18079 }
18080 resultobj = SWIG_Py_Void();
18081 return resultobj;
18082fail:
18083 return NULL;
d14a1e28
RD
18084}
18085
18086
0085ce49
RD
18087SWIGINTERN PyObject *_wrap_FileType_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18088 PyObject *resultobj = 0;
18089 wxFileType *arg1 = (wxFileType *) 0 ;
18090 PyObject *result = 0 ;
18091 void *argp1 = 0 ;
18092 int res1 = 0 ;
18093 PyObject *swig_obj[1] ;
18094
18095 if (!args) SWIG_fail;
18096 swig_obj[0] = args;
18097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetMimeType" "', expected argument " "1"" of type '" "wxFileType *""'");
18100 }
18101 arg1 = reinterpret_cast< wxFileType * >(argp1);
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 result = (PyObject *)wxFileType_GetMimeType(arg1);
18105 wxPyEndAllowThreads(__tstate);
18106 if (PyErr_Occurred()) SWIG_fail;
18107 }
18108 resultobj = result;
18109 return resultobj;
18110fail:
18111 return NULL;
d14a1e28
RD
18112}
18113
18114
0085ce49
RD
18115SWIGINTERN PyObject *_wrap_FileType_GetMimeTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18116 PyObject *resultobj = 0;
18117 wxFileType *arg1 = (wxFileType *) 0 ;
18118 PyObject *result = 0 ;
18119 void *argp1 = 0 ;
18120 int res1 = 0 ;
18121 PyObject *swig_obj[1] ;
18122
18123 if (!args) SWIG_fail;
18124 swig_obj[0] = args;
18125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18126 if (!SWIG_IsOK(res1)) {
18127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetMimeTypes" "', expected argument " "1"" of type '" "wxFileType *""'");
18128 }
18129 arg1 = reinterpret_cast< wxFileType * >(argp1);
18130 {
18131 PyThreadState* __tstate = wxPyBeginAllowThreads();
18132 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 resultobj = result;
18137 return resultobj;
18138fail:
18139 return NULL;
d14a1e28
RD
18140}
18141
18142
0085ce49
RD
18143SWIGINTERN PyObject *_wrap_FileType_GetExtensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18144 PyObject *resultobj = 0;
18145 wxFileType *arg1 = (wxFileType *) 0 ;
18146 PyObject *result = 0 ;
18147 void *argp1 = 0 ;
18148 int res1 = 0 ;
18149 PyObject *swig_obj[1] ;
18150
18151 if (!args) SWIG_fail;
18152 swig_obj[0] = args;
18153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18154 if (!SWIG_IsOK(res1)) {
18155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetExtensions" "', expected argument " "1"" of type '" "wxFileType *""'");
18156 }
18157 arg1 = reinterpret_cast< wxFileType * >(argp1);
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 result = (PyObject *)wxFileType_GetExtensions(arg1);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = result;
18165 return resultobj;
18166fail:
18167 return NULL;
d14a1e28
RD
18168}
18169
18170
0085ce49
RD
18171SWIGINTERN PyObject *_wrap_FileType_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18172 PyObject *resultobj = 0;
18173 wxFileType *arg1 = (wxFileType *) 0 ;
18174 wxIcon *result = 0 ;
18175 void *argp1 = 0 ;
18176 int res1 = 0 ;
18177 PyObject *swig_obj[1] ;
18178
18179 if (!args) SWIG_fail;
18180 swig_obj[0] = args;
18181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18182 if (!SWIG_IsOK(res1)) {
18183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetIcon" "', expected argument " "1"" of type '" "wxFileType *""'");
18184 }
18185 arg1 = reinterpret_cast< wxFileType * >(argp1);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 result = (wxIcon *)wxFileType_GetIcon(arg1);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
18193 return resultobj;
18194fail:
18195 return NULL;
d14a1e28
RD
18196}
18197
18198
0085ce49
RD
18199SWIGINTERN PyObject *_wrap_FileType_GetIconInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18200 PyObject *resultobj = 0;
18201 wxFileType *arg1 = (wxFileType *) 0 ;
18202 PyObject *result = 0 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 PyObject *swig_obj[1] ;
18206
18207 if (!args) SWIG_fail;
18208 swig_obj[0] = args;
18209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18210 if (!SWIG_IsOK(res1)) {
18211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetIconInfo" "', expected argument " "1"" of type '" "wxFileType *""'");
18212 }
18213 arg1 = reinterpret_cast< wxFileType * >(argp1);
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 result = (PyObject *)wxFileType_GetIconInfo(arg1);
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = result;
18221 return resultobj;
18222fail:
18223 return NULL;
d14a1e28
RD
18224}
18225
18226
0085ce49
RD
18227SWIGINTERN PyObject *_wrap_FileType_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18228 PyObject *resultobj = 0;
18229 wxFileType *arg1 = (wxFileType *) 0 ;
18230 PyObject *result = 0 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 PyObject *swig_obj[1] ;
18234
18235 if (!args) SWIG_fail;
18236 swig_obj[0] = args;
18237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18238 if (!SWIG_IsOK(res1)) {
18239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetDescription" "', expected argument " "1"" of type '" "wxFileType *""'");
18240 }
18241 arg1 = reinterpret_cast< wxFileType * >(argp1);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 result = (PyObject *)wxFileType_GetDescription(arg1);
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = result;
18249 return resultobj;
18250fail:
18251 return NULL;
18252}
18253
18254
18255SWIGINTERN PyObject *_wrap_FileType_GetOpenCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18256 PyObject *resultobj = 0;
18257 wxFileType *arg1 = (wxFileType *) 0 ;
18258 wxString *arg2 = 0 ;
18259 wxString const &arg3_defvalue = wxPyEmptyString ;
18260 wxString *arg3 = (wxString *) &arg3_defvalue ;
18261 PyObject *result = 0 ;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 bool temp2 = false ;
18265 bool temp3 = false ;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 PyObject * obj2 = 0 ;
18269 char * kwnames[] = {
18270 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18271 };
18272
18273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18275 if (!SWIG_IsOK(res1)) {
18276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetOpenCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18277 }
18278 arg1 = reinterpret_cast< wxFileType * >(argp1);
18279 {
18280 arg2 = wxString_in_helper(obj1);
18281 if (arg2 == NULL) SWIG_fail;
18282 temp2 = true;
18283 }
18284 if (obj2) {
4f89f6a3 18285 {
0085ce49
RD
18286 arg3 = wxString_in_helper(obj2);
18287 if (arg3 == NULL) SWIG_fail;
18288 temp3 = true;
4f89f6a3 18289 }
0085ce49
RD
18290 }
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = result;
18298 {
18299 if (temp2)
18300 delete arg2;
18301 }
18302 {
18303 if (temp3)
18304 delete arg3;
18305 }
18306 return resultobj;
18307fail:
18308 {
18309 if (temp2)
18310 delete arg2;
18311 }
18312 {
18313 if (temp3)
18314 delete arg3;
18315 }
18316 return NULL;
18317}
18318
18319
18320SWIGINTERN PyObject *_wrap_FileType_GetPrintCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj = 0;
18322 wxFileType *arg1 = (wxFileType *) 0 ;
18323 wxString *arg2 = 0 ;
18324 wxString const &arg3_defvalue = wxPyEmptyString ;
18325 wxString *arg3 = (wxString *) &arg3_defvalue ;
18326 PyObject *result = 0 ;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 bool temp2 = false ;
18330 bool temp3 = false ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 PyObject * obj2 = 0 ;
18334 char * kwnames[] = {
18335 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18336 };
18337
18338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18340 if (!SWIG_IsOK(res1)) {
18341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetPrintCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18342 }
18343 arg1 = reinterpret_cast< wxFileType * >(argp1);
18344 {
18345 arg2 = wxString_in_helper(obj1);
18346 if (arg2 == NULL) SWIG_fail;
18347 temp2 = true;
18348 }
18349 if (obj2) {
d14a1e28 18350 {
0085ce49
RD
18351 arg3 = wxString_in_helper(obj2);
18352 if (arg3 == NULL) SWIG_fail;
18353 temp3 = true;
d14a1e28 18354 }
0085ce49
RD
18355 }
18356 {
18357 PyThreadState* __tstate = wxPyBeginAllowThreads();
18358 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18359 wxPyEndAllowThreads(__tstate);
18360 if (PyErr_Occurred()) SWIG_fail;
18361 }
18362 resultobj = result;
18363 {
18364 if (temp2)
18365 delete arg2;
18366 }
18367 {
18368 if (temp3)
18369 delete arg3;
18370 }
18371 return resultobj;
18372fail:
18373 {
18374 if (temp2)
18375 delete arg2;
18376 }
18377 {
18378 if (temp3)
18379 delete arg3;
18380 }
18381 return NULL;
18382}
18383
18384
18385SWIGINTERN PyObject *_wrap_FileType_GetAllCommands(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj = 0;
18387 wxFileType *arg1 = (wxFileType *) 0 ;
18388 wxString *arg2 = 0 ;
18389 wxString const &arg3_defvalue = wxPyEmptyString ;
18390 wxString *arg3 = (wxString *) &arg3_defvalue ;
18391 PyObject *result = 0 ;
18392 void *argp1 = 0 ;
18393 int res1 = 0 ;
18394 bool temp2 = false ;
18395 bool temp3 = false ;
18396 PyObject * obj0 = 0 ;
18397 PyObject * obj1 = 0 ;
18398 PyObject * obj2 = 0 ;
18399 char * kwnames[] = {
18400 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18401 };
18402
18403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18405 if (!SWIG_IsOK(res1)) {
18406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetAllCommands" "', expected argument " "1"" of type '" "wxFileType *""'");
18407 }
18408 arg1 = reinterpret_cast< wxFileType * >(argp1);
18409 {
18410 arg2 = wxString_in_helper(obj1);
18411 if (arg2 == NULL) SWIG_fail;
18412 temp2 = true;
18413 }
18414 if (obj2) {
4f89f6a3 18415 {
0085ce49
RD
18416 arg3 = wxString_in_helper(obj2);
18417 if (arg3 == NULL) SWIG_fail;
18418 temp3 = true;
994141e6 18419 }
0085ce49
RD
18420 }
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 resultobj = result;
18428 {
18429 if (temp2)
18430 delete arg2;
18431 }
18432 {
18433 if (temp3)
18434 delete arg3;
18435 }
18436 return resultobj;
18437fail:
18438 {
18439 if (temp2)
18440 delete arg2;
18441 }
18442 {
18443 if (temp3)
18444 delete arg3;
18445 }
18446 return NULL;
18447}
18448
18449
18450SWIGINTERN PyObject *_wrap_FileType_SetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj = 0;
18452 wxFileType *arg1 = (wxFileType *) 0 ;
18453 wxString *arg2 = 0 ;
18454 wxString *arg3 = 0 ;
18455 bool arg4 = (bool) true ;
18456 bool result;
18457 void *argp1 = 0 ;
18458 int res1 = 0 ;
18459 bool temp2 = false ;
18460 bool temp3 = false ;
18461 bool val4 ;
18462 int ecode4 = 0 ;
18463 PyObject * obj0 = 0 ;
18464 PyObject * obj1 = 0 ;
18465 PyObject * obj2 = 0 ;
18466 PyObject * obj3 = 0 ;
18467 char * kwnames[] = {
18468 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
18469 };
18470
18471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18473 if (!SWIG_IsOK(res1)) {
18474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_SetCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18475 }
18476 arg1 = reinterpret_cast< wxFileType * >(argp1);
18477 {
18478 arg2 = wxString_in_helper(obj1);
18479 if (arg2 == NULL) SWIG_fail;
18480 temp2 = true;
18481 }
18482 {
18483 arg3 = wxString_in_helper(obj2);
18484 if (arg3 == NULL) SWIG_fail;
18485 temp3 = true;
18486 }
18487 if (obj3) {
18488 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18489 if (!SWIG_IsOK(ecode4)) {
18490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileType_SetCommand" "', expected argument " "4"" of type '" "bool""'");
18491 }
18492 arg4 = static_cast< bool >(val4);
18493 }
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 {
18501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18502 }
18503 {
18504 if (temp2)
18505 delete arg2;
18506 }
18507 {
18508 if (temp3)
18509 delete arg3;
18510 }
18511 return resultobj;
18512fail:
18513 {
18514 if (temp2)
18515 delete arg2;
18516 }
18517 {
18518 if (temp3)
18519 delete arg3;
18520 }
18521 return NULL;
18522}
18523
18524
18525SWIGINTERN PyObject *_wrap_FileType_SetDefaultIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj = 0;
18527 wxFileType *arg1 = (wxFileType *) 0 ;
18528 wxString const &arg2_defvalue = wxPyEmptyString ;
18529 wxString *arg2 = (wxString *) &arg2_defvalue ;
18530 int arg3 = (int) 0 ;
18531 bool result;
18532 void *argp1 = 0 ;
18533 int res1 = 0 ;
18534 bool temp2 = false ;
18535 int val3 ;
18536 int ecode3 = 0 ;
18537 PyObject * obj0 = 0 ;
18538 PyObject * obj1 = 0 ;
18539 PyObject * obj2 = 0 ;
18540 char * kwnames[] = {
18541 (char *) "self",(char *) "cmd",(char *) "index", NULL
18542 };
18543
18544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18546 if (!SWIG_IsOK(res1)) {
18547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_SetDefaultIcon" "', expected argument " "1"" of type '" "wxFileType *""'");
18548 }
18549 arg1 = reinterpret_cast< wxFileType * >(argp1);
18550 if (obj1) {
d14a1e28 18551 {
0085ce49
RD
18552 arg2 = wxString_in_helper(obj1);
18553 if (arg2 == NULL) SWIG_fail;
18554 temp2 = true;
d14a1e28 18555 }
0085ce49
RD
18556 }
18557 if (obj2) {
18558 ecode3 = SWIG_AsVal_int(obj2, &val3);
18559 if (!SWIG_IsOK(ecode3)) {
18560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileType_SetDefaultIcon" "', expected argument " "3"" of type '" "int""'");
18561 }
18562 arg3 = static_cast< int >(val3);
18563 }
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
18567 wxPyEndAllowThreads(__tstate);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 }
18570 {
18571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18572 }
18573 {
18574 if (temp2)
18575 delete arg2;
18576 }
18577 return resultobj;
18578fail:
18579 {
18580 if (temp2)
18581 delete arg2;
18582 }
18583 return NULL;
d14a1e28
RD
18584}
18585
18586
0085ce49
RD
18587SWIGINTERN PyObject *_wrap_FileType_Unassociate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18588 PyObject *resultobj = 0;
18589 wxFileType *arg1 = (wxFileType *) 0 ;
18590 bool result;
18591 void *argp1 = 0 ;
18592 int res1 = 0 ;
18593 PyObject *swig_obj[1] ;
18594
18595 if (!args) SWIG_fail;
18596 swig_obj[0] = args;
18597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_Unassociate" "', expected argument " "1"" of type '" "wxFileType *""'");
18600 }
18601 arg1 = reinterpret_cast< wxFileType * >(argp1);
18602 {
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 result = (bool)(arg1)->Unassociate();
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 {
18609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18610 }
18611 return resultobj;
18612fail:
18613 return NULL;
18614}
18615
18616
18617SWIGINTERN PyObject *_wrap_FileType_ExpandCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj = 0;
18619 wxString *arg1 = 0 ;
18620 wxString *arg2 = 0 ;
18621 wxString const &arg3_defvalue = wxPyEmptyString ;
18622 wxString *arg3 = (wxString *) &arg3_defvalue ;
18623 wxString result;
18624 bool temp1 = false ;
18625 bool temp2 = false ;
18626 bool temp3 = false ;
18627 PyObject * obj0 = 0 ;
18628 PyObject * obj1 = 0 ;
18629 PyObject * obj2 = 0 ;
18630 char * kwnames[] = {
18631 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
18632 };
18633
18634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18635 {
18636 arg1 = wxString_in_helper(obj0);
18637 if (arg1 == NULL) SWIG_fail;
18638 temp1 = true;
18639 }
18640 {
18641 arg2 = wxString_in_helper(obj1);
18642 if (arg2 == NULL) SWIG_fail;
18643 temp2 = true;
18644 }
18645 if (obj2) {
d14a1e28 18646 {
0085ce49
RD
18647 arg3 = wxString_in_helper(obj2);
18648 if (arg3 == NULL) SWIG_fail;
18649 temp3 = true;
d14a1e28 18650 }
0085ce49
RD
18651 }
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18655 wxPyEndAllowThreads(__tstate);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 {
18659#if wxUSE_UNICODE
18660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18661#else
18662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18663#endif
18664 }
18665 {
18666 if (temp1)
18667 delete arg1;
18668 }
18669 {
18670 if (temp2)
18671 delete arg2;
18672 }
18673 {
18674 if (temp3)
18675 delete arg3;
18676 }
18677 return resultobj;
18678fail:
18679 {
18680 if (temp1)
18681 delete arg1;
18682 }
18683 {
18684 if (temp2)
18685 delete arg2;
18686 }
18687 {
18688 if (temp3)
18689 delete arg3;
18690 }
18691 return NULL;
d14a1e28
RD
18692}
18693
18694
0085ce49
RD
18695SWIGINTERN PyObject *FileType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18696 PyObject *obj;
18697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18698 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileType, SWIG_NewClientData(obj));
18699 return SWIG_Py_Void();
d14a1e28
RD
18700}
18701
0085ce49
RD
18702SWIGINTERN PyObject *FileType_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18703 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18704}
18705
0085ce49
RD
18706SWIGINTERN int TheMimeTypesManager_set(PyObject *) {
18707 SWIG_Error(SWIG_AttributeError,"Variable TheMimeTypesManager is read-only.");
18708 return 1;
d14a1e28
RD
18709}
18710
18711
0085ce49
RD
18712SWIGINTERN PyObject *TheMimeTypesManager_get(void) {
18713 PyObject *pyobj = 0;
18714
18715 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0 );
18716 return pyobj;
18717}
18718
18719
18720SWIGINTERN PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18721 PyObject *resultobj = 0;
18722 wxString *arg1 = 0 ;
18723 wxString *arg2 = 0 ;
18724 bool result;
18725 bool temp1 = false ;
18726 bool temp2 = false ;
18727 PyObject * obj0 = 0 ;
18728 PyObject * obj1 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "mimeType",(char *) "wildcard", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) SWIG_fail;
18734 {
18735 arg1 = wxString_in_helper(obj0);
18736 if (arg1 == NULL) SWIG_fail;
18737 temp1 = true;
18738 }
18739 {
18740 arg2 = wxString_in_helper(obj1);
18741 if (arg2 == NULL) SWIG_fail;
18742 temp2 = true;
18743 }
18744 {
18745 PyThreadState* __tstate = wxPyBeginAllowThreads();
18746 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
18747 wxPyEndAllowThreads(__tstate);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 {
18751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18752 }
18753 {
18754 if (temp1)
18755 delete arg1;
18756 }
18757 {
18758 if (temp2)
18759 delete arg2;
18760 }
18761 return resultobj;
18762fail:
18763 {
18764 if (temp1)
18765 delete arg1;
18766 }
18767 {
18768 if (temp2)
18769 delete arg2;
18770 }
18771 return NULL;
d14a1e28
RD
18772}
18773
18774
0085ce49
RD
18775SWIGINTERN PyObject *_wrap_new_MimeTypesManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18776 PyObject *resultobj = 0;
18777 wxMimeTypesManager *result = 0 ;
18778
18779 if (!SWIG_Python_UnpackTuple(args,"new_MimeTypesManager",0,0,0)) SWIG_fail;
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 result = (wxMimeTypesManager *)new wxMimeTypesManager();
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_NEW | 0 );
18787 return resultobj;
18788fail:
18789 return NULL;
18790}
18791
18792
18793SWIGINTERN PyObject *_wrap_MimeTypesManager_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj = 0;
18795 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18796 int arg2 = (int) wxMAILCAP_ALL ;
18797 wxString const &arg3_defvalue = wxPyEmptyString ;
18798 wxString *arg3 = (wxString *) &arg3_defvalue ;
18799 void *argp1 = 0 ;
18800 int res1 = 0 ;
18801 int val2 ;
18802 int ecode2 = 0 ;
18803 bool temp3 = false ;
18804 PyObject * obj0 = 0 ;
18805 PyObject * obj1 = 0 ;
18806 PyObject * obj2 = 0 ;
18807 char * kwnames[] = {
18808 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
18809 };
18810
18811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18813 if (!SWIG_IsOK(res1)) {
18814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Initialize" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18815 }
18816 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18817 if (obj1) {
18818 ecode2 = SWIG_AsVal_int(obj1, &val2);
18819 if (!SWIG_IsOK(ecode2)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MimeTypesManager_Initialize" "', expected argument " "2"" of type '" "int""'");
18821 }
18822 arg2 = static_cast< int >(val2);
18823 }
18824 if (obj2) {
d14a1e28 18825 {
0085ce49
RD
18826 arg3 = wxString_in_helper(obj2);
18827 if (arg3 == NULL) SWIG_fail;
18828 temp3 = true;
d14a1e28 18829 }
0085ce49
RD
18830 }
18831 {
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 (arg1)->Initialize(arg2,(wxString const &)*arg3);
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 resultobj = SWIG_Py_Void();
18838 {
18839 if (temp3)
18840 delete arg3;
18841 }
18842 return resultobj;
18843fail:
18844 {
18845 if (temp3)
18846 delete arg3;
18847 }
18848 return NULL;
d14a1e28
RD
18849}
18850
18851
0085ce49
RD
18852SWIGINTERN PyObject *_wrap_MimeTypesManager_ClearData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18853 PyObject *resultobj = 0;
18854 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18855 void *argp1 = 0 ;
18856 int res1 = 0 ;
18857 PyObject *swig_obj[1] ;
18858
18859 if (!args) SWIG_fail;
18860 swig_obj[0] = args;
18861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18862 if (!SWIG_IsOK(res1)) {
18863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ClearData" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18864 }
18865 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->ClearData();
18869 wxPyEndAllowThreads(__tstate);
18870 if (PyErr_Occurred()) SWIG_fail;
18871 }
18872 resultobj = SWIG_Py_Void();
18873 return resultobj;
18874fail:
18875 return NULL;
18876}
18877
18878
18879SWIGINTERN PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18880 PyObject *resultobj = 0;
18881 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18882 wxString *arg2 = 0 ;
18883 wxFileType *result = 0 ;
18884 void *argp1 = 0 ;
18885 int res1 = 0 ;
18886 bool temp2 = false ;
18887 PyObject * obj0 = 0 ;
18888 PyObject * obj1 = 0 ;
18889 char * kwnames[] = {
18890 (char *) "self",(char *) "ext", NULL
18891 };
18892
18893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) SWIG_fail;
18894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18895 if (!SWIG_IsOK(res1)) {
18896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_GetFileTypeFromExtension" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18897 }
18898 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18899 {
18900 arg2 = wxString_in_helper(obj1);
18901 if (arg2 == NULL) SWIG_fail;
18902 temp2 = true;
18903 }
18904 {
18905 PyThreadState* __tstate = wxPyBeginAllowThreads();
18906 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
18907 wxPyEndAllowThreads(__tstate);
18908 if (PyErr_Occurred()) SWIG_fail;
18909 }
18910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
18911 {
18912 if (temp2)
18913 delete arg2;
18914 }
18915 return resultobj;
18916fail:
18917 {
18918 if (temp2)
18919 delete arg2;
18920 }
18921 return NULL;
18922}
18923
18924
18925SWIGINTERN PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18926 PyObject *resultobj = 0;
18927 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18928 wxString *arg2 = 0 ;
18929 wxFileType *result = 0 ;
18930 void *argp1 = 0 ;
18931 int res1 = 0 ;
18932 bool temp2 = false ;
18933 PyObject * obj0 = 0 ;
18934 PyObject * obj1 = 0 ;
18935 char * kwnames[] = {
18936 (char *) "self",(char *) "mimeType", NULL
18937 };
18938
18939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) SWIG_fail;
18940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18941 if (!SWIG_IsOK(res1)) {
18942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_GetFileTypeFromMimeType" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18943 }
18944 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18945 {
18946 arg2 = wxString_in_helper(obj1);
18947 if (arg2 == NULL) SWIG_fail;
18948 temp2 = true;
18949 }
18950 {
18951 PyThreadState* __tstate = wxPyBeginAllowThreads();
18952 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
18953 wxPyEndAllowThreads(__tstate);
18954 if (PyErr_Occurred()) SWIG_fail;
18955 }
18956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
18957 {
18958 if (temp2)
18959 delete arg2;
18960 }
18961 return resultobj;
18962fail:
18963 {
18964 if (temp2)
18965 delete arg2;
18966 }
18967 return NULL;
18968}
18969
18970
18971SWIGINTERN PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18972 PyObject *resultobj = 0;
18973 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18974 wxString *arg2 = 0 ;
18975 bool arg3 = (bool) false ;
18976 bool result;
18977 void *argp1 = 0 ;
18978 int res1 = 0 ;
18979 bool temp2 = false ;
18980 bool val3 ;
18981 int ecode3 = 0 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 PyObject * obj2 = 0 ;
18985 char * kwnames[] = {
18986 (char *) "self",(char *) "filename",(char *) "fallback", NULL
18987 };
18988
18989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18991 if (!SWIG_IsOK(res1)) {
18992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ReadMailcap" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18993 }
18994 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18995 {
18996 arg2 = wxString_in_helper(obj1);
18997 if (arg2 == NULL) SWIG_fail;
18998 temp2 = true;
18999 }
19000 if (obj2) {
19001 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19002 if (!SWIG_IsOK(ecode3)) {
19003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MimeTypesManager_ReadMailcap" "', expected argument " "3"" of type '" "bool""'");
19004 }
19005 arg3 = static_cast< bool >(val3);
19006 }
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 {
19014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19015 }
19016 {
19017 if (temp2)
19018 delete arg2;
19019 }
19020 return resultobj;
19021fail:
19022 {
19023 if (temp2)
19024 delete arg2;
19025 }
19026 return NULL;
19027}
19028
19029
19030SWIGINTERN PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj = 0;
19032 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19033 wxString *arg2 = 0 ;
19034 bool result;
19035 void *argp1 = 0 ;
19036 int res1 = 0 ;
19037 bool temp2 = false ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "filename", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ReadMimeTypes" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19048 }
19049 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19050 {
19051 arg2 = wxString_in_helper(obj1);
19052 if (arg2 == NULL) SWIG_fail;
19053 temp2 = true;
19054 }
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 {
19062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19063 }
19064 {
19065 if (temp2)
19066 delete arg2;
19067 }
19068 return resultobj;
19069fail:
19070 {
19071 if (temp2)
19072 delete arg2;
19073 }
19074 return NULL;
19075}
d14a1e28
RD
19076
19077
0085ce49
RD
19078SWIGINTERN PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19079 PyObject *resultobj = 0;
19080 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19081 PyObject *result = 0 ;
19082 void *argp1 = 0 ;
19083 int res1 = 0 ;
19084 PyObject *swig_obj[1] ;
19085
19086 if (!args) SWIG_fail;
19087 swig_obj[0] = args;
19088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_EnumAllFileTypes" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19091 }
19092 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = result;
19100 return resultobj;
19101fail:
19102 return NULL;
19103}
19104
19105
19106SWIGINTERN PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19109 wxFileTypeInfo *arg2 = 0 ;
19110 void *argp1 = 0 ;
19111 int res1 = 0 ;
19112 void *argp2 = 0 ;
19113 int res2 = 0 ;
19114 PyObject * obj0 = 0 ;
19115 PyObject * obj1 = 0 ;
19116 char * kwnames[] = {
19117 (char *) "self",(char *) "ft", NULL
19118 };
19119
19120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) SWIG_fail;
19121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19122 if (!SWIG_IsOK(res1)) {
19123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_AddFallback" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19124 }
19125 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
19127 if (!SWIG_IsOK(res2)) {
19128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_AddFallback" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19129 }
19130 if (!argp2) {
19131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MimeTypesManager_AddFallback" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19132 }
19133 arg2 = reinterpret_cast< wxFileTypeInfo * >(argp2);
19134 {
19135 PyThreadState* __tstate = wxPyBeginAllowThreads();
19136 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_Py_Void();
19141 return resultobj;
19142fail:
19143 return NULL;
19144}
19145
19146
19147SWIGINTERN PyObject *_wrap_MimeTypesManager_Associate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj = 0;
19149 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19150 wxFileTypeInfo *arg2 = 0 ;
19151 wxFileType *result = 0 ;
19152 void *argp1 = 0 ;
19153 int res1 = 0 ;
19154 void *argp2 = 0 ;
19155 int res2 = 0 ;
19156 PyObject * obj0 = 0 ;
19157 PyObject * obj1 = 0 ;
19158 char * kwnames[] = {
19159 (char *) "self",(char *) "ftInfo", NULL
19160 };
19161
19162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) SWIG_fail;
19163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19164 if (!SWIG_IsOK(res1)) {
19165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Associate" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19166 }
19167 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
19169 if (!SWIG_IsOK(res2)) {
19170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_Associate" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19171 }
19172 if (!argp2) {
19173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MimeTypesManager_Associate" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19174 }
19175 arg2 = reinterpret_cast< wxFileTypeInfo * >(argp2);
19176 {
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
19183 return resultobj;
19184fail:
19185 return NULL;
19186}
19187
19188
19189SWIGINTERN PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19190 PyObject *resultobj = 0;
19191 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19192 wxFileType *arg2 = (wxFileType *) 0 ;
19193 bool result;
19194 void *argp1 = 0 ;
19195 int res1 = 0 ;
19196 void *argp2 = 0 ;
19197 int res2 = 0 ;
19198 PyObject * obj0 = 0 ;
19199 PyObject * obj1 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "ft", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) SWIG_fail;
19205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Unassociate" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19208 }
19209 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFileType, 0 | 0 );
19211 if (!SWIG_IsOK(res2)) {
19212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_Unassociate" "', expected argument " "2"" of type '" "wxFileType *""'");
19213 }
19214 arg2 = reinterpret_cast< wxFileType * >(argp2);
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 result = (bool)(arg1)->Unassociate(arg2);
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 {
19222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19223 }
19224 return resultobj;
19225fail:
19226 return NULL;
d14a1e28
RD
19227}
19228
19229
0085ce49
RD
19230SWIGINTERN PyObject *_wrap_delete_MimeTypesManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19231 PyObject *resultobj = 0;
19232 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19233 void *argp1 = 0 ;
19234 int res1 = 0 ;
19235 PyObject *swig_obj[1] ;
19236
19237 if (!args) SWIG_fail;
19238 swig_obj[0] = args;
19239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_DISOWN | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MimeTypesManager" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19242 }
19243 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19244 {
19245 PyThreadState* __tstate = wxPyBeginAllowThreads();
19246 delete arg1;
d14a1e28 19247
0085ce49
RD
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_Py_Void();
19252 return resultobj;
19253fail:
19254 return NULL;
d14a1e28
RD
19255}
19256
19257
0085ce49
RD
19258SWIGINTERN PyObject *MimeTypesManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19259 PyObject *obj;
19260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19261 SWIG_TypeNewClientData(SWIGTYPE_p_wxMimeTypesManager, SWIG_NewClientData(obj));
19262 return SWIG_Py_Void();
d14a1e28
RD
19263}
19264
0085ce49
RD
19265SWIGINTERN PyObject *MimeTypesManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19266 return SWIG_Python_InitShadowInstance(args);
19267}
d14a1e28 19268
0085ce49
RD
19269SWIGINTERN int ART_TOOLBAR_set(PyObject *) {
19270 SWIG_Error(SWIG_AttributeError,"Variable ART_TOOLBAR is read-only.");
19271 return 1;
d14a1e28
RD
19272}
19273
19274
0085ce49
RD
19275SWIGINTERN PyObject *ART_TOOLBAR_get(void) {
19276 PyObject *pyobj = 0;
19277
19278 {
19279#if wxUSE_UNICODE
19280 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
19281#else
19282 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
19283#endif
19284 }
19285 return pyobj;
d14a1e28
RD
19286}
19287
19288
0085ce49
RD
19289SWIGINTERN int ART_MENU_set(PyObject *) {
19290 SWIG_Error(SWIG_AttributeError,"Variable ART_MENU is read-only.");
19291 return 1;
d14a1e28
RD
19292}
19293
19294
0085ce49
RD
19295SWIGINTERN PyObject *ART_MENU_get(void) {
19296 PyObject *pyobj = 0;
19297
19298 {
19299#if wxUSE_UNICODE
19300 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
19301#else
19302 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
19303#endif
19304 }
19305 return pyobj;
d14a1e28
RD
19306}
19307
19308
0085ce49
RD
19309SWIGINTERN int ART_FRAME_ICON_set(PyObject *) {
19310 SWIG_Error(SWIG_AttributeError,"Variable ART_FRAME_ICON is read-only.");
19311 return 1;
d14a1e28
RD
19312}
19313
19314
0085ce49
RD
19315SWIGINTERN PyObject *ART_FRAME_ICON_get(void) {
19316 PyObject *pyobj = 0;
19317
19318 {
19319#if wxUSE_UNICODE
19320 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
19321#else
19322 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
19323#endif
19324 }
19325 return pyobj;
d14a1e28
RD
19326}
19327
19328
0085ce49
RD
19329SWIGINTERN int ART_CMN_DIALOG_set(PyObject *) {
19330 SWIG_Error(SWIG_AttributeError,"Variable ART_CMN_DIALOG is read-only.");
19331 return 1;
d14a1e28
RD
19332}
19333
19334
0085ce49
RD
19335SWIGINTERN PyObject *ART_CMN_DIALOG_get(void) {
19336 PyObject *pyobj = 0;
19337
19338 {
19339#if wxUSE_UNICODE
19340 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
19341#else
19342 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
19343#endif
19344 }
19345 return pyobj;
4d5c3d91
RD
19346}
19347
19348
0085ce49
RD
19349SWIGINTERN int ART_HELP_BROWSER_set(PyObject *) {
19350 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_BROWSER is read-only.");
19351 return 1;
d14a1e28
RD
19352}
19353
19354
0085ce49
RD
19355SWIGINTERN PyObject *ART_HELP_BROWSER_get(void) {
19356 PyObject *pyobj = 0;
19357
19358 {
19359#if wxUSE_UNICODE
19360 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
19361#else
19362 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
19363#endif
19364 }
19365 return pyobj;
d14a1e28
RD
19366}
19367
19368
0085ce49
RD
19369SWIGINTERN int ART_MESSAGE_BOX_set(PyObject *) {
19370 SWIG_Error(SWIG_AttributeError,"Variable ART_MESSAGE_BOX is read-only.");
19371 return 1;
4d5c3d91
RD
19372}
19373
19374
0085ce49
RD
19375SWIGINTERN PyObject *ART_MESSAGE_BOX_get(void) {
19376 PyObject *pyobj = 0;
19377
19378 {
19379#if wxUSE_UNICODE
19380 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
19381#else
19382 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
19383#endif
19384 }
19385 return pyobj;
4d5c3d91
RD
19386}
19387
19388
0085ce49
RD
19389SWIGINTERN int ART_BUTTON_set(PyObject *) {
19390 SWIG_Error(SWIG_AttributeError,"Variable ART_BUTTON is read-only.");
19391 return 1;
4d5c3d91
RD
19392}
19393
19394
0085ce49
RD
19395SWIGINTERN PyObject *ART_BUTTON_get(void) {
19396 PyObject *pyobj = 0;
19397
19398 {
19399#if wxUSE_UNICODE
19400 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
19401#else
19402 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
19403#endif
19404 }
19405 return pyobj;
d14a1e28
RD
19406}
19407
19408
0085ce49
RD
19409SWIGINTERN int ART_OTHER_set(PyObject *) {
19410 SWIG_Error(SWIG_AttributeError,"Variable ART_OTHER is read-only.");
19411 return 1;
4d5c3d91
RD
19412}
19413
19414
0085ce49
RD
19415SWIGINTERN PyObject *ART_OTHER_get(void) {
19416 PyObject *pyobj = 0;
19417
19418 {
19419#if wxUSE_UNICODE
19420 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
19421#else
19422 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
19423#endif
19424 }
19425 return pyobj;
d14a1e28
RD
19426}
19427
19428
0085ce49
RD
19429SWIGINTERN int ART_ADD_BOOKMARK_set(PyObject *) {
19430 SWIG_Error(SWIG_AttributeError,"Variable ART_ADD_BOOKMARK is read-only.");
19431 return 1;
d14a1e28
RD
19432}
19433
19434
0085ce49
RD
19435SWIGINTERN PyObject *ART_ADD_BOOKMARK_get(void) {
19436 PyObject *pyobj = 0;
19437
19438 {
19439#if wxUSE_UNICODE
19440 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
19441#else
19442 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
19443#endif
19444 }
19445 return pyobj;
d14a1e28
RD
19446}
19447
19448
0085ce49
RD
19449SWIGINTERN int ART_DEL_BOOKMARK_set(PyObject *) {
19450 SWIG_Error(SWIG_AttributeError,"Variable ART_DEL_BOOKMARK is read-only.");
19451 return 1;
d14a1e28
RD
19452}
19453
19454
0085ce49
RD
19455SWIGINTERN PyObject *ART_DEL_BOOKMARK_get(void) {
19456 PyObject *pyobj = 0;
19457
19458 {
19459#if wxUSE_UNICODE
19460 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
19461#else
19462 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
19463#endif
19464 }
19465 return pyobj;
d14a1e28
RD
19466}
19467
19468
0085ce49
RD
19469SWIGINTERN int ART_HELP_SIDE_PANEL_set(PyObject *) {
19470 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
19471 return 1;
d14a1e28
RD
19472}
19473
19474
0085ce49
RD
19475SWIGINTERN PyObject *ART_HELP_SIDE_PANEL_get(void) {
19476 PyObject *pyobj = 0;
19477
19478 {
cc6dd355 19479#if wxUSE_UNICODE
0085ce49 19480 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
cc6dd355 19481#else
0085ce49 19482 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
cc6dd355 19483#endif
0085ce49
RD
19484 }
19485 return pyobj;
d14a1e28
RD
19486}
19487
19488
0085ce49
RD
19489SWIGINTERN int ART_HELP_SETTINGS_set(PyObject *) {
19490 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_SETTINGS is read-only.");
19491 return 1;
19492}
19493
19494
19495SWIGINTERN PyObject *ART_HELP_SETTINGS_get(void) {
19496 PyObject *pyobj = 0;
19497
19498 {
cc6dd355 19499#if wxUSE_UNICODE
0085ce49 19500 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
cc6dd355 19501#else
0085ce49 19502 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
cc6dd355 19503#endif
0085ce49
RD
19504 }
19505 return pyobj;
d14a1e28
RD
19506}
19507
19508
0085ce49
RD
19509SWIGINTERN int ART_HELP_BOOK_set(PyObject *) {
19510 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_BOOK is read-only.");
19511 return 1;
19512}
19513
19514
19515SWIGINTERN PyObject *ART_HELP_BOOK_get(void) {
19516 PyObject *pyobj = 0;
19517
19518 {
cc6dd355 19519#if wxUSE_UNICODE
0085ce49 19520 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
cc6dd355 19521#else
0085ce49 19522 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
cc6dd355 19523#endif
0085ce49
RD
19524 }
19525 return pyobj;
d14a1e28
RD
19526}
19527
19528
0085ce49
RD
19529SWIGINTERN int ART_HELP_FOLDER_set(PyObject *) {
19530 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_FOLDER is read-only.");
19531 return 1;
19532}
19533
19534
19535SWIGINTERN PyObject *ART_HELP_FOLDER_get(void) {
19536 PyObject *pyobj = 0;
19537
19538 {
cc6dd355 19539#if wxUSE_UNICODE
0085ce49 19540 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
cc6dd355 19541#else
0085ce49 19542 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
cc6dd355 19543#endif
0085ce49
RD
19544 }
19545 return pyobj;
d14a1e28
RD
19546}
19547
19548
0085ce49
RD
19549SWIGINTERN int ART_HELP_PAGE_set(PyObject *) {
19550 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_PAGE is read-only.");
19551 return 1;
19552}
19553
19554
19555SWIGINTERN PyObject *ART_HELP_PAGE_get(void) {
19556 PyObject *pyobj = 0;
19557
19558 {
cc6dd355 19559#if wxUSE_UNICODE
0085ce49 19560 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
cc6dd355 19561#else
0085ce49 19562 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
cc6dd355 19563#endif
0085ce49
RD
19564 }
19565 return pyobj;
d14a1e28
RD
19566}
19567
19568
0085ce49
RD
19569SWIGINTERN int ART_GO_BACK_set(PyObject *) {
19570 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_BACK is read-only.");
19571 return 1;
d14a1e28
RD
19572}
19573
19574
0085ce49
RD
19575SWIGINTERN PyObject *ART_GO_BACK_get(void) {
19576 PyObject *pyobj = 0;
19577
19578 {
19579#if wxUSE_UNICODE
19580 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
19581#else
19582 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
19583#endif
19584 }
19585 return pyobj;
d14a1e28
RD
19586}
19587
19588
0085ce49
RD
19589SWIGINTERN int ART_GO_FORWARD_set(PyObject *) {
19590 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_FORWARD is read-only.");
19591 return 1;
19592}
19593
19594
19595SWIGINTERN PyObject *ART_GO_FORWARD_get(void) {
19596 PyObject *pyobj = 0;
19597
19598 {
cc6dd355 19599#if wxUSE_UNICODE
0085ce49 19600 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
cc6dd355 19601#else
0085ce49 19602 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
cc6dd355 19603#endif
0085ce49
RD
19604 }
19605 return pyobj;
d14a1e28
RD
19606}
19607
19608
0085ce49
RD
19609SWIGINTERN int ART_GO_UP_set(PyObject *) {
19610 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_UP is read-only.");
19611 return 1;
d14a1e28
RD
19612}
19613
19614
0085ce49
RD
19615SWIGINTERN PyObject *ART_GO_UP_get(void) {
19616 PyObject *pyobj = 0;
19617
19618 {
19619#if wxUSE_UNICODE
19620 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
19621#else
19622 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
19623#endif
19624 }
19625 return pyobj;
d14a1e28 19626}
0085ce49
RD
19627
19628
19629SWIGINTERN int ART_GO_DOWN_set(PyObject *) {
19630 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_DOWN is read-only.");
19631 return 1;
d14a1e28
RD
19632}
19633
19634
0085ce49
RD
19635SWIGINTERN PyObject *ART_GO_DOWN_get(void) {
19636 PyObject *pyobj = 0;
19637
19638 {
19639#if wxUSE_UNICODE
19640 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
19641#else
19642 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
19643#endif
19644 }
19645 return pyobj;
d14a1e28
RD
19646}
19647
19648
0085ce49
RD
19649SWIGINTERN int ART_GO_TO_PARENT_set(PyObject *) {
19650 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_TO_PARENT is read-only.");
19651 return 1;
d14a1e28
RD
19652}
19653
19654
0085ce49
RD
19655SWIGINTERN PyObject *ART_GO_TO_PARENT_get(void) {
19656 PyObject *pyobj = 0;
19657
19658 {
19659#if wxUSE_UNICODE
19660 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
19661#else
19662 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
19663#endif
19664 }
19665 return pyobj;
d14a1e28
RD
19666}
19667
19668
0085ce49
RD
19669SWIGINTERN int ART_GO_HOME_set(PyObject *) {
19670 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_HOME is read-only.");
19671 return 1;
d14a1e28
RD
19672}
19673
19674
0085ce49
RD
19675SWIGINTERN PyObject *ART_GO_HOME_get(void) {
19676 PyObject *pyobj = 0;
19677
19678 {
19679#if wxUSE_UNICODE
19680 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
19681#else
19682 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
19683#endif
19684 }
19685 return pyobj;
d14a1e28
RD
19686}
19687
19688
0085ce49
RD
19689SWIGINTERN int ART_FILE_OPEN_set(PyObject *) {
19690 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_OPEN is read-only.");
19691 return 1;
d14a1e28
RD
19692}
19693
19694
0085ce49
RD
19695SWIGINTERN PyObject *ART_FILE_OPEN_get(void) {
19696 PyObject *pyobj = 0;
19697
19698 {
19699#if wxUSE_UNICODE
19700 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
19701#else
19702 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
19703#endif
19704 }
19705 return pyobj;
d14a1e28
RD
19706}
19707
19708
0085ce49
RD
19709SWIGINTERN int ART_FILE_SAVE_set(PyObject *) {
19710 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_SAVE is read-only.");
19711 return 1;
d14a1e28
RD
19712}
19713
19714
0085ce49
RD
19715SWIGINTERN PyObject *ART_FILE_SAVE_get(void) {
19716 PyObject *pyobj = 0;
19717
19718 {
19719#if wxUSE_UNICODE
19720 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
19721#else
19722 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
19723#endif
19724 }
19725 return pyobj;
d14a1e28
RD
19726}
19727
19728
0085ce49
RD
19729SWIGINTERN int ART_FILE_SAVE_AS_set(PyObject *) {
19730 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_SAVE_AS is read-only.");
19731 return 1;
d14a1e28
RD
19732}
19733
19734
0085ce49
RD
19735SWIGINTERN PyObject *ART_FILE_SAVE_AS_get(void) {
19736 PyObject *pyobj = 0;
19737
19738 {
19739#if wxUSE_UNICODE
19740 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
19741#else
19742 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
19743#endif
19744 }
19745 return pyobj;
d14a1e28
RD
19746}
19747
19748
0085ce49
RD
19749SWIGINTERN int ART_PRINT_set(PyObject *) {
19750 SWIG_Error(SWIG_AttributeError,"Variable ART_PRINT is read-only.");
19751 return 1;
d14a1e28
RD
19752}
19753
19754
0085ce49
RD
19755SWIGINTERN PyObject *ART_PRINT_get(void) {
19756 PyObject *pyobj = 0;
19757
19758 {
d14a1e28 19759#if wxUSE_UNICODE
0085ce49 19760 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
d14a1e28 19761#else
0085ce49 19762 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
d14a1e28 19763#endif
0085ce49
RD
19764 }
19765 return pyobj;
d14a1e28
RD
19766}
19767
19768
0085ce49
RD
19769SWIGINTERN int ART_HELP_set(PyObject *) {
19770 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP is read-only.");
19771 return 1;
d14a1e28
RD
19772}
19773
19774
0085ce49
RD
19775SWIGINTERN PyObject *ART_HELP_get(void) {
19776 PyObject *pyobj = 0;
19777
19778 {
19779#if wxUSE_UNICODE
19780 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
19781#else
19782 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
19783#endif
19784 }
19785 return pyobj;
d14a1e28
RD
19786}
19787
19788
0085ce49
RD
19789SWIGINTERN int ART_TIP_set(PyObject *) {
19790 SWIG_Error(SWIG_AttributeError,"Variable ART_TIP is read-only.");
19791 return 1;
d14a1e28
RD
19792}
19793
19794
0085ce49
RD
19795SWIGINTERN PyObject *ART_TIP_get(void) {
19796 PyObject *pyobj = 0;
19797
19798 {
19799#if wxUSE_UNICODE
19800 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
19801#else
19802 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
19803#endif
19804 }
19805 return pyobj;
d14a1e28
RD
19806}
19807
19808
0085ce49
RD
19809SWIGINTERN int ART_REPORT_VIEW_set(PyObject *) {
19810 SWIG_Error(SWIG_AttributeError,"Variable ART_REPORT_VIEW is read-only.");
19811 return 1;
d14a1e28
RD
19812}
19813
19814
0085ce49
RD
19815SWIGINTERN PyObject *ART_REPORT_VIEW_get(void) {
19816 PyObject *pyobj = 0;
19817
19818 {
19819#if wxUSE_UNICODE
19820 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
19821#else
19822 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
19823#endif
19824 }
19825 return pyobj;
d14a1e28
RD
19826}
19827
19828
0085ce49
RD
19829SWIGINTERN int ART_LIST_VIEW_set(PyObject *) {
19830 SWIG_Error(SWIG_AttributeError,"Variable ART_LIST_VIEW is read-only.");
19831 return 1;
d14a1e28
RD
19832}
19833
19834
0085ce49
RD
19835SWIGINTERN PyObject *ART_LIST_VIEW_get(void) {
19836 PyObject *pyobj = 0;
19837
19838 {
19839#if wxUSE_UNICODE
19840 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
19841#else
19842 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
19843#endif
19844 }
19845 return pyobj;
d14a1e28
RD
19846}
19847
19848
0085ce49
RD
19849SWIGINTERN int ART_NEW_DIR_set(PyObject *) {
19850 SWIG_Error(SWIG_AttributeError,"Variable ART_NEW_DIR is read-only.");
19851 return 1;
d14a1e28
RD
19852}
19853
19854
0085ce49
RD
19855SWIGINTERN PyObject *ART_NEW_DIR_get(void) {
19856 PyObject *pyobj = 0;
19857
19858 {
19859#if wxUSE_UNICODE
19860 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
19861#else
19862 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
19863#endif
19864 }
19865 return pyobj;
d14a1e28
RD
19866}
19867
19868
0085ce49
RD
19869SWIGINTERN int ART_HARDDISK_set(PyObject *) {
19870 SWIG_Error(SWIG_AttributeError,"Variable ART_HARDDISK is read-only.");
19871 return 1;
d14a1e28
RD
19872}
19873
19874
0085ce49
RD
19875SWIGINTERN PyObject *ART_HARDDISK_get(void) {
19876 PyObject *pyobj = 0;
19877
19878 {
19879#if wxUSE_UNICODE
19880 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
19881#else
19882 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
19883#endif
19884 }
19885 return pyobj;
d14a1e28
RD
19886}
19887
19888
0085ce49
RD
19889SWIGINTERN int ART_FLOPPY_set(PyObject *) {
19890 SWIG_Error(SWIG_AttributeError,"Variable ART_FLOPPY is read-only.");
19891 return 1;
d14a1e28
RD
19892}
19893
19894
0085ce49
RD
19895SWIGINTERN PyObject *ART_FLOPPY_get(void) {
19896 PyObject *pyobj = 0;
19897
19898 {
19899#if wxUSE_UNICODE
19900 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
19901#else
19902 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
19903#endif
19904 }
19905 return pyobj;
d14a1e28
RD
19906}
19907
19908
0085ce49
RD
19909SWIGINTERN int ART_CDROM_set(PyObject *) {
19910 SWIG_Error(SWIG_AttributeError,"Variable ART_CDROM is read-only.");
19911 return 1;
d14a1e28
RD
19912}
19913
19914
0085ce49
RD
19915SWIGINTERN PyObject *ART_CDROM_get(void) {
19916 PyObject *pyobj = 0;
19917
19918 {
d14a1e28 19919#if wxUSE_UNICODE
0085ce49 19920 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
d14a1e28 19921#else
0085ce49 19922 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
d14a1e28 19923#endif
0085ce49
RD
19924 }
19925 return pyobj;
d14a1e28
RD
19926}
19927
19928
0085ce49
RD
19929SWIGINTERN int ART_REMOVABLE_set(PyObject *) {
19930 SWIG_Error(SWIG_AttributeError,"Variable ART_REMOVABLE is read-only.");
19931 return 1;
d14a1e28
RD
19932}
19933
19934
0085ce49
RD
19935SWIGINTERN PyObject *ART_REMOVABLE_get(void) {
19936 PyObject *pyobj = 0;
19937
19938 {
d14a1e28 19939#if wxUSE_UNICODE
0085ce49 19940 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
d14a1e28 19941#else
0085ce49 19942 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
d14a1e28 19943#endif
0085ce49
RD
19944 }
19945 return pyobj;
d14a1e28
RD
19946}
19947
19948
0085ce49
RD
19949SWIGINTERN int ART_FOLDER_set(PyObject *) {
19950 SWIG_Error(SWIG_AttributeError,"Variable ART_FOLDER is read-only.");
19951 return 1;
d14a1e28
RD
19952}
19953
19954
0085ce49
RD
19955SWIGINTERN PyObject *ART_FOLDER_get(void) {
19956 PyObject *pyobj = 0;
19957
19958 {
d14a1e28 19959#if wxUSE_UNICODE
0085ce49 19960 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
d14a1e28 19961#else
0085ce49 19962 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
d14a1e28 19963#endif
0085ce49
RD
19964 }
19965 return pyobj;
d14a1e28
RD
19966}
19967
19968
0085ce49
RD
19969SWIGINTERN int ART_FOLDER_OPEN_set(PyObject *) {
19970 SWIG_Error(SWIG_AttributeError,"Variable ART_FOLDER_OPEN is read-only.");
19971 return 1;
d14a1e28
RD
19972}
19973
19974
0085ce49
RD
19975SWIGINTERN PyObject *ART_FOLDER_OPEN_get(void) {
19976 PyObject *pyobj = 0;
19977
19978 {
d14a1e28 19979#if wxUSE_UNICODE
0085ce49 19980 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
d14a1e28 19981#else
0085ce49 19982 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
d14a1e28 19983#endif
0085ce49
RD
19984 }
19985 return pyobj;
d14a1e28
RD
19986}
19987
19988
0085ce49
RD
19989SWIGINTERN int ART_GO_DIR_UP_set(PyObject *) {
19990 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_DIR_UP is read-only.");
19991 return 1;
d14a1e28
RD
19992}
19993
19994
0085ce49
RD
19995SWIGINTERN PyObject *ART_GO_DIR_UP_get(void) {
19996 PyObject *pyobj = 0;
19997
19998 {
d14a1e28 19999#if wxUSE_UNICODE
0085ce49 20000 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
d14a1e28 20001#else
0085ce49 20002 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
d14a1e28 20003#endif
0085ce49
RD
20004 }
20005 return pyobj;
d14a1e28
RD
20006}
20007
20008
0085ce49
RD
20009SWIGINTERN int ART_EXECUTABLE_FILE_set(PyObject *) {
20010 SWIG_Error(SWIG_AttributeError,"Variable ART_EXECUTABLE_FILE is read-only.");
20011 return 1;
d14a1e28
RD
20012}
20013
20014
0085ce49
RD
20015SWIGINTERN PyObject *ART_EXECUTABLE_FILE_get(void) {
20016 PyObject *pyobj = 0;
20017
20018 {
d14a1e28 20019#if wxUSE_UNICODE
0085ce49 20020 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
d14a1e28 20021#else
0085ce49 20022 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
d14a1e28 20023#endif
0085ce49
RD
20024 }
20025 return pyobj;
d14a1e28
RD
20026}
20027
20028
0085ce49
RD
20029SWIGINTERN int ART_NORMAL_FILE_set(PyObject *) {
20030 SWIG_Error(SWIG_AttributeError,"Variable ART_NORMAL_FILE is read-only.");
20031 return 1;
4cf4100f
RD
20032}
20033
20034
0085ce49
RD
20035SWIGINTERN PyObject *ART_NORMAL_FILE_get(void) {
20036 PyObject *pyobj = 0;
20037
20038 {
4cf4100f 20039#if wxUSE_UNICODE
0085ce49 20040 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
4cf4100f 20041#else
0085ce49 20042 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
4cf4100f 20043#endif
0085ce49
RD
20044 }
20045 return pyobj;
4cf4100f
RD
20046}
20047
20048
0085ce49
RD
20049SWIGINTERN int ART_TICK_MARK_set(PyObject *) {
20050 SWIG_Error(SWIG_AttributeError,"Variable ART_TICK_MARK is read-only.");
20051 return 1;
d14a1e28
RD
20052}
20053
20054
0085ce49
RD
20055SWIGINTERN PyObject *ART_TICK_MARK_get(void) {
20056 PyObject *pyobj = 0;
20057
20058 {
d14a1e28 20059#if wxUSE_UNICODE
0085ce49 20060 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
d14a1e28 20061#else
0085ce49 20062 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
d14a1e28 20063#endif
0085ce49
RD
20064 }
20065 return pyobj;
d14a1e28
RD
20066}
20067
20068
0085ce49
RD
20069SWIGINTERN int ART_CROSS_MARK_set(PyObject *) {
20070 SWIG_Error(SWIG_AttributeError,"Variable ART_CROSS_MARK is read-only.");
20071 return 1;
d14a1e28
RD
20072}
20073
20074
0085ce49
RD
20075SWIGINTERN PyObject *ART_CROSS_MARK_get(void) {
20076 PyObject *pyobj = 0;
20077
20078 {
d14a1e28 20079#if wxUSE_UNICODE
0085ce49 20080 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
d14a1e28 20081#else
0085ce49 20082 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
d14a1e28 20083#endif
0085ce49
RD
20084 }
20085 return pyobj;
d14a1e28
RD
20086}
20087
20088
0085ce49
RD
20089SWIGINTERN int ART_ERROR_set(PyObject *) {
20090 SWIG_Error(SWIG_AttributeError,"Variable ART_ERROR is read-only.");
20091 return 1;
d14a1e28
RD
20092}
20093
20094
0085ce49
RD
20095SWIGINTERN PyObject *ART_ERROR_get(void) {
20096 PyObject *pyobj = 0;
20097
20098 {
d14a1e28 20099#if wxUSE_UNICODE
0085ce49 20100 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
d14a1e28 20101#else
0085ce49 20102 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
d14a1e28 20103#endif
0085ce49
RD
20104 }
20105 return pyobj;
d14a1e28
RD
20106}
20107
20108
0085ce49
RD
20109SWIGINTERN int ART_QUESTION_set(PyObject *) {
20110 SWIG_Error(SWIG_AttributeError,"Variable ART_QUESTION is read-only.");
20111 return 1;
d14a1e28
RD
20112}
20113
20114
0085ce49
RD
20115SWIGINTERN PyObject *ART_QUESTION_get(void) {
20116 PyObject *pyobj = 0;
20117
20118 {
d14a1e28 20119#if wxUSE_UNICODE
0085ce49 20120 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
d14a1e28 20121#else
0085ce49 20122 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
d14a1e28 20123#endif
0085ce49
RD
20124 }
20125 return pyobj;
d14a1e28
RD
20126}
20127
20128
0085ce49
RD
20129SWIGINTERN int ART_WARNING_set(PyObject *) {
20130 SWIG_Error(SWIG_AttributeError,"Variable ART_WARNING is read-only.");
20131 return 1;
d14a1e28
RD
20132}
20133
20134
0085ce49
RD
20135SWIGINTERN PyObject *ART_WARNING_get(void) {
20136 PyObject *pyobj = 0;
20137
20138 {
d14a1e28 20139#if wxUSE_UNICODE
0085ce49 20140 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
d14a1e28 20141#else
0085ce49 20142 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
d14a1e28 20143#endif
0085ce49
RD
20144 }
20145 return pyobj;
d14a1e28
RD
20146}
20147
20148
0085ce49
RD
20149SWIGINTERN int ART_INFORMATION_set(PyObject *) {
20150 SWIG_Error(SWIG_AttributeError,"Variable ART_INFORMATION is read-only.");
20151 return 1;
d14a1e28
RD
20152}
20153
20154
0085ce49
RD
20155SWIGINTERN PyObject *ART_INFORMATION_get(void) {
20156 PyObject *pyobj = 0;
20157
20158 {
d14a1e28 20159#if wxUSE_UNICODE
0085ce49 20160 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
d14a1e28 20161#else
0085ce49 20162 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
d14a1e28 20163#endif
0085ce49
RD
20164 }
20165 return pyobj;
d14a1e28
RD
20166}
20167
20168
0085ce49
RD
20169SWIGINTERN int ART_MISSING_IMAGE_set(PyObject *) {
20170 SWIG_Error(SWIG_AttributeError,"Variable ART_MISSING_IMAGE is read-only.");
20171 return 1;
d14a1e28
RD
20172}
20173
20174
0085ce49
RD
20175SWIGINTERN PyObject *ART_MISSING_IMAGE_get(void) {
20176 PyObject *pyobj = 0;
20177
20178 {
d14a1e28 20179#if wxUSE_UNICODE
0085ce49 20180 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
d14a1e28 20181#else
0085ce49 20182 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
d14a1e28 20183#endif
0085ce49
RD
20184 }
20185 return pyobj;
d14a1e28
RD
20186}
20187
20188
0085ce49
RD
20189SWIGINTERN int ART_COPY_set(PyObject *) {
20190 SWIG_Error(SWIG_AttributeError,"Variable ART_COPY is read-only.");
20191 return 1;
d14a1e28
RD
20192}
20193
20194
0085ce49
RD
20195SWIGINTERN PyObject *ART_COPY_get(void) {
20196 PyObject *pyobj = 0;
20197
20198 {
d14a1e28 20199#if wxUSE_UNICODE
0085ce49 20200 pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
d14a1e28 20201#else
0085ce49 20202 pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
d14a1e28 20203#endif
0085ce49
RD
20204 }
20205 return pyobj;
d14a1e28
RD
20206}
20207
20208
0085ce49
RD
20209SWIGINTERN int ART_CUT_set(PyObject *) {
20210 SWIG_Error(SWIG_AttributeError,"Variable ART_CUT is read-only.");
20211 return 1;
d14a1e28
RD
20212}
20213
20214
0085ce49
RD
20215SWIGINTERN PyObject *ART_CUT_get(void) {
20216 PyObject *pyobj = 0;
20217
20218 {
d14a1e28 20219#if wxUSE_UNICODE
0085ce49 20220 pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
d14a1e28 20221#else
0085ce49 20222 pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
d14a1e28 20223#endif
0085ce49
RD
20224 }
20225 return pyobj;
d14a1e28
RD
20226}
20227
20228
0085ce49
RD
20229SWIGINTERN int ART_PASTE_set(PyObject *) {
20230 SWIG_Error(SWIG_AttributeError,"Variable ART_PASTE is read-only.");
20231 return 1;
d14a1e28
RD
20232}
20233
20234
0085ce49
RD
20235SWIGINTERN PyObject *ART_PASTE_get(void) {
20236 PyObject *pyobj = 0;
20237
20238 {
d14a1e28 20239#if wxUSE_UNICODE
0085ce49 20240 pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
d14a1e28 20241#else
0085ce49 20242 pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
d14a1e28 20243#endif
0085ce49
RD
20244 }
20245 return pyobj;
d14a1e28
RD
20246}
20247
20248
0085ce49
RD
20249SWIGINTERN int ART_DELETE_set(PyObject *) {
20250 SWIG_Error(SWIG_AttributeError,"Variable ART_DELETE is read-only.");
20251 return 1;
d14a1e28
RD
20252}
20253
20254
0085ce49
RD
20255SWIGINTERN PyObject *ART_DELETE_get(void) {
20256 PyObject *pyobj = 0;
20257
20258 {
d14a1e28 20259#if wxUSE_UNICODE
0085ce49 20260 pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
d14a1e28 20261#else
0085ce49 20262 pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
d14a1e28 20263#endif
0085ce49
RD
20264 }
20265 return pyobj;
d14a1e28
RD
20266}
20267
20268
0085ce49
RD
20269SWIGINTERN int ART_NEW_set(PyObject *) {
20270 SWIG_Error(SWIG_AttributeError,"Variable ART_NEW is read-only.");
20271 return 1;
d14a1e28
RD
20272}
20273
20274
0085ce49
RD
20275SWIGINTERN PyObject *ART_NEW_get(void) {
20276 PyObject *pyobj = 0;
20277
20278 {
d14a1e28 20279#if wxUSE_UNICODE
0085ce49 20280 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
d14a1e28 20281#else
0085ce49 20282 pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
d14a1e28 20283#endif
0085ce49
RD
20284 }
20285 return pyobj;
d14a1e28
RD
20286}
20287
20288
0085ce49
RD
20289SWIGINTERN int ART_UNDO_set(PyObject *) {
20290 SWIG_Error(SWIG_AttributeError,"Variable ART_UNDO is read-only.");
20291 return 1;
d14a1e28
RD
20292}
20293
20294
0085ce49
RD
20295SWIGINTERN PyObject *ART_UNDO_get(void) {
20296 PyObject *pyobj = 0;
20297
20298 {
d14a1e28 20299#if wxUSE_UNICODE
0085ce49 20300 pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
d14a1e28 20301#else
0085ce49 20302 pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
d14a1e28 20303#endif
0085ce49
RD
20304 }
20305 return pyobj;
d14a1e28
RD
20306}
20307
20308
0085ce49
RD
20309SWIGINTERN int ART_REDO_set(PyObject *) {
20310 SWIG_Error(SWIG_AttributeError,"Variable ART_REDO is read-only.");
20311 return 1;
d14a1e28
RD
20312}
20313
20314
0085ce49
RD
20315SWIGINTERN PyObject *ART_REDO_get(void) {
20316 PyObject *pyobj = 0;
20317
20318 {
d14a1e28 20319#if wxUSE_UNICODE
0085ce49 20320 pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
d14a1e28 20321#else
0085ce49 20322 pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
d14a1e28 20323#endif
0085ce49
RD
20324 }
20325 return pyobj;
d14a1e28
RD
20326}
20327
20328
0085ce49
RD
20329SWIGINTERN int ART_QUIT_set(PyObject *) {
20330 SWIG_Error(SWIG_AttributeError,"Variable ART_QUIT is read-only.");
20331 return 1;
d14a1e28
RD
20332}
20333
20334
0085ce49
RD
20335SWIGINTERN PyObject *ART_QUIT_get(void) {
20336 PyObject *pyobj = 0;
20337
20338 {
d14a1e28 20339#if wxUSE_UNICODE
0085ce49 20340 pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
d14a1e28 20341#else
0085ce49 20342 pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
d14a1e28 20343#endif
0085ce49
RD
20344 }
20345 return pyobj;
d14a1e28
RD
20346}
20347
20348
0085ce49
RD
20349SWIGINTERN int ART_FIND_set(PyObject *) {
20350 SWIG_Error(SWIG_AttributeError,"Variable ART_FIND is read-only.");
20351 return 1;
0c243d93
RD
20352}
20353
20354
0085ce49
RD
20355SWIGINTERN PyObject *ART_FIND_get(void) {
20356 PyObject *pyobj = 0;
20357
20358 {
0c243d93 20359#if wxUSE_UNICODE
0085ce49 20360 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
0c243d93 20361#else
0085ce49 20362 pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
0c243d93 20363#endif
0085ce49
RD
20364 }
20365 return pyobj;
0c243d93
RD
20366}
20367
20368
0085ce49
RD
20369SWIGINTERN int ART_FIND_AND_REPLACE_set(PyObject *) {
20370 SWIG_Error(SWIG_AttributeError,"Variable ART_FIND_AND_REPLACE is read-only.");
20371 return 1;
0c243d93
RD
20372}
20373
20374
0085ce49
RD
20375SWIGINTERN PyObject *ART_FIND_AND_REPLACE_get(void) {
20376 PyObject *pyobj = 0;
20377
20378 {
0c243d93 20379#if wxUSE_UNICODE
0085ce49 20380 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
0c243d93 20381#else
0085ce49 20382 pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
0c243d93 20383#endif
0085ce49
RD
20384 }
20385 return pyobj;
0c243d93
RD
20386}
20387
20388
0085ce49
RD
20389SWIGINTERN PyObject *_wrap_new_ArtProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20390 PyObject *resultobj = 0;
20391 wxPyArtProvider *result = 0 ;
20392
20393 if (!SWIG_Python_UnpackTuple(args,"new_ArtProvider",0,0,0)) SWIG_fail;
20394 {
20395 if (!wxPyCheckForApp()) SWIG_fail;
20396 PyThreadState* __tstate = wxPyBeginAllowThreads();
20397 result = (wxPyArtProvider *)new wxPyArtProvider();
20398 wxPyEndAllowThreads(__tstate);
20399 if (PyErr_Occurred()) SWIG_fail;
20400 }
20401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_NEW | 0 );
20402 return resultobj;
20403fail:
20404 return NULL;
d14a1e28
RD
20405}
20406
20407
0085ce49
RD
20408SWIGINTERN PyObject *_wrap_delete_ArtProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20409 PyObject *resultobj = 0;
20410 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20411 void *argp1 = 0 ;
20412 int res1 = 0 ;
20413 PyObject *swig_obj[1] ;
20414
20415 if (!args) SWIG_fail;
20416 swig_obj[0] = args;
20417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20418 if (!SWIG_IsOK(res1)) {
20419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ArtProvider" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20420 }
20421 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20422 {
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 delete arg1;
d14a1e28 20425
0085ce49
RD
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 resultobj = SWIG_Py_Void();
20430 return resultobj;
20431fail:
20432 return NULL;
20433}
20434
20435
20436SWIGINTERN PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj = 0;
20438 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20439 PyObject *arg2 = (PyObject *) 0 ;
20440 PyObject *arg3 = (PyObject *) 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 PyObject * obj0 = 0 ;
20444 PyObject * obj1 = 0 ;
20445 PyObject * obj2 = 0 ;
20446 char * kwnames[] = {
20447 (char *) "self",(char *) "self",(char *) "_class", NULL
20448 };
20449
20450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20452 if (!SWIG_IsOK(res1)) {
20453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20454 }
20455 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20456 arg2 = obj1;
20457 arg3 = obj2;
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 (arg1)->_setCallbackInfo(arg2,arg3);
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_Py_Void();
20465 return resultobj;
20466fail:
20467 return NULL;
d14a1e28
RD
20468}
20469
20470
4391d97b 20471SWIGINTERN PyObject *_wrap_ArtProvider_Push(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
20472 PyObject *resultobj = 0;
20473 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20474 int res1 = 0 ;
20475 PyObject * obj0 = 0 ;
20476 char * kwnames[] = {
20477 (char *) "provider", NULL
20478 };
20479
4391d97b 20480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Push",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
20481 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20482 if (!SWIG_IsOK(res1)) {
4391d97b 20483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Push" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
0085ce49
RD
20484 }
20485 {
20486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20487 wxPyArtProvider::Push(arg1);
0085ce49
RD
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 resultobj = SWIG_Py_Void();
20492 return resultobj;
20493fail:
20494 return NULL;
d14a1e28
RD
20495}
20496
20497
4391d97b 20498SWIGINTERN PyObject *_wrap_ArtProvider_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2bf58437
RD
20499 PyObject *resultobj = 0;
20500 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20501 int res1 = 0 ;
20502 PyObject * obj0 = 0 ;
20503 char * kwnames[] = {
20504 (char *) "provider", NULL
20505 };
20506
4391d97b 20507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Insert",kwnames,&obj0)) SWIG_fail;
2bf58437
RD
20508 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20509 if (!SWIG_IsOK(res1)) {
4391d97b 20510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Insert" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
2bf58437
RD
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20514 wxPyArtProvider::Insert(arg1);
2bf58437
RD
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_Py_Void();
20519 return resultobj;
20520fail:
20521 return NULL;
20522}
20523
20524
4391d97b 20525SWIGINTERN PyObject *_wrap_ArtProvider_Pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
20526 PyObject *resultobj = 0;
20527 bool result;
20528
4391d97b 20529 if (!SWIG_Python_UnpackTuple(args,"ArtProvider_Pop",0,0,0)) SWIG_fail;
0085ce49
RD
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20532 result = (bool)wxPyArtProvider::Pop();
0085ce49
RD
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 {
20537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20538 }
20539 return resultobj;
20540fail:
20541 return NULL;
d14a1e28
RD
20542}
20543
20544
4391d97b 20545SWIGINTERN PyObject *_wrap_ArtProvider_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
20546 PyObject *resultobj = 0;
20547 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20548 bool result;
20549 void *argp1 = 0 ;
20550 int res1 = 0 ;
20551 PyObject * obj0 = 0 ;
20552 char * kwnames[] = {
20553 (char *) "provider", NULL
20554 };
20555
4391d97b 20556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Delete",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
20557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20558 if (!SWIG_IsOK(res1)) {
4391d97b 20559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Delete" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
0085ce49
RD
20560 }
20561 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20564 result = (bool)wxPyArtProvider::Delete(arg1);
0085ce49
RD
20565 wxPyEndAllowThreads(__tstate);
20566 if (PyErr_Occurred()) SWIG_fail;
20567 }
20568 {
20569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20570 }
20571 return resultobj;
20572fail:
20573 return NULL;
20574}
20575
20576
20577SWIGINTERN PyObject *_wrap_ArtProvider_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj = 0;
20579 wxString *arg1 = 0 ;
20580 wxString const &arg2_defvalue = wxPyART_OTHER ;
20581 wxString *arg2 = (wxString *) &arg2_defvalue ;
20582 wxSize const &arg3_defvalue = wxDefaultSize ;
20583 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
20584 wxBitmap result;
20585 bool temp1 = false ;
20586 bool temp2 = false ;
20587 wxSize temp3 ;
20588 PyObject * obj0 = 0 ;
20589 PyObject * obj1 = 0 ;
20590 PyObject * obj2 = 0 ;
20591 char * kwnames[] = {
20592 (char *) "id",(char *) "client",(char *) "size", NULL
20593 };
20594
20595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20596 {
20597 arg1 = wxString_in_helper(obj0);
20598 if (arg1 == NULL) SWIG_fail;
20599 temp1 = true;
20600 }
20601 if (obj1) {
d14a1e28 20602 {
0085ce49
RD
20603 arg2 = wxString_in_helper(obj1);
20604 if (arg2 == NULL) SWIG_fail;
20605 temp2 = true;
d14a1e28 20606 }
0085ce49
RD
20607 }
20608 if (obj2) {
d14a1e28 20609 {
0085ce49
RD
20610 arg3 = &temp3;
20611 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 20612 }
0085ce49
RD
20613 }
20614 {
20615 if (!wxPyCheckForApp()) SWIG_fail;
20616 PyThreadState* __tstate = wxPyBeginAllowThreads();
20617 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20622 {
20623 if (temp1)
20624 delete arg1;
20625 }
20626 {
20627 if (temp2)
20628 delete arg2;
20629 }
20630 return resultobj;
20631fail:
20632 {
20633 if (temp1)
20634 delete arg1;
20635 }
20636 {
20637 if (temp2)
20638 delete arg2;
20639 }
20640 return NULL;
20641}
20642
20643
20644SWIGINTERN PyObject *_wrap_ArtProvider_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20645 PyObject *resultobj = 0;
20646 wxString *arg1 = 0 ;
20647 wxString const &arg2_defvalue = wxPyART_OTHER ;
20648 wxString *arg2 = (wxString *) &arg2_defvalue ;
20649 wxSize const &arg3_defvalue = wxDefaultSize ;
20650 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
20651 wxIcon result;
20652 bool temp1 = false ;
20653 bool temp2 = false ;
20654 wxSize temp3 ;
20655 PyObject * obj0 = 0 ;
20656 PyObject * obj1 = 0 ;
20657 PyObject * obj2 = 0 ;
20658 char * kwnames[] = {
20659 (char *) "id",(char *) "client",(char *) "size", NULL
20660 };
20661
20662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20663 {
20664 arg1 = wxString_in_helper(obj0);
20665 if (arg1 == NULL) SWIG_fail;
20666 temp1 = true;
20667 }
20668 if (obj1) {
d14a1e28 20669 {
0085ce49
RD
20670 arg2 = wxString_in_helper(obj1);
20671 if (arg2 == NULL) SWIG_fail;
20672 temp2 = true;
d14a1e28 20673 }
0085ce49
RD
20674 }
20675 if (obj2) {
d14a1e28 20676 {
0085ce49
RD
20677 arg3 = &temp3;
20678 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 20679 }
0085ce49
RD
20680 }
20681 {
20682 if (!wxPyCheckForApp()) SWIG_fail;
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
20685 wxPyEndAllowThreads(__tstate);
20686 if (PyErr_Occurred()) SWIG_fail;
20687 }
20688 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
20689 {
20690 if (temp1)
20691 delete arg1;
20692 }
20693 {
20694 if (temp2)
20695 delete arg2;
20696 }
20697 return resultobj;
20698fail:
20699 {
20700 if (temp1)
20701 delete arg1;
20702 }
20703 {
20704 if (temp2)
20705 delete arg2;
20706 }
20707 return NULL;
20708}
20709
20710
20711SWIGINTERN PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20712 PyObject *resultobj = 0;
20713 wxString *arg1 = 0 ;
20714 bool arg2 = (bool) false ;
20715 wxSize result;
20716 bool temp1 = false ;
20717 bool val2 ;
20718 int ecode2 = 0 ;
20719 PyObject * obj0 = 0 ;
20720 PyObject * obj1 = 0 ;
20721 char * kwnames[] = {
20722 (char *) "client",(char *) "platform_dependent", NULL
20723 };
20724
20725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) SWIG_fail;
20726 {
20727 arg1 = wxString_in_helper(obj0);
20728 if (arg1 == NULL) SWIG_fail;
20729 temp1 = true;
20730 }
20731 if (obj1) {
20732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20733 if (!SWIG_IsOK(ecode2)) {
20734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ArtProvider_GetSizeHint" "', expected argument " "2"" of type '" "bool""'");
20735 }
20736 arg2 = static_cast< bool >(val2);
20737 }
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2);
20741 wxPyEndAllowThreads(__tstate);
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
20744 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20745 {
20746 if (temp1)
20747 delete arg1;
20748 }
20749 return resultobj;
20750fail:
20751 {
20752 if (temp1)
20753 delete arg1;
20754 }
20755 return NULL;
d14a1e28
RD
20756}
20757
20758
0085ce49
RD
20759SWIGINTERN PyObject *_wrap_ArtProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20760 PyObject *resultobj = 0;
20761 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20762 void *argp1 = 0 ;
20763 int res1 = 0 ;
20764 PyObject *swig_obj[1] ;
20765
20766 if (!args) SWIG_fail;
20767 swig_obj[0] = args;
20768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Destroy" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20771 }
20772 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 wxPyArtProvider_Destroy(arg1);
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 resultobj = SWIG_Py_Void();
20780 return resultobj;
20781fail:
20782 return NULL;
f78cc896
RD
20783}
20784
20785
0085ce49
RD
20786SWIGINTERN PyObject *ArtProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20787 PyObject *obj;
20788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20789 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyArtProvider, SWIG_NewClientData(obj));
20790 return SWIG_Py_Void();
f78cc896
RD
20791}
20792
0085ce49
RD
20793SWIGINTERN PyObject *ArtProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20794 return SWIG_Python_InitShadowInstance(args);
f78cc896
RD
20795}
20796
0085ce49
RD
20797SWIGINTERN PyObject *_wrap_delete_ConfigBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20798 PyObject *resultobj = 0;
20799 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20800 void *argp1 = 0 ;
20801 int res1 = 0 ;
20802 PyObject *swig_obj[1] ;
20803
20804 if (!args) SWIG_fail;
20805 swig_obj[0] = args;
20806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, SWIG_POINTER_DISOWN | 0 );
20807 if (!SWIG_IsOK(res1)) {
20808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigBase" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20809 }
20810 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
20811 {
20812 PyThreadState* __tstate = wxPyBeginAllowThreads();
20813 delete arg1;
f78cc896 20814
0085ce49
RD
20815 wxPyEndAllowThreads(__tstate);
20816 if (PyErr_Occurred()) SWIG_fail;
20817 }
20818 resultobj = SWIG_Py_Void();
20819 return resultobj;
20820fail:
20821 return NULL;
f78cc896
RD
20822}
20823
20824
0085ce49
RD
20825SWIGINTERN PyObject *_wrap_ConfigBase_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20828 wxConfigBase *result = 0 ;
20829 int res1 = 0 ;
20830 PyObject * obj0 = 0 ;
20831 char * kwnames[] = {
20832 (char *) "config", NULL
20833 };
20834
20835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) SWIG_fail;
20836 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxConfigBase, SWIG_POINTER_DISOWN | 0 );
20837 if (!SWIG_IsOK(res1)) {
20838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Set" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20839 }
20840 {
20841 PyThreadState* __tstate = wxPyBeginAllowThreads();
20842 result = (wxConfigBase *)wxConfigBase::Set(arg1);
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigBase, 0 | 0 );
20847 return resultobj;
20848fail:
20849 return NULL;
20850}
20851
20852
20853SWIGINTERN PyObject *_wrap_ConfigBase_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj = 0;
20855 bool arg1 = (bool) true ;
20856 wxConfigBase *result = 0 ;
20857 bool val1 ;
20858 int ecode1 = 0 ;
20859 PyObject * obj0 = 0 ;
20860 char * kwnames[] = {
20861 (char *) "createOnDemand", NULL
20862 };
20863
20864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) SWIG_fail;
20865 if (obj0) {
20866 ecode1 = SWIG_AsVal_bool(obj0, &val1);
20867 if (!SWIG_IsOK(ecode1)) {
20868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ConfigBase_Get" "', expected argument " "1"" of type '" "bool""'");
20869 }
20870 arg1 = static_cast< bool >(val1);
20871 }
20872 {
20873 PyThreadState* __tstate = wxPyBeginAllowThreads();
20874 result = (wxConfigBase *)wxConfigBase::Get(arg1);
20875 wxPyEndAllowThreads(__tstate);
20876 if (PyErr_Occurred()) SWIG_fail;
20877 }
20878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigBase, 0 | 0 );
20879 return resultobj;
20880fail:
20881 return NULL;
f78cc896
RD
20882}
20883
20884
0085ce49
RD
20885SWIGINTERN PyObject *_wrap_ConfigBase_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20886 PyObject *resultobj = 0;
20887 wxConfigBase *result = 0 ;
20888
20889 if (!SWIG_Python_UnpackTuple(args,"ConfigBase_Create",0,0,0)) SWIG_fail;
20890 {
20891 PyThreadState* __tstate = wxPyBeginAllowThreads();
20892 result = (wxConfigBase *)wxConfigBase::Create();
20893 wxPyEndAllowThreads(__tstate);
20894 if (PyErr_Occurred()) SWIG_fail;
20895 }
20896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigBase, 0 | 0 );
20897 return resultobj;
20898fail:
20899 return NULL;
f78cc896
RD
20900}
20901
20902
0085ce49
RD
20903SWIGINTERN PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20904 PyObject *resultobj = 0;
20905
20906 if (!SWIG_Python_UnpackTuple(args,"ConfigBase_DontCreateOnDemand",0,0,0)) SWIG_fail;
20907 {
20908 PyThreadState* __tstate = wxPyBeginAllowThreads();
20909 wxConfigBase::DontCreateOnDemand();
20910 wxPyEndAllowThreads(__tstate);
20911 if (PyErr_Occurred()) SWIG_fail;
20912 }
20913 resultobj = SWIG_Py_Void();
20914 return resultobj;
20915fail:
20916 return NULL;
20917}
20918
20919
20920SWIGINTERN PyObject *_wrap_ConfigBase_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20921 PyObject *resultobj = 0;
20922 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20923 wxString *arg2 = 0 ;
20924 void *argp1 = 0 ;
20925 int res1 = 0 ;
20926 bool temp2 = false ;
20927 PyObject * obj0 = 0 ;
20928 PyObject * obj1 = 0 ;
20929 char * kwnames[] = {
20930 (char *) "self",(char *) "path", NULL
20931 };
20932
20933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
20934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
20935 if (!SWIG_IsOK(res1)) {
20936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetPath" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20937 }
20938 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
20939 {
20940 arg2 = wxString_in_helper(obj1);
20941 if (arg2 == NULL) SWIG_fail;
20942 temp2 = true;
20943 }
20944 {
20945 PyThreadState* __tstate = wxPyBeginAllowThreads();
20946 (arg1)->SetPath((wxString const &)*arg2);
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 resultobj = SWIG_Py_Void();
20951 {
20952 if (temp2)
20953 delete arg2;
20954 }
20955 return resultobj;
20956fail:
20957 {
20958 if (temp2)
20959 delete arg2;
20960 }
20961 return NULL;
f78cc896
RD
20962}
20963
20964
0085ce49
RD
20965SWIGINTERN PyObject *_wrap_ConfigBase_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20966 PyObject *resultobj = 0;
20967 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20968 wxString *result = 0 ;
20969 void *argp1 = 0 ;
20970 int res1 = 0 ;
20971 PyObject *swig_obj[1] ;
20972
20973 if (!args) SWIG_fail;
20974 swig_obj[0] = args;
20975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
20976 if (!SWIG_IsOK(res1)) {
20977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetPath" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
20978 }
20979 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
20980 {
20981 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 20982 {
0085ce49
RD
20983 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
20984 result = (wxString *) &_result_ref;
20985 }
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 {
f78cc896 20990#if wxUSE_UNICODE
0085ce49 20991 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
f78cc896 20992#else
0085ce49 20993 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
f78cc896 20994#endif
0085ce49
RD
20995 }
20996 return resultobj;
20997fail:
20998 return NULL;
f78cc896
RD
20999}
21000
21001
0085ce49
RD
21002SWIGINTERN PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21003 PyObject *resultobj = 0;
21004 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21005 PyObject *result = 0 ;
21006 void *argp1 = 0 ;
21007 int res1 = 0 ;
21008 PyObject *swig_obj[1] ;
21009
21010 if (!args) SWIG_fail;
21011 swig_obj[0] = args;
21012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21013 if (!SWIG_IsOK(res1)) {
21014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetFirstGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21015 }
21016 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21017 {
21018 PyThreadState* __tstate = wxPyBeginAllowThreads();
21019 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
21020 wxPyEndAllowThreads(__tstate);
21021 if (PyErr_Occurred()) SWIG_fail;
21022 }
21023 resultobj = result;
21024 return resultobj;
21025fail:
21026 return NULL;
21027}
21028
21029
21030SWIGINTERN PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21031 PyObject *resultobj = 0;
21032 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21033 long arg2 ;
21034 PyObject *result = 0 ;
21035 void *argp1 = 0 ;
21036 int res1 = 0 ;
21037 long val2 ;
21038 int ecode2 = 0 ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 char * kwnames[] = {
21042 (char *) "self",(char *) "index", NULL
21043 };
21044
21045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) SWIG_fail;
21046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21047 if (!SWIG_IsOK(res1)) {
21048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNextGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21049 }
21050 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21051 ecode2 = SWIG_AsVal_long(obj1, &val2);
21052 if (!SWIG_IsOK(ecode2)) {
21053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNextGroup" "', expected argument " "2"" of type '" "long""'");
21054 }
21055 arg2 = static_cast< long >(val2);
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = result;
21063 return resultobj;
21064fail:
21065 return NULL;
d14a1e28
RD
21066}
21067
21068
0085ce49
RD
21069SWIGINTERN PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21070 PyObject *resultobj = 0;
21071 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21072 PyObject *result = 0 ;
21073 void *argp1 = 0 ;
21074 int res1 = 0 ;
21075 PyObject *swig_obj[1] ;
21076
21077 if (!args) SWIG_fail;
21078 swig_obj[0] = args;
21079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21080 if (!SWIG_IsOK(res1)) {
21081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetFirstEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21082 }
21083 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
21087 wxPyEndAllowThreads(__tstate);
21088 if (PyErr_Occurred()) SWIG_fail;
21089 }
21090 resultobj = result;
21091 return resultobj;
21092fail:
21093 return NULL;
21094}
21095
21096
21097SWIGINTERN PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21098 PyObject *resultobj = 0;
21099 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21100 long arg2 ;
21101 PyObject *result = 0 ;
21102 void *argp1 = 0 ;
21103 int res1 = 0 ;
21104 long val2 ;
21105 int ecode2 = 0 ;
21106 PyObject * obj0 = 0 ;
21107 PyObject * obj1 = 0 ;
21108 char * kwnames[] = {
21109 (char *) "self",(char *) "index", NULL
21110 };
21111
21112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) SWIG_fail;
21113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21114 if (!SWIG_IsOK(res1)) {
21115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNextEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21116 }
21117 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21118 ecode2 = SWIG_AsVal_long(obj1, &val2);
21119 if (!SWIG_IsOK(ecode2)) {
21120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNextEntry" "', expected argument " "2"" of type '" "long""'");
21121 }
21122 arg2 = static_cast< long >(val2);
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
21126 wxPyEndAllowThreads(__tstate);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 }
21129 resultobj = result;
21130 return resultobj;
21131fail:
21132 return NULL;
21133}
21134
21135
21136SWIGINTERN PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj = 0;
21138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21139 bool arg2 = (bool) false ;
21140 size_t result;
21141 void *argp1 = 0 ;
21142 int res1 = 0 ;
21143 bool val2 ;
21144 int ecode2 = 0 ;
21145 PyObject * obj0 = 0 ;
21146 PyObject * obj1 = 0 ;
21147 char * kwnames[] = {
21148 (char *) "self",(char *) "recursive", NULL
21149 };
21150
21151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) SWIG_fail;
21152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21153 if (!SWIG_IsOK(res1)) {
21154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNumberOfEntries" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21155 }
21156 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21157 if (obj1) {
21158 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21159 if (!SWIG_IsOK(ecode2)) {
21160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNumberOfEntries" "', expected argument " "2"" of type '" "bool""'");
21161 }
21162 arg2 = static_cast< bool >(val2);
21163 }
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21171 return resultobj;
21172fail:
21173 return NULL;
21174}
21175
21176
21177SWIGINTERN PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21178 PyObject *resultobj = 0;
21179 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21180 bool arg2 = (bool) false ;
21181 size_t result;
21182 void *argp1 = 0 ;
21183 int res1 = 0 ;
21184 bool val2 ;
21185 int ecode2 = 0 ;
21186 PyObject * obj0 = 0 ;
21187 PyObject * obj1 = 0 ;
21188 char * kwnames[] = {
21189 (char *) "self",(char *) "recursive", NULL
21190 };
21191
21192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) SWIG_fail;
21193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNumberOfGroups" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21196 }
21197 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21198 if (obj1) {
21199 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21200 if (!SWIG_IsOK(ecode2)) {
21201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNumberOfGroups" "', expected argument " "2"" of type '" "bool""'");
21202 }
21203 arg2 = static_cast< bool >(val2);
21204 }
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21212 return resultobj;
21213fail:
21214 return NULL;
21215}
21216
21217
21218SWIGINTERN PyObject *_wrap_ConfigBase_HasGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21219 PyObject *resultobj = 0;
21220 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21221 wxString *arg2 = 0 ;
21222 bool result;
21223 void *argp1 = 0 ;
21224 int res1 = 0 ;
21225 bool temp2 = false ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "name", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_HasGroup" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21236 }
21237 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21238 {
21239 arg2 = wxString_in_helper(obj1);
21240 if (arg2 == NULL) SWIG_fail;
21241 temp2 = true;
21242 }
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 {
21250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21251 }
21252 {
21253 if (temp2)
21254 delete arg2;
21255 }
21256 return resultobj;
21257fail:
21258 {
21259 if (temp2)
21260 delete arg2;
21261 }
21262 return NULL;
21263}
21264
21265
21266SWIGINTERN PyObject *_wrap_ConfigBase_HasEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21267 PyObject *resultobj = 0;
21268 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21269 wxString *arg2 = 0 ;
21270 bool result;
21271 void *argp1 = 0 ;
21272 int res1 = 0 ;
21273 bool temp2 = false ;
21274 PyObject * obj0 = 0 ;
21275 PyObject * obj1 = 0 ;
21276 char * kwnames[] = {
21277 (char *) "self",(char *) "name", NULL
21278 };
21279
21280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) SWIG_fail;
21281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21282 if (!SWIG_IsOK(res1)) {
21283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_HasEntry" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21284 }
21285 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21286 {
21287 arg2 = wxString_in_helper(obj1);
21288 if (arg2 == NULL) SWIG_fail;
21289 temp2 = true;
21290 }
21291 {
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 {
21298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21299 }
21300 {
21301 if (temp2)
21302 delete arg2;
21303 }
21304 return resultobj;
21305fail:
21306 {
21307 if (temp2)
21308 delete arg2;
21309 }
21310 return NULL;
21311}
21312
21313
21314SWIGINTERN PyObject *_wrap_ConfigBase_Exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj = 0;
21316 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21317 wxString *arg2 = 0 ;
21318 bool result;
21319 void *argp1 = 0 ;
21320 int res1 = 0 ;
21321 bool temp2 = false ;
21322 PyObject * obj0 = 0 ;
21323 PyObject * obj1 = 0 ;
21324 char * kwnames[] = {
21325 (char *) "self",(char *) "name", NULL
21326 };
21327
21328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) SWIG_fail;
21329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Exists" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21332 }
21333 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21334 {
21335 arg2 = wxString_in_helper(obj1);
21336 if (arg2 == NULL) SWIG_fail;
21337 temp2 = true;
21338 }
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 {
21346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21347 }
21348 {
21349 if (temp2)
21350 delete arg2;
21351 }
21352 return resultobj;
21353fail:
21354 {
21355 if (temp2)
21356 delete arg2;
21357 }
21358 return NULL;
21359}
21360
21361
21362SWIGINTERN PyObject *_wrap_ConfigBase_GetEntryType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21363 PyObject *resultobj = 0;
21364 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21365 wxString *arg2 = 0 ;
21366 wxConfigBase::EntryType result;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 bool temp2 = false ;
21370 PyObject * obj0 = 0 ;
21371 PyObject * obj1 = 0 ;
21372 char * kwnames[] = {
21373 (char *) "self",(char *) "name", NULL
21374 };
21375
21376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) SWIG_fail;
21377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21378 if (!SWIG_IsOK(res1)) {
21379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetEntryType" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21380 }
21381 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21382 {
21383 arg2 = wxString_in_helper(obj1);
21384 if (arg2 == NULL) SWIG_fail;
21385 temp2 = true;
21386 }
21387 {
21388 PyThreadState* __tstate = wxPyBeginAllowThreads();
21389 result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
21390 wxPyEndAllowThreads(__tstate);
21391 if (PyErr_Occurred()) SWIG_fail;
21392 }
21393 resultobj = SWIG_From_int(static_cast< int >(result));
21394 {
21395 if (temp2)
21396 delete arg2;
21397 }
21398 return resultobj;
21399fail:
21400 {
21401 if (temp2)
21402 delete arg2;
21403 }
21404 return NULL;
21405}
21406
21407
21408SWIGINTERN PyObject *_wrap_ConfigBase_Read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21409 PyObject *resultobj = 0;
21410 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21411 wxString *arg2 = 0 ;
21412 wxString const &arg3_defvalue = wxPyEmptyString ;
21413 wxString *arg3 = (wxString *) &arg3_defvalue ;
21414 wxString result;
21415 void *argp1 = 0 ;
21416 int res1 = 0 ;
21417 bool temp2 = false ;
21418 bool temp3 = false ;
21419 PyObject * obj0 = 0 ;
21420 PyObject * obj1 = 0 ;
21421 PyObject * obj2 = 0 ;
21422 char * kwnames[] = {
21423 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21424 };
21425
21426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21428 if (!SWIG_IsOK(res1)) {
21429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Read" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21430 }
21431 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21432 {
21433 arg2 = wxString_in_helper(obj1);
21434 if (arg2 == NULL) SWIG_fail;
21435 temp2 = true;
21436 }
21437 if (obj2) {
0c243d93 21438 {
0085ce49
RD
21439 arg3 = wxString_in_helper(obj2);
21440 if (arg3 == NULL) SWIG_fail;
21441 temp3 = true;
0c243d93 21442 }
0085ce49
RD
21443 }
21444 {
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
21447 wxPyEndAllowThreads(__tstate);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 {
0c243d93 21451#if wxUSE_UNICODE
0085ce49 21452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
0c243d93 21453#else
0085ce49 21454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
0c243d93 21455#endif
0085ce49
RD
21456 }
21457 {
21458 if (temp2)
21459 delete arg2;
21460 }
21461 {
21462 if (temp3)
21463 delete arg3;
21464 }
21465 return resultobj;
21466fail:
21467 {
21468 if (temp2)
21469 delete arg2;
21470 }
21471 {
21472 if (temp3)
21473 delete arg3;
21474 }
21475 return NULL;
21476}
21477
21478
21479SWIGINTERN PyObject *_wrap_ConfigBase_ReadInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21480 PyObject *resultobj = 0;
21481 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21482 wxString *arg2 = 0 ;
21483 long arg3 = (long) 0 ;
21484 long result;
21485 void *argp1 = 0 ;
21486 int res1 = 0 ;
21487 bool temp2 = false ;
21488 long val3 ;
21489 int ecode3 = 0 ;
21490 PyObject * obj0 = 0 ;
21491 PyObject * obj1 = 0 ;
21492 PyObject * obj2 = 0 ;
21493 char * kwnames[] = {
21494 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21495 };
21496
21497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21499 if (!SWIG_IsOK(res1)) {
21500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadInt" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21501 }
21502 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21503 {
21504 arg2 = wxString_in_helper(obj1);
21505 if (arg2 == NULL) SWIG_fail;
21506 temp2 = true;
21507 }
21508 if (obj2) {
21509 ecode3 = SWIG_AsVal_long(obj2, &val3);
21510 if (!SWIG_IsOK(ecode3)) {
21511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadInt" "', expected argument " "3"" of type '" "long""'");
21512 }
21513 arg3 = static_cast< long >(val3);
21514 }
21515 {
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 resultobj = SWIG_From_long(static_cast< long >(result));
21522 {
21523 if (temp2)
21524 delete arg2;
21525 }
21526 return resultobj;
21527fail:
21528 {
21529 if (temp2)
21530 delete arg2;
21531 }
21532 return NULL;
21533}
21534
21535
21536SWIGINTERN PyObject *_wrap_ConfigBase_ReadFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21537 PyObject *resultobj = 0;
21538 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21539 wxString *arg2 = 0 ;
21540 double arg3 = (double) 0.0 ;
21541 double result;
21542 void *argp1 = 0 ;
21543 int res1 = 0 ;
21544 bool temp2 = false ;
21545 double val3 ;
21546 int ecode3 = 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 PyObject * obj2 = 0 ;
21550 char * kwnames[] = {
21551 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21552 };
21553
21554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21556 if (!SWIG_IsOK(res1)) {
21557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadFloat" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21558 }
21559 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21560 {
21561 arg2 = wxString_in_helper(obj1);
21562 if (arg2 == NULL) SWIG_fail;
21563 temp2 = true;
21564 }
21565 if (obj2) {
21566 ecode3 = SWIG_AsVal_double(obj2, &val3);
21567 if (!SWIG_IsOK(ecode3)) {
21568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadFloat" "', expected argument " "3"" of type '" "double""'");
21569 }
21570 arg3 = static_cast< double >(val3);
21571 }
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
21574 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 resultobj = SWIG_From_double(static_cast< double >(result));
21579 {
21580 if (temp2)
21581 delete arg2;
21582 }
21583 return resultobj;
21584fail:
21585 {
21586 if (temp2)
21587 delete arg2;
21588 }
21589 return NULL;
21590}
21591
21592
21593SWIGINTERN PyObject *_wrap_ConfigBase_ReadBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj = 0;
21595 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21596 wxString *arg2 = 0 ;
21597 bool arg3 = (bool) false ;
21598 bool result;
21599 void *argp1 = 0 ;
21600 int res1 = 0 ;
21601 bool temp2 = false ;
21602 bool val3 ;
21603 int ecode3 = 0 ;
21604 PyObject * obj0 = 0 ;
21605 PyObject * obj1 = 0 ;
21606 PyObject * obj2 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadBool" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21615 }
21616 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21617 {
21618 arg2 = wxString_in_helper(obj1);
21619 if (arg2 == NULL) SWIG_fail;
21620 temp2 = true;
21621 }
21622 if (obj2) {
21623 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21624 if (!SWIG_IsOK(ecode3)) {
21625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadBool" "', expected argument " "3"" of type '" "bool""'");
21626 }
21627 arg3 = static_cast< bool >(val3);
21628 }
21629 {
21630 PyThreadState* __tstate = wxPyBeginAllowThreads();
21631 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 {
21636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21637 }
21638 {
21639 if (temp2)
21640 delete arg2;
21641 }
21642 return resultobj;
21643fail:
21644 {
21645 if (temp2)
21646 delete arg2;
21647 }
21648 return NULL;
21649}
21650
21651
21652SWIGINTERN PyObject *_wrap_ConfigBase_Write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21653 PyObject *resultobj = 0;
21654 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21655 wxString *arg2 = 0 ;
21656 wxString *arg3 = 0 ;
21657 bool result;
21658 void *argp1 = 0 ;
21659 int res1 = 0 ;
21660 bool temp2 = false ;
21661 bool temp3 = false ;
21662 PyObject * obj0 = 0 ;
21663 PyObject * obj1 = 0 ;
21664 PyObject * obj2 = 0 ;
21665 char * kwnames[] = {
21666 (char *) "self",(char *) "key",(char *) "value", NULL
21667 };
21668
21669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21671 if (!SWIG_IsOK(res1)) {
21672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Write" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21673 }
21674 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21675 {
21676 arg2 = wxString_in_helper(obj1);
21677 if (arg2 == NULL) SWIG_fail;
21678 temp2 = true;
21679 }
21680 {
21681 arg3 = wxString_in_helper(obj2);
21682 if (arg3 == NULL) SWIG_fail;
21683 temp3 = true;
21684 }
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
21688 wxPyEndAllowThreads(__tstate);
21689 if (PyErr_Occurred()) SWIG_fail;
21690 }
21691 {
21692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21693 }
21694 {
21695 if (temp2)
21696 delete arg2;
21697 }
21698 {
21699 if (temp3)
21700 delete arg3;
21701 }
21702 return resultobj;
21703fail:
21704 {
21705 if (temp2)
21706 delete arg2;
21707 }
21708 {
21709 if (temp3)
21710 delete arg3;
21711 }
21712 return NULL;
21713}
21714
21715
21716SWIGINTERN PyObject *_wrap_ConfigBase_WriteInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21717 PyObject *resultobj = 0;
21718 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21719 wxString *arg2 = 0 ;
21720 long arg3 ;
21721 bool result;
21722 void *argp1 = 0 ;
21723 int res1 = 0 ;
21724 bool temp2 = false ;
21725 long val3 ;
21726 int ecode3 = 0 ;
21727 PyObject * obj0 = 0 ;
21728 PyObject * obj1 = 0 ;
21729 PyObject * obj2 = 0 ;
21730 char * kwnames[] = {
21731 (char *) "self",(char *) "key",(char *) "value", NULL
21732 };
21733
21734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteInt" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21738 }
21739 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21740 {
21741 arg2 = wxString_in_helper(obj1);
21742 if (arg2 == NULL) SWIG_fail;
21743 temp2 = true;
21744 }
21745 ecode3 = SWIG_AsVal_long(obj2, &val3);
21746 if (!SWIG_IsOK(ecode3)) {
21747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteInt" "', expected argument " "3"" of type '" "long""'");
21748 }
21749 arg3 = static_cast< long >(val3);
21750 {
21751 PyThreadState* __tstate = wxPyBeginAllowThreads();
21752 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21753 wxPyEndAllowThreads(__tstate);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 }
21756 {
21757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21758 }
21759 {
21760 if (temp2)
21761 delete arg2;
21762 }
21763 return resultobj;
21764fail:
21765 {
21766 if (temp2)
21767 delete arg2;
21768 }
21769 return NULL;
21770}
21771
21772
21773SWIGINTERN PyObject *_wrap_ConfigBase_WriteFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21774 PyObject *resultobj = 0;
21775 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21776 wxString *arg2 = 0 ;
21777 double arg3 ;
21778 bool result;
21779 void *argp1 = 0 ;
21780 int res1 = 0 ;
21781 bool temp2 = false ;
21782 double val3 ;
21783 int ecode3 = 0 ;
21784 PyObject * obj0 = 0 ;
21785 PyObject * obj1 = 0 ;
21786 PyObject * obj2 = 0 ;
21787 char * kwnames[] = {
21788 (char *) "self",(char *) "key",(char *) "value", NULL
21789 };
21790
21791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21793 if (!SWIG_IsOK(res1)) {
21794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteFloat" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21795 }
21796 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21797 {
21798 arg2 = wxString_in_helper(obj1);
21799 if (arg2 == NULL) SWIG_fail;
21800 temp2 = true;
21801 }
21802 ecode3 = SWIG_AsVal_double(obj2, &val3);
21803 if (!SWIG_IsOK(ecode3)) {
21804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteFloat" "', expected argument " "3"" of type '" "double""'");
21805 }
21806 arg3 = static_cast< double >(val3);
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21810 wxPyEndAllowThreads(__tstate);
21811 if (PyErr_Occurred()) SWIG_fail;
21812 }
21813 {
21814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21815 }
21816 {
21817 if (temp2)
21818 delete arg2;
21819 }
21820 return resultobj;
21821fail:
21822 {
21823 if (temp2)
21824 delete arg2;
21825 }
21826 return NULL;
21827}
21828
21829
21830SWIGINTERN PyObject *_wrap_ConfigBase_WriteBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21831 PyObject *resultobj = 0;
21832 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21833 wxString *arg2 = 0 ;
21834 bool arg3 ;
21835 bool result;
21836 void *argp1 = 0 ;
21837 int res1 = 0 ;
21838 bool temp2 = false ;
21839 bool val3 ;
21840 int ecode3 = 0 ;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 char * kwnames[] = {
21845 (char *) "self",(char *) "key",(char *) "value", NULL
21846 };
21847
21848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21850 if (!SWIG_IsOK(res1)) {
21851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteBool" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21852 }
21853 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21854 {
21855 arg2 = wxString_in_helper(obj1);
21856 if (arg2 == NULL) SWIG_fail;
21857 temp2 = true;
21858 }
21859 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21860 if (!SWIG_IsOK(ecode3)) {
21861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteBool" "', expected argument " "3"" of type '" "bool""'");
21862 }
21863 arg3 = static_cast< bool >(val3);
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 {
21871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21872 }
21873 {
21874 if (temp2)
21875 delete arg2;
21876 }
21877 return resultobj;
21878fail:
21879 {
21880 if (temp2)
21881 delete arg2;
21882 }
21883 return NULL;
21884}
21885
21886
21887SWIGINTERN PyObject *_wrap_ConfigBase_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21888 PyObject *resultobj = 0;
21889 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21890 bool arg2 = (bool) false ;
21891 bool result;
21892 void *argp1 = 0 ;
21893 int res1 = 0 ;
21894 bool val2 ;
21895 int ecode2 = 0 ;
21896 PyObject * obj0 = 0 ;
21897 PyObject * obj1 = 0 ;
21898 char * kwnames[] = {
21899 (char *) "self",(char *) "currentOnly", NULL
21900 };
21901
21902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) SWIG_fail;
21903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21904 if (!SWIG_IsOK(res1)) {
21905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Flush" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21906 }
21907 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21908 if (obj1) {
21909 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21910 if (!SWIG_IsOK(ecode2)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_Flush" "', expected argument " "2"" of type '" "bool""'");
21912 }
21913 arg2 = static_cast< bool >(val2);
21914 }
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = (bool)(arg1)->Flush(arg2);
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 {
21922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21923 }
21924 return resultobj;
21925fail:
21926 return NULL;
21927}
21928
21929
21930SWIGINTERN PyObject *_wrap_ConfigBase_RenameEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21931 PyObject *resultobj = 0;
21932 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21933 wxString *arg2 = 0 ;
21934 wxString *arg3 = 0 ;
21935 bool result;
21936 void *argp1 = 0 ;
21937 int res1 = 0 ;
21938 bool temp2 = false ;
21939 bool temp3 = false ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 PyObject * obj2 = 0 ;
21943 char * kwnames[] = {
21944 (char *) "self",(char *) "oldName",(char *) "newName", NULL
21945 };
21946
21947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21949 if (!SWIG_IsOK(res1)) {
21950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_RenameEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21951 }
21952 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21953 {
21954 arg2 = wxString_in_helper(obj1);
21955 if (arg2 == NULL) SWIG_fail;
21956 temp2 = true;
21957 }
21958 {
21959 arg3 = wxString_in_helper(obj2);
21960 if (arg3 == NULL) SWIG_fail;
21961 temp3 = true;
21962 }
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21971 }
21972 {
21973 if (temp2)
21974 delete arg2;
21975 }
21976 {
21977 if (temp3)
21978 delete arg3;
21979 }
21980 return resultobj;
21981fail:
21982 {
21983 if (temp2)
21984 delete arg2;
21985 }
21986 {
21987 if (temp3)
21988 delete arg3;
21989 }
21990 return NULL;
21991}
21992
21993
21994SWIGINTERN PyObject *_wrap_ConfigBase_RenameGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21995 PyObject *resultobj = 0;
21996 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21997 wxString *arg2 = 0 ;
21998 wxString *arg3 = 0 ;
21999 bool result;
22000 void *argp1 = 0 ;
22001 int res1 = 0 ;
22002 bool temp2 = false ;
22003 bool temp3 = false ;
22004 PyObject * obj0 = 0 ;
22005 PyObject * obj1 = 0 ;
22006 PyObject * obj2 = 0 ;
22007 char * kwnames[] = {
22008 (char *) "self",(char *) "oldName",(char *) "newName", NULL
22009 };
22010
22011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22013 if (!SWIG_IsOK(res1)) {
22014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_RenameGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22015 }
22016 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22017 {
22018 arg2 = wxString_in_helper(obj1);
22019 if (arg2 == NULL) SWIG_fail;
22020 temp2 = true;
22021 }
22022 {
22023 arg3 = wxString_in_helper(obj2);
22024 if (arg3 == NULL) SWIG_fail;
22025 temp3 = true;
22026 }
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22035 }
22036 {
22037 if (temp2)
22038 delete arg2;
22039 }
22040 {
22041 if (temp3)
22042 delete arg3;
22043 }
22044 return resultobj;
22045fail:
22046 {
22047 if (temp2)
22048 delete arg2;
22049 }
22050 {
22051 if (temp3)
22052 delete arg3;
22053 }
22054 return NULL;
22055}
22056
22057
22058SWIGINTERN PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22059 PyObject *resultobj = 0;
22060 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22061 wxString *arg2 = 0 ;
22062 bool arg3 = (bool) true ;
22063 bool result;
22064 void *argp1 = 0 ;
22065 int res1 = 0 ;
22066 bool temp2 = false ;
22067 bool val3 ;
22068 int ecode3 = 0 ;
22069 PyObject * obj0 = 0 ;
22070 PyObject * obj1 = 0 ;
22071 PyObject * obj2 = 0 ;
22072 char * kwnames[] = {
22073 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
22074 };
22075
22076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22080 }
22081 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22082 {
22083 arg2 = wxString_in_helper(obj1);
22084 if (arg2 == NULL) SWIG_fail;
22085 temp2 = true;
22086 }
22087 if (obj2) {
22088 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22089 if (!SWIG_IsOK(ecode3)) {
22090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_DeleteEntry" "', expected argument " "3"" of type '" "bool""'");
22091 }
22092 arg3 = static_cast< bool >(val3);
22093 }
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
22097 wxPyEndAllowThreads(__tstate);
22098 if (PyErr_Occurred()) SWIG_fail;
22099 }
22100 {
22101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22102 }
22103 {
22104 if (temp2)
22105 delete arg2;
22106 }
22107 return resultobj;
22108fail:
22109 {
22110 if (temp2)
22111 delete arg2;
22112 }
22113 return NULL;
22114}
22115
22116
22117SWIGINTERN PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22118 PyObject *resultobj = 0;
22119 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22120 wxString *arg2 = 0 ;
22121 bool result;
22122 void *argp1 = 0 ;
22123 int res1 = 0 ;
22124 bool temp2 = false ;
22125 PyObject * obj0 = 0 ;
22126 PyObject * obj1 = 0 ;
22127 char * kwnames[] = {
22128 (char *) "self",(char *) "key", NULL
22129 };
22130
22131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) SWIG_fail;
22132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22133 if (!SWIG_IsOK(res1)) {
22134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22135 }
22136 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22137 {
22138 arg2 = wxString_in_helper(obj1);
22139 if (arg2 == NULL) SWIG_fail;
22140 temp2 = true;
22141 }
22142 {
22143 PyThreadState* __tstate = wxPyBeginAllowThreads();
22144 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
22145 wxPyEndAllowThreads(__tstate);
22146 if (PyErr_Occurred()) SWIG_fail;
22147 }
22148 {
22149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22150 }
22151 {
22152 if (temp2)
22153 delete arg2;
22154 }
22155 return resultobj;
22156fail:
22157 {
22158 if (temp2)
22159 delete arg2;
22160 }
22161 return NULL;
22162}
0c243d93
RD
22163
22164
0085ce49
RD
22165SWIGINTERN PyObject *_wrap_ConfigBase_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22166 PyObject *resultobj = 0;
22167 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22168 bool result;
22169 void *argp1 = 0 ;
22170 int res1 = 0 ;
22171 PyObject *swig_obj[1] ;
22172
22173 if (!args) SWIG_fail;
22174 swig_obj[0] = args;
22175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22176 if (!SWIG_IsOK(res1)) {
22177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteAll" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22178 }
22179 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (bool)(arg1)->DeleteAll();
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 {
22187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22188 }
22189 return resultobj;
22190fail:
22191 return NULL;
22192}
22193
22194
22195SWIGINTERN PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj = 0;
22197 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22198 bool arg2 = (bool) true ;
22199 void *argp1 = 0 ;
22200 int res1 = 0 ;
22201 bool val2 ;
22202 int ecode2 = 0 ;
22203 PyObject * obj0 = 0 ;
22204 PyObject * obj1 = 0 ;
22205 char * kwnames[] = {
22206 (char *) "self",(char *) "doIt", NULL
22207 };
22208
22209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) SWIG_fail;
22210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22211 if (!SWIG_IsOK(res1)) {
22212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetExpandEnvVars" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22213 }
22214 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22215 if (obj1) {
22216 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22217 if (!SWIG_IsOK(ecode2)) {
22218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetExpandEnvVars" "', expected argument " "2"" of type '" "bool""'");
22219 }
22220 arg2 = static_cast< bool >(val2);
22221 }
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 (arg1)->SetExpandEnvVars(arg2);
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 resultobj = SWIG_Py_Void();
22229 return resultobj;
22230fail:
22231 return NULL;
0c243d93
RD
22232}
22233
22234
0085ce49
RD
22235SWIGINTERN PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22236 PyObject *resultobj = 0;
22237 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22238 bool result;
22239 void *argp1 = 0 ;
22240 int res1 = 0 ;
22241 PyObject *swig_obj[1] ;
22242
22243 if (!args) SWIG_fail;
22244 swig_obj[0] = args;
22245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22246 if (!SWIG_IsOK(res1)) {
22247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_IsExpandingEnvVars" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22248 }
22249 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22250 {
22251 PyThreadState* __tstate = wxPyBeginAllowThreads();
22252 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
22253 wxPyEndAllowThreads(__tstate);
22254 if (PyErr_Occurred()) SWIG_fail;
22255 }
22256 {
22257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22258 }
22259 return resultobj;
22260fail:
22261 return NULL;
22262}
22263
22264
22265SWIGINTERN PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22266 PyObject *resultobj = 0;
22267 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22268 bool arg2 = (bool) true ;
22269 void *argp1 = 0 ;
22270 int res1 = 0 ;
22271 bool val2 ;
22272 int ecode2 = 0 ;
22273 PyObject * obj0 = 0 ;
22274 PyObject * obj1 = 0 ;
22275 char * kwnames[] = {
22276 (char *) "self",(char *) "doIt", NULL
22277 };
22278
22279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) SWIG_fail;
22280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22281 if (!SWIG_IsOK(res1)) {
22282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetRecordDefaults" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22283 }
22284 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22285 if (obj1) {
22286 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22287 if (!SWIG_IsOK(ecode2)) {
22288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetRecordDefaults" "', expected argument " "2"" of type '" "bool""'");
22289 }
22290 arg2 = static_cast< bool >(val2);
22291 }
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 (arg1)->SetRecordDefaults(arg2);
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 resultobj = SWIG_Py_Void();
22299 return resultobj;
22300fail:
22301 return NULL;
0c243d93
RD
22302}
22303
22304
0085ce49
RD
22305SWIGINTERN PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22307 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22308 bool result;
22309 void *argp1 = 0 ;
22310 int res1 = 0 ;
22311 PyObject *swig_obj[1] ;
22312
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_IsRecordingDefaults" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22318 }
22319 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 {
22327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22328 }
22329 return resultobj;
22330fail:
22331 return NULL;
22332}
22333
22334
22335SWIGINTERN PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj = 0;
22337 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22338 wxString *arg2 = 0 ;
22339 wxString result;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 bool temp2 = false ;
22343 PyObject * obj0 = 0 ;
22344 PyObject * obj1 = 0 ;
22345 char * kwnames[] = {
22346 (char *) "self",(char *) "str", NULL
22347 };
22348
22349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) SWIG_fail;
22350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22351 if (!SWIG_IsOK(res1)) {
22352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ExpandEnvVars" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22353 }
22354 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22355 {
22356 arg2 = wxString_in_helper(obj1);
22357 if (arg2 == NULL) SWIG_fail;
22358 temp2 = true;
22359 }
22360 {
22361 PyThreadState* __tstate = wxPyBeginAllowThreads();
22362 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
22363 wxPyEndAllowThreads(__tstate);
22364 if (PyErr_Occurred()) SWIG_fail;
22365 }
22366 {
0c243d93 22367#if wxUSE_UNICODE
0085ce49 22368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
0c243d93 22369#else
0085ce49 22370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
0c243d93 22371#endif
0085ce49
RD
22372 }
22373 {
22374 if (temp2)
22375 delete arg2;
22376 }
22377 return resultobj;
22378fail:
22379 {
22380 if (temp2)
22381 delete arg2;
22382 }
22383 return NULL;
a187dc0b
RD
22384}
22385
22386
0085ce49
RD
22387SWIGINTERN PyObject *_wrap_ConfigBase_GetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22388 PyObject *resultobj = 0;
22389 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22390 wxString result;
22391 void *argp1 = 0 ;
22392 int res1 = 0 ;
22393 PyObject *swig_obj[1] ;
22394
22395 if (!args) SWIG_fail;
22396 swig_obj[0] = args;
22397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22398 if (!SWIG_IsOK(res1)) {
22399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetAppName" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22400 }
22401 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 result = ((wxConfigBase const *)arg1)->GetAppName();
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 {
a187dc0b 22409#if wxUSE_UNICODE
0085ce49 22410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
a187dc0b 22411#else
0085ce49 22412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
a187dc0b 22413#endif
0085ce49
RD
22414 }
22415 return resultobj;
22416fail:
22417 return NULL;
0c243d93
RD
22418}
22419
22420
0085ce49
RD
22421SWIGINTERN PyObject *_wrap_ConfigBase_GetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22422 PyObject *resultobj = 0;
22423 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22424 wxString result;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 PyObject *swig_obj[1] ;
22428
22429 if (!args) SWIG_fail;
22430 swig_obj[0] = args;
22431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22432 if (!SWIG_IsOK(res1)) {
22433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetVendorName" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22434 }
22435 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = ((wxConfigBase const *)arg1)->GetVendorName();
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 {
22443#if wxUSE_UNICODE
22444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22445#else
22446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
0c243d93 22447#endif
0085ce49
RD
22448 }
22449 return resultobj;
22450fail:
22451 return NULL;
22452}
22453
22454
22455SWIGINTERN PyObject *_wrap_ConfigBase_SetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22456 PyObject *resultobj = 0;
22457 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22458 wxString *arg2 = 0 ;
22459 void *argp1 = 0 ;
22460 int res1 = 0 ;
22461 bool temp2 = false ;
22462 PyObject * obj0 = 0 ;
22463 PyObject * obj1 = 0 ;
22464 char * kwnames[] = {
22465 (char *) "self",(char *) "appName", NULL
22466 };
22467
22468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) SWIG_fail;
22469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22470 if (!SWIG_IsOK(res1)) {
22471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetAppName" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22472 }
22473 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22474 {
22475 arg2 = wxString_in_helper(obj1);
22476 if (arg2 == NULL) SWIG_fail;
22477 temp2 = true;
22478 }
22479 {
22480 PyThreadState* __tstate = wxPyBeginAllowThreads();
22481 (arg1)->SetAppName((wxString const &)*arg2);
22482 wxPyEndAllowThreads(__tstate);
22483 if (PyErr_Occurred()) SWIG_fail;
22484 }
22485 resultobj = SWIG_Py_Void();
22486 {
22487 if (temp2)
22488 delete arg2;
22489 }
22490 return resultobj;
22491fail:
22492 {
22493 if (temp2)
22494 delete arg2;
22495 }
22496 return NULL;
0c243d93
RD
22497}
22498
22499
0085ce49
RD
22500SWIGINTERN PyObject *_wrap_ConfigBase_SetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22501 PyObject *resultobj = 0;
22502 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22503 wxString *arg2 = 0 ;
22504 void *argp1 = 0 ;
22505 int res1 = 0 ;
22506 bool temp2 = false ;
22507 PyObject * obj0 = 0 ;
22508 PyObject * obj1 = 0 ;
22509 char * kwnames[] = {
22510 (char *) "self",(char *) "vendorName", NULL
22511 };
22512
22513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) SWIG_fail;
22514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22515 if (!SWIG_IsOK(res1)) {
22516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetVendorName" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22517 }
22518 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22519 {
22520 arg2 = wxString_in_helper(obj1);
22521 if (arg2 == NULL) SWIG_fail;
22522 temp2 = true;
22523 }
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 (arg1)->SetVendorName((wxString const &)*arg2);
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 resultobj = SWIG_Py_Void();
22531 {
22532 if (temp2)
22533 delete arg2;
22534 }
22535 return resultobj;
22536fail:
22537 {
22538 if (temp2)
22539 delete arg2;
22540 }
22541 return NULL;
22542}
22543
22544
22545SWIGINTERN PyObject *_wrap_ConfigBase_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22546 PyObject *resultobj = 0;
22547 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22548 long arg2 ;
22549 void *argp1 = 0 ;
22550 int res1 = 0 ;
22551 long val2 ;
22552 int ecode2 = 0 ;
22553 PyObject * obj0 = 0 ;
22554 PyObject * obj1 = 0 ;
22555 char * kwnames[] = {
22556 (char *) "self",(char *) "style", NULL
22557 };
22558
22559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
22560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22561 if (!SWIG_IsOK(res1)) {
22562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetStyle" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22563 }
22564 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22565 ecode2 = SWIG_AsVal_long(obj1, &val2);
22566 if (!SWIG_IsOK(ecode2)) {
22567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetStyle" "', expected argument " "2"" of type '" "long""'");
22568 }
22569 arg2 = static_cast< long >(val2);
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 (arg1)->SetStyle(arg2);
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 resultobj = SWIG_Py_Void();
22577 return resultobj;
22578fail:
22579 return NULL;
0c243d93
RD
22580}
22581
22582
0085ce49
RD
22583SWIGINTERN PyObject *_wrap_ConfigBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *resultobj = 0;
22585 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22586 long result;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject *swig_obj[1] ;
22590
22591 if (!args) SWIG_fail;
22592 swig_obj[0] = args;
22593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22594 if (!SWIG_IsOK(res1)) {
22595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetStyle" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22596 }
22597 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (long)((wxConfigBase const *)arg1)->GetStyle();
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 resultobj = SWIG_From_long(static_cast< long >(result));
22605 return resultobj;
22606fail:
22607 return NULL;
22608}
22609
22610
22611SWIGINTERN PyObject *ConfigBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22612 PyObject *obj;
22613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22614 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfigBase, SWIG_NewClientData(obj));
22615 return SWIG_Py_Void();
22616}
22617
22618SWIGINTERN PyObject *_wrap_new_Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22619 PyObject *resultobj = 0;
22620 wxString const &arg1_defvalue = wxPyEmptyString ;
22621 wxString *arg1 = (wxString *) &arg1_defvalue ;
22622 wxString const &arg2_defvalue = wxPyEmptyString ;
22623 wxString *arg2 = (wxString *) &arg2_defvalue ;
22624 wxString const &arg3_defvalue = wxPyEmptyString ;
22625 wxString *arg3 = (wxString *) &arg3_defvalue ;
22626 wxString const &arg4_defvalue = wxPyEmptyString ;
22627 wxString *arg4 = (wxString *) &arg4_defvalue ;
22628 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
22629 wxConfig *result = 0 ;
22630 bool temp1 = false ;
22631 bool temp2 = false ;
22632 bool temp3 = false ;
22633 bool temp4 = false ;
22634 long val5 ;
22635 int ecode5 = 0 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 PyObject * obj2 = 0 ;
22639 PyObject * obj3 = 0 ;
22640 PyObject * obj4 = 0 ;
22641 char * kwnames[] = {
22642 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
22643 };
22644
22645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22646 if (obj0) {
0c243d93 22647 {
0085ce49
RD
22648 arg1 = wxString_in_helper(obj0);
22649 if (arg1 == NULL) SWIG_fail;
22650 temp1 = true;
0c243d93 22651 }
0085ce49
RD
22652 }
22653 if (obj1) {
22654 {
22655 arg2 = wxString_in_helper(obj1);
22656 if (arg2 == NULL) SWIG_fail;
22657 temp2 = true;
22658 }
22659 }
22660 if (obj2) {
22661 {
22662 arg3 = wxString_in_helper(obj2);
22663 if (arg3 == NULL) SWIG_fail;
22664 temp3 = true;
22665 }
22666 }
22667 if (obj3) {
22668 {
22669 arg4 = wxString_in_helper(obj3);
22670 if (arg4 == NULL) SWIG_fail;
22671 temp4 = true;
22672 }
22673 }
22674 if (obj4) {
22675 ecode5 = SWIG_AsVal_long(obj4, &val5);
22676 if (!SWIG_IsOK(ecode5)) {
22677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Config" "', expected argument " "5"" of type '" "long""'");
22678 }
22679 arg5 = static_cast< long >(val5);
22680 }
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfig, SWIG_POINTER_NEW | 0 );
22688 {
22689 if (temp1)
22690 delete arg1;
22691 }
22692 {
22693 if (temp2)
22694 delete arg2;
22695 }
22696 {
22697 if (temp3)
22698 delete arg3;
22699 }
22700 {
22701 if (temp4)
22702 delete arg4;
22703 }
22704 return resultobj;
22705fail:
22706 {
22707 if (temp1)
22708 delete arg1;
22709 }
22710 {
22711 if (temp2)
22712 delete arg2;
22713 }
22714 {
22715 if (temp3)
22716 delete arg3;
22717 }
22718 {
22719 if (temp4)
22720 delete arg4;
22721 }
22722 return NULL;
0c243d93
RD
22723}
22724
22725
0085ce49
RD
22726SWIGINTERN PyObject *_wrap_delete_Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22727 PyObject *resultobj = 0;
22728 wxConfig *arg1 = (wxConfig *) 0 ;
22729 void *argp1 = 0 ;
22730 int res1 = 0 ;
22731 PyObject *swig_obj[1] ;
22732
22733 if (!args) SWIG_fail;
22734 swig_obj[0] = args;
22735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfig, SWIG_POINTER_DISOWN | 0 );
22736 if (!SWIG_IsOK(res1)) {
22737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Config" "', expected argument " "1"" of type '" "wxConfig *""'");
22738 }
22739 arg1 = reinterpret_cast< wxConfig * >(argp1);
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 delete arg1;
22743
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 resultobj = SWIG_Py_Void();
22748 return resultobj;
22749fail:
22750 return NULL;
22751}
22752
22753
22754SWIGINTERN PyObject *Config_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22755 PyObject *obj;
22756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22757 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfig, SWIG_NewClientData(obj));
22758 return SWIG_Py_Void();
22759}
22760
22761SWIGINTERN PyObject *Config_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22762 return SWIG_Python_InitShadowInstance(args);
22763}
22764
22765SWIGINTERN PyObject *_wrap_new_FileConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22766 PyObject *resultobj = 0;
22767 wxString const &arg1_defvalue = wxPyEmptyString ;
22768 wxString *arg1 = (wxString *) &arg1_defvalue ;
22769 wxString const &arg2_defvalue = wxPyEmptyString ;
22770 wxString *arg2 = (wxString *) &arg2_defvalue ;
22771 wxString const &arg3_defvalue = wxPyEmptyString ;
22772 wxString *arg3 = (wxString *) &arg3_defvalue ;
22773 wxString const &arg4_defvalue = wxPyEmptyString ;
22774 wxString *arg4 = (wxString *) &arg4_defvalue ;
22775 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
22776 wxFileConfig *result = 0 ;
22777 bool temp1 = false ;
22778 bool temp2 = false ;
22779 bool temp3 = false ;
22780 bool temp4 = false ;
22781 long val5 ;
22782 int ecode5 = 0 ;
22783 PyObject * obj0 = 0 ;
22784 PyObject * obj1 = 0 ;
22785 PyObject * obj2 = 0 ;
22786 PyObject * obj3 = 0 ;
22787 PyObject * obj4 = 0 ;
22788 char * kwnames[] = {
22789 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
22790 };
22791
22792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22793 if (obj0) {
22794 {
22795 arg1 = wxString_in_helper(obj0);
22796 if (arg1 == NULL) SWIG_fail;
22797 temp1 = true;
22798 }
22799 }
22800 if (obj1) {
22801 {
22802 arg2 = wxString_in_helper(obj1);
22803 if (arg2 == NULL) SWIG_fail;
22804 temp2 = true;
22805 }
22806 }
22807 if (obj2) {
22808 {
22809 arg3 = wxString_in_helper(obj2);
22810 if (arg3 == NULL) SWIG_fail;
22811 temp3 = true;
22812 }
22813 }
22814 if (obj3) {
22815 {
22816 arg4 = wxString_in_helper(obj3);
22817 if (arg4 == NULL) SWIG_fail;
22818 temp4 = true;
22819 }
22820 }
22821 if (obj4) {
22822 ecode5 = SWIG_AsVal_long(obj4, &val5);
22823 if (!SWIG_IsOK(ecode5)) {
22824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FileConfig" "', expected argument " "5"" of type '" "long""'");
22825 }
22826 arg5 = static_cast< long >(val5);
22827 }
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
22830 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
22831 wxPyEndAllowThreads(__tstate);
22832 if (PyErr_Occurred()) SWIG_fail;
22833 }
22834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileConfig, SWIG_POINTER_NEW | 0 );
22835 {
22836 if (temp1)
22837 delete arg1;
22838 }
22839 {
22840 if (temp2)
22841 delete arg2;
22842 }
22843 {
22844 if (temp3)
22845 delete arg3;
22846 }
22847 {
22848 if (temp4)
22849 delete arg4;
22850 }
22851 return resultobj;
22852fail:
22853 {
22854 if (temp1)
22855 delete arg1;
22856 }
22857 {
22858 if (temp2)
22859 delete arg2;
22860 }
22861 {
22862 if (temp3)
22863 delete arg3;
22864 }
22865 {
22866 if (temp4)
22867 delete arg4;
22868 }
22869 return NULL;
0c243d93
RD
22870}
22871
22872
0085ce49
RD
22873SWIGINTERN PyObject *_wrap_delete_FileConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22874 PyObject *resultobj = 0;
22875 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
22876 void *argp1 = 0 ;
22877 int res1 = 0 ;
22878 PyObject *swig_obj[1] ;
22879
22880 if (!args) SWIG_fail;
22881 swig_obj[0] = args;
22882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileConfig, SWIG_POINTER_DISOWN | 0 );
22883 if (!SWIG_IsOK(res1)) {
22884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileConfig" "', expected argument " "1"" of type '" "wxFileConfig *""'");
22885 }
22886 arg1 = reinterpret_cast< wxFileConfig * >(argp1);
22887 {
22888 PyThreadState* __tstate = wxPyBeginAllowThreads();
22889 delete arg1;
0c243d93 22890
0085ce49
RD
22891 wxPyEndAllowThreads(__tstate);
22892 if (PyErr_Occurred()) SWIG_fail;
22893 }
22894 resultobj = SWIG_Py_Void();
22895 return resultobj;
22896fail:
22897 return NULL;
0c243d93
RD
22898}
22899
22900
0085ce49
RD
22901SWIGINTERN PyObject *FileConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22902 PyObject *obj;
22903 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22904 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileConfig, SWIG_NewClientData(obj));
22905 return SWIG_Py_Void();
22906}
22907
22908SWIGINTERN PyObject *FileConfig_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22909 return SWIG_Python_InitShadowInstance(args);
0c243d93
RD
22910}
22911
0085ce49
RD
22912SWIGINTERN PyObject *_wrap_new_ConfigPathChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj = 0;
22914 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22915 wxString *arg2 = 0 ;
22916 wxConfigPathChanger *result = 0 ;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 bool temp2 = false ;
22920 PyObject * obj0 = 0 ;
22921 PyObject * obj1 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "config",(char *) "entry", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) SWIG_fail;
22927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigPathChanger" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22930 }
22931 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22932 {
22933 arg2 = wxString_in_helper(obj1);
22934 if (arg2 == NULL) SWIG_fail;
22935 temp2 = true;
22936 }
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_NEW | 0 );
22944 {
22945 if (temp2)
22946 delete arg2;
22947 }
22948 return resultobj;
22949fail:
22950 {
22951 if (temp2)
22952 delete arg2;
22953 }
22954 return NULL;
22955}
0c243d93 22956
0085ce49
RD
22957
22958SWIGINTERN PyObject *_wrap_delete_ConfigPathChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
22961 void *argp1 = 0 ;
22962 int res1 = 0 ;
22963 PyObject *swig_obj[1] ;
22964
22965 if (!args) SWIG_fail;
22966 swig_obj[0] = args;
22967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_DISOWN | 0 );
22968 if (!SWIG_IsOK(res1)) {
22969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigPathChanger" "', expected argument " "1"" of type '" "wxConfigPathChanger *""'");
22970 }
22971 arg1 = reinterpret_cast< wxConfigPathChanger * >(argp1);
22972 {
22973 PyThreadState* __tstate = wxPyBeginAllowThreads();
22974 delete arg1;
0c243d93 22975
0085ce49
RD
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_Py_Void();
22980 return resultobj;
22981fail:
22982 return NULL;
22983}
22984
22985
22986SWIGINTERN PyObject *_wrap_ConfigPathChanger_Name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22987 PyObject *resultobj = 0;
22988 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
22989 wxString *result = 0 ;
22990 void *argp1 = 0 ;
22991 int res1 = 0 ;
22992 PyObject *swig_obj[1] ;
22993
22994 if (!args) SWIG_fail;
22995 swig_obj[0] = args;
22996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigPathChanger, 0 | 0 );
22997 if (!SWIG_IsOK(res1)) {
22998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigPathChanger_Name" "', expected argument " "1"" of type '" "wxConfigPathChanger const *""'");
22999 }
23000 arg1 = reinterpret_cast< wxConfigPathChanger * >(argp1);
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
0c243d93 23003 {
0085ce49
RD
23004 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
23005 result = (wxString *) &_result_ref;
23006 }
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 {
0c243d93 23011#if wxUSE_UNICODE
0085ce49 23012 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
0c243d93 23013#else
0085ce49 23014 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
0c243d93 23015#endif
0085ce49
RD
23016 }
23017 return resultobj;
23018fail:
23019 return NULL;
0c243d93
RD
23020}
23021
23022
0085ce49
RD
23023SWIGINTERN PyObject *ConfigPathChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23024 PyObject *obj;
23025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23026 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfigPathChanger, SWIG_NewClientData(obj));
23027 return SWIG_Py_Void();
0c243d93
RD
23028}
23029
0085ce49
RD
23030SWIGINTERN PyObject *ConfigPathChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23031 return SWIG_Python_InitShadowInstance(args);
23032}
0c243d93 23033
0085ce49
RD
23034SWIGINTERN PyObject *_wrap_ExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23035 PyObject *resultobj = 0;
23036 wxString *arg1 = 0 ;
23037 wxString result;
23038 bool temp1 = false ;
23039 PyObject * obj0 = 0 ;
23040 char * kwnames[] = {
23041 (char *) "sz", NULL
23042 };
23043
23044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) SWIG_fail;
23045 {
23046 arg1 = wxString_in_helper(obj0);
23047 if (arg1 == NULL) SWIG_fail;
23048 temp1 = true;
23049 }
23050 {
23051 PyThreadState* __tstate = wxPyBeginAllowThreads();
23052 result = wxExpandEnvVars((wxString const &)*arg1);
23053 wxPyEndAllowThreads(__tstate);
23054 if (PyErr_Occurred()) SWIG_fail;
23055 }
23056 {
0c243d93 23057#if wxUSE_UNICODE
0085ce49 23058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
0c243d93 23059#else
0085ce49 23060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
0c243d93 23061#endif
0085ce49
RD
23062 }
23063 {
23064 if (temp1)
23065 delete arg1;
23066 }
23067 return resultobj;
23068fail:
23069 {
23070 if (temp1)
23071 delete arg1;
23072 }
23073 return NULL;
0c243d93
RD
23074}
23075
23076
0085ce49
RD
23077SWIGINTERN int DefaultDateTimeFormat_set(PyObject *) {
23078 SWIG_Error(SWIG_AttributeError,"Variable DefaultDateTimeFormat is read-only.");
23079 return 1;
d14a1e28
RD
23080}
23081
23082
0085ce49
RD
23083SWIGINTERN PyObject *DefaultDateTimeFormat_get(void) {
23084 PyObject *pyobj = 0;
23085
23086 {
23087#if wxUSE_UNICODE
23088 pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
23089#else
23090 pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
23091#endif
23092 }
23093 return pyobj;
7e08d4ef
RD
23094}
23095
23096
0085ce49
RD
23097SWIGINTERN int DefaultTimeSpanFormat_set(PyObject *) {
23098 SWIG_Error(SWIG_AttributeError,"Variable DefaultTimeSpanFormat is read-only.");
23099 return 1;
d14a1e28
RD
23100}
23101
23102
0085ce49
RD
23103SWIGINTERN PyObject *DefaultTimeSpanFormat_get(void) {
23104 PyObject *pyobj = 0;
23105
23106 {
23107#if wxUSE_UNICODE
23108 pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
23109#else
23110 pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
23111#endif
23112 }
23113 return pyobj;
d14a1e28
RD
23114}
23115
23116
0085ce49
RD
23117SWIGINTERN PyObject *_wrap_DateTime_SetCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23118 PyObject *resultobj = 0;
23119 wxDateTime::Country arg1 ;
23120 int val1 ;
23121 int ecode1 = 0 ;
23122 PyObject * obj0 = 0 ;
23123 char * kwnames[] = {
23124 (char *) "country", NULL
23125 };
23126
23127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) SWIG_fail;
23128 ecode1 = SWIG_AsVal_int(obj0, &val1);
23129 if (!SWIG_IsOK(ecode1)) {
23130 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_SetCountry" "', expected argument " "1"" of type '" "wxDateTime::Country""'");
23131 }
23132 arg1 = static_cast< wxDateTime::Country >(val1);
23133 {
23134 PyThreadState* __tstate = wxPyBeginAllowThreads();
23135 wxDateTime::SetCountry(arg1);
23136 wxPyEndAllowThreads(__tstate);
23137 if (PyErr_Occurred()) SWIG_fail;
23138 }
23139 resultobj = SWIG_Py_Void();
23140 return resultobj;
23141fail:
23142 return NULL;
d14a1e28
RD
23143}
23144
23145
0085ce49
RD
23146SWIGINTERN PyObject *_wrap_DateTime_GetCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23147 PyObject *resultobj = 0;
23148 wxDateTime::Country result;
23149
23150 if (!SWIG_Python_UnpackTuple(args,"DateTime_GetCountry",0,0,0)) SWIG_fail;
23151 {
23152 PyThreadState* __tstate = wxPyBeginAllowThreads();
23153 result = (wxDateTime::Country)wxDateTime::GetCountry();
23154 wxPyEndAllowThreads(__tstate);
23155 if (PyErr_Occurred()) SWIG_fail;
23156 }
23157 resultobj = SWIG_From_int(static_cast< int >(result));
23158 return resultobj;
23159fail:
23160 return NULL;
23161}
23162
23163
23164SWIGINTERN PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23165 PyObject *resultobj = 0;
23166 wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ;
23167 bool result;
23168 int val1 ;
23169 int ecode1 = 0 ;
23170 PyObject * obj0 = 0 ;
23171 char * kwnames[] = {
23172 (char *) "country", NULL
23173 };
23174
23175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) SWIG_fail;
23176 if (obj0) {
23177 ecode1 = SWIG_AsVal_int(obj0, &val1);
23178 if (!SWIG_IsOK(ecode1)) {
23179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsWestEuropeanCountry" "', expected argument " "1"" of type '" "wxDateTime::Country""'");
23180 }
23181 arg1 = static_cast< wxDateTime::Country >(val1);
23182 }
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 result = (bool)wxDateTime::IsWestEuropeanCountry(arg1);
23186 wxPyEndAllowThreads(__tstate);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 }
23189 {
23190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23191 }
23192 return resultobj;
23193fail:
23194 return NULL;
d14a1e28
RD
23195}
23196
23197
0085ce49
RD
23198SWIGINTERN PyObject *_wrap_DateTime_GetCurrentYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23199 PyObject *resultobj = 0;
23200 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23201 int result;
23202 int val1 ;
23203 int ecode1 = 0 ;
23204 PyObject * obj0 = 0 ;
23205 char * kwnames[] = {
23206 (char *) "cal", NULL
23207 };
23208
23209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) SWIG_fail;
23210 if (obj0) {
23211 ecode1 = SWIG_AsVal_int(obj0, &val1);
23212 if (!SWIG_IsOK(ecode1)) {
23213 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCurrentYear" "', expected argument " "1"" of type '" "wxDateTime::Calendar""'");
23214 }
23215 arg1 = static_cast< wxDateTime::Calendar >(val1);
23216 }
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 result = (int)wxDateTime::GetCurrentYear(arg1);
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_From_int(static_cast< int >(result));
23224 return resultobj;
23225fail:
23226 return NULL;
23227}
23228
23229
23230SWIGINTERN PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj = 0;
23232 int arg1 ;
23233 int result;
23234 int val1 ;
23235 int ecode1 = 0 ;
23236 PyObject * obj0 = 0 ;
23237 char * kwnames[] = {
23238 (char *) "year", NULL
23239 };
23240
23241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) SWIG_fail;
23242 ecode1 = SWIG_AsVal_int(obj0, &val1);
23243 if (!SWIG_IsOK(ecode1)) {
23244 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_ConvertYearToBC" "', expected argument " "1"" of type '" "int""'");
23245 }
23246 arg1 = static_cast< int >(val1);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (int)wxDateTime::ConvertYearToBC(arg1);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = SWIG_From_int(static_cast< int >(result));
23254 return resultobj;
23255fail:
23256 return NULL;
23257}
23258
23259
23260SWIGINTERN PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj = 0;
23262 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23263 wxDateTime::Month result;
23264 int val1 ;
23265 int ecode1 = 0 ;
23266 PyObject * obj0 = 0 ;
23267 char * kwnames[] = {
23268 (char *) "cal", NULL
23269 };
23270
23271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) SWIG_fail;
23272 if (obj0) {
23273 ecode1 = SWIG_AsVal_int(obj0, &val1);
23274 if (!SWIG_IsOK(ecode1)) {
23275 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCurrentMonth" "', expected argument " "1"" of type '" "wxDateTime::Calendar""'");
23276 }
23277 arg1 = static_cast< wxDateTime::Calendar >(val1);
23278 }
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1);
23282 wxPyEndAllowThreads(__tstate);
23283 if (PyErr_Occurred()) SWIG_fail;
23284 }
23285 resultobj = SWIG_From_int(static_cast< int >(result));
23286 return resultobj;
23287fail:
23288 return NULL;
23289}
23290
23291
23292SWIGINTERN PyObject *_wrap_DateTime_IsLeapYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23293 PyObject *resultobj = 0;
23294 int arg1 = (int) wxDateTime::Inv_Year ;
23295 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23296 bool result;
23297 int val1 ;
23298 int ecode1 = 0 ;
23299 int val2 ;
23300 int ecode2 = 0 ;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 char * kwnames[] = {
23304 (char *) "year",(char *) "cal", NULL
23305 };
23306
23307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) SWIG_fail;
23308 if (obj0) {
23309 ecode1 = SWIG_AsVal_int(obj0, &val1);
23310 if (!SWIG_IsOK(ecode1)) {
23311 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsLeapYear" "', expected argument " "1"" of type '" "int""'");
23312 }
23313 arg1 = static_cast< int >(val1);
23314 }
23315 if (obj1) {
23316 ecode2 = SWIG_AsVal_int(obj1, &val2);
23317 if (!SWIG_IsOK(ecode2)) {
23318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsLeapYear" "', expected argument " "2"" of type '" "wxDateTime::Calendar""'");
23319 }
23320 arg2 = static_cast< wxDateTime::Calendar >(val2);
23321 }
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 result = (bool)wxDateTime::IsLeapYear(arg1,arg2);
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 {
23329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23330 }
23331 return resultobj;
23332fail:
23333 return NULL;
d14a1e28
RD
23334}
23335
23336
0085ce49
RD
23337SWIGINTERN PyObject *_wrap_DateTime_GetCentury(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23338 PyObject *resultobj = 0;
23339 int arg1 = (int) wxDateTime::Inv_Year ;
23340 int result;
23341 int val1 ;
23342 int ecode1 = 0 ;
23343 PyObject * obj0 = 0 ;
23344 char * kwnames[] = {
23345 (char *) "year", NULL
23346 };
23347
23348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) SWIG_fail;
23349 if (obj0) {
23350 ecode1 = SWIG_AsVal_int(obj0, &val1);
23351 if (!SWIG_IsOK(ecode1)) {
23352 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCentury" "', expected argument " "1"" of type '" "int""'");
23353 }
23354 arg1 = static_cast< int >(val1);
23355 }
23356 {
23357 PyThreadState* __tstate = wxPyBeginAllowThreads();
23358 result = (int)wxDateTime::GetCentury(arg1);
23359 wxPyEndAllowThreads(__tstate);
23360 if (PyErr_Occurred()) SWIG_fail;
23361 }
23362 resultobj = SWIG_From_int(static_cast< int >(result));
23363 return resultobj;
23364fail:
23365 return NULL;
23366}
23367
23368
23369SWIGINTERN PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23370 PyObject *resultobj = 0;
23371 int arg1 ;
23372 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23373 int result;
23374 int val1 ;
23375 int ecode1 = 0 ;
23376 int val2 ;
23377 int ecode2 = 0 ;
23378 PyObject * obj0 = 0 ;
23379 PyObject * obj1 = 0 ;
23380 char * kwnames[] = {
23381 (char *) "year",(char *) "cal", NULL
23382 };
23383
23384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) SWIG_fail;
23385 ecode1 = SWIG_AsVal_int(obj0, &val1);
23386 if (!SWIG_IsOK(ecode1)) {
23387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetNumberOfDaysinYear" "', expected argument " "1"" of type '" "int""'");
23388 }
23389 arg1 = static_cast< int >(val1);
23390 if (obj1) {
23391 ecode2 = SWIG_AsVal_int(obj1, &val2);
23392 if (!SWIG_IsOK(ecode2)) {
23393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNumberOfDaysinYear" "', expected argument " "2"" of type '" "wxDateTime::Calendar""'");
23394 }
23395 arg2 = static_cast< wxDateTime::Calendar >(val2);
23396 }
23397 {
23398 PyThreadState* __tstate = wxPyBeginAllowThreads();
23399 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2);
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 resultobj = SWIG_From_int(static_cast< int >(result));
23404 return resultobj;
23405fail:
23406 return NULL;
23407}
23408
23409
23410SWIGINTERN PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23411 PyObject *resultobj = 0;
23412 wxDateTime::Month arg1 ;
23413 int arg2 = (int) wxDateTime::Inv_Year ;
23414 wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23415 int result;
23416 int val1 ;
23417 int ecode1 = 0 ;
23418 int val2 ;
23419 int ecode2 = 0 ;
23420 int val3 ;
23421 int ecode3 = 0 ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 PyObject * obj2 = 0 ;
23425 char * kwnames[] = {
23426 (char *) "month",(char *) "year",(char *) "cal", NULL
23427 };
23428
23429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23430 ecode1 = SWIG_AsVal_int(obj0, &val1);
23431 if (!SWIG_IsOK(ecode1)) {
23432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "1"" of type '" "wxDateTime::Month""'");
23433 }
23434 arg1 = static_cast< wxDateTime::Month >(val1);
23435 if (obj1) {
23436 ecode2 = SWIG_AsVal_int(obj1, &val2);
23437 if (!SWIG_IsOK(ecode2)) {
23438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "2"" of type '" "int""'");
23439 }
23440 arg2 = static_cast< int >(val2);
23441 }
23442 if (obj2) {
23443 ecode3 = SWIG_AsVal_int(obj2, &val3);
23444 if (!SWIG_IsOK(ecode3)) {
23445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "3"" of type '" "wxDateTime::Calendar""'");
23446 }
23447 arg3 = static_cast< wxDateTime::Calendar >(val3);
23448 }
23449 {
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3);
23452 wxPyEndAllowThreads(__tstate);
23453 if (PyErr_Occurred()) SWIG_fail;
23454 }
23455 resultobj = SWIG_From_int(static_cast< int >(result));
23456 return resultobj;
23457fail:
23458 return NULL;
23459}
23460
23461
23462SWIGINTERN PyObject *_wrap_DateTime_GetMonthName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23463 PyObject *resultobj = 0;
23464 wxDateTime::Month arg1 ;
23465 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
23466 wxString result;
23467 int val1 ;
23468 int ecode1 = 0 ;
23469 int val2 ;
23470 int ecode2 = 0 ;
23471 PyObject * obj0 = 0 ;
23472 PyObject * obj1 = 0 ;
23473 char * kwnames[] = {
23474 (char *) "month",(char *) "flags", NULL
23475 };
23476
23477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) SWIG_fail;
23478 ecode1 = SWIG_AsVal_int(obj0, &val1);
23479 if (!SWIG_IsOK(ecode1)) {
23480 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetMonthName" "', expected argument " "1"" of type '" "wxDateTime::Month""'");
23481 }
23482 arg1 = static_cast< wxDateTime::Month >(val1);
23483 if (obj1) {
23484 ecode2 = SWIG_AsVal_int(obj1, &val2);
23485 if (!SWIG_IsOK(ecode2)) {
23486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetMonthName" "', expected argument " "2"" of type '" "wxDateTime::NameFlags""'");
23487 }
23488 arg2 = static_cast< wxDateTime::NameFlags >(val2);
23489 }
23490 {
23491 PyThreadState* __tstate = wxPyBeginAllowThreads();
23492 result = wxDateTime::GetMonthName(arg1,arg2);
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 {
23497#if wxUSE_UNICODE
23498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23499#else
23500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23501#endif
23502 }
23503 return resultobj;
23504fail:
23505 return NULL;
23506}
23507
23508
23509SWIGINTERN PyObject *_wrap_DateTime_GetWeekDayName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23510 PyObject *resultobj = 0;
23511 wxDateTime::WeekDay arg1 ;
23512 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
23513 wxString result;
23514 int val1 ;
23515 int ecode1 = 0 ;
23516 int val2 ;
23517 int ecode2 = 0 ;
23518 PyObject * obj0 = 0 ;
23519 PyObject * obj1 = 0 ;
23520 char * kwnames[] = {
23521 (char *) "weekday",(char *) "flags", NULL
23522 };
23523
23524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) SWIG_fail;
23525 ecode1 = SWIG_AsVal_int(obj0, &val1);
23526 if (!SWIG_IsOK(ecode1)) {
23527 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetWeekDayName" "', expected argument " "1"" of type '" "wxDateTime::WeekDay""'");
23528 }
23529 arg1 = static_cast< wxDateTime::WeekDay >(val1);
23530 if (obj1) {
23531 ecode2 = SWIG_AsVal_int(obj1, &val2);
23532 if (!SWIG_IsOK(ecode2)) {
23533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekDayName" "', expected argument " "2"" of type '" "wxDateTime::NameFlags""'");
23534 }
23535 arg2 = static_cast< wxDateTime::NameFlags >(val2);
23536 }
23537 {
23538 PyThreadState* __tstate = wxPyBeginAllowThreads();
23539 result = wxDateTime::GetWeekDayName(arg1,arg2);
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 {
23544#if wxUSE_UNICODE
23545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23546#else
23547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23548#endif
23549 }
23550 return resultobj;
23551fail:
23552 return NULL;
d14a1e28
RD
23553}
23554
23555
0085ce49
RD
23556SWIGINTERN PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23557 PyObject *resultobj = 0;
23558 PyObject *result = 0 ;
23559
23560 if (!SWIG_Python_UnpackTuple(args,"DateTime_GetAmPmStrings",0,0,0)) SWIG_fail;
23561 {
23562 PyThreadState* __tstate = wxPyBeginAllowThreads();
23563 result = (PyObject *)wxDateTime_GetAmPmStrings();
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
23567 resultobj = result;
23568 return resultobj;
23569fail:
23570 return NULL;
23571}
23572
23573
23574SWIGINTERN PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23575 PyObject *resultobj = 0;
23576 int arg1 = (int) wxDateTime::Inv_Year ;
23577 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23578 bool result;
23579 int val1 ;
23580 int ecode1 = 0 ;
23581 int val2 ;
23582 int ecode2 = 0 ;
23583 PyObject * obj0 = 0 ;
23584 PyObject * obj1 = 0 ;
23585 char * kwnames[] = {
23586 (char *) "year",(char *) "country", NULL
23587 };
23588
23589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) SWIG_fail;
23590 if (obj0) {
23591 ecode1 = SWIG_AsVal_int(obj0, &val1);
23592 if (!SWIG_IsOK(ecode1)) {
23593 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsDSTApplicable" "', expected argument " "1"" of type '" "int""'");
23594 }
23595 arg1 = static_cast< int >(val1);
23596 }
23597 if (obj1) {
23598 ecode2 = SWIG_AsVal_int(obj1, &val2);
23599 if (!SWIG_IsOK(ecode2)) {
23600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsDSTApplicable" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23601 }
23602 arg2 = static_cast< wxDateTime::Country >(val2);
23603 }
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2);
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 {
23611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23612 }
23613 return resultobj;
23614fail:
23615 return NULL;
23616}
23617
23618
23619SWIGINTERN PyObject *_wrap_DateTime_GetBeginDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj = 0;
23621 int arg1 = (int) wxDateTime::Inv_Year ;
23622 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23623 wxDateTime result;
23624 int val1 ;
23625 int ecode1 = 0 ;
23626 int val2 ;
23627 int ecode2 = 0 ;
23628 PyObject * obj0 = 0 ;
23629 PyObject * obj1 = 0 ;
23630 char * kwnames[] = {
23631 (char *) "year",(char *) "country", NULL
23632 };
23633
23634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) SWIG_fail;
23635 if (obj0) {
23636 ecode1 = SWIG_AsVal_int(obj0, &val1);
23637 if (!SWIG_IsOK(ecode1)) {
23638 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetBeginDST" "', expected argument " "1"" of type '" "int""'");
23639 }
23640 arg1 = static_cast< int >(val1);
23641 }
23642 if (obj1) {
23643 ecode2 = SWIG_AsVal_int(obj1, &val2);
23644 if (!SWIG_IsOK(ecode2)) {
23645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetBeginDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23646 }
23647 arg2 = static_cast< wxDateTime::Country >(val2);
23648 }
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = wxDateTime::GetBeginDST(arg1,arg2);
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23656 return resultobj;
23657fail:
23658 return NULL;
23659}
23660
23661
23662SWIGINTERN PyObject *_wrap_DateTime_GetEndDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj = 0;
23664 int arg1 = (int) wxDateTime::Inv_Year ;
23665 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23666 wxDateTime result;
23667 int val1 ;
23668 int ecode1 = 0 ;
23669 int val2 ;
23670 int ecode2 = 0 ;
23671 PyObject * obj0 = 0 ;
23672 PyObject * obj1 = 0 ;
23673 char * kwnames[] = {
23674 (char *) "year",(char *) "country", NULL
23675 };
23676
23677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) SWIG_fail;
23678 if (obj0) {
23679 ecode1 = SWIG_AsVal_int(obj0, &val1);
23680 if (!SWIG_IsOK(ecode1)) {
23681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetEndDST" "', expected argument " "1"" of type '" "int""'");
23682 }
23683 arg1 = static_cast< int >(val1);
23684 }
23685 if (obj1) {
23686 ecode2 = SWIG_AsVal_int(obj1, &val2);
23687 if (!SWIG_IsOK(ecode2)) {
23688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetEndDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23689 }
23690 arg2 = static_cast< wxDateTime::Country >(val2);
23691 }
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = wxDateTime::GetEndDST(arg1,arg2);
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23699 return resultobj;
23700fail:
23701 return NULL;
9c874b48
RD
23702}
23703
23704
0085ce49
RD
23705SWIGINTERN PyObject *_wrap_DateTime_Now(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23706 PyObject *resultobj = 0;
23707 wxDateTime result;
23708
23709 if (!SWIG_Python_UnpackTuple(args,"DateTime_Now",0,0,0)) SWIG_fail;
23710 {
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
23712 result = wxDateTime::Now();
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23717 return resultobj;
23718fail:
23719 return NULL;
1e0c8722
RD
23720}
23721
23722
0085ce49
RD
23723SWIGINTERN PyObject *_wrap_DateTime_UNow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23724 PyObject *resultobj = 0;
23725 wxDateTime result;
23726
23727 if (!SWIG_Python_UnpackTuple(args,"DateTime_UNow",0,0,0)) SWIG_fail;
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = wxDateTime::UNow();
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23735 return resultobj;
23736fail:
23737 return NULL;
d14a1e28
RD
23738}
23739
23740
0085ce49
RD
23741SWIGINTERN PyObject *_wrap_DateTime_Today(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23742 PyObject *resultobj = 0;
23743 wxDateTime result;
23744
23745 if (!SWIG_Python_UnpackTuple(args,"DateTime_Today",0,0,0)) SWIG_fail;
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 result = wxDateTime::Today();
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23753 return resultobj;
23754fail:
23755 return NULL;
d14a1e28
RD
23756}
23757
23758
0085ce49
RD
23759SWIGINTERN PyObject *_wrap_new_DateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23760 PyObject *resultobj = 0;
23761 wxDateTime *result = 0 ;
23762
23763 if (!SWIG_Python_UnpackTuple(args,"new_DateTime",0,0,0)) SWIG_fail;
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (wxDateTime *)new wxDateTime();
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_NEW | 0 );
23771 return resultobj;
23772fail:
23773 return NULL;
23774}
23775
23776
23777SWIGINTERN PyObject *_wrap_new_DateTimeFromTimeT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 time_t arg1 ;
23780 wxDateTime *result = 0 ;
23781 unsigned int val1 ;
23782 int ecode1 = 0 ;
23783 PyObject * obj0 = 0 ;
23784 char * kwnames[] = {
23785 (char *) "timet", NULL
23786 };
23787
23788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) SWIG_fail;
23789 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
23790 if (!SWIG_IsOK(ecode1)) {
23791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromTimeT" "', expected argument " "1"" of type '" "time_t""'");
23792 }
23793 arg1 = static_cast< time_t >(val1);
23794 {
23795 PyThreadState* __tstate = wxPyBeginAllowThreads();
23796 result = (wxDateTime *)new wxDateTime(arg1);
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23801 return resultobj;
23802fail:
23803 return NULL;
23804}
23805
23806
23807SWIGINTERN PyObject *_wrap_new_DateTimeFromJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23808 PyObject *resultobj = 0;
23809 double arg1 ;
23810 wxDateTime *result = 0 ;
23811 double val1 ;
23812 int ecode1 = 0 ;
23813 PyObject * obj0 = 0 ;
23814 char * kwnames[] = {
23815 (char *) "jdn", NULL
23816 };
23817
23818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) SWIG_fail;
23819 ecode1 = SWIG_AsVal_double(obj0, &val1);
23820 if (!SWIG_IsOK(ecode1)) {
23821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromJDN" "', expected argument " "1"" of type '" "double""'");
23822 }
23823 arg1 = static_cast< double >(val1);
23824 {
23825 PyThreadState* __tstate = wxPyBeginAllowThreads();
23826 result = (wxDateTime *)new wxDateTime(arg1);
23827 wxPyEndAllowThreads(__tstate);
23828 if (PyErr_Occurred()) SWIG_fail;
23829 }
23830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23831 return resultobj;
23832fail:
23833 return NULL;
23834}
23835
23836
23837SWIGINTERN PyObject *_wrap_new_DateTimeFromHMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23838 PyObject *resultobj = 0;
23839 int arg1 ;
23840 int arg2 = (int) 0 ;
23841 int arg3 = (int) 0 ;
23842 int arg4 = (int) 0 ;
23843 wxDateTime *result = 0 ;
23844 int val1 ;
23845 int ecode1 = 0 ;
23846 int val2 ;
23847 int ecode2 = 0 ;
23848 int val3 ;
23849 int ecode3 = 0 ;
23850 int val4 ;
23851 int ecode4 = 0 ;
23852 PyObject * obj0 = 0 ;
23853 PyObject * obj1 = 0 ;
23854 PyObject * obj2 = 0 ;
23855 PyObject * obj3 = 0 ;
23856 char * kwnames[] = {
23857 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
23858 };
23859
23860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23861 ecode1 = SWIG_AsVal_int(obj0, &val1);
23862 if (!SWIG_IsOK(ecode1)) {
23863 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromHMS" "', expected argument " "1"" of type '" "int""'");
23864 }
23865 arg1 = static_cast< int >(val1);
23866 if (obj1) {
23867 ecode2 = SWIG_AsVal_int(obj1, &val2);
23868 if (!SWIG_IsOK(ecode2)) {
23869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateTimeFromHMS" "', expected argument " "2"" of type '" "int""'");
23870 }
23871 arg2 = static_cast< int >(val2);
23872 }
23873 if (obj2) {
23874 ecode3 = SWIG_AsVal_int(obj2, &val3);
23875 if (!SWIG_IsOK(ecode3)) {
23876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateTimeFromHMS" "', expected argument " "3"" of type '" "int""'");
23877 }
23878 arg3 = static_cast< int >(val3);
23879 }
23880 if (obj3) {
23881 ecode4 = SWIG_AsVal_int(obj3, &val4);
23882 if (!SWIG_IsOK(ecode4)) {
23883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateTimeFromHMS" "', expected argument " "4"" of type '" "int""'");
23884 }
23885 arg4 = static_cast< int >(val4);
23886 }
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23894 return resultobj;
23895fail:
23896 return NULL;
23897}
23898
23899
23900SWIGINTERN PyObject *_wrap_new_DateTimeFromDMY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 int arg1 ;
23903 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
23904 int arg3 = (int) wxDateTime::Inv_Year ;
23905 int arg4 = (int) 0 ;
23906 int arg5 = (int) 0 ;
23907 int arg6 = (int) 0 ;
23908 int arg7 = (int) 0 ;
23909 wxDateTime *result = 0 ;
23910 int val1 ;
23911 int ecode1 = 0 ;
23912 int val2 ;
23913 int ecode2 = 0 ;
23914 int val3 ;
23915 int ecode3 = 0 ;
23916 int val4 ;
23917 int ecode4 = 0 ;
23918 int val5 ;
23919 int ecode5 = 0 ;
23920 int val6 ;
23921 int ecode6 = 0 ;
23922 int val7 ;
23923 int ecode7 = 0 ;
23924 PyObject * obj0 = 0 ;
23925 PyObject * obj1 = 0 ;
23926 PyObject * obj2 = 0 ;
23927 PyObject * obj3 = 0 ;
23928 PyObject * obj4 = 0 ;
23929 PyObject * obj5 = 0 ;
23930 PyObject * obj6 = 0 ;
23931 char * kwnames[] = {
23932 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
23933 };
23934
23935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
23936 ecode1 = SWIG_AsVal_int(obj0, &val1);
23937 if (!SWIG_IsOK(ecode1)) {
23938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromDMY" "', expected argument " "1"" of type '" "int""'");
23939 }
23940 arg1 = static_cast< int >(val1);
23941 if (obj1) {
23942 ecode2 = SWIG_AsVal_int(obj1, &val2);
23943 if (!SWIG_IsOK(ecode2)) {
23944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateTimeFromDMY" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
23945 }
23946 arg2 = static_cast< wxDateTime::Month >(val2);
23947 }
23948 if (obj2) {
23949 ecode3 = SWIG_AsVal_int(obj2, &val3);
23950 if (!SWIG_IsOK(ecode3)) {
23951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateTimeFromDMY" "', expected argument " "3"" of type '" "int""'");
23952 }
23953 arg3 = static_cast< int >(val3);
23954 }
23955 if (obj3) {
23956 ecode4 = SWIG_AsVal_int(obj3, &val4);
23957 if (!SWIG_IsOK(ecode4)) {
23958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateTimeFromDMY" "', expected argument " "4"" of type '" "int""'");
23959 }
23960 arg4 = static_cast< int >(val4);
23961 }
23962 if (obj4) {
23963 ecode5 = SWIG_AsVal_int(obj4, &val5);
23964 if (!SWIG_IsOK(ecode5)) {
23965 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DateTimeFromDMY" "', expected argument " "5"" of type '" "int""'");
23966 }
23967 arg5 = static_cast< int >(val5);
23968 }
23969 if (obj5) {
23970 ecode6 = SWIG_AsVal_int(obj5, &val6);
23971 if (!SWIG_IsOK(ecode6)) {
23972 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DateTimeFromDMY" "', expected argument " "6"" of type '" "int""'");
23973 }
23974 arg6 = static_cast< int >(val6);
23975 }
23976 if (obj6) {
23977 ecode7 = SWIG_AsVal_int(obj6, &val7);
23978 if (!SWIG_IsOK(ecode7)) {
23979 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DateTimeFromDMY" "', expected argument " "7"" of type '" "int""'");
23980 }
23981 arg7 = static_cast< int >(val7);
23982 }
23983 {
23984 PyThreadState* __tstate = wxPyBeginAllowThreads();
23985 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
23986 wxPyEndAllowThreads(__tstate);
23987 if (PyErr_Occurred()) SWIG_fail;
23988 }
23989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23990 return resultobj;
23991fail:
23992 return NULL;
23993}
23994
23995
23996SWIGINTERN PyObject *_wrap_new_DateTimeFromDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23997 PyObject *resultobj = 0;
23998 wxDateTime *arg1 = 0 ;
23999 wxDateTime *result = 0 ;
24000 void *argp1 = 0 ;
24001 int res1 = 0 ;
24002 PyObject * obj0 = 0 ;
24003 char * kwnames[] = {
24004 (char *) "date", NULL
24005 };
24006
24007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromDateTime",kwnames,&obj0)) SWIG_fail;
24008 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDateTime, 0 | 0);
24009 if (!SWIG_IsOK(res1)) {
24010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateTimeFromDateTime" "', expected argument " "1"" of type '" "wxDateTime const &""'");
24011 }
24012 if (!argp1) {
24013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateTimeFromDateTime" "', expected argument " "1"" of type '" "wxDateTime const &""'");
24014 }
24015 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24016 {
24017 PyThreadState* __tstate = wxPyBeginAllowThreads();
24018 result = (wxDateTime *)new wxDateTime((wxDateTime const &)*arg1);
24019 wxPyEndAllowThreads(__tstate);
24020 if (PyErr_Occurred()) SWIG_fail;
24021 }
24022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24023 return resultobj;
24024fail:
24025 return NULL;
d14a1e28
RD
24026}
24027
24028
0085ce49
RD
24029SWIGINTERN PyObject *_wrap_delete_DateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24030 PyObject *resultobj = 0;
24031 wxDateTime *arg1 = (wxDateTime *) 0 ;
24032 void *argp1 = 0 ;
24033 int res1 = 0 ;
24034 PyObject *swig_obj[1] ;
24035
24036 if (!args) SWIG_fail;
24037 swig_obj[0] = args;
24038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
24039 if (!SWIG_IsOK(res1)) {
24040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
24041 }
24042 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 delete arg1;
d14a1e28 24046
0085ce49
RD
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 resultobj = SWIG_Py_Void();
24051 return resultobj;
24052fail:
24053 return NULL;
d14a1e28
RD
24054}
24055
24056
0085ce49
RD
24057SWIGINTERN PyObject *_wrap_DateTime_SetToCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 PyObject *resultobj = 0;
24059 wxDateTime *arg1 = (wxDateTime *) 0 ;
24060 wxDateTime *result = 0 ;
24061 void *argp1 = 0 ;
24062 int res1 = 0 ;
24063 PyObject *swig_obj[1] ;
24064
24065 if (!args) SWIG_fail;
24066 swig_obj[0] = args;
24067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToCurrent" "', expected argument " "1"" of type '" "wxDateTime *""'");
24070 }
24071 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24072 {
24073 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24074 {
0085ce49
RD
24075 wxDateTime &_result_ref = (arg1)->SetToCurrent();
24076 result = (wxDateTime *) &_result_ref;
d14a1e28 24077 }
0085ce49
RD
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24082 return resultobj;
24083fail:
24084 return NULL;
24085}
24086
24087
24088SWIGINTERN PyObject *_wrap_DateTime_SetTimeT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24089 PyObject *resultobj = 0;
24090 wxDateTime *arg1 = (wxDateTime *) 0 ;
24091 time_t arg2 ;
24092 wxDateTime *result = 0 ;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 unsigned int val2 ;
24096 int ecode2 = 0 ;
24097 PyObject * obj0 = 0 ;
24098 PyObject * obj1 = 0 ;
24099 char * kwnames[] = {
24100 (char *) "self",(char *) "timet", NULL
24101 };
24102
24103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) SWIG_fail;
24104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24105 if (!SWIG_IsOK(res1)) {
24106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetTimeT" "', expected argument " "1"" of type '" "wxDateTime *""'");
24107 }
24108 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24109 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24110 if (!SWIG_IsOK(ecode2)) {
24111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetTimeT" "', expected argument " "2"" of type '" "time_t""'");
24112 }
24113 arg2 = static_cast< time_t >(val2);
24114 {
24115 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24116 {
0085ce49
RD
24117 wxDateTime &_result_ref = (arg1)->Set(arg2);
24118 result = (wxDateTime *) &_result_ref;
d14a1e28 24119 }
0085ce49
RD
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24124 return resultobj;
24125fail:
24126 return NULL;
24127}
24128
24129
24130SWIGINTERN PyObject *_wrap_DateTime_SetJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj = 0;
24132 wxDateTime *arg1 = (wxDateTime *) 0 ;
24133 double arg2 ;
24134 wxDateTime *result = 0 ;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 double val2 ;
24138 int ecode2 = 0 ;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char * kwnames[] = {
24142 (char *) "self",(char *) "jdn", NULL
24143 };
24144
24145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) SWIG_fail;
24146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetJDN" "', expected argument " "1"" of type '" "wxDateTime *""'");
24149 }
24150 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24151 ecode2 = SWIG_AsVal_double(obj1, &val2);
24152 if (!SWIG_IsOK(ecode2)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetJDN" "', expected argument " "2"" of type '" "double""'");
24154 }
24155 arg2 = static_cast< double >(val2);
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24158 {
0085ce49
RD
24159 wxDateTime &_result_ref = (arg1)->Set(arg2);
24160 result = (wxDateTime *) &_result_ref;
d14a1e28 24161 }
0085ce49
RD
24162 wxPyEndAllowThreads(__tstate);
24163 if (PyErr_Occurred()) SWIG_fail;
24164 }
24165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24166 return resultobj;
24167fail:
24168 return NULL;
24169}
24170
24171
24172SWIGINTERN PyObject *_wrap_DateTime_SetHMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24173 PyObject *resultobj = 0;
24174 wxDateTime *arg1 = (wxDateTime *) 0 ;
24175 int arg2 ;
24176 int arg3 = (int) 0 ;
24177 int arg4 = (int) 0 ;
24178 int arg5 = (int) 0 ;
24179 wxDateTime *result = 0 ;
24180 void *argp1 = 0 ;
24181 int res1 = 0 ;
24182 int val2 ;
24183 int ecode2 = 0 ;
24184 int val3 ;
24185 int ecode3 = 0 ;
24186 int val4 ;
24187 int ecode4 = 0 ;
24188 int val5 ;
24189 int ecode5 = 0 ;
24190 PyObject * obj0 = 0 ;
24191 PyObject * obj1 = 0 ;
24192 PyObject * obj2 = 0 ;
24193 PyObject * obj3 = 0 ;
24194 PyObject * obj4 = 0 ;
24195 char * kwnames[] = {
24196 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
24197 };
24198
24199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24201 if (!SWIG_IsOK(res1)) {
24202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetHMS" "', expected argument " "1"" of type '" "wxDateTime *""'");
24203 }
24204 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24205 ecode2 = SWIG_AsVal_int(obj1, &val2);
24206 if (!SWIG_IsOK(ecode2)) {
24207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetHMS" "', expected argument " "2"" of type '" "int""'");
24208 }
24209 arg2 = static_cast< int >(val2);
24210 if (obj2) {
24211 ecode3 = SWIG_AsVal_int(obj2, &val3);
24212 if (!SWIG_IsOK(ecode3)) {
24213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetHMS" "', expected argument " "3"" of type '" "int""'");
24214 }
24215 arg3 = static_cast< int >(val3);
24216 }
24217 if (obj3) {
24218 ecode4 = SWIG_AsVal_int(obj3, &val4);
24219 if (!SWIG_IsOK(ecode4)) {
24220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetHMS" "', expected argument " "4"" of type '" "int""'");
24221 }
24222 arg4 = static_cast< int >(val4);
24223 }
24224 if (obj4) {
24225 ecode5 = SWIG_AsVal_int(obj4, &val5);
24226 if (!SWIG_IsOK(ecode5)) {
24227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_SetHMS" "', expected argument " "5"" of type '" "int""'");
24228 }
24229 arg5 = static_cast< int >(val5);
24230 }
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24233 {
0085ce49
RD
24234 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
24235 result = (wxDateTime *) &_result_ref;
d14a1e28 24236 }
0085ce49
RD
24237 wxPyEndAllowThreads(__tstate);
24238 if (PyErr_Occurred()) SWIG_fail;
24239 }
24240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24241 return resultobj;
24242fail:
24243 return NULL;
24244}
24245
24246
24247SWIGINTERN PyObject *_wrap_DateTime_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24248 PyObject *resultobj = 0;
24249 wxDateTime *arg1 = (wxDateTime *) 0 ;
24250 int arg2 ;
24251 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
24252 int arg4 = (int) wxDateTime::Inv_Year ;
24253 int arg5 = (int) 0 ;
24254 int arg6 = (int) 0 ;
24255 int arg7 = (int) 0 ;
24256 int arg8 = (int) 0 ;
24257 wxDateTime *result = 0 ;
24258 void *argp1 = 0 ;
24259 int res1 = 0 ;
24260 int val2 ;
24261 int ecode2 = 0 ;
24262 int val3 ;
24263 int ecode3 = 0 ;
24264 int val4 ;
24265 int ecode4 = 0 ;
24266 int val5 ;
24267 int ecode5 = 0 ;
24268 int val6 ;
24269 int ecode6 = 0 ;
24270 int val7 ;
24271 int ecode7 = 0 ;
24272 int val8 ;
24273 int ecode8 = 0 ;
24274 PyObject * obj0 = 0 ;
24275 PyObject * obj1 = 0 ;
24276 PyObject * obj2 = 0 ;
24277 PyObject * obj3 = 0 ;
24278 PyObject * obj4 = 0 ;
24279 PyObject * obj5 = 0 ;
24280 PyObject * obj6 = 0 ;
24281 PyObject * obj7 = 0 ;
24282 char * kwnames[] = {
24283 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
24284 };
24285
24286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
24287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Set" "', expected argument " "1"" of type '" "wxDateTime *""'");
24290 }
24291 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24292 ecode2 = SWIG_AsVal_int(obj1, &val2);
24293 if (!SWIG_IsOK(ecode2)) {
24294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_Set" "', expected argument " "2"" of type '" "int""'");
24295 }
24296 arg2 = static_cast< int >(val2);
24297 if (obj2) {
24298 ecode3 = SWIG_AsVal_int(obj2, &val3);
24299 if (!SWIG_IsOK(ecode3)) {
24300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_Set" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
24301 }
24302 arg3 = static_cast< wxDateTime::Month >(val3);
24303 }
24304 if (obj3) {
24305 ecode4 = SWIG_AsVal_int(obj3, &val4);
24306 if (!SWIG_IsOK(ecode4)) {
24307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_Set" "', expected argument " "4"" of type '" "int""'");
24308 }
24309 arg4 = static_cast< int >(val4);
24310 }
24311 if (obj4) {
24312 ecode5 = SWIG_AsVal_int(obj4, &val5);
24313 if (!SWIG_IsOK(ecode5)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_Set" "', expected argument " "5"" of type '" "int""'");
24315 }
24316 arg5 = static_cast< int >(val5);
24317 }
24318 if (obj5) {
24319 ecode6 = SWIG_AsVal_int(obj5, &val6);
24320 if (!SWIG_IsOK(ecode6)) {
24321 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DateTime_Set" "', expected argument " "6"" of type '" "int""'");
24322 }
24323 arg6 = static_cast< int >(val6);
24324 }
24325 if (obj6) {
24326 ecode7 = SWIG_AsVal_int(obj6, &val7);
24327 if (!SWIG_IsOK(ecode7)) {
24328 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DateTime_Set" "', expected argument " "7"" of type '" "int""'");
24329 }
24330 arg7 = static_cast< int >(val7);
24331 }
24332 if (obj7) {
24333 ecode8 = SWIG_AsVal_int(obj7, &val8);
24334 if (!SWIG_IsOK(ecode8)) {
24335 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DateTime_Set" "', expected argument " "8"" of type '" "int""'");
24336 }
24337 arg8 = static_cast< int >(val8);
24338 }
24339 {
24340 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24341 {
0085ce49
RD
24342 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
24343 result = (wxDateTime *) &_result_ref;
d14a1e28 24344 }
0085ce49
RD
24345 wxPyEndAllowThreads(__tstate);
24346 if (PyErr_Occurred()) SWIG_fail;
24347 }
24348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24349 return resultobj;
24350fail:
24351 return NULL;
d14a1e28
RD
24352}
24353
24354
0085ce49
RD
24355SWIGINTERN PyObject *_wrap_DateTime_ResetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24356 PyObject *resultobj = 0;
24357 wxDateTime *arg1 = (wxDateTime *) 0 ;
24358 wxDateTime *result = 0 ;
24359 void *argp1 = 0 ;
24360 int res1 = 0 ;
24361 PyObject *swig_obj[1] ;
24362
24363 if (!args) SWIG_fail;
24364 swig_obj[0] = args;
24365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24366 if (!SWIG_IsOK(res1)) {
24367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ResetTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
24368 }
24369 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24370 {
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24372 {
0085ce49
RD
24373 wxDateTime &_result_ref = (arg1)->ResetTime();
24374 result = (wxDateTime *) &_result_ref;
d14a1e28 24375 }
0085ce49
RD
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24380 return resultobj;
24381fail:
24382 return NULL;
24383}
24384
24385
24386SWIGINTERN PyObject *_wrap_DateTime_SetYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxDateTime *arg1 = (wxDateTime *) 0 ;
24389 int arg2 ;
24390 wxDateTime *result = 0 ;
24391 void *argp1 = 0 ;
24392 int res1 = 0 ;
24393 int val2 ;
24394 int ecode2 = 0 ;
24395 PyObject * obj0 = 0 ;
24396 PyObject * obj1 = 0 ;
24397 char * kwnames[] = {
24398 (char *) "self",(char *) "year", NULL
24399 };
24400
24401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) SWIG_fail;
24402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24403 if (!SWIG_IsOK(res1)) {
24404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetYear" "', expected argument " "1"" of type '" "wxDateTime *""'");
24405 }
24406 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24407 ecode2 = SWIG_AsVal_int(obj1, &val2);
24408 if (!SWIG_IsOK(ecode2)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetYear" "', expected argument " "2"" of type '" "int""'");
24410 }
24411 arg2 = static_cast< int >(val2);
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
cc6dd355 24414 {
0085ce49
RD
24415 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
24416 result = (wxDateTime *) &_result_ref;
cc6dd355 24417 }
0085ce49
RD
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24422 return resultobj;
24423fail:
24424 return NULL;
24425}
24426
24427
24428SWIGINTERN PyObject *_wrap_DateTime_SetMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj = 0;
24430 wxDateTime *arg1 = (wxDateTime *) 0 ;
24431 wxDateTime::Month arg2 ;
24432 wxDateTime *result = 0 ;
24433 void *argp1 = 0 ;
24434 int res1 = 0 ;
24435 int val2 ;
24436 int ecode2 = 0 ;
24437 PyObject * obj0 = 0 ;
24438 PyObject * obj1 = 0 ;
24439 char * kwnames[] = {
24440 (char *) "self",(char *) "month", NULL
24441 };
24442
24443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) SWIG_fail;
24444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24445 if (!SWIG_IsOK(res1)) {
24446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMonth" "', expected argument " "1"" of type '" "wxDateTime *""'");
24447 }
24448 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24449 ecode2 = SWIG_AsVal_int(obj1, &val2);
24450 if (!SWIG_IsOK(ecode2)) {
24451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMonth" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
24452 }
24453 arg2 = static_cast< wxDateTime::Month >(val2);
24454 {
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24456 {
0085ce49
RD
24457 wxDateTime &_result_ref = (arg1)->SetMonth(arg2);
24458 result = (wxDateTime *) &_result_ref;
d14a1e28 24459 }
0085ce49
RD
24460 wxPyEndAllowThreads(__tstate);
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24464 return resultobj;
24465fail:
24466 return NULL;
24467}
24468
24469
24470SWIGINTERN PyObject *_wrap_DateTime_SetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxDateTime *arg1 = (wxDateTime *) 0 ;
24473 int arg2 ;
24474 wxDateTime *result = 0 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 int val2 ;
24478 int ecode2 = 0 ;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 char * kwnames[] = {
24482 (char *) "self",(char *) "day", NULL
24483 };
24484
24485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) SWIG_fail;
24486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24487 if (!SWIG_IsOK(res1)) {
24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24489 }
24490 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24491 ecode2 = SWIG_AsVal_int(obj1, &val2);
24492 if (!SWIG_IsOK(ecode2)) {
24493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetDay" "', expected argument " "2"" of type '" "int""'");
24494 }
24495 arg2 = static_cast< int >(val2);
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24498 {
0085ce49
RD
24499 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
24500 result = (wxDateTime *) &_result_ref;
093d3ff1 24501 }
0085ce49
RD
24502 wxPyEndAllowThreads(__tstate);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
24505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24506 return resultobj;
24507fail:
24508 return NULL;
24509}
24510
24511
24512SWIGINTERN PyObject *_wrap_DateTime_SetHour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24513 PyObject *resultobj = 0;
24514 wxDateTime *arg1 = (wxDateTime *) 0 ;
24515 int arg2 ;
24516 wxDateTime *result = 0 ;
24517 void *argp1 = 0 ;
24518 int res1 = 0 ;
24519 int val2 ;
24520 int ecode2 = 0 ;
24521 PyObject * obj0 = 0 ;
24522 PyObject * obj1 = 0 ;
24523 char * kwnames[] = {
24524 (char *) "self",(char *) "hour", NULL
24525 };
24526
24527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) SWIG_fail;
24528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24529 if (!SWIG_IsOK(res1)) {
24530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetHour" "', expected argument " "1"" of type '" "wxDateTime *""'");
24531 }
24532 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24533 ecode2 = SWIG_AsVal_int(obj1, &val2);
24534 if (!SWIG_IsOK(ecode2)) {
24535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetHour" "', expected argument " "2"" of type '" "int""'");
24536 }
24537 arg2 = static_cast< int >(val2);
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24540 {
0085ce49
RD
24541 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
24542 result = (wxDateTime *) &_result_ref;
d14a1e28 24543 }
0085ce49
RD
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24548 return resultobj;
24549fail:
24550 return NULL;
24551}
24552
24553
24554SWIGINTERN PyObject *_wrap_DateTime_SetMinute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24555 PyObject *resultobj = 0;
24556 wxDateTime *arg1 = (wxDateTime *) 0 ;
24557 int arg2 ;
24558 wxDateTime *result = 0 ;
24559 void *argp1 = 0 ;
24560 int res1 = 0 ;
24561 int val2 ;
24562 int ecode2 = 0 ;
24563 PyObject * obj0 = 0 ;
24564 PyObject * obj1 = 0 ;
24565 char * kwnames[] = {
24566 (char *) "self",(char *) "minute", NULL
24567 };
24568
24569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) SWIG_fail;
24570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24571 if (!SWIG_IsOK(res1)) {
24572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMinute" "', expected argument " "1"" of type '" "wxDateTime *""'");
24573 }
24574 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24575 ecode2 = SWIG_AsVal_int(obj1, &val2);
24576 if (!SWIG_IsOK(ecode2)) {
24577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMinute" "', expected argument " "2"" of type '" "int""'");
24578 }
24579 arg2 = static_cast< int >(val2);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24582 {
0085ce49
RD
24583 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
24584 result = (wxDateTime *) &_result_ref;
d14a1e28 24585 }
0085ce49
RD
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24590 return resultobj;
24591fail:
24592 return NULL;
24593}
24594
24595
24596SWIGINTERN PyObject *_wrap_DateTime_SetSecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24597 PyObject *resultobj = 0;
24598 wxDateTime *arg1 = (wxDateTime *) 0 ;
24599 int arg2 ;
24600 wxDateTime *result = 0 ;
24601 void *argp1 = 0 ;
24602 int res1 = 0 ;
24603 int val2 ;
24604 int ecode2 = 0 ;
24605 PyObject * obj0 = 0 ;
24606 PyObject * obj1 = 0 ;
24607 char * kwnames[] = {
24608 (char *) "self",(char *) "second", NULL
24609 };
24610
24611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) SWIG_fail;
24612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetSecond" "', expected argument " "1"" of type '" "wxDateTime *""'");
24615 }
24616 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24617 ecode2 = SWIG_AsVal_int(obj1, &val2);
24618 if (!SWIG_IsOK(ecode2)) {
24619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetSecond" "', expected argument " "2"" of type '" "int""'");
24620 }
24621 arg2 = static_cast< int >(val2);
24622 {
24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24624 {
0085ce49
RD
24625 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
24626 result = (wxDateTime *) &_result_ref;
093d3ff1 24627 }
0085ce49
RD
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24632 return resultobj;
24633fail:
24634 return NULL;
24635}
24636
24637
24638SWIGINTERN PyObject *_wrap_DateTime_SetMillisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24639 PyObject *resultobj = 0;
24640 wxDateTime *arg1 = (wxDateTime *) 0 ;
24641 int arg2 ;
24642 wxDateTime *result = 0 ;
24643 void *argp1 = 0 ;
24644 int res1 = 0 ;
24645 int val2 ;
24646 int ecode2 = 0 ;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 char * kwnames[] = {
24650 (char *) "self",(char *) "millisecond", NULL
24651 };
24652
24653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) SWIG_fail;
24654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24655 if (!SWIG_IsOK(res1)) {
24656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMillisecond" "', expected argument " "1"" of type '" "wxDateTime *""'");
24657 }
24658 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24659 ecode2 = SWIG_AsVal_int(obj1, &val2);
24660 if (!SWIG_IsOK(ecode2)) {
24661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMillisecond" "', expected argument " "2"" of type '" "int""'");
24662 }
24663 arg2 = static_cast< int >(val2);
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24666 {
0085ce49
RD
24667 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
24668 result = (wxDateTime *) &_result_ref;
d14a1e28 24669 }
0085ce49
RD
24670 wxPyEndAllowThreads(__tstate);
24671 if (PyErr_Occurred()) SWIG_fail;
24672 }
24673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24674 return resultobj;
24675fail:
24676 return NULL;
24677}
24678
24679
24680SWIGINTERN PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24681 PyObject *resultobj = 0;
24682 wxDateTime *arg1 = (wxDateTime *) 0 ;
24683 wxDateTime::WeekDay arg2 ;
24684 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
24685 wxDateTime *result = 0 ;
24686 void *argp1 = 0 ;
24687 int res1 = 0 ;
24688 int val2 ;
24689 int ecode2 = 0 ;
24690 int val3 ;
24691 int ecode3 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 PyObject * obj2 = 0 ;
24695 char * kwnames[] = {
24696 (char *) "self",(char *) "weekday",(char *) "flags", NULL
24697 };
24698
24699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24701 if (!SWIG_IsOK(res1)) {
24702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
24703 }
24704 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24705 ecode2 = SWIG_AsVal_int(obj1, &val2);
24706 if (!SWIG_IsOK(ecode2)) {
24707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24708 }
24709 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24710 if (obj2) {
24711 ecode3 = SWIG_AsVal_int(obj2, &val3);
24712 if (!SWIG_IsOK(ecode3)) {
24713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekFlags""'");
24714 }
24715 arg3 = static_cast< wxDateTime::WeekFlags >(val3);
24716 }
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 24719 {
0085ce49
RD
24720 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3);
24721 result = (wxDateTime *) &_result_ref;
d14a1e28 24722 }
0085ce49
RD
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24727 return resultobj;
24728fail:
24729 return NULL;
24730}
24731
24732
24733SWIGINTERN PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxDateTime *arg1 = (wxDateTime *) 0 ;
24736 wxDateTime::WeekDay arg2 ;
24737 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
24738 wxDateTime result;
24739 void *argp1 = 0 ;
24740 int res1 = 0 ;
24741 int val2 ;
24742 int ecode2 = 0 ;
24743 int val3 ;
24744 int ecode3 = 0 ;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 PyObject * obj2 = 0 ;
24748 char * kwnames[] = {
24749 (char *) "self",(char *) "weekday",(char *) "flags", NULL
24750 };
24751
24752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24754 if (!SWIG_IsOK(res1)) {
24755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
24756 }
24757 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24758 ecode2 = SWIG_AsVal_int(obj1, &val2);
24759 if (!SWIG_IsOK(ecode2)) {
24760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24761 }
24762 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24763 if (obj2) {
24764 ecode3 = SWIG_AsVal_int(obj2, &val3);
24765 if (!SWIG_IsOK(ecode3)) {
24766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekFlags""'");
24767 }
24768 arg3 = static_cast< wxDateTime::WeekFlags >(val3);
24769 }
24770 {
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 result = (arg1)->GetWeekDayInSameWeek(arg2,arg3);
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24777 return resultobj;
24778fail:
24779 return NULL;
24780}
24781
24782
24783SWIGINTERN PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj = 0;
24785 wxDateTime *arg1 = (wxDateTime *) 0 ;
24786 wxDateTime::WeekDay arg2 ;
24787 wxDateTime *result = 0 ;
24788 void *argp1 = 0 ;
24789 int res1 = 0 ;
24790 int val2 ;
24791 int ecode2 = 0 ;
24792 PyObject * obj0 = 0 ;
24793 PyObject * obj1 = 0 ;
24794 char * kwnames[] = {
24795 (char *) "self",(char *) "weekday", NULL
24796 };
24797
24798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24800 if (!SWIG_IsOK(res1)) {
24801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToNextWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24802 }
24803 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24804 ecode2 = SWIG_AsVal_int(obj1, &val2);
24805 if (!SWIG_IsOK(ecode2)) {
24806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToNextWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24807 }
24808 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24809 {
24810 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24811 {
0085ce49
RD
24812 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2);
24813 result = (wxDateTime *) &_result_ref;
093d3ff1 24814 }
0085ce49
RD
24815 wxPyEndAllowThreads(__tstate);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24819 return resultobj;
24820fail:
24821 return NULL;
24822}
24823
24824
24825SWIGINTERN PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24826 PyObject *resultobj = 0;
24827 wxDateTime *arg1 = (wxDateTime *) 0 ;
24828 wxDateTime::WeekDay arg2 ;
24829 wxDateTime result;
24830 void *argp1 = 0 ;
24831 int res1 = 0 ;
24832 int val2 ;
24833 int ecode2 = 0 ;
24834 PyObject * obj0 = 0 ;
24835 PyObject * obj1 = 0 ;
24836 char * kwnames[] = {
24837 (char *) "self",(char *) "weekday", NULL
24838 };
24839
24840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24842 if (!SWIG_IsOK(res1)) {
24843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetNextWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24844 }
24845 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24846 ecode2 = SWIG_AsVal_int(obj1, &val2);
24847 if (!SWIG_IsOK(ecode2)) {
24848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNextWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24849 }
24850 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24851 {
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 result = (arg1)->GetNextWeekDay(arg2);
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24858 return resultobj;
24859fail:
24860 return NULL;
24861}
24862
24863
24864SWIGINTERN PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj = 0;
24866 wxDateTime *arg1 = (wxDateTime *) 0 ;
24867 wxDateTime::WeekDay arg2 ;
24868 wxDateTime *result = 0 ;
24869 void *argp1 = 0 ;
24870 int res1 = 0 ;
24871 int val2 ;
24872 int ecode2 = 0 ;
24873 PyObject * obj0 = 0 ;
24874 PyObject * obj1 = 0 ;
24875 char * kwnames[] = {
24876 (char *) "self",(char *) "weekday", NULL
24877 };
24878
24879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24881 if (!SWIG_IsOK(res1)) {
24882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToPrevWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24883 }
24884 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24885 ecode2 = SWIG_AsVal_int(obj1, &val2);
24886 if (!SWIG_IsOK(ecode2)) {
24887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToPrevWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24888 }
24889 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24890 {
24891 PyThreadState* __tstate = wxPyBeginAllowThreads();
24892 {
24893 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2);
24894 result = (wxDateTime *) &_result_ref;
d14a1e28 24895 }
0085ce49
RD
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24900 return resultobj;
24901fail:
24902 return NULL;
24903}
24904
24905
24906SWIGINTERN PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 wxDateTime *arg1 = (wxDateTime *) 0 ;
24909 wxDateTime::WeekDay arg2 ;
24910 wxDateTime result;
24911 void *argp1 = 0 ;
24912 int res1 = 0 ;
24913 int val2 ;
24914 int ecode2 = 0 ;
24915 PyObject * obj0 = 0 ;
24916 PyObject * obj1 = 0 ;
24917 char * kwnames[] = {
24918 (char *) "self",(char *) "weekday", NULL
24919 };
24920
24921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24923 if (!SWIG_IsOK(res1)) {
24924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetPrevWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24925 }
24926 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24927 ecode2 = SWIG_AsVal_int(obj1, &val2);
24928 if (!SWIG_IsOK(ecode2)) {
24929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetPrevWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24930 }
24931 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24932 {
24933 PyThreadState* __tstate = wxPyBeginAllowThreads();
24934 result = (arg1)->GetPrevWeekDay(arg2);
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24939 return resultobj;
24940fail:
24941 return NULL;
24942}
24943
24944
24945SWIGINTERN PyObject *_wrap_DateTime_SetToWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj = 0;
24947 wxDateTime *arg1 = (wxDateTime *) 0 ;
24948 wxDateTime::WeekDay arg2 ;
24949 int arg3 = (int) 1 ;
24950 wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ;
24951 int arg5 = (int) wxDateTime::Inv_Year ;
24952 bool result;
24953 void *argp1 = 0 ;
24954 int res1 = 0 ;
24955 int val2 ;
24956 int ecode2 = 0 ;
24957 int val3 ;
24958 int ecode3 = 0 ;
24959 int val4 ;
24960 int ecode4 = 0 ;
24961 int val5 ;
24962 int ecode5 = 0 ;
24963 PyObject * obj0 = 0 ;
24964 PyObject * obj1 = 0 ;
24965 PyObject * obj2 = 0 ;
24966 PyObject * obj3 = 0 ;
24967 PyObject * obj4 = 0 ;
24968 char * kwnames[] = {
24969 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
24970 };
24971
24972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24974 if (!SWIG_IsOK(res1)) {
24975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24976 }
24977 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24978 ecode2 = SWIG_AsVal_int(obj1, &val2);
24979 if (!SWIG_IsOK(ecode2)) {
24980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24981 }
24982 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24983 if (obj2) {
24984 ecode3 = SWIG_AsVal_int(obj2, &val3);
24985 if (!SWIG_IsOK(ecode3)) {
24986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekDay" "', expected argument " "3"" of type '" "int""'");
24987 }
24988 arg3 = static_cast< int >(val3);
24989 }
24990 if (obj3) {
24991 ecode4 = SWIG_AsVal_int(obj3, &val4);
24992 if (!SWIG_IsOK(ecode4)) {
24993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToWeekDay" "', expected argument " "4"" of type '" "wxDateTime::Month""'");
24994 }
24995 arg4 = static_cast< wxDateTime::Month >(val4);
24996 }
24997 if (obj4) {
24998 ecode5 = SWIG_AsVal_int(obj4, &val5);
24999 if (!SWIG_IsOK(ecode5)) {
25000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_SetToWeekDay" "', expected argument " "5"" of type '" "int""'");
25001 }
25002 arg5 = static_cast< int >(val5);
25003 }
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5);
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 {
25011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25012 }
25013 return resultobj;
25014fail:
25015 return NULL;
25016}
25017
25018
25019SWIGINTERN PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj = 0;
25021 wxDateTime *arg1 = (wxDateTime *) 0 ;
25022 wxDateTime::WeekDay arg2 ;
25023 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25024 int arg4 = (int) wxDateTime::Inv_Year ;
25025 bool result;
25026 void *argp1 = 0 ;
25027 int res1 = 0 ;
25028 int val2 ;
25029 int ecode2 = 0 ;
25030 int val3 ;
25031 int ecode3 = 0 ;
25032 int val4 ;
25033 int ecode4 = 0 ;
25034 PyObject * obj0 = 0 ;
25035 PyObject * obj1 = 0 ;
25036 PyObject * obj2 = 0 ;
25037 PyObject * obj3 = 0 ;
25038 char * kwnames[] = {
25039 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
25040 };
25041
25042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25044 if (!SWIG_IsOK(res1)) {
25045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25046 }
25047 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25048 ecode2 = SWIG_AsVal_int(obj1, &val2);
25049 if (!SWIG_IsOK(ecode2)) {
25050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
25051 }
25052 arg2 = static_cast< wxDateTime::WeekDay >(val2);
25053 if (obj2) {
25054 ecode3 = SWIG_AsVal_int(obj2, &val3);
25055 if (!SWIG_IsOK(ecode3)) {
25056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
25057 }
25058 arg3 = static_cast< wxDateTime::Month >(val3);
25059 }
25060 if (obj3) {
25061 ecode4 = SWIG_AsVal_int(obj3, &val4);
25062 if (!SWIG_IsOK(ecode4)) {
25063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "4"" of type '" "int""'");
25064 }
25065 arg4 = static_cast< int >(val4);
25066 }
25067 {
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4);
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 {
25074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25075 }
25076 return resultobj;
25077fail:
25078 return NULL;
25079}
25080
25081
25082SWIGINTERN PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj = 0;
25084 wxDateTime *arg1 = (wxDateTime *) 0 ;
25085 wxDateTime::WeekDay arg2 ;
25086 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25087 int arg4 = (int) wxDateTime::Inv_Year ;
25088 wxDateTime result;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 int val2 ;
25092 int ecode2 = 0 ;
25093 int val3 ;
25094 int ecode3 = 0 ;
25095 int val4 ;
25096 int ecode4 = 0 ;
25097 PyObject * obj0 = 0 ;
25098 PyObject * obj1 = 0 ;
25099 PyObject * obj2 = 0 ;
25100 PyObject * obj3 = 0 ;
25101 char * kwnames[] = {
25102 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
25103 };
25104
25105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25107 if (!SWIG_IsOK(res1)) {
25108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25109 }
25110 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25111 ecode2 = SWIG_AsVal_int(obj1, &val2);
25112 if (!SWIG_IsOK(ecode2)) {
25113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
25114 }
25115 arg2 = static_cast< wxDateTime::WeekDay >(val2);
25116 if (obj2) {
25117 ecode3 = SWIG_AsVal_int(obj2, &val3);
25118 if (!SWIG_IsOK(ecode3)) {
25119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
25120 }
25121 arg3 = static_cast< wxDateTime::Month >(val3);
25122 }
25123 if (obj3) {
25124 ecode4 = SWIG_AsVal_int(obj3, &val4);
25125 if (!SWIG_IsOK(ecode4)) {
25126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "4"" of type '" "int""'");
25127 }
25128 arg4 = static_cast< int >(val4);
25129 }
25130 {
25131 PyThreadState* __tstate = wxPyBeginAllowThreads();
25132 result = (arg1)->GetLastWeekDay(arg2,arg3,arg4);
25133 wxPyEndAllowThreads(__tstate);
25134 if (PyErr_Occurred()) SWIG_fail;
25135 }
25136 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25137 return resultobj;
25138fail:
25139 return NULL;
25140}
25141
25142
25143SWIGINTERN PyObject *_wrap_DateTime_SetToTheWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25144 PyObject *resultobj = 0;
25145 wxDateTime *arg1 = (wxDateTime *) 0 ;
25146 int arg2 ;
25147 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25148 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
25149 bool result;
25150 void *argp1 = 0 ;
25151 int res1 = 0 ;
25152 int val2 ;
25153 int ecode2 = 0 ;
25154 int val3 ;
25155 int ecode3 = 0 ;
25156 int val4 ;
25157 int ecode4 = 0 ;
25158 PyObject * obj0 = 0 ;
25159 PyObject * obj1 = 0 ;
25160 PyObject * obj2 = 0 ;
25161 PyObject * obj3 = 0 ;
25162 char * kwnames[] = {
25163 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
25164 };
25165
25166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToTheWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
25170 }
25171 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25172 ecode2 = SWIG_AsVal_int(obj1, &val2);
25173 if (!SWIG_IsOK(ecode2)) {
25174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToTheWeek" "', expected argument " "2"" of type '" "int""'");
25175 }
25176 arg2 = static_cast< int >(val2);
25177 if (obj2) {
25178 ecode3 = SWIG_AsVal_int(obj2, &val3);
25179 if (!SWIG_IsOK(ecode3)) {
25180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToTheWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25181 }
25182 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25183 }
25184 if (obj3) {
25185 ecode4 = SWIG_AsVal_int(obj3, &val4);
25186 if (!SWIG_IsOK(ecode4)) {
25187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToTheWeek" "', expected argument " "4"" of type '" "wxDateTime::WeekFlags""'");
25188 }
25189 arg4 = static_cast< wxDateTime::WeekFlags >(val4);
25190 }
25191 {
25192 PyThreadState* __tstate = wxPyBeginAllowThreads();
25193 result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4);
25194 wxPyEndAllowThreads(__tstate);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 {
25198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25199 }
25200 return resultobj;
25201fail:
25202 return NULL;
25203}
25204
25205
25206SWIGINTERN PyObject *_wrap_DateTime_GetWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25207 PyObject *resultobj = 0;
25208 wxDateTime *arg1 = (wxDateTime *) 0 ;
25209 int arg2 ;
25210 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25211 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
25212 wxDateTime result;
25213 void *argp1 = 0 ;
25214 int res1 = 0 ;
25215 int val2 ;
25216 int ecode2 = 0 ;
25217 int val3 ;
25218 int ecode3 = 0 ;
25219 int val4 ;
25220 int ecode4 = 0 ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 PyObject * obj2 = 0 ;
25224 PyObject * obj3 = 0 ;
25225 char * kwnames[] = {
25226 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
25227 };
25228
25229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
25233 }
25234 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25235 ecode2 = SWIG_AsVal_int(obj1, &val2);
25236 if (!SWIG_IsOK(ecode2)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeek" "', expected argument " "2"" of type '" "int""'");
25238 }
25239 arg2 = static_cast< int >(val2);
25240 if (obj2) {
25241 ecode3 = SWIG_AsVal_int(obj2, &val3);
25242 if (!SWIG_IsOK(ecode3)) {
25243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25244 }
25245 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25246 }
25247 if (obj3) {
25248 ecode4 = SWIG_AsVal_int(obj3, &val4);
25249 if (!SWIG_IsOK(ecode4)) {
25250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_GetWeek" "', expected argument " "4"" of type '" "wxDateTime::WeekFlags""'");
25251 }
25252 arg4 = static_cast< wxDateTime::WeekFlags >(val4);
25253 }
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 result = (arg1)->GetWeek(arg2,arg3,arg4);
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25261 return resultobj;
25262fail:
25263 return NULL;
25264}
25265
25266
25267SWIGINTERN PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25268 PyObject *resultobj = 0;
25269 int arg1 ;
25270 int arg2 ;
25271 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25272 wxDateTime result;
25273 int val1 ;
25274 int ecode1 = 0 ;
25275 int val2 ;
25276 int ecode2 = 0 ;
25277 int val3 ;
25278 int ecode3 = 0 ;
25279 PyObject * obj0 = 0 ;
25280 PyObject * obj1 = 0 ;
25281 PyObject * obj2 = 0 ;
25282 char * kwnames[] = {
25283 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
25284 };
25285
25286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25287 ecode1 = SWIG_AsVal_int(obj0, &val1);
25288 if (!SWIG_IsOK(ecode1)) {
25289 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "1"" of type '" "int""'");
25290 }
25291 arg1 = static_cast< int >(val1);
25292 ecode2 = SWIG_AsVal_int(obj1, &val2);
25293 if (!SWIG_IsOK(ecode2)) {
25294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "2"" of type '" "int""'");
25295 }
25296 arg2 = static_cast< int >(val2);
25297 if (obj2) {
25298 ecode3 = SWIG_AsVal_int(obj2, &val3);
25299 if (!SWIG_IsOK(ecode3)) {
25300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25301 }
25302 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25303 }
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3);
25307 wxPyEndAllowThreads(__tstate);
25308 if (PyErr_Occurred()) SWIG_fail;
25309 }
25310 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25311 return resultobj;
25312fail:
25313 return NULL;
25314}
25315
25316
25317SWIGINTERN PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 wxDateTime *arg1 = (wxDateTime *) 0 ;
25320 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25321 int arg3 = (int) wxDateTime::Inv_Year ;
25322 wxDateTime *result = 0 ;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 int val2 ;
25326 int ecode2 = 0 ;
25327 int val3 ;
25328 int ecode3 = 0 ;
25329 PyObject * obj0 = 0 ;
25330 PyObject * obj1 = 0 ;
25331 PyObject * obj2 = 0 ;
25332 char * kwnames[] = {
25333 (char *) "self",(char *) "month",(char *) "year", NULL
25334 };
25335
25336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25338 if (!SWIG_IsOK(res1)) {
25339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25340 }
25341 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25342 if (obj1) {
25343 ecode2 = SWIG_AsVal_int(obj1, &val2);
25344 if (!SWIG_IsOK(ecode2)) {
25345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
25346 }
25347 arg2 = static_cast< wxDateTime::Month >(val2);
25348 }
25349 if (obj2) {
25350 ecode3 = SWIG_AsVal_int(obj2, &val3);
25351 if (!SWIG_IsOK(ecode3)) {
25352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "3"" of type '" "int""'");
25353 }
25354 arg3 = static_cast< int >(val3);
25355 }
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 25358 {
0085ce49
RD
25359 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3);
25360 result = (wxDateTime *) &_result_ref;
d14a1e28 25361 }
0085ce49
RD
25362 wxPyEndAllowThreads(__tstate);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25366 return resultobj;
25367fail:
25368 return NULL;
25369}
25370
25371
25372SWIGINTERN PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25373 PyObject *resultobj = 0;
25374 wxDateTime *arg1 = (wxDateTime *) 0 ;
25375 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25376 int arg3 = (int) wxDateTime::Inv_Year ;
25377 wxDateTime result;
25378 void *argp1 = 0 ;
25379 int res1 = 0 ;
25380 int val2 ;
25381 int ecode2 = 0 ;
25382 int val3 ;
25383 int ecode3 = 0 ;
25384 PyObject * obj0 = 0 ;
25385 PyObject * obj1 = 0 ;
25386 PyObject * obj2 = 0 ;
25387 char * kwnames[] = {
25388 (char *) "self",(char *) "month",(char *) "year", NULL
25389 };
25390
25391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25393 if (!SWIG_IsOK(res1)) {
25394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25395 }
25396 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25397 if (obj1) {
25398 ecode2 = SWIG_AsVal_int(obj1, &val2);
25399 if (!SWIG_IsOK(ecode2)) {
25400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
25401 }
25402 arg2 = static_cast< wxDateTime::Month >(val2);
25403 }
25404 if (obj2) {
25405 ecode3 = SWIG_AsVal_int(obj2, &val3);
25406 if (!SWIG_IsOK(ecode3)) {
25407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "3"" of type '" "int""'");
25408 }
25409 arg3 = static_cast< int >(val3);
25410 }
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 result = (arg1)->GetLastMonthDay(arg2,arg3);
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25418 return resultobj;
25419fail:
25420 return NULL;
25421}
25422
25423
25424SWIGINTERN PyObject *_wrap_DateTime_SetToYearDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25425 PyObject *resultobj = 0;
25426 wxDateTime *arg1 = (wxDateTime *) 0 ;
25427 int arg2 ;
25428 wxDateTime *result = 0 ;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 int val2 ;
25432 int ecode2 = 0 ;
25433 PyObject * obj0 = 0 ;
25434 PyObject * obj1 = 0 ;
25435 char * kwnames[] = {
25436 (char *) "self",(char *) "yday", NULL
25437 };
25438
25439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) SWIG_fail;
25440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToYearDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25443 }
25444 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25445 ecode2 = SWIG_AsVal_int(obj1, &val2);
25446 if (!SWIG_IsOK(ecode2)) {
25447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToYearDay" "', expected argument " "2"" of type '" "int""'");
25448 }
25449 arg2 = static_cast< int >(val2);
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25452 {
0085ce49
RD
25453 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
25454 result = (wxDateTime *) &_result_ref;
093d3ff1 25455 }
0085ce49
RD
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25460 return resultobj;
25461fail:
25462 return NULL;
25463}
25464
25465
25466SWIGINTERN PyObject *_wrap_DateTime_GetYearDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj = 0;
25468 wxDateTime *arg1 = (wxDateTime *) 0 ;
25469 int arg2 ;
25470 wxDateTime result;
25471 void *argp1 = 0 ;
25472 int res1 = 0 ;
25473 int val2 ;
25474 int ecode2 = 0 ;
25475 PyObject * obj0 = 0 ;
25476 PyObject * obj1 = 0 ;
25477 char * kwnames[] = {
25478 (char *) "self",(char *) "yday", NULL
25479 };
25480
25481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) SWIG_fail;
25482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetYearDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25485 }
25486 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25487 ecode2 = SWIG_AsVal_int(obj1, &val2);
25488 if (!SWIG_IsOK(ecode2)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetYearDay" "', expected argument " "2"" of type '" "int""'");
25490 }
25491 arg2 = static_cast< int >(val2);
25492 {
25493 PyThreadState* __tstate = wxPyBeginAllowThreads();
25494 result = (arg1)->GetYearDay(arg2);
25495 wxPyEndAllowThreads(__tstate);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25499 return resultobj;
25500fail:
25501 return NULL;
d14a1e28
RD
25502}
25503
25504
0085ce49
RD
25505SWIGINTERN PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25506 PyObject *resultobj = 0;
25507 wxDateTime *arg1 = (wxDateTime *) 0 ;
25508 double result;
25509 void *argp1 = 0 ;
25510 int res1 = 0 ;
25511 PyObject *swig_obj[1] ;
25512
25513 if (!args) SWIG_fail;
25514 swig_obj[0] = args;
25515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25516 if (!SWIG_IsOK(res1)) {
25517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetJulianDayNumber" "', expected argument " "1"" of type '" "wxDateTime *""'");
25518 }
25519 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 result = (double)(arg1)->GetJulianDayNumber();
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 resultobj = SWIG_From_double(static_cast< double >(result));
25527 return resultobj;
25528fail:
25529 return NULL;
d14a1e28
RD
25530}
25531
25532
0085ce49
RD
25533SWIGINTERN PyObject *_wrap_DateTime_GetJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25534 PyObject *resultobj = 0;
25535 wxDateTime *arg1 = (wxDateTime *) 0 ;
25536 double result;
25537 void *argp1 = 0 ;
25538 int res1 = 0 ;
25539 PyObject *swig_obj[1] ;
25540
25541 if (!args) SWIG_fail;
25542 swig_obj[0] = args;
25543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25544 if (!SWIG_IsOK(res1)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetJDN" "', expected argument " "1"" of type '" "wxDateTime *""'");
25546 }
25547 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25548 {
25549 PyThreadState* __tstate = wxPyBeginAllowThreads();
25550 result = (double)(arg1)->GetJDN();
25551 wxPyEndAllowThreads(__tstate);
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_From_double(static_cast< double >(result));
25555 return resultobj;
25556fail:
25557 return NULL;
d14a1e28
RD
25558}
25559
25560
0085ce49
RD
25561SWIGINTERN PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25562 PyObject *resultobj = 0;
25563 wxDateTime *arg1 = (wxDateTime *) 0 ;
25564 double result;
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
25567 PyObject *swig_obj[1] ;
25568
25569 if (!args) SWIG_fail;
25570 swig_obj[0] = args;
25571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25572 if (!SWIG_IsOK(res1)) {
25573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetModifiedJulianDayNumber" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25574 }
25575 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_From_double(static_cast< double >(result));
25583 return resultobj;
25584fail:
25585 return NULL;
d14a1e28
RD
25586}
25587
25588
0085ce49
RD
25589SWIGINTERN PyObject *_wrap_DateTime_GetMJD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25590 PyObject *resultobj = 0;
25591 wxDateTime *arg1 = (wxDateTime *) 0 ;
25592 double result;
25593 void *argp1 = 0 ;
25594 int res1 = 0 ;
25595 PyObject *swig_obj[1] ;
25596
25597 if (!args) SWIG_fail;
25598 swig_obj[0] = args;
25599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25600 if (!SWIG_IsOK(res1)) {
25601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMJD" "', expected argument " "1"" of type '" "wxDateTime *""'");
25602 }
25603 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25604 {
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 result = (double)(arg1)->GetMJD();
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 resultobj = SWIG_From_double(static_cast< double >(result));
25611 return resultobj;
25612fail:
25613 return NULL;
d14a1e28
RD
25614}
25615
25616
0085ce49
RD
25617SWIGINTERN PyObject *_wrap_DateTime_GetRataDie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618 PyObject *resultobj = 0;
25619 wxDateTime *arg1 = (wxDateTime *) 0 ;
25620 double result;
25621 void *argp1 = 0 ;
25622 int res1 = 0 ;
25623 PyObject *swig_obj[1] ;
25624
25625 if (!args) SWIG_fail;
25626 swig_obj[0] = args;
25627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25628 if (!SWIG_IsOK(res1)) {
25629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetRataDie" "', expected argument " "1"" of type '" "wxDateTime *""'");
25630 }
25631 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25632 {
25633 PyThreadState* __tstate = wxPyBeginAllowThreads();
25634 result = (double)(arg1)->GetRataDie();
25635 wxPyEndAllowThreads(__tstate);
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 resultobj = SWIG_From_double(static_cast< double >(result));
25639 return resultobj;
25640fail:
25641 return NULL;
25642}
25643
25644
25645SWIGINTERN PyObject *_wrap_DateTime_ToTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25646 PyObject *resultobj = 0;
25647 wxDateTime *arg1 = (wxDateTime *) 0 ;
25648 wxDateTime::TimeZone *arg2 = 0 ;
25649 bool arg3 = (bool) false ;
25650 wxDateTime result;
25651 void *argp1 = 0 ;
25652 int res1 = 0 ;
25653 bool temp2 = false ;
25654 bool val3 ;
25655 int ecode3 = 0 ;
25656 PyObject * obj0 = 0 ;
25657 PyObject * obj1 = 0 ;
25658 PyObject * obj2 = 0 ;
25659 char * kwnames[] = {
25660 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25661 };
25662
25663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25665 if (!SWIG_IsOK(res1)) {
25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25667 }
25668 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25669 {
25670 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25671 temp2 = true;
25672 }
25673 if (obj2) {
25674 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25675 if (!SWIG_IsOK(ecode3)) {
25676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_ToTimezone" "', expected argument " "3"" of type '" "bool""'");
25677 }
25678 arg3 = static_cast< bool >(val3);
25679 }
25680 {
25681 PyThreadState* __tstate = wxPyBeginAllowThreads();
25682 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25687 {
25688 if (temp2) delete arg2;
25689 }
25690 return resultobj;
25691fail:
25692 {
25693 if (temp2) delete arg2;
25694 }
25695 return NULL;
25696}
25697
25698
25699SWIGINTERN PyObject *_wrap_DateTime_MakeTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25700 PyObject *resultobj = 0;
25701 wxDateTime *arg1 = (wxDateTime *) 0 ;
25702 wxDateTime::TimeZone *arg2 = 0 ;
25703 bool arg3 = (bool) false ;
25704 wxDateTime *result = 0 ;
25705 void *argp1 = 0 ;
25706 int res1 = 0 ;
25707 bool temp2 = false ;
25708 bool val3 ;
25709 int ecode3 = 0 ;
25710 PyObject * obj0 = 0 ;
25711 PyObject * obj1 = 0 ;
25712 PyObject * obj2 = 0 ;
25713 char * kwnames[] = {
25714 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25715 };
25716
25717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25719 if (!SWIG_IsOK(res1)) {
25720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25721 }
25722 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25723 {
25724 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25725 temp2 = true;
25726 }
25727 if (obj2) {
25728 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25729 if (!SWIG_IsOK(ecode3)) {
25730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_MakeTimezone" "', expected argument " "3"" of type '" "bool""'");
25731 }
25732 arg3 = static_cast< bool >(val3);
25733 }
25734 {
25735 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 25736 {
0085ce49
RD
25737 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25738 result = (wxDateTime *) &_result_ref;
d14a1e28 25739 }
0085ce49
RD
25740 wxPyEndAllowThreads(__tstate);
25741 if (PyErr_Occurred()) SWIG_fail;
25742 }
25743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25744 {
25745 if (temp2) delete arg2;
25746 }
25747 return resultobj;
25748fail:
25749 {
25750 if (temp2) delete arg2;
25751 }
25752 return NULL;
25753}
25754
25755
25756SWIGINTERN PyObject *_wrap_DateTime_FromTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25757 PyObject *resultobj = 0;
25758 wxDateTime *arg1 = (wxDateTime *) 0 ;
25759 wxDateTime::TimeZone *arg2 = 0 ;
25760 bool arg3 = (bool) false ;
25761 wxDateTime result;
25762 void *argp1 = 0 ;
25763 int res1 = 0 ;
25764 bool temp2 = false ;
25765 bool val3 ;
25766 int ecode3 = 0 ;
25767 PyObject * obj0 = 0 ;
25768 PyObject * obj1 = 0 ;
25769 PyObject * obj2 = 0 ;
25770 char * kwnames[] = {
25771 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25772 };
25773
25774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25776 if (!SWIG_IsOK(res1)) {
25777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FromTimezone" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25778 }
25779 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25780 {
25781 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25782 temp2 = true;
25783 }
25784 if (obj2) {
25785 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25786 if (!SWIG_IsOK(ecode3)) {
25787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_FromTimezone" "', expected argument " "3"" of type '" "bool""'");
25788 }
25789 arg3 = static_cast< bool >(val3);
25790 }
25791 {
25792 PyThreadState* __tstate = wxPyBeginAllowThreads();
25793 result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25798 {
25799 if (temp2) delete arg2;
25800 }
25801 return resultobj;
25802fail:
25803 {
25804 if (temp2) delete arg2;
25805 }
25806 return NULL;
25807}
25808
25809
25810SWIGINTERN PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25811 PyObject *resultobj = 0;
25812 wxDateTime *arg1 = (wxDateTime *) 0 ;
25813 wxDateTime::TimeZone *arg2 = 0 ;
25814 bool arg3 = (bool) false ;
25815 wxDateTime *result = 0 ;
25816 void *argp1 = 0 ;
25817 int res1 = 0 ;
25818 bool temp2 = false ;
25819 bool val3 ;
25820 int ecode3 = 0 ;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 PyObject * obj2 = 0 ;
25824 char * kwnames[] = {
25825 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25826 };
25827
25828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25830 if (!SWIG_IsOK(res1)) {
25831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeFromTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25832 }
25833 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25834 {
25835 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25836 temp2 = true;
25837 }
25838 if (obj2) {
25839 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25840 if (!SWIG_IsOK(ecode3)) {
25841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_MakeFromTimezone" "', expected argument " "3"" of type '" "bool""'");
25842 }
25843 arg3 = static_cast< bool >(val3);
25844 }
25845 {
25846 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 25847 {
0085ce49
RD
25848 wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25849 result = (wxDateTime *) &_result_ref;
d14a1e28 25850 }
0085ce49
RD
25851 wxPyEndAllowThreads(__tstate);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25855 {
25856 if (temp2) delete arg2;
25857 }
25858 return resultobj;
25859fail:
25860 {
25861 if (temp2) delete arg2;
25862 }
25863 return NULL;
25864}
25865
25866
25867SWIGINTERN PyObject *_wrap_DateTime_ToUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj = 0;
25869 wxDateTime *arg1 = (wxDateTime *) 0 ;
25870 bool arg2 = (bool) false ;
25871 wxDateTime result;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 bool val2 ;
25875 int ecode2 = 0 ;
25876 PyObject * obj0 = 0 ;
25877 PyObject * obj1 = 0 ;
25878 char * kwnames[] = {
25879 (char *) "self",(char *) "noDST", NULL
25880 };
25881
25882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) SWIG_fail;
25883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25884 if (!SWIG_IsOK(res1)) {
25885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToUTC" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25886 }
25887 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25888 if (obj1) {
25889 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25890 if (!SWIG_IsOK(ecode2)) {
25891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_ToUTC" "', expected argument " "2"" of type '" "bool""'");
25892 }
25893 arg2 = static_cast< bool >(val2);
25894 }
25895 {
25896 PyThreadState* __tstate = wxPyBeginAllowThreads();
25897 result = ((wxDateTime const *)arg1)->ToUTC(arg2);
25898 wxPyEndAllowThreads(__tstate);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25902 return resultobj;
25903fail:
25904 return NULL;
25905}
25906
25907
25908SWIGINTERN PyObject *_wrap_DateTime_MakeUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25909 PyObject *resultobj = 0;
25910 wxDateTime *arg1 = (wxDateTime *) 0 ;
25911 bool arg2 = (bool) false ;
25912 wxDateTime *result = 0 ;
25913 void *argp1 = 0 ;
25914 int res1 = 0 ;
25915 bool val2 ;
25916 int ecode2 = 0 ;
25917 PyObject * obj0 = 0 ;
25918 PyObject * obj1 = 0 ;
25919 char * kwnames[] = {
25920 (char *) "self",(char *) "noDST", NULL
25921 };
25922
25923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) SWIG_fail;
25924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeUTC" "', expected argument " "1"" of type '" "wxDateTime *""'");
25927 }
25928 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25929 if (obj1) {
25930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25931 if (!SWIG_IsOK(ecode2)) {
25932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeUTC" "', expected argument " "2"" of type '" "bool""'");
25933 }
25934 arg2 = static_cast< bool >(val2);
25935 }
25936 {
25937 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 25938 {
0085ce49
RD
25939 wxDateTime &_result_ref = (arg1)->MakeUTC(arg2);
25940 result = (wxDateTime *) &_result_ref;
d14a1e28 25941 }
0085ce49
RD
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25946 return resultobj;
25947fail:
25948 return NULL;
25949}
25950
25951
25952SWIGINTERN PyObject *_wrap_DateTime_ToGMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj = 0;
25954 wxDateTime *arg1 = (wxDateTime *) 0 ;
25955 bool arg2 = (bool) false ;
25956 wxDateTime result;
25957 void *argp1 = 0 ;
25958 int res1 = 0 ;
25959 bool val2 ;
25960 int ecode2 = 0 ;
25961 PyObject * obj0 = 0 ;
25962 PyObject * obj1 = 0 ;
25963 char * kwnames[] = {
25964 (char *) "self",(char *) "noDST", NULL
25965 };
25966
25967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) SWIG_fail;
25968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25969 if (!SWIG_IsOK(res1)) {
25970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToGMT" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25971 }
25972 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25973 if (obj1) {
25974 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25975 if (!SWIG_IsOK(ecode2)) {
25976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_ToGMT" "', expected argument " "2"" of type '" "bool""'");
25977 }
25978 arg2 = static_cast< bool >(val2);
25979 }
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = ((wxDateTime const *)arg1)->ToGMT(arg2);
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25987 return resultobj;
25988fail:
25989 return NULL;
25990}
25991
25992
25993SWIGINTERN PyObject *_wrap_DateTime_MakeGMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25994 PyObject *resultobj = 0;
25995 wxDateTime *arg1 = (wxDateTime *) 0 ;
25996 bool arg2 = (bool) false ;
25997 wxDateTime *result = 0 ;
25998 void *argp1 = 0 ;
25999 int res1 = 0 ;
26000 bool val2 ;
26001 int ecode2 = 0 ;
26002 PyObject * obj0 = 0 ;
26003 PyObject * obj1 = 0 ;
26004 char * kwnames[] = {
26005 (char *) "self",(char *) "noDST", NULL
26006 };
26007
26008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) SWIG_fail;
26009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26010 if (!SWIG_IsOK(res1)) {
26011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeGMT" "', expected argument " "1"" of type '" "wxDateTime *""'");
26012 }
26013 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26014 if (obj1) {
26015 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26016 if (!SWIG_IsOK(ecode2)) {
26017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeGMT" "', expected argument " "2"" of type '" "bool""'");
26018 }
26019 arg2 = static_cast< bool >(val2);
26020 }
26021 {
26022 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 26023 {
0085ce49
RD
26024 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
26025 result = (wxDateTime *) &_result_ref;
d14a1e28 26026 }
0085ce49
RD
26027 wxPyEndAllowThreads(__tstate);
26028 if (PyErr_Occurred()) SWIG_fail;
26029 }
26030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
26031 return resultobj;
26032fail:
26033 return NULL;
26034}
26035
26036
26037SWIGINTERN PyObject *_wrap_DateTime_FromUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26038 PyObject *resultobj = 0;
26039 wxDateTime *arg1 = (wxDateTime *) 0 ;
26040 bool arg2 = (bool) false ;
26041 wxDateTime result;
26042 void *argp1 = 0 ;
26043 int res1 = 0 ;
26044 bool val2 ;
26045 int ecode2 = 0 ;
26046 PyObject * obj0 = 0 ;
26047 PyObject * obj1 = 0 ;
26048 char * kwnames[] = {
26049 (char *) "self",(char *) "noDST", NULL
26050 };
26051
26052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) SWIG_fail;
26053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FromUTC" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26056 }
26057 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26058 if (obj1) {
26059 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26060 if (!SWIG_IsOK(ecode2)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_FromUTC" "', expected argument " "2"" of type '" "bool""'");
26062 }
26063 arg2 = static_cast< bool >(val2);
26064 }
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = ((wxDateTime const *)arg1)->FromUTC(arg2);
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
26072 return resultobj;
26073fail:
26074 return NULL;
26075}
26076
26077
26078SWIGINTERN PyObject *_wrap_DateTime_MakeFromUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26079 PyObject *resultobj = 0;
26080 wxDateTime *arg1 = (wxDateTime *) 0 ;
26081 bool arg2 = (bool) false ;
26082 wxDateTime *result = 0 ;
26083 void *argp1 = 0 ;
26084 int res1 = 0 ;
26085 bool val2 ;
26086 int ecode2 = 0 ;
26087 PyObject * obj0 = 0 ;
26088 PyObject * obj1 = 0 ;
26089 char * kwnames[] = {
26090 (char *) "self",(char *) "noDST", NULL
26091 };
26092
26093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) SWIG_fail;
26094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26095 if (!SWIG_IsOK(res1)) {
26096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeFromUTC" "', expected argument " "1"" of type '" "wxDateTime *""'");
26097 }
26098 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26099 if (obj1) {
26100 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26101 if (!SWIG_IsOK(ecode2)) {
26102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeFromUTC" "', expected argument " "2"" of type '" "bool""'");
26103 }
26104 arg2 = static_cast< bool >(val2);
26105 }
26106 {
26107 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 26108 {
0085ce49
RD
26109 wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2);
26110 result = (wxDateTime *) &_result_ref;
d14a1e28 26111 }
0085ce49
RD
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
26116 return resultobj;
26117fail:
26118 return NULL;
26119}
26120
26121
26122SWIGINTERN PyObject *_wrap_DateTime_IsDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj = 0;
26124 wxDateTime *arg1 = (wxDateTime *) 0 ;
26125 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
26126 int result;
26127 void *argp1 = 0 ;
26128 int res1 = 0 ;
26129 int val2 ;
26130 int ecode2 = 0 ;
26131 PyObject * obj0 = 0 ;
26132 PyObject * obj1 = 0 ;
26133 char * kwnames[] = {
26134 (char *) "self",(char *) "country", NULL
26135 };
26136
26137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) SWIG_fail;
26138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26139 if (!SWIG_IsOK(res1)) {
26140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsDST" "', expected argument " "1"" of type '" "wxDateTime *""'");
26141 }
26142 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26143 if (obj1) {
26144 ecode2 = SWIG_AsVal_int(obj1, &val2);
26145 if (!SWIG_IsOK(ecode2)) {
26146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
26147 }
26148 arg2 = static_cast< wxDateTime::Country >(val2);
26149 }
26150 {
26151 PyThreadState* __tstate = wxPyBeginAllowThreads();
26152 result = (int)(arg1)->IsDST(arg2);
26153 wxPyEndAllowThreads(__tstate);
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 resultobj = SWIG_From_int(static_cast< int >(result));
26157 return resultobj;
26158fail:
26159 return NULL;
d14a1e28
RD
26160}
26161
26162
0085ce49
RD
26163SWIGINTERN PyObject *_wrap_DateTime_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26164 PyObject *resultobj = 0;
26165 wxDateTime *arg1 = (wxDateTime *) 0 ;
26166 bool result;
26167 void *argp1 = 0 ;
26168 int res1 = 0 ;
26169 PyObject *swig_obj[1] ;
26170
26171 if (!args) SWIG_fail;
26172 swig_obj[0] = args;
26173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26174 if (!SWIG_IsOK(res1)) {
26175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsValid" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26176 }
26177 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26178 {
26179 PyThreadState* __tstate = wxPyBeginAllowThreads();
26180 result = (bool)((wxDateTime const *)arg1)->IsValid();
26181 wxPyEndAllowThreads(__tstate);
26182 if (PyErr_Occurred()) SWIG_fail;
26183 }
26184 {
26185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26186 }
26187 return resultobj;
26188fail:
26189 return NULL;
d14a1e28
RD
26190}
26191
26192
0085ce49
RD
26193SWIGINTERN PyObject *_wrap_DateTime_GetTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26194 PyObject *resultobj = 0;
26195 wxDateTime *arg1 = (wxDateTime *) 0 ;
26196 time_t result;
26197 void *argp1 = 0 ;
26198 int res1 = 0 ;
26199 PyObject *swig_obj[1] ;
26200
26201 if (!args) SWIG_fail;
26202 swig_obj[0] = args;
26203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26204 if (!SWIG_IsOK(res1)) {
26205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetTicks" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26206 }
26207 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26208 {
26209 PyThreadState* __tstate = wxPyBeginAllowThreads();
26210 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
26211 wxPyEndAllowThreads(__tstate);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26215 return resultobj;
26216fail:
26217 return NULL;
26218}
26219
26220
26221SWIGINTERN PyObject *_wrap_DateTime_GetYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxDateTime *arg1 = (wxDateTime *) 0 ;
26224 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26225 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26226 int result;
26227 void *argp1 = 0 ;
26228 int res1 = 0 ;
26229 bool temp2 = false ;
26230 PyObject * obj0 = 0 ;
26231 PyObject * obj1 = 0 ;
26232 char * kwnames[] = {
26233 (char *) "self",(char *) "tz", NULL
26234 };
26235
26236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) SWIG_fail;
26237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26238 if (!SWIG_IsOK(res1)) {
26239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26240 }
26241 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26242 if (obj1) {
d14a1e28 26243 {
0085ce49
RD
26244 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26245 temp2 = true;
d14a1e28 26246 }
0085ce49
RD
26247 }
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
26251 wxPyEndAllowThreads(__tstate);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 resultobj = SWIG_From_int(static_cast< int >(result));
26255 {
26256 if (temp2) delete arg2;
26257 }
26258 return resultobj;
26259fail:
26260 {
26261 if (temp2) delete arg2;
26262 }
26263 return NULL;
26264}
26265
26266
26267SWIGINTERN PyObject *_wrap_DateTime_GetMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26268 PyObject *resultobj = 0;
26269 wxDateTime *arg1 = (wxDateTime *) 0 ;
26270 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26271 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26272 wxDateTime::Month result;
26273 void *argp1 = 0 ;
26274 int res1 = 0 ;
26275 bool temp2 = false ;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 char * kwnames[] = {
26279 (char *) "self",(char *) "tz", NULL
26280 };
26281
26282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) SWIG_fail;
26283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26284 if (!SWIG_IsOK(res1)) {
26285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMonth" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26286 }
26287 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26288 if (obj1) {
d14a1e28 26289 {
0085ce49
RD
26290 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26291 temp2 = true;
d14a1e28 26292 }
0085ce49
RD
26293 }
26294 {
26295 PyThreadState* __tstate = wxPyBeginAllowThreads();
26296 result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = SWIG_From_int(static_cast< int >(result));
26301 {
26302 if (temp2) delete arg2;
26303 }
26304 return resultobj;
26305fail:
26306 {
26307 if (temp2) delete arg2;
26308 }
26309 return NULL;
26310}
26311
26312
26313SWIGINTERN PyObject *_wrap_DateTime_GetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26314 PyObject *resultobj = 0;
26315 wxDateTime *arg1 = (wxDateTime *) 0 ;
26316 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26317 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26318 int result;
26319 void *argp1 = 0 ;
26320 int res1 = 0 ;
26321 bool temp2 = false ;
26322 PyObject * obj0 = 0 ;
26323 PyObject * obj1 = 0 ;
26324 char * kwnames[] = {
26325 (char *) "self",(char *) "tz", NULL
26326 };
26327
26328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) SWIG_fail;
26329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26330 if (!SWIG_IsOK(res1)) {
26331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26332 }
26333 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26334 if (obj1) {
d14a1e28 26335 {
0085ce49
RD
26336 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26337 temp2 = true;
d14a1e28 26338 }
0085ce49
RD
26339 }
26340 {
26341 PyThreadState* __tstate = wxPyBeginAllowThreads();
26342 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
26343 wxPyEndAllowThreads(__tstate);
26344 if (PyErr_Occurred()) SWIG_fail;
26345 }
26346 resultobj = SWIG_From_int(static_cast< int >(result));
26347 {
26348 if (temp2) delete arg2;
26349 }
26350 return resultobj;
26351fail:
26352 {
26353 if (temp2) delete arg2;
26354 }
26355 return NULL;
26356}
26357
26358
26359SWIGINTERN PyObject *_wrap_DateTime_GetWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26360 PyObject *resultobj = 0;
26361 wxDateTime *arg1 = (wxDateTime *) 0 ;
26362 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26363 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26364 wxDateTime::WeekDay result;
26365 void *argp1 = 0 ;
26366 int res1 = 0 ;
26367 bool temp2 = false ;
26368 PyObject * obj0 = 0 ;
26369 PyObject * obj1 = 0 ;
26370 char * kwnames[] = {
26371 (char *) "self",(char *) "tz", NULL
26372 };
26373
26374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
26375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26376 if (!SWIG_IsOK(res1)) {
26377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26378 }
26379 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26380 if (obj1) {
4f89f6a3 26381 {
0085ce49
RD
26382 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26383 temp2 = true;
4f89f6a3 26384 }
0085ce49
RD
26385 }
26386 {
26387 PyThreadState* __tstate = wxPyBeginAllowThreads();
26388 result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
26389 wxPyEndAllowThreads(__tstate);
26390 if (PyErr_Occurred()) SWIG_fail;
26391 }
26392 resultobj = SWIG_From_int(static_cast< int >(result));
26393 {
26394 if (temp2) delete arg2;
26395 }
26396 return resultobj;
26397fail:
26398 {
26399 if (temp2) delete arg2;
26400 }
26401 return NULL;
26402}
26403
26404
26405SWIGINTERN PyObject *_wrap_DateTime_GetHour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj = 0;
26407 wxDateTime *arg1 = (wxDateTime *) 0 ;
26408 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26409 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26410 int result;
26411 void *argp1 = 0 ;
26412 int res1 = 0 ;
26413 bool temp2 = false ;
26414 PyObject * obj0 = 0 ;
26415 PyObject * obj1 = 0 ;
26416 char * kwnames[] = {
26417 (char *) "self",(char *) "tz", NULL
26418 };
26419
26420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) SWIG_fail;
26421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26422 if (!SWIG_IsOK(res1)) {
26423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetHour" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26424 }
26425 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26426 if (obj1) {
d14a1e28 26427 {
0085ce49
RD
26428 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26429 temp2 = true;
d14a1e28 26430 }
0085ce49
RD
26431 }
26432 {
26433 PyThreadState* __tstate = wxPyBeginAllowThreads();
26434 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
26435 wxPyEndAllowThreads(__tstate);
26436 if (PyErr_Occurred()) SWIG_fail;
26437 }
26438 resultobj = SWIG_From_int(static_cast< int >(result));
26439 {
26440 if (temp2) delete arg2;
26441 }
26442 return resultobj;
26443fail:
26444 {
26445 if (temp2) delete arg2;
26446 }
26447 return NULL;
26448}
26449
26450
26451SWIGINTERN PyObject *_wrap_DateTime_GetMinute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26452 PyObject *resultobj = 0;
26453 wxDateTime *arg1 = (wxDateTime *) 0 ;
26454 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26455 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26456 int result;
26457 void *argp1 = 0 ;
26458 int res1 = 0 ;
26459 bool temp2 = false ;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "self",(char *) "tz", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) SWIG_fail;
26467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMinute" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26470 }
26471 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26472 if (obj1) {
d14a1e28 26473 {
0085ce49
RD
26474 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26475 temp2 = true;
d14a1e28 26476 }
0085ce49
RD
26477 }
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_From_int(static_cast< int >(result));
26485 {
26486 if (temp2) delete arg2;
26487 }
26488 return resultobj;
26489fail:
26490 {
26491 if (temp2) delete arg2;
26492 }
26493 return NULL;
26494}
26495
26496
26497SWIGINTERN PyObject *_wrap_DateTime_GetSecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26498 PyObject *resultobj = 0;
26499 wxDateTime *arg1 = (wxDateTime *) 0 ;
26500 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26501 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26502 int result;
26503 void *argp1 = 0 ;
26504 int res1 = 0 ;
26505 bool temp2 = false ;
26506 PyObject * obj0 = 0 ;
26507 PyObject * obj1 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "tz", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetSecond" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26516 }
26517 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26518 if (obj1) {
d14a1e28 26519 {
0085ce49
RD
26520 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26521 temp2 = true;
d14a1e28 26522 }
0085ce49
RD
26523 }
26524 {
26525 PyThreadState* __tstate = wxPyBeginAllowThreads();
26526 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
26527 wxPyEndAllowThreads(__tstate);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_From_int(static_cast< int >(result));
26531 {
26532 if (temp2) delete arg2;
26533 }
26534 return resultobj;
26535fail:
26536 {
26537 if (temp2) delete arg2;
26538 }
26539 return NULL;
26540}
26541
26542
26543SWIGINTERN PyObject *_wrap_DateTime_GetMillisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26544 PyObject *resultobj = 0;
26545 wxDateTime *arg1 = (wxDateTime *) 0 ;
26546 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26547 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26548 int result;
26549 void *argp1 = 0 ;
26550 int res1 = 0 ;
26551 bool temp2 = false ;
26552 PyObject * obj0 = 0 ;
26553 PyObject * obj1 = 0 ;
26554 char * kwnames[] = {
26555 (char *) "self",(char *) "tz", NULL
26556 };
26557
26558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) SWIG_fail;
26559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26560 if (!SWIG_IsOK(res1)) {
26561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMillisecond" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26562 }
26563 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26564 if (obj1) {
d14a1e28 26565 {
0085ce49
RD
26566 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26567 temp2 = true;
d14a1e28 26568 }
0085ce49
RD
26569 }
26570 {
26571 PyThreadState* __tstate = wxPyBeginAllowThreads();
26572 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
26573 wxPyEndAllowThreads(__tstate);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 resultobj = SWIG_From_int(static_cast< int >(result));
26577 {
26578 if (temp2) delete arg2;
26579 }
26580 return resultobj;
26581fail:
26582 {
26583 if (temp2) delete arg2;
26584 }
26585 return NULL;
26586}
26587
26588
26589SWIGINTERN PyObject *_wrap_DateTime_GetDayOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26590 PyObject *resultobj = 0;
26591 wxDateTime *arg1 = (wxDateTime *) 0 ;
26592 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26593 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26594 int result;
26595 void *argp1 = 0 ;
26596 int res1 = 0 ;
26597 bool temp2 = false ;
26598 PyObject * obj0 = 0 ;
26599 PyObject * obj1 = 0 ;
26600 char * kwnames[] = {
26601 (char *) "self",(char *) "tz", NULL
26602 };
26603
26604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) SWIG_fail;
26605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26606 if (!SWIG_IsOK(res1)) {
26607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetDayOfYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26608 }
26609 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26610 if (obj1) {
d14a1e28 26611 {
0085ce49
RD
26612 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26613 temp2 = true;
d14a1e28 26614 }
0085ce49
RD
26615 }
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
26619 wxPyEndAllowThreads(__tstate);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 resultobj = SWIG_From_int(static_cast< int >(result));
26623 {
26624 if (temp2) delete arg2;
26625 }
26626 return resultobj;
26627fail:
26628 {
26629 if (temp2) delete arg2;
26630 }
26631 return NULL;
26632}
26633
26634
26635SWIGINTERN PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26636 PyObject *resultobj = 0;
26637 wxDateTime *arg1 = (wxDateTime *) 0 ;
26638 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
26639 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
26640 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
26641 int result;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 int val2 ;
26645 int ecode2 = 0 ;
26646 bool temp3 = false ;
26647 PyObject * obj0 = 0 ;
26648 PyObject * obj1 = 0 ;
26649 PyObject * obj2 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "flags",(char *) "tz", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26656 if (!SWIG_IsOK(res1)) {
26657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekOfYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26658 }
26659 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26660 if (obj1) {
26661 ecode2 = SWIG_AsVal_int(obj1, &val2);
26662 if (!SWIG_IsOK(ecode2)) {
26663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekOfYear" "', expected argument " "2"" of type '" "wxDateTime::WeekFlags""'");
26664 }
26665 arg2 = static_cast< wxDateTime::WeekFlags >(val2);
26666 }
26667 if (obj2) {
4f89f6a3 26668 {
0085ce49
RD
26669 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
26670 temp3 = true;
d14a1e28 26671 }
0085ce49
RD
26672 }
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3);
26676 wxPyEndAllowThreads(__tstate);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 }
26679 resultobj = SWIG_From_int(static_cast< int >(result));
26680 {
26681 if (temp3) delete arg3;
26682 }
26683 return resultobj;
26684fail:
26685 {
26686 if (temp3) delete arg3;
26687 }
26688 return NULL;
26689}
26690
26691
26692SWIGINTERN PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26693 PyObject *resultobj = 0;
26694 wxDateTime *arg1 = (wxDateTime *) 0 ;
26695 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
26696 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
26697 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
26698 int result;
26699 void *argp1 = 0 ;
26700 int res1 = 0 ;
26701 int val2 ;
26702 int ecode2 = 0 ;
26703 bool temp3 = false ;
26704 PyObject * obj0 = 0 ;
26705 PyObject * obj1 = 0 ;
26706 PyObject * obj2 = 0 ;
26707 char * kwnames[] = {
26708 (char *) "self",(char *) "flags",(char *) "tz", NULL
26709 };
26710
26711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekOfMonth" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26715 }
26716 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26717 if (obj1) {
26718 ecode2 = SWIG_AsVal_int(obj1, &val2);
26719 if (!SWIG_IsOK(ecode2)) {
26720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekOfMonth" "', expected argument " "2"" of type '" "wxDateTime::WeekFlags""'");
26721 }
26722 arg2 = static_cast< wxDateTime::WeekFlags >(val2);
26723 }
26724 if (obj2) {
d14a1e28 26725 {
0085ce49
RD
26726 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
26727 temp3 = true;
d14a1e28 26728 }
0085ce49
RD
26729 }
26730 {
26731 PyThreadState* __tstate = wxPyBeginAllowThreads();
26732 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3);
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 resultobj = SWIG_From_int(static_cast< int >(result));
26737 {
26738 if (temp3) delete arg3;
26739 }
26740 return resultobj;
26741fail:
26742 {
26743 if (temp3) delete arg3;
26744 }
26745 return NULL;
26746}
26747
26748
26749SWIGINTERN PyObject *_wrap_DateTime_IsWorkDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26750 PyObject *resultobj = 0;
26751 wxDateTime *arg1 = (wxDateTime *) 0 ;
26752 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
26753 bool result;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 int val2 ;
26757 int ecode2 = 0 ;
26758 PyObject * obj0 = 0 ;
26759 PyObject * obj1 = 0 ;
26760 char * kwnames[] = {
26761 (char *) "self",(char *) "country", NULL
26762 };
26763
26764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) SWIG_fail;
26765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26766 if (!SWIG_IsOK(res1)) {
26767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsWorkDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26768 }
26769 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26770 if (obj1) {
26771 ecode2 = SWIG_AsVal_int(obj1, &val2);
26772 if (!SWIG_IsOK(ecode2)) {
26773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsWorkDay" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
26774 }
26775 arg2 = static_cast< wxDateTime::Country >(val2);
26776 }
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2);
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 {
26784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26785 }
26786 return resultobj;
26787fail:
26788 return NULL;
26789}
26790
26791
26792SWIGINTERN PyObject *_wrap_DateTime_IsEqualTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj = 0;
26794 wxDateTime *arg1 = (wxDateTime *) 0 ;
26795 wxDateTime *arg2 = 0 ;
26796 bool result;
26797 void *argp1 = 0 ;
26798 int res1 = 0 ;
26799 void *argp2 = 0 ;
26800 int res2 = 0 ;
26801 PyObject * obj0 = 0 ;
26802 PyObject * obj1 = 0 ;
26803 char * kwnames[] = {
26804 (char *) "self",(char *) "datetime", NULL
26805 };
26806
26807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) SWIG_fail;
26808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26809 if (!SWIG_IsOK(res1)) {
26810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEqualTo" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26811 }
26812 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26814 if (!SWIG_IsOK(res2)) {
26815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEqualTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26816 }
26817 if (!argp2) {
26818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26819 }
26820 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
26824 wxPyEndAllowThreads(__tstate);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 {
26828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26829 }
26830 return resultobj;
26831fail:
26832 return NULL;
26833}
26834
26835
26836SWIGINTERN PyObject *_wrap_DateTime_IsEarlierThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26837 PyObject *resultobj = 0;
26838 wxDateTime *arg1 = (wxDateTime *) 0 ;
26839 wxDateTime *arg2 = 0 ;
26840 bool result;
26841 void *argp1 = 0 ;
26842 int res1 = 0 ;
26843 void *argp2 = 0 ;
26844 int res2 = 0 ;
26845 PyObject * obj0 = 0 ;
26846 PyObject * obj1 = 0 ;
26847 char * kwnames[] = {
26848 (char *) "self",(char *) "datetime", NULL
26849 };
26850
26851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) SWIG_fail;
26852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26853 if (!SWIG_IsOK(res1)) {
26854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEarlierThan" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26855 }
26856 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26858 if (!SWIG_IsOK(res2)) {
26859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEarlierThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26860 }
26861 if (!argp2) {
26862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEarlierThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26863 }
26864 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26865 {
26866 PyThreadState* __tstate = wxPyBeginAllowThreads();
26867 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
26868 wxPyEndAllowThreads(__tstate);
26869 if (PyErr_Occurred()) SWIG_fail;
26870 }
26871 {
26872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26873 }
26874 return resultobj;
26875fail:
26876 return NULL;
26877}
26878
26879
26880SWIGINTERN PyObject *_wrap_DateTime_IsLaterThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26881 PyObject *resultobj = 0;
26882 wxDateTime *arg1 = (wxDateTime *) 0 ;
26883 wxDateTime *arg2 = 0 ;
26884 bool result;
26885 void *argp1 = 0 ;
26886 int res1 = 0 ;
26887 void *argp2 = 0 ;
26888 int res2 = 0 ;
26889 PyObject * obj0 = 0 ;
26890 PyObject * obj1 = 0 ;
26891 char * kwnames[] = {
26892 (char *) "self",(char *) "datetime", NULL
26893 };
26894
26895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) SWIG_fail;
26896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26897 if (!SWIG_IsOK(res1)) {
26898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsLaterThan" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26899 }
26900 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26902 if (!SWIG_IsOK(res2)) {
26903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsLaterThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26904 }
26905 if (!argp2) {
26906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsLaterThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26907 }
26908 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 {
26916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26917 }
26918 return resultobj;
26919fail:
26920 return NULL;
26921}
26922
26923
26924SWIGINTERN PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26925 PyObject *resultobj = 0;
26926 wxDateTime *arg1 = (wxDateTime *) 0 ;
26927 wxDateTime *arg2 = 0 ;
26928 wxDateTime *arg3 = 0 ;
26929 bool result;
26930 void *argp1 = 0 ;
26931 int res1 = 0 ;
26932 void *argp2 = 0 ;
26933 int res2 = 0 ;
26934 void *argp3 = 0 ;
26935 int res3 = 0 ;
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
26938 PyObject * obj2 = 0 ;
26939 char * kwnames[] = {
26940 (char *) "self",(char *) "t1",(char *) "t2", NULL
26941 };
26942
26943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26947 }
26948 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26950 if (!SWIG_IsOK(res2)) {
26951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26952 }
26953 if (!argp2) {
26954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26955 }
26956 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26957 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
26958 if (!SWIG_IsOK(res3)) {
26959 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
26960 }
26961 if (!argp3) {
26962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
26963 }
26964 arg3 = reinterpret_cast< wxDateTime * >(argp3);
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
26968 wxPyEndAllowThreads(__tstate);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 {
26972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26973 }
26974 return resultobj;
26975fail:
26976 return NULL;
26977}
26978
26979
26980SWIGINTERN PyObject *_wrap_DateTime_IsBetween(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26981 PyObject *resultobj = 0;
26982 wxDateTime *arg1 = (wxDateTime *) 0 ;
26983 wxDateTime *arg2 = 0 ;
26984 wxDateTime *arg3 = 0 ;
26985 bool result;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 void *argp2 = 0 ;
26989 int res2 = 0 ;
26990 void *argp3 = 0 ;
26991 int res3 = 0 ;
26992 PyObject * obj0 = 0 ;
26993 PyObject * obj1 = 0 ;
26994 PyObject * obj2 = 0 ;
26995 char * kwnames[] = {
26996 (char *) "self",(char *) "t1",(char *) "t2", NULL
26997 };
26998
26999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27001 if (!SWIG_IsOK(res1)) {
27002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsBetween" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27003 }
27004 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27006 if (!SWIG_IsOK(res2)) {
27007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27008 }
27009 if (!argp2) {
27010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27011 }
27012 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27013 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
27014 if (!SWIG_IsOK(res3)) {
27015 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27016 }
27017 if (!argp3) {
27018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27019 }
27020 arg3 = reinterpret_cast< wxDateTime * >(argp3);
27021 {
27022 PyThreadState* __tstate = wxPyBeginAllowThreads();
27023 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
27024 wxPyEndAllowThreads(__tstate);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 {
27028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27029 }
27030 return resultobj;
27031fail:
27032 return NULL;
27033}
27034
27035
27036SWIGINTERN PyObject *_wrap_DateTime_IsSameDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj = 0;
27038 wxDateTime *arg1 = (wxDateTime *) 0 ;
27039 wxDateTime *arg2 = 0 ;
27040 bool result;
27041 void *argp1 = 0 ;
27042 int res1 = 0 ;
27043 void *argp2 = 0 ;
27044 int res2 = 0 ;
27045 PyObject * obj0 = 0 ;
27046 PyObject * obj1 = 0 ;
27047 char * kwnames[] = {
27048 (char *) "self",(char *) "dt", NULL
27049 };
27050
27051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) SWIG_fail;
27052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27053 if (!SWIG_IsOK(res1)) {
27054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsSameDate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27055 }
27056 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27057 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27058 if (!SWIG_IsOK(res2)) {
27059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsSameDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27060 }
27061 if (!argp2) {
27062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsSameDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27063 }
27064 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27065 {
27066 PyThreadState* __tstate = wxPyBeginAllowThreads();
27067 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
27068 wxPyEndAllowThreads(__tstate);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 {
27072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27073 }
27074 return resultobj;
27075fail:
27076 return NULL;
27077}
27078
27079
27080SWIGINTERN PyObject *_wrap_DateTime_IsSameTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27081 PyObject *resultobj = 0;
27082 wxDateTime *arg1 = (wxDateTime *) 0 ;
27083 wxDateTime *arg2 = 0 ;
27084 bool result;
27085 void *argp1 = 0 ;
27086 int res1 = 0 ;
27087 void *argp2 = 0 ;
27088 int res2 = 0 ;
27089 PyObject * obj0 = 0 ;
27090 PyObject * obj1 = 0 ;
27091 char * kwnames[] = {
27092 (char *) "self",(char *) "dt", NULL
27093 };
27094
27095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) SWIG_fail;
27096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27097 if (!SWIG_IsOK(res1)) {
27098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsSameTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27099 }
27100 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27102 if (!SWIG_IsOK(res2)) {
27103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsSameTime" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27104 }
27105 if (!argp2) {
27106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsSameTime" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27107 }
27108 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27109 {
27110 PyThreadState* __tstate = wxPyBeginAllowThreads();
27111 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
27112 wxPyEndAllowThreads(__tstate);
27113 if (PyErr_Occurred()) SWIG_fail;
27114 }
27115 {
27116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27117 }
27118 return resultobj;
27119fail:
27120 return NULL;
27121}
27122
27123
27124SWIGINTERN PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27125 PyObject *resultobj = 0;
27126 wxDateTime *arg1 = (wxDateTime *) 0 ;
27127 wxDateTime *arg2 = 0 ;
27128 wxTimeSpan *arg3 = 0 ;
27129 bool result;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 void *argp2 = 0 ;
27133 int res2 = 0 ;
27134 void *argp3 = 0 ;
27135 int res3 = 0 ;
27136 PyObject * obj0 = 0 ;
27137 PyObject * obj1 = 0 ;
27138 PyObject * obj2 = 0 ;
27139 char * kwnames[] = {
27140 (char *) "self",(char *) "dt",(char *) "ts", NULL
27141 };
27142
27143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27145 if (!SWIG_IsOK(res1)) {
27146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27147 }
27148 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27150 if (!SWIG_IsOK(res2)) {
27151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27152 }
27153 if (!argp2) {
27154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualUpTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27155 }
27156 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27157 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27158 if (!SWIG_IsOK(res3)) {
27159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "3"" of type '" "wxTimeSpan const &""'");
27160 }
27161 if (!argp3) {
27162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualUpTo" "', expected argument " "3"" of type '" "wxTimeSpan const &""'");
27163 }
27164 arg3 = reinterpret_cast< wxTimeSpan * >(argp3);
27165 {
27166 PyThreadState* __tstate = wxPyBeginAllowThreads();
27167 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
27168 wxPyEndAllowThreads(__tstate);
27169 if (PyErr_Occurred()) SWIG_fail;
27170 }
27171 {
27172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27173 }
27174 return resultobj;
27175fail:
27176 return NULL;
27177}
27178
27179
27180SWIGINTERN PyObject *_wrap_DateTime_AddTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27181 PyObject *resultobj = 0;
27182 wxDateTime *arg1 = (wxDateTime *) 0 ;
27183 wxTimeSpan *arg2 = 0 ;
27184 wxDateTime *result = 0 ;
27185 void *argp1 = 0 ;
27186 int res1 = 0 ;
27187 void *argp2 = 0 ;
27188 int res2 = 0 ;
27189 PyObject * obj0 = 0 ;
27190 PyObject * obj1 = 0 ;
27191 char * kwnames[] = {
27192 (char *) "self",(char *) "diff", NULL
27193 };
27194
27195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) SWIG_fail;
27196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27197 if (!SWIG_IsOK(res1)) {
27198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_AddTS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27199 }
27200 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27202 if (!SWIG_IsOK(res2)) {
27203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_AddTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27204 }
27205 if (!argp2) {
27206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_AddTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27207 }
27208 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27209 {
27210 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27211 {
0085ce49
RD
27212 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
27213 result = (wxDateTime *) &_result_ref;
d14a1e28 27214 }
0085ce49
RD
27215 wxPyEndAllowThreads(__tstate);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27219 return resultobj;
27220fail:
27221 return NULL;
27222}
27223
27224
27225SWIGINTERN PyObject *_wrap_DateTime_AddDS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27226 PyObject *resultobj = 0;
27227 wxDateTime *arg1 = (wxDateTime *) 0 ;
27228 wxDateSpan *arg2 = 0 ;
27229 wxDateTime *result = 0 ;
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
27232 void *argp2 = 0 ;
27233 int res2 = 0 ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 char * kwnames[] = {
27237 (char *) "self",(char *) "diff", NULL
27238 };
27239
27240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) SWIG_fail;
27241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_AddDS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27244 }
27245 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27247 if (!SWIG_IsOK(res2)) {
27248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_AddDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27249 }
27250 if (!argp2) {
27251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_AddDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27252 }
27253 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27254 {
27255 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 27256 {
0085ce49
RD
27257 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
27258 result = (wxDateTime *) &_result_ref;
093d3ff1 27259 }
0085ce49
RD
27260 wxPyEndAllowThreads(__tstate);
27261 if (PyErr_Occurred()) SWIG_fail;
27262 }
27263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27264 return resultobj;
27265fail:
27266 return NULL;
27267}
27268
27269
27270SWIGINTERN PyObject *_wrap_DateTime_SubtractTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27271 PyObject *resultobj = 0;
27272 wxDateTime *arg1 = (wxDateTime *) 0 ;
27273 wxTimeSpan *arg2 = 0 ;
27274 wxDateTime *result = 0 ;
27275 void *argp1 = 0 ;
27276 int res1 = 0 ;
27277 void *argp2 = 0 ;
27278 int res2 = 0 ;
27279 PyObject * obj0 = 0 ;
27280 PyObject * obj1 = 0 ;
27281 char * kwnames[] = {
27282 (char *) "self",(char *) "diff", NULL
27283 };
27284
27285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) SWIG_fail;
27286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27287 if (!SWIG_IsOK(res1)) {
27288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SubtractTS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27289 }
27290 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27292 if (!SWIG_IsOK(res2)) {
27293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_SubtractTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27294 }
27295 if (!argp2) {
27296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_SubtractTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27297 }
27298 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27301 {
0085ce49
RD
27302 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
27303 result = (wxDateTime *) &_result_ref;
d14a1e28 27304 }
0085ce49
RD
27305 wxPyEndAllowThreads(__tstate);
27306 if (PyErr_Occurred()) SWIG_fail;
27307 }
27308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27309 return resultobj;
27310fail:
27311 return NULL;
27312}
27313
27314
27315SWIGINTERN PyObject *_wrap_DateTime_SubtractDS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27316 PyObject *resultobj = 0;
27317 wxDateTime *arg1 = (wxDateTime *) 0 ;
27318 wxDateSpan *arg2 = 0 ;
27319 wxDateTime *result = 0 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 void *argp2 = 0 ;
27323 int res2 = 0 ;
27324 PyObject * obj0 = 0 ;
27325 PyObject * obj1 = 0 ;
27326 char * kwnames[] = {
27327 (char *) "self",(char *) "diff", NULL
27328 };
27329
27330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) SWIG_fail;
27331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27332 if (!SWIG_IsOK(res1)) {
27333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SubtractDS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27334 }
27335 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27337 if (!SWIG_IsOK(res2)) {
27338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_SubtractDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27339 }
27340 if (!argp2) {
27341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_SubtractDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27342 }
27343 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27344 {
27345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 27346 {
0085ce49
RD
27347 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
27348 result = (wxDateTime *) &_result_ref;
4f89f6a3 27349 }
0085ce49
RD
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27354 return resultobj;
27355fail:
27356 return NULL;
27357}
27358
27359
27360SWIGINTERN PyObject *_wrap_DateTime_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj = 0;
27362 wxDateTime *arg1 = (wxDateTime *) 0 ;
27363 wxDateTime *arg2 = 0 ;
27364 wxTimeSpan result;
27365 void *argp1 = 0 ;
27366 int res1 = 0 ;
27367 void *argp2 = 0 ;
27368 int res2 = 0 ;
27369 PyObject * obj0 = 0 ;
27370 PyObject * obj1 = 0 ;
27371 char * kwnames[] = {
27372 (char *) "self",(char *) "dt", NULL
27373 };
27374
27375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
27376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27377 if (!SWIG_IsOK(res1)) {
27378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Subtract" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27379 }
27380 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27382 if (!SWIG_IsOK(res2)) {
27383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_Subtract" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27384 }
27385 if (!argp2) {
27386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_Subtract" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27387 }
27388 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27389 {
27390 PyThreadState* __tstate = wxPyBeginAllowThreads();
27391 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
27392 wxPyEndAllowThreads(__tstate);
27393 if (PyErr_Occurred()) SWIG_fail;
27394 }
27395 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
27396 return resultobj;
27397fail:
27398 return NULL;
27399}
27400
27401
27402SWIGINTERN PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27403 PyObject *resultobj = 0;
27404 wxDateTime *arg1 = (wxDateTime *) 0 ;
27405 wxTimeSpan *arg2 = 0 ;
27406 wxDateTime *result = 0 ;
27407 void *argp1 = 0 ;
27408 int res1 = 0 ;
27409 void *argp2 = 0 ;
27410 int res2 = 0 ;
27411
27412 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27414 if (!SWIG_IsOK(res1)) {
27415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___iadd__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27416 }
27417 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27418 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27419 if (!SWIG_IsOK(res2)) {
27420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27421 }
27422 if (!argp2) {
27423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27424 }
27425 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27426 {
27427 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27428 {
0085ce49
RD
27429 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
27430 result = (wxDateTime *) &_result_ref;
d14a1e28 27431 }
0085ce49
RD
27432 wxPyEndAllowThreads(__tstate);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27436 return resultobj;
27437fail:
27438 return NULL;
27439}
27440
27441
27442SWIGINTERN PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27443 PyObject *resultobj = 0;
27444 wxDateTime *arg1 = (wxDateTime *) 0 ;
27445 wxDateSpan *arg2 = 0 ;
27446 wxDateTime *result = 0 ;
27447 void *argp1 = 0 ;
27448 int res1 = 0 ;
27449 void *argp2 = 0 ;
27450 int res2 = 0 ;
27451
27452 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27454 if (!SWIG_IsOK(res1)) {
27455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___iadd__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27456 }
27457 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27458 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27459 if (!SWIG_IsOK(res2)) {
27460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27461 }
27462 if (!argp2) {
27463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27464 }
27465 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27468 {
0085ce49
RD
27469 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
27470 result = (wxDateTime *) &_result_ref;
d14a1e28 27471 }
0085ce49
RD
27472 wxPyEndAllowThreads(__tstate);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27476 return resultobj;
27477fail:
27478 return NULL;
d14a1e28
RD
27479}
27480
27481
0085ce49
RD
27482SWIGINTERN PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
27483 int argc;
27484 PyObject *argv[3];
27485
27486 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___iadd__",0,2,argv))) SWIG_fail;
27487 --argc;
27488 if (argc == 2) {
27489 int _v = 0;
d14a1e28 27490 {
0085ce49
RD
27491 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27492 _v = SWIG_CheckState(res);
d14a1e28 27493 }
0085ce49
RD
27494 if (!_v) goto check_1;
27495 return _wrap_DateTime___iadd____SWIG_0(self, argc, argv);
27496 }
27497check_1:
27498
27499 if (argc == 2) {
27500 return _wrap_DateTime___iadd____SWIG_1(self, argc, argv);
27501 }
27502
27503fail:
27504 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'");
27505 return NULL;
d14a1e28
RD
27506}
27507
27508
0085ce49
RD
27509SWIGINTERN PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27510 PyObject *resultobj = 0;
27511 wxDateTime *arg1 = (wxDateTime *) 0 ;
27512 wxTimeSpan *arg2 = 0 ;
27513 wxDateTime *result = 0 ;
27514 void *argp1 = 0 ;
27515 int res1 = 0 ;
27516 void *argp2 = 0 ;
27517 int res2 = 0 ;
27518
27519 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___isub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27523 }
27524 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27525 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27526 if (!SWIG_IsOK(res2)) {
27527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27528 }
27529 if (!argp2) {
27530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27531 }
27532 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27533 {
27534 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27535 {
0085ce49
RD
27536 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
27537 result = (wxDateTime *) &_result_ref;
d14a1e28 27538 }
0085ce49
RD
27539 wxPyEndAllowThreads(__tstate);
27540 if (PyErr_Occurred()) SWIG_fail;
27541 }
27542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27543 return resultobj;
27544fail:
27545 return NULL;
27546}
27547
27548
27549SWIGINTERN PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27550 PyObject *resultobj = 0;
27551 wxDateTime *arg1 = (wxDateTime *) 0 ;
27552 wxDateSpan *arg2 = 0 ;
27553 wxDateTime *result = 0 ;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 void *argp2 = 0 ;
27557 int res2 = 0 ;
27558
27559 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___isub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27563 }
27564 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27565 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27566 if (!SWIG_IsOK(res2)) {
27567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27568 }
27569 if (!argp2) {
27570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27571 }
27572 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 27575 {
0085ce49
RD
27576 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
27577 result = (wxDateTime *) &_result_ref;
d14a1e28 27578 }
0085ce49
RD
27579 wxPyEndAllowThreads(__tstate);
27580 if (PyErr_Occurred()) SWIG_fail;
27581 }
27582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27583 return resultobj;
27584fail:
27585 return NULL;
d14a1e28
RD
27586}
27587
27588
0085ce49
RD
27589SWIGINTERN PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
27590 int argc;
27591 PyObject *argv[3];
27592
27593 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___isub__",0,2,argv))) SWIG_fail;
27594 --argc;
27595 if (argc == 2) {
27596 int _v = 0;
4f89f6a3 27597 {
0085ce49
RD
27598 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27599 _v = SWIG_CheckState(res);
4f89f6a3 27600 }
0085ce49
RD
27601 if (!_v) goto check_1;
27602 return _wrap_DateTime___isub____SWIG_0(self, argc, argv);
27603 }
27604check_1:
27605
27606 if (argc == 2) {
27607 return _wrap_DateTime___isub____SWIG_1(self, argc, argv);
27608 }
27609
27610fail:
27611 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'");
27612 return NULL;
d14a1e28
RD
27613}
27614
27615
0085ce49
RD
27616SWIGINTERN PyObject *_wrap_DateTime___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27617 PyObject *resultobj = 0;
27618 wxDateTime *arg1 = (wxDateTime *) 0 ;
27619 wxTimeSpan *arg2 = 0 ;
27620 wxDateTime result;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623 void *argp2 = 0 ;
27624 int res2 = 0 ;
27625
27626 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27628 if (!SWIG_IsOK(res1)) {
27629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___add__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27630 }
27631 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27632 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27633 if (!SWIG_IsOK(res2)) {
27634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27635 }
27636 if (!argp2) {
27637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27638 }
27639 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
27643 wxPyEndAllowThreads(__tstate);
27644 if (PyErr_Occurred()) SWIG_fail;
27645 }
27646 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27647 return resultobj;
27648fail:
27649 return NULL;
27650}
27651
27652
27653SWIGINTERN PyObject *_wrap_DateTime___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27654 PyObject *resultobj = 0;
27655 wxDateTime *arg1 = (wxDateTime *) 0 ;
27656 wxDateSpan *arg2 = 0 ;
27657 wxDateTime result;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 void *argp2 = 0 ;
27661 int res2 = 0 ;
27662
27663 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27665 if (!SWIG_IsOK(res1)) {
27666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___add__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27667 }
27668 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27669 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27670 if (!SWIG_IsOK(res2)) {
27671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27672 }
27673 if (!argp2) {
27674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27675 }
27676 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27677 {
27678 PyThreadState* __tstate = wxPyBeginAllowThreads();
27679 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
27680 wxPyEndAllowThreads(__tstate);
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27684 return resultobj;
27685fail:
27686 return NULL;
d14a1e28
RD
27687}
27688
27689
0085ce49
RD
27690SWIGINTERN PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
27691 int argc;
27692 PyObject *argv[3];
27693
27694 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___add__",0,2,argv))) SWIG_fail;
27695 --argc;
27696 if (argc == 2) {
27697 int _v = 0;
d14a1e28 27698 {
0085ce49
RD
27699 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27700 _v = SWIG_CheckState(res);
d14a1e28 27701 }
0085ce49
RD
27702 if (!_v) goto check_1;
27703 return _wrap_DateTime___add____SWIG_0(self, argc, argv);
27704 }
27705check_1:
27706
27707 if (argc == 2) {
27708 return _wrap_DateTime___add____SWIG_1(self, argc, argv);
27709 }
27710
27711fail:
27712 Py_INCREF(Py_NotImplemented);
27713 return Py_NotImplemented;
d14a1e28
RD
27714}
27715
27716
0085ce49
RD
27717SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27718 PyObject *resultobj = 0;
27719 wxDateTime *arg1 = (wxDateTime *) 0 ;
27720 wxDateTime *arg2 = 0 ;
27721 wxTimeSpan result;
27722 void *argp1 = 0 ;
27723 int res1 = 0 ;
27724 void *argp2 = 0 ;
27725 int res2 = 0 ;
27726
27727 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27729 if (!SWIG_IsOK(res1)) {
27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27731 }
27732 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27733 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27734 if (!SWIG_IsOK(res2)) {
27735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27736 }
27737 if (!argp2) {
27738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27739 }
27740 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27741 {
27742 PyThreadState* __tstate = wxPyBeginAllowThreads();
27743 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
27744 wxPyEndAllowThreads(__tstate);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
27747 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
27748 return resultobj;
27749fail:
27750 return NULL;
27751}
27752
27753
27754SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27755 PyObject *resultobj = 0;
27756 wxDateTime *arg1 = (wxDateTime *) 0 ;
27757 wxTimeSpan *arg2 = 0 ;
27758 wxDateTime result;
27759 void *argp1 = 0 ;
27760 int res1 = 0 ;
27761 void *argp2 = 0 ;
27762 int res2 = 0 ;
27763
27764 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27766 if (!SWIG_IsOK(res1)) {
27767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27768 }
27769 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27770 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27771 if (!SWIG_IsOK(res2)) {
27772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27773 }
27774 if (!argp2) {
27775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27776 }
27777 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27778 {
27779 PyThreadState* __tstate = wxPyBeginAllowThreads();
27780 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
27781 wxPyEndAllowThreads(__tstate);
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27785 return resultobj;
27786fail:
27787 return NULL;
27788}
27789
27790
27791SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27792 PyObject *resultobj = 0;
27793 wxDateTime *arg1 = (wxDateTime *) 0 ;
27794 wxDateSpan *arg2 = 0 ;
27795 wxDateTime result;
27796 void *argp1 = 0 ;
27797 int res1 = 0 ;
27798 void *argp2 = 0 ;
27799 int res2 = 0 ;
27800
27801 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27803 if (!SWIG_IsOK(res1)) {
27804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27805 }
27806 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27807 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27808 if (!SWIG_IsOK(res2)) {
27809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27810 }
27811 if (!argp2) {
27812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27813 }
27814 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27815 {
27816 PyThreadState* __tstate = wxPyBeginAllowThreads();
27817 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
27818 wxPyEndAllowThreads(__tstate);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27822 return resultobj;
27823fail:
27824 return NULL;
d14a1e28
RD
27825}
27826
27827
0085ce49
RD
27828SWIGINTERN PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
27829 int argc;
27830 PyObject *argv[3];
27831
27832 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___sub__",0,2,argv))) SWIG_fail;
27833 --argc;
27834 if (argc == 2) {
27835 int _v = 0;
d14a1e28 27836 {
0085ce49
RD
27837 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDateTime, 0);
27838 _v = SWIG_CheckState(res);
d14a1e28 27839 }
0085ce49
RD
27840 if (!_v) goto check_1;
27841 return _wrap_DateTime___sub____SWIG_0(self, argc, argv);
27842 }
27843check_1:
27844
27845 if (argc == 2) {
27846 int _v = 0;
d14a1e28 27847 {
0085ce49
RD
27848 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27849 _v = SWIG_CheckState(res);
d14a1e28 27850 }
0085ce49
RD
27851 if (!_v) goto check_2;
27852 return _wrap_DateTime___sub____SWIG_1(self, argc, argv);
27853 }
27854check_2:
27855
27856 if (argc == 2) {
27857 return _wrap_DateTime___sub____SWIG_2(self, argc, argv);
27858 }
27859
27860fail:
27861 Py_INCREF(Py_NotImplemented);
27862 return Py_NotImplemented;
27863}
27864
27865
27866SWIGINTERN PyObject *_wrap_DateTime___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27867 PyObject *resultobj = 0;
27868 wxDateTime *arg1 = (wxDateTime *) 0 ;
27869 wxDateTime *arg2 = (wxDateTime *) 0 ;
27870 bool result;
27871 void *argp1 = 0 ;
27872 int res1 = 0 ;
27873 void *argp2 = 0 ;
27874 int res2 = 0 ;
27875 PyObject * obj0 = 0 ;
27876 PyObject * obj1 = 0 ;
27877 char * kwnames[] = {
27878 (char *) "self",(char *) "other", NULL
27879 };
27880
27881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) SWIG_fail;
27882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27883 if (!SWIG_IsOK(res1)) {
27884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___lt__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27885 }
27886 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
27888 if (!SWIG_IsOK(res2)) {
27889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___lt__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
27890 }
27891 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27892 {
27893 PyThreadState* __tstate = wxPyBeginAllowThreads();
27894 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
27895 wxPyEndAllowThreads(__tstate);
27896 if (PyErr_Occurred()) SWIG_fail;
27897 }
27898 {
27899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27900 }
27901 return resultobj;
27902fail:
27903 return NULL;
27904}
27905
27906
27907SWIGINTERN PyObject *_wrap_DateTime___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27908 PyObject *resultobj = 0;
27909 wxDateTime *arg1 = (wxDateTime *) 0 ;
27910 wxDateTime *arg2 = (wxDateTime *) 0 ;
27911 bool result;
27912 void *argp1 = 0 ;
27913 int res1 = 0 ;
27914 void *argp2 = 0 ;
27915 int res2 = 0 ;
27916 PyObject * obj0 = 0 ;
27917 PyObject * obj1 = 0 ;
27918 char * kwnames[] = {
27919 (char *) "self",(char *) "other", NULL
27920 };
27921
27922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) SWIG_fail;
27923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27924 if (!SWIG_IsOK(res1)) {
27925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___le__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27926 }
27927 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27928 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
27929 if (!SWIG_IsOK(res2)) {
27930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___le__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
27931 }
27932 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27933 {
27934 PyThreadState* __tstate = wxPyBeginAllowThreads();
27935 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
27936 wxPyEndAllowThreads(__tstate);
27937 if (PyErr_Occurred()) SWIG_fail;
27938 }
27939 {
27940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27941 }
27942 return resultobj;
27943fail:
27944 return NULL;
27945}
27946
27947
27948SWIGINTERN PyObject *_wrap_DateTime___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27949 PyObject *resultobj = 0;
27950 wxDateTime *arg1 = (wxDateTime *) 0 ;
27951 wxDateTime *arg2 = (wxDateTime *) 0 ;
27952 bool result;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 void *argp2 = 0 ;
27956 int res2 = 0 ;
27957 PyObject * obj0 = 0 ;
27958 PyObject * obj1 = 0 ;
27959 char * kwnames[] = {
27960 (char *) "self",(char *) "other", NULL
27961 };
27962
27963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) SWIG_fail;
27964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27965 if (!SWIG_IsOK(res1)) {
27966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___gt__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27967 }
27968 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
27970 if (!SWIG_IsOK(res2)) {
27971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___gt__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
27972 }
27973 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27974 {
27975 PyThreadState* __tstate = wxPyBeginAllowThreads();
27976 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
27977 wxPyEndAllowThreads(__tstate);
27978 if (PyErr_Occurred()) SWIG_fail;
27979 }
27980 {
27981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27982 }
27983 return resultobj;
27984fail:
27985 return NULL;
27986}
27987
27988
27989SWIGINTERN PyObject *_wrap_DateTime___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27990 PyObject *resultobj = 0;
27991 wxDateTime *arg1 = (wxDateTime *) 0 ;
27992 wxDateTime *arg2 = (wxDateTime *) 0 ;
27993 bool result;
27994 void *argp1 = 0 ;
27995 int res1 = 0 ;
27996 void *argp2 = 0 ;
27997 int res2 = 0 ;
27998 PyObject * obj0 = 0 ;
27999 PyObject * obj1 = 0 ;
28000 char * kwnames[] = {
28001 (char *) "self",(char *) "other", NULL
28002 };
28003
28004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) SWIG_fail;
28005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28006 if (!SWIG_IsOK(res1)) {
28007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___ge__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28008 }
28009 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28011 if (!SWIG_IsOK(res2)) {
28012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___ge__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28013 }
28014 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28015 {
28016 PyThreadState* __tstate = wxPyBeginAllowThreads();
28017 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
28018 wxPyEndAllowThreads(__tstate);
28019 if (PyErr_Occurred()) SWIG_fail;
28020 }
28021 {
28022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28023 }
28024 return resultobj;
28025fail:
28026 return NULL;
28027}
28028
28029
28030SWIGINTERN PyObject *_wrap_DateTime___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28031 PyObject *resultobj = 0;
28032 wxDateTime *arg1 = (wxDateTime *) 0 ;
28033 wxDateTime *arg2 = (wxDateTime *) 0 ;
28034 bool result;
28035 void *argp1 = 0 ;
28036 int res1 = 0 ;
28037 void *argp2 = 0 ;
28038 int res2 = 0 ;
28039 PyObject * obj0 = 0 ;
28040 PyObject * obj1 = 0 ;
28041 char * kwnames[] = {
28042 (char *) "self",(char *) "other", NULL
28043 };
28044
28045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
28046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28047 if (!SWIG_IsOK(res1)) {
28048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___eq__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28049 }
28050 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28051 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28052 if (!SWIG_IsOK(res2)) {
28053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___eq__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28054 }
28055 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28056 {
28057 PyThreadState* __tstate = wxPyBeginAllowThreads();
28058 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 {
28063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28064 }
28065 return resultobj;
28066fail:
28067 return NULL;
28068}
28069
28070
28071SWIGINTERN PyObject *_wrap_DateTime___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28072 PyObject *resultobj = 0;
28073 wxDateTime *arg1 = (wxDateTime *) 0 ;
28074 wxDateTime *arg2 = (wxDateTime *) 0 ;
28075 bool result;
28076 void *argp1 = 0 ;
28077 int res1 = 0 ;
28078 void *argp2 = 0 ;
28079 int res2 = 0 ;
28080 PyObject * obj0 = 0 ;
28081 PyObject * obj1 = 0 ;
28082 char * kwnames[] = {
28083 (char *) "self",(char *) "other", NULL
28084 };
28085
28086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
28087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28088 if (!SWIG_IsOK(res1)) {
28089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___ne__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28090 }
28091 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28093 if (!SWIG_IsOK(res2)) {
28094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___ne__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28095 }
28096 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28097 {
28098 PyThreadState* __tstate = wxPyBeginAllowThreads();
28099 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
28100 wxPyEndAllowThreads(__tstate);
28101 if (PyErr_Occurred()) SWIG_fail;
28102 }
28103 {
28104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28105 }
28106 return resultobj;
28107fail:
28108 return NULL;
28109}
28110
28111
28112SWIGINTERN PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28113 PyObject *resultobj = 0;
28114 wxDateTime *arg1 = (wxDateTime *) 0 ;
28115 wxString *arg2 = 0 ;
28116 int result;
28117 void *argp1 = 0 ;
28118 int res1 = 0 ;
28119 bool temp2 = false ;
28120 PyObject * obj0 = 0 ;
28121 PyObject * obj1 = 0 ;
28122 char * kwnames[] = {
28123 (char *) "self",(char *) "date", NULL
28124 };
28125
28126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) SWIG_fail;
28127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28128 if (!SWIG_IsOK(res1)) {
28129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseRfc822Date" "', expected argument " "1"" of type '" "wxDateTime *""'");
28130 }
28131 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28132 {
28133 arg2 = wxString_in_helper(obj1);
28134 if (arg2 == NULL) SWIG_fail;
28135 temp2 = true;
28136 }
28137 {
28138 PyThreadState* __tstate = wxPyBeginAllowThreads();
28139 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
28140 wxPyEndAllowThreads(__tstate);
28141 if (PyErr_Occurred()) SWIG_fail;
28142 }
28143 resultobj = SWIG_From_int(static_cast< int >(result));
28144 {
28145 if (temp2)
28146 delete arg2;
28147 }
28148 return resultobj;
28149fail:
28150 {
28151 if (temp2)
28152 delete arg2;
28153 }
28154 return NULL;
28155}
28156
28157
28158SWIGINTERN PyObject *_wrap_DateTime_ParseFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28159 PyObject *resultobj = 0;
28160 wxDateTime *arg1 = (wxDateTime *) 0 ;
28161 wxString *arg2 = 0 ;
28162 wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ;
28163 wxString *arg3 = (wxString *) &arg3_defvalue ;
28164 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
28165 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
28166 int result;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 bool temp2 = false ;
28170 bool temp3 = false ;
28171 void *argp4 = 0 ;
28172 int res4 = 0 ;
28173 PyObject * obj0 = 0 ;
28174 PyObject * obj1 = 0 ;
28175 PyObject * obj2 = 0 ;
28176 PyObject * obj3 = 0 ;
28177 char * kwnames[] = {
28178 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
28179 };
28180
28181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28183 if (!SWIG_IsOK(res1)) {
28184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseFormat" "', expected argument " "1"" of type '" "wxDateTime *""'");
28185 }
28186 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28187 {
28188 arg2 = wxString_in_helper(obj1);
28189 if (arg2 == NULL) SWIG_fail;
28190 temp2 = true;
28191 }
28192 if (obj2) {
4f89f6a3 28193 {
0085ce49
RD
28194 arg3 = wxString_in_helper(obj2);
28195 if (arg3 == NULL) SWIG_fail;
28196 temp3 = true;
28197 }
28198 }
28199 if (obj3) {
28200 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
28201 if (!SWIG_IsOK(res4)) {
28202 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DateTime_ParseFormat" "', expected argument " "4"" of type '" "wxDateTime const &""'");
28203 }
28204 if (!argp4) {
28205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_ParseFormat" "', expected argument " "4"" of type '" "wxDateTime const &""'");
4f89f6a3 28206 }
0085ce49
RD
28207 arg4 = reinterpret_cast< wxDateTime * >(argp4);
28208 }
28209 {
28210 PyThreadState* __tstate = wxPyBeginAllowThreads();
28211 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
28212 wxPyEndAllowThreads(__tstate);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 resultobj = SWIG_From_int(static_cast< int >(result));
28216 {
28217 if (temp2)
28218 delete arg2;
28219 }
28220 {
28221 if (temp3)
28222 delete arg3;
28223 }
28224 return resultobj;
28225fail:
28226 {
28227 if (temp2)
28228 delete arg2;
28229 }
28230 {
28231 if (temp3)
28232 delete arg3;
28233 }
28234 return NULL;
28235}
28236
28237
28238SWIGINTERN PyObject *_wrap_DateTime_ParseDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28239 PyObject *resultobj = 0;
28240 wxDateTime *arg1 = (wxDateTime *) 0 ;
28241 wxString *arg2 = 0 ;
28242 int result;
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
28245 bool temp2 = false ;
28246 PyObject * obj0 = 0 ;
28247 PyObject * obj1 = 0 ;
28248 char * kwnames[] = {
28249 (char *) "self",(char *) "datetime", NULL
28250 };
28251
28252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) SWIG_fail;
28253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28254 if (!SWIG_IsOK(res1)) {
28255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseDateTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
28256 }
28257 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28258 {
28259 arg2 = wxString_in_helper(obj1);
28260 if (arg2 == NULL) SWIG_fail;
28261 temp2 = true;
28262 }
28263 {
28264 PyThreadState* __tstate = wxPyBeginAllowThreads();
28265 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
28266 wxPyEndAllowThreads(__tstate);
28267 if (PyErr_Occurred()) SWIG_fail;
28268 }
28269 resultobj = SWIG_From_int(static_cast< int >(result));
28270 {
28271 if (temp2)
28272 delete arg2;
28273 }
28274 return resultobj;
28275fail:
28276 {
28277 if (temp2)
28278 delete arg2;
28279 }
28280 return NULL;
28281}
28282
28283
28284SWIGINTERN PyObject *_wrap_DateTime_ParseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28285 PyObject *resultobj = 0;
28286 wxDateTime *arg1 = (wxDateTime *) 0 ;
28287 wxString *arg2 = 0 ;
28288 int result;
28289 void *argp1 = 0 ;
28290 int res1 = 0 ;
28291 bool temp2 = false ;
28292 PyObject * obj0 = 0 ;
28293 PyObject * obj1 = 0 ;
28294 char * kwnames[] = {
28295 (char *) "self",(char *) "date", NULL
28296 };
28297
28298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) SWIG_fail;
28299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28300 if (!SWIG_IsOK(res1)) {
28301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseDate" "', expected argument " "1"" of type '" "wxDateTime *""'");
28302 }
28303 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28304 {
28305 arg2 = wxString_in_helper(obj1);
28306 if (arg2 == NULL) SWIG_fail;
28307 temp2 = true;
28308 }
28309 {
28310 PyThreadState* __tstate = wxPyBeginAllowThreads();
28311 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 resultobj = SWIG_From_int(static_cast< int >(result));
28316 {
28317 if (temp2)
28318 delete arg2;
28319 }
28320 return resultobj;
28321fail:
28322 {
28323 if (temp2)
28324 delete arg2;
28325 }
28326 return NULL;
28327}
28328
28329
28330SWIGINTERN PyObject *_wrap_DateTime_ParseTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28331 PyObject *resultobj = 0;
28332 wxDateTime *arg1 = (wxDateTime *) 0 ;
28333 wxString *arg2 = 0 ;
28334 int result;
28335 void *argp1 = 0 ;
28336 int res1 = 0 ;
28337 bool temp2 = false ;
28338 PyObject * obj0 = 0 ;
28339 PyObject * obj1 = 0 ;
28340 char * kwnames[] = {
28341 (char *) "self",(char *) "time", NULL
28342 };
28343
28344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) SWIG_fail;
28345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28346 if (!SWIG_IsOK(res1)) {
28347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
28348 }
28349 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28350 {
28351 arg2 = wxString_in_helper(obj1);
28352 if (arg2 == NULL) SWIG_fail;
28353 temp2 = true;
28354 }
28355 {
28356 PyThreadState* __tstate = wxPyBeginAllowThreads();
28357 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
28358 wxPyEndAllowThreads(__tstate);
28359 if (PyErr_Occurred()) SWIG_fail;
28360 }
28361 resultobj = SWIG_From_int(static_cast< int >(result));
28362 {
28363 if (temp2)
28364 delete arg2;
28365 }
28366 return resultobj;
28367fail:
28368 {
28369 if (temp2)
28370 delete arg2;
28371 }
28372 return NULL;
28373}
28374
28375
28376SWIGINTERN PyObject *_wrap_DateTime_Format(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28377 PyObject *resultobj = 0;
28378 wxDateTime *arg1 = (wxDateTime *) 0 ;
28379 wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ;
28380 wxString *arg2 = (wxString *) &arg2_defvalue ;
28381 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
28382 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
28383 wxString result;
28384 void *argp1 = 0 ;
28385 int res1 = 0 ;
28386 bool temp2 = false ;
28387 bool temp3 = false ;
28388 PyObject * obj0 = 0 ;
28389 PyObject * obj1 = 0 ;
28390 PyObject * obj2 = 0 ;
28391 char * kwnames[] = {
28392 (char *) "self",(char *) "format",(char *) "tz", NULL
28393 };
28394
28395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28397 if (!SWIG_IsOK(res1)) {
28398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Format" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28399 }
28400 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28401 if (obj1) {
d14a1e28 28402 {
0085ce49
RD
28403 arg2 = wxString_in_helper(obj1);
28404 if (arg2 == NULL) SWIG_fail;
28405 temp2 = true;
d14a1e28 28406 }
0085ce49
RD
28407 }
28408 if (obj2) {
d14a1e28 28409 {
0085ce49
RD
28410 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
28411 temp3 = true;
d14a1e28 28412 }
0085ce49
RD
28413 }
28414 {
28415 PyThreadState* __tstate = wxPyBeginAllowThreads();
28416 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
28417 wxPyEndAllowThreads(__tstate);
28418 if (PyErr_Occurred()) SWIG_fail;
28419 }
28420 {
28421#if wxUSE_UNICODE
28422 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28423#else
28424 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28425#endif
28426 }
28427 {
28428 if (temp2)
28429 delete arg2;
28430 }
28431 {
28432 if (temp3) delete arg3;
28433 }
28434 return resultobj;
28435fail:
28436 {
28437 if (temp2)
28438 delete arg2;
28439 }
28440 {
28441 if (temp3) delete arg3;
28442 }
28443 return NULL;
d14a1e28
RD
28444}
28445
28446
0085ce49
RD
28447SWIGINTERN PyObject *_wrap_DateTime_FormatDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28448 PyObject *resultobj = 0;
28449 wxDateTime *arg1 = (wxDateTime *) 0 ;
28450 wxString result;
28451 void *argp1 = 0 ;
28452 int res1 = 0 ;
28453 PyObject *swig_obj[1] ;
28454
28455 if (!args) SWIG_fail;
28456 swig_obj[0] = args;
28457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28458 if (!SWIG_IsOK(res1)) {
28459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatDate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28460 }
28461 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28462 {
28463 PyThreadState* __tstate = wxPyBeginAllowThreads();
28464 result = ((wxDateTime const *)arg1)->FormatDate();
28465 wxPyEndAllowThreads(__tstate);
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
28468 {
28469#if wxUSE_UNICODE
28470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28471#else
28472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28473#endif
28474 }
28475 return resultobj;
28476fail:
28477 return NULL;
d14a1e28
RD
28478}
28479
28480
0085ce49
RD
28481SWIGINTERN PyObject *_wrap_DateTime_FormatTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28482 PyObject *resultobj = 0;
28483 wxDateTime *arg1 = (wxDateTime *) 0 ;
28484 wxString result;
28485 void *argp1 = 0 ;
28486 int res1 = 0 ;
28487 PyObject *swig_obj[1] ;
28488
28489 if (!args) SWIG_fail;
28490 swig_obj[0] = args;
28491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28492 if (!SWIG_IsOK(res1)) {
28493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28494 }
28495 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28496 {
28497 PyThreadState* __tstate = wxPyBeginAllowThreads();
28498 result = ((wxDateTime const *)arg1)->FormatTime();
28499 wxPyEndAllowThreads(__tstate);
28500 if (PyErr_Occurred()) SWIG_fail;
28501 }
28502 {
28503#if wxUSE_UNICODE
28504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28505#else
28506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28507#endif
28508 }
28509 return resultobj;
28510fail:
28511 return NULL;
d14a1e28
RD
28512}
28513
28514
0085ce49
RD
28515SWIGINTERN PyObject *_wrap_DateTime_FormatISODate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28516 PyObject *resultobj = 0;
28517 wxDateTime *arg1 = (wxDateTime *) 0 ;
28518 wxString result;
28519 void *argp1 = 0 ;
28520 int res1 = 0 ;
28521 PyObject *swig_obj[1] ;
28522
28523 if (!args) SWIG_fail;
28524 swig_obj[0] = args;
28525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatISODate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28528 }
28529 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28530 {
28531 PyThreadState* __tstate = wxPyBeginAllowThreads();
28532 result = ((wxDateTime const *)arg1)->FormatISODate();
28533 wxPyEndAllowThreads(__tstate);
28534 if (PyErr_Occurred()) SWIG_fail;
28535 }
28536 {
28537#if wxUSE_UNICODE
28538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28539#else
28540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28541#endif
28542 }
28543 return resultobj;
28544fail:
28545 return NULL;
d14a1e28
RD
28546}
28547
28548
0085ce49
RD
28549SWIGINTERN PyObject *_wrap_DateTime_FormatISOTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28550 PyObject *resultobj = 0;
28551 wxDateTime *arg1 = (wxDateTime *) 0 ;
28552 wxString result;
28553 void *argp1 = 0 ;
28554 int res1 = 0 ;
28555 PyObject *swig_obj[1] ;
28556
28557 if (!args) SWIG_fail;
28558 swig_obj[0] = args;
28559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28560 if (!SWIG_IsOK(res1)) {
28561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatISOTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28562 }
28563 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28564 {
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 result = ((wxDateTime const *)arg1)->FormatISOTime();
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 {
28571#if wxUSE_UNICODE
28572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28573#else
28574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28575#endif
28576 }
28577 return resultobj;
28578fail:
28579 return NULL;
d14a1e28
RD
28580}
28581
28582
0085ce49
RD
28583SWIGINTERN PyObject *DateTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28584 PyObject *obj;
28585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28586 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateTime, SWIG_NewClientData(obj));
28587 return SWIG_Py_Void();
d14a1e28
RD
28588}
28589
0085ce49
RD
28590SWIGINTERN PyObject *DateTime_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28591 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
28592}
28593
e9d6f3a4
RD
28594SWIGINTERN PyObject *_wrap_TimeSpan_Milliseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj = 0;
28596 long arg1 ;
28597 wxTimeSpan result;
28598 long val1 ;
28599 int ecode1 = 0 ;
28600 PyObject * obj0 = 0 ;
28601 char * kwnames[] = {
28602 (char *) "ms", NULL
28603 };
28604
28605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Milliseconds",kwnames,&obj0)) SWIG_fail;
28606 ecode1 = SWIG_AsVal_long(obj0, &val1);
28607 if (!SWIG_IsOK(ecode1)) {
28608 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Milliseconds" "', expected argument " "1"" of type '" "long""'");
28609 }
28610 arg1 = static_cast< long >(val1);
28611 {
28612 PyThreadState* __tstate = wxPyBeginAllowThreads();
28613 result = wxTimeSpan::Milliseconds(arg1);
28614 wxPyEndAllowThreads(__tstate);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28618 return resultobj;
28619fail:
28620 return NULL;
28621}
28622
28623
28624SWIGINTERN PyObject *_wrap_TimeSpan_Millisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28625 PyObject *resultobj = 0;
28626 wxTimeSpan result;
28627
28628 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Millisecond",0,0,0)) SWIG_fail;
28629 {
28630 PyThreadState* __tstate = wxPyBeginAllowThreads();
28631 result = wxTimeSpan::Millisecond();
28632 wxPyEndAllowThreads(__tstate);
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28636 return resultobj;
28637fail:
28638 return NULL;
28639}
28640
28641
0085ce49
RD
28642SWIGINTERN PyObject *_wrap_TimeSpan_Seconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28643 PyObject *resultobj = 0;
28644 long arg1 ;
28645 wxTimeSpan result;
28646 long val1 ;
28647 int ecode1 = 0 ;
28648 PyObject * obj0 = 0 ;
28649 char * kwnames[] = {
28650 (char *) "sec", NULL
28651 };
28652
28653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) SWIG_fail;
28654 ecode1 = SWIG_AsVal_long(obj0, &val1);
28655 if (!SWIG_IsOK(ecode1)) {
28656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Seconds" "', expected argument " "1"" of type '" "long""'");
28657 }
28658 arg1 = static_cast< long >(val1);
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 result = wxTimeSpan::Seconds(arg1);
28662 wxPyEndAllowThreads(__tstate);
28663 if (PyErr_Occurred()) SWIG_fail;
28664 }
28665 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28666 return resultobj;
28667fail:
28668 return NULL;
d14a1e28
RD
28669}
28670
28671
0085ce49
RD
28672SWIGINTERN PyObject *_wrap_TimeSpan_Second(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28673 PyObject *resultobj = 0;
28674 wxTimeSpan result;
28675
28676 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Second",0,0,0)) SWIG_fail;
28677 {
28678 PyThreadState* __tstate = wxPyBeginAllowThreads();
28679 result = wxTimeSpan::Second();
28680 wxPyEndAllowThreads(__tstate);
28681 if (PyErr_Occurred()) SWIG_fail;
28682 }
28683 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28684 return resultobj;
28685fail:
28686 return NULL;
28687}
28688
28689
28690SWIGINTERN PyObject *_wrap_TimeSpan_Minutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28691 PyObject *resultobj = 0;
28692 long arg1 ;
28693 wxTimeSpan result;
28694 long val1 ;
28695 int ecode1 = 0 ;
28696 PyObject * obj0 = 0 ;
28697 char * kwnames[] = {
28698 (char *) "min", NULL
28699 };
28700
28701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) SWIG_fail;
28702 ecode1 = SWIG_AsVal_long(obj0, &val1);
28703 if (!SWIG_IsOK(ecode1)) {
28704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Minutes" "', expected argument " "1"" of type '" "long""'");
28705 }
28706 arg1 = static_cast< long >(val1);
28707 {
28708 PyThreadState* __tstate = wxPyBeginAllowThreads();
28709 result = wxTimeSpan::Minutes(arg1);
28710 wxPyEndAllowThreads(__tstate);
28711 if (PyErr_Occurred()) SWIG_fail;
28712 }
28713 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28714 return resultobj;
28715fail:
28716 return NULL;
d14a1e28
RD
28717}
28718
28719
0085ce49
RD
28720SWIGINTERN PyObject *_wrap_TimeSpan_Minute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28721 PyObject *resultobj = 0;
28722 wxTimeSpan result;
28723
28724 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Minute",0,0,0)) SWIG_fail;
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 result = wxTimeSpan::Minute();
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
28731 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28732 return resultobj;
28733fail:
28734 return NULL;
28735}
28736
28737
28738SWIGINTERN PyObject *_wrap_TimeSpan_Hours(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28739 PyObject *resultobj = 0;
28740 long arg1 ;
28741 wxTimeSpan result;
28742 long val1 ;
28743 int ecode1 = 0 ;
28744 PyObject * obj0 = 0 ;
28745 char * kwnames[] = {
28746 (char *) "hours", NULL
28747 };
28748
28749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) SWIG_fail;
28750 ecode1 = SWIG_AsVal_long(obj0, &val1);
28751 if (!SWIG_IsOK(ecode1)) {
28752 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Hours" "', expected argument " "1"" of type '" "long""'");
28753 }
28754 arg1 = static_cast< long >(val1);
28755 {
28756 PyThreadState* __tstate = wxPyBeginAllowThreads();
28757 result = wxTimeSpan::Hours(arg1);
28758 wxPyEndAllowThreads(__tstate);
28759 if (PyErr_Occurred()) SWIG_fail;
28760 }
28761 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28762 return resultobj;
28763fail:
28764 return NULL;
d14a1e28
RD
28765}
28766
28767
0085ce49
RD
28768SWIGINTERN PyObject *_wrap_TimeSpan_Hour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28769 PyObject *resultobj = 0;
28770 wxTimeSpan result;
28771
28772 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Hour",0,0,0)) SWIG_fail;
28773 {
28774 PyThreadState* __tstate = wxPyBeginAllowThreads();
28775 result = wxTimeSpan::Hour();
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28780 return resultobj;
28781fail:
28782 return NULL;
28783}
28784
28785
28786SWIGINTERN PyObject *_wrap_TimeSpan_Days(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28787 PyObject *resultobj = 0;
28788 long arg1 ;
28789 wxTimeSpan result;
28790 long val1 ;
28791 int ecode1 = 0 ;
28792 PyObject * obj0 = 0 ;
28793 char * kwnames[] = {
28794 (char *) "days", NULL
28795 };
28796
28797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) SWIG_fail;
28798 ecode1 = SWIG_AsVal_long(obj0, &val1);
28799 if (!SWIG_IsOK(ecode1)) {
28800 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Days" "', expected argument " "1"" of type '" "long""'");
28801 }
28802 arg1 = static_cast< long >(val1);
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 result = wxTimeSpan::Days(arg1);
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28810 return resultobj;
28811fail:
28812 return NULL;
d14a1e28
RD
28813}
28814
28815
0085ce49
RD
28816SWIGINTERN PyObject *_wrap_TimeSpan_Day(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28817 PyObject *resultobj = 0;
28818 wxTimeSpan result;
28819
28820 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Day",0,0,0)) SWIG_fail;
28821 {
28822 PyThreadState* __tstate = wxPyBeginAllowThreads();
28823 result = wxTimeSpan::Day();
28824 wxPyEndAllowThreads(__tstate);
28825 if (PyErr_Occurred()) SWIG_fail;
28826 }
28827 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28828 return resultobj;
28829fail:
28830 return NULL;
28831}
28832
28833
28834SWIGINTERN PyObject *_wrap_TimeSpan_Weeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 long arg1 ;
28837 wxTimeSpan result;
28838 long val1 ;
28839 int ecode1 = 0 ;
28840 PyObject * obj0 = 0 ;
28841 char * kwnames[] = {
28842 (char *) "days", NULL
28843 };
28844
28845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) SWIG_fail;
28846 ecode1 = SWIG_AsVal_long(obj0, &val1);
28847 if (!SWIG_IsOK(ecode1)) {
28848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Weeks" "', expected argument " "1"" of type '" "long""'");
28849 }
28850 arg1 = static_cast< long >(val1);
28851 {
28852 PyThreadState* __tstate = wxPyBeginAllowThreads();
28853 result = wxTimeSpan::Weeks(arg1);
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28858 return resultobj;
28859fail:
28860 return NULL;
d14a1e28
RD
28861}
28862
28863
0085ce49
RD
28864SWIGINTERN PyObject *_wrap_TimeSpan_Week(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28865 PyObject *resultobj = 0;
28866 wxTimeSpan result;
28867
28868 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Week",0,0,0)) SWIG_fail;
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 result = wxTimeSpan::Week();
28872 wxPyEndAllowThreads(__tstate);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 }
28875 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28876 return resultobj;
28877fail:
28878 return NULL;
28879}
28880
28881
28882SWIGINTERN PyObject *_wrap_new_TimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28883 PyObject *resultobj = 0;
28884 long arg1 = (long) 0 ;
28885 long arg2 = (long) 0 ;
28886 long arg3 = (long) 0 ;
28887 long arg4 = (long) 0 ;
28888 wxTimeSpan *result = 0 ;
28889 long val1 ;
28890 int ecode1 = 0 ;
28891 long val2 ;
28892 int ecode2 = 0 ;
28893 long val3 ;
28894 int ecode3 = 0 ;
28895 long val4 ;
28896 int ecode4 = 0 ;
28897 PyObject * obj0 = 0 ;
28898 PyObject * obj1 = 0 ;
28899 PyObject * obj2 = 0 ;
28900 PyObject * obj3 = 0 ;
28901 char * kwnames[] = {
28902 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
28903 };
28904
28905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28906 if (obj0) {
28907 ecode1 = SWIG_AsVal_long(obj0, &val1);
28908 if (!SWIG_IsOK(ecode1)) {
28909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimeSpan" "', expected argument " "1"" of type '" "long""'");
28910 }
28911 arg1 = static_cast< long >(val1);
28912 }
28913 if (obj1) {
28914 ecode2 = SWIG_AsVal_long(obj1, &val2);
28915 if (!SWIG_IsOK(ecode2)) {
28916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimeSpan" "', expected argument " "2"" of type '" "long""'");
28917 }
28918 arg2 = static_cast< long >(val2);
28919 }
28920 if (obj2) {
28921 ecode3 = SWIG_AsVal_long(obj2, &val3);
28922 if (!SWIG_IsOK(ecode3)) {
28923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TimeSpan" "', expected argument " "3"" of type '" "long""'");
28924 }
28925 arg3 = static_cast< long >(val3);
28926 }
28927 if (obj3) {
28928 ecode4 = SWIG_AsVal_long(obj3, &val4);
28929 if (!SWIG_IsOK(ecode4)) {
28930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TimeSpan" "', expected argument " "4"" of type '" "long""'");
28931 }
28932 arg4 = static_cast< long >(val4);
28933 }
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_NEW | 0 );
28941 return resultobj;
28942fail:
28943 return NULL;
d14a1e28
RD
28944}
28945
28946
0085ce49
RD
28947SWIGINTERN PyObject *_wrap_delete_TimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28948 PyObject *resultobj = 0;
28949 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
28950 void *argp1 = 0 ;
28951 int res1 = 0 ;
28952 PyObject *swig_obj[1] ;
28953
28954 if (!args) SWIG_fail;
28955 swig_obj[0] = args;
28956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeSpan" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
28959 }
28960 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
28961 {
28962 PyThreadState* __tstate = wxPyBeginAllowThreads();
28963 delete arg1;
d14a1e28 28964
0085ce49
RD
28965 wxPyEndAllowThreads(__tstate);
28966 if (PyErr_Occurred()) SWIG_fail;
28967 }
28968 resultobj = SWIG_Py_Void();
28969 return resultobj;
28970fail:
28971 return NULL;
28972}
28973
28974
28975SWIGINTERN PyObject *_wrap_TimeSpan_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28976 PyObject *resultobj = 0;
28977 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
28978 wxTimeSpan *arg2 = 0 ;
28979 wxTimeSpan *result = 0 ;
28980 void *argp1 = 0 ;
28981 int res1 = 0 ;
28982 void *argp2 = 0 ;
28983 int res2 = 0 ;
28984 PyObject * obj0 = 0 ;
28985 PyObject * obj1 = 0 ;
28986 char * kwnames[] = {
28987 (char *) "self",(char *) "diff", NULL
28988 };
28989
28990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) SWIG_fail;
28991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
28992 if (!SWIG_IsOK(res1)) {
28993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Add" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
28994 }
28995 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
28996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
28997 if (!SWIG_IsOK(res2)) {
28998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_Add" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
28999 }
29000 if (!argp2) {
29001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_Add" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29002 }
29003 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 29006 {
0085ce49
RD
29007 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
29008 result = (wxTimeSpan *) &_result_ref;
d14a1e28 29009 }
0085ce49
RD
29010 wxPyEndAllowThreads(__tstate);
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29014 return resultobj;
29015fail:
29016 return NULL;
29017}
29018
29019
29020SWIGINTERN PyObject *_wrap_TimeSpan_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29021 PyObject *resultobj = 0;
29022 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29023 wxTimeSpan *arg2 = 0 ;
29024 wxTimeSpan *result = 0 ;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 void *argp2 = 0 ;
29028 int res2 = 0 ;
29029 PyObject * obj0 = 0 ;
29030 PyObject * obj1 = 0 ;
29031 char * kwnames[] = {
29032 (char *) "self",(char *) "diff", NULL
29033 };
29034
29035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
29036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29037 if (!SWIG_IsOK(res1)) {
29038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Subtract" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29039 }
29040 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29042 if (!SWIG_IsOK(res2)) {
29043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_Subtract" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29044 }
29045 if (!argp2) {
29046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_Subtract" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29047 }
29048 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29049 {
29050 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 29051 {
0085ce49
RD
29052 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
29053 result = (wxTimeSpan *) &_result_ref;
d14a1e28 29054 }
0085ce49
RD
29055 wxPyEndAllowThreads(__tstate);
29056 if (PyErr_Occurred()) SWIG_fail;
29057 }
29058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29059 return resultobj;
29060fail:
29061 return NULL;
29062}
29063
29064
29065SWIGINTERN PyObject *_wrap_TimeSpan_Multiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29066 PyObject *resultobj = 0;
29067 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29068 int arg2 ;
29069 wxTimeSpan *result = 0 ;
29070 void *argp1 = 0 ;
29071 int res1 = 0 ;
29072 int val2 ;
29073 int ecode2 = 0 ;
29074 PyObject * obj0 = 0 ;
29075 PyObject * obj1 = 0 ;
29076 char * kwnames[] = {
29077 (char *) "self",(char *) "n", NULL
29078 };
29079
29080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) SWIG_fail;
29081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29082 if (!SWIG_IsOK(res1)) {
29083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Multiply" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29084 }
29085 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29086 ecode2 = SWIG_AsVal_int(obj1, &val2);
29087 if (!SWIG_IsOK(ecode2)) {
29088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan_Multiply" "', expected argument " "2"" of type '" "int""'");
29089 }
29090 arg2 = static_cast< int >(val2);
29091 {
29092 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 29093 {
0085ce49
RD
29094 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
29095 result = (wxTimeSpan *) &_result_ref;
d14a1e28 29096 }
0085ce49
RD
29097 wxPyEndAllowThreads(__tstate);
29098 if (PyErr_Occurred()) SWIG_fail;
29099 }
29100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29101 return resultobj;
29102fail:
29103 return NULL;
d14a1e28
RD
29104}
29105
29106
0085ce49
RD
29107SWIGINTERN PyObject *_wrap_TimeSpan_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29108 PyObject *resultobj = 0;
29109 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29110 wxTimeSpan *result = 0 ;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 PyObject *swig_obj[1] ;
29114
29115 if (!args) SWIG_fail;
29116 swig_obj[0] = args;
29117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29118 if (!SWIG_IsOK(res1)) {
29119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Neg" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29120 }
29121 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29122 {
29123 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 29124 {
0085ce49
RD
29125 wxTimeSpan &_result_ref = (arg1)->Neg();
29126 result = (wxTimeSpan *) &_result_ref;
d14a1e28 29127 }
0085ce49
RD
29128 wxPyEndAllowThreads(__tstate);
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29132 return resultobj;
29133fail:
29134 return NULL;
d14a1e28
RD
29135}
29136
29137
0085ce49
RD
29138SWIGINTERN PyObject *_wrap_TimeSpan_Abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29139 PyObject *resultobj = 0;
29140 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29141 wxTimeSpan result;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 PyObject *swig_obj[1] ;
29145
29146 if (!args) SWIG_fail;
29147 swig_obj[0] = args;
29148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Abs" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29151 }
29152 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29153 {
29154 PyThreadState* __tstate = wxPyBeginAllowThreads();
29155 result = ((wxTimeSpan const *)arg1)->Abs();
29156 wxPyEndAllowThreads(__tstate);
29157 if (PyErr_Occurred()) SWIG_fail;
29158 }
29159 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29160 return resultobj;
29161fail:
29162 return NULL;
29163}
29164
29165
29166SWIGINTERN PyObject *_wrap_TimeSpan___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29167 PyObject *resultobj = 0;
29168 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29169 wxTimeSpan *arg2 = 0 ;
29170 wxTimeSpan *result = 0 ;
29171 void *argp1 = 0 ;
29172 int res1 = 0 ;
29173 void *argp2 = 0 ;
29174 int res2 = 0 ;
29175 PyObject * obj0 = 0 ;
29176 PyObject * obj1 = 0 ;
29177 char * kwnames[] = {
29178 (char *) "self",(char *) "diff", NULL
29179 };
29180
29181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
29182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29183 if (!SWIG_IsOK(res1)) {
29184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___iadd__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29185 }
29186 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29188 if (!SWIG_IsOK(res2)) {
29189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29190 }
29191 if (!argp2) {
29192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29193 }
29194 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29195 {
29196 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 29197 {
0085ce49
RD
29198 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
29199 result = (wxTimeSpan *) &_result_ref;
b88bce5f 29200 }
0085ce49
RD
29201 wxPyEndAllowThreads(__tstate);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29205 return resultobj;
29206fail:
29207 return NULL;
29208}
29209
29210
29211SWIGINTERN PyObject *_wrap_TimeSpan___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29212 PyObject *resultobj = 0;
29213 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29214 wxTimeSpan *arg2 = 0 ;
29215 wxTimeSpan *result = 0 ;
29216 void *argp1 = 0 ;
29217 int res1 = 0 ;
29218 void *argp2 = 0 ;
29219 int res2 = 0 ;
29220 PyObject * obj0 = 0 ;
29221 PyObject * obj1 = 0 ;
29222 char * kwnames[] = {
29223 (char *) "self",(char *) "diff", NULL
29224 };
29225
29226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
29227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29228 if (!SWIG_IsOK(res1)) {
29229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___isub__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29230 }
29231 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29233 if (!SWIG_IsOK(res2)) {
29234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29235 }
29236 if (!argp2) {
29237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29238 }
29239 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29240 {
29241 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 29242 {
0085ce49
RD
29243 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
29244 result = (wxTimeSpan *) &_result_ref;
b88bce5f 29245 }
0085ce49
RD
29246 wxPyEndAllowThreads(__tstate);
29247 if (PyErr_Occurred()) SWIG_fail;
29248 }
29249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29250 return resultobj;
29251fail:
29252 return NULL;
29253}
29254
29255
29256SWIGINTERN PyObject *_wrap_TimeSpan___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29257 PyObject *resultobj = 0;
29258 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29259 int arg2 ;
29260 wxTimeSpan *result = 0 ;
29261 void *argp1 = 0 ;
29262 int res1 = 0 ;
29263 int val2 ;
29264 int ecode2 = 0 ;
29265 PyObject * obj0 = 0 ;
29266 PyObject * obj1 = 0 ;
29267 char * kwnames[] = {
29268 (char *) "self",(char *) "n", NULL
29269 };
29270
29271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
29272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29273 if (!SWIG_IsOK(res1)) {
29274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___imul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29275 }
29276 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29277 ecode2 = SWIG_AsVal_int(obj1, &val2);
29278 if (!SWIG_IsOK(ecode2)) {
29279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___imul__" "', expected argument " "2"" of type '" "int""'");
29280 }
29281 arg2 = static_cast< int >(val2);
29282 {
29283 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 29284 {
0085ce49
RD
29285 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
29286 result = (wxTimeSpan *) &_result_ref;
b88bce5f 29287 }
0085ce49
RD
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29292 return resultobj;
29293fail:
29294 return NULL;
b88bce5f
RD
29295}
29296
29297
0085ce49
RD
29298SWIGINTERN PyObject *_wrap_TimeSpan___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29299 PyObject *resultobj = 0;
29300 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29301 wxTimeSpan *result = 0 ;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 PyObject *swig_obj[1] ;
29305
29306 if (!args) SWIG_fail;
29307 swig_obj[0] = args;
29308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29309 if (!SWIG_IsOK(res1)) {
29310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___neg__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29311 }
29312 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29313 {
29314 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 29315 {
0085ce49
RD
29316 wxTimeSpan &_result_ref = (arg1)->operator -();
29317 result = (wxTimeSpan *) &_result_ref;
b88bce5f 29318 }
0085ce49
RD
29319 wxPyEndAllowThreads(__tstate);
29320 if (PyErr_Occurred()) SWIG_fail;
29321 }
29322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29323 return resultobj;
29324fail:
29325 return NULL;
29326}
29327
29328
29329SWIGINTERN PyObject *_wrap_TimeSpan___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29330 PyObject *resultobj = 0;
29331 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29332 wxTimeSpan *arg2 = 0 ;
29333 wxTimeSpan result;
29334 void *argp1 = 0 ;
29335 int res1 = 0 ;
29336 void *argp2 = 0 ;
29337 int res2 = 0 ;
29338 PyObject * obj0 = 0 ;
29339 PyObject * obj1 = 0 ;
29340 char * kwnames[] = {
29341 (char *) "self",(char *) "other", NULL
29342 };
29343
29344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) SWIG_fail;
29345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29346 if (!SWIG_IsOK(res1)) {
29347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___add__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29348 }
29349 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29351 if (!SWIG_IsOK(res2)) {
29352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29353 }
29354 if (!argp2) {
29355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29356 }
29357 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29358 {
29359 PyThreadState* __tstate = wxPyBeginAllowThreads();
29360 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29365 return resultobj;
29366fail:
29367 return NULL;
29368}
29369
29370
29371SWIGINTERN PyObject *_wrap_TimeSpan___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29372 PyObject *resultobj = 0;
29373 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29374 wxTimeSpan *arg2 = 0 ;
29375 wxTimeSpan result;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 void *argp2 = 0 ;
29379 int res2 = 0 ;
29380 PyObject * obj0 = 0 ;
29381 PyObject * obj1 = 0 ;
29382 char * kwnames[] = {
29383 (char *) "self",(char *) "other", NULL
29384 };
29385
29386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
29387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29388 if (!SWIG_IsOK(res1)) {
29389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___sub__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29390 }
29391 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29393 if (!SWIG_IsOK(res2)) {
29394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29395 }
29396 if (!argp2) {
29397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29398 }
29399 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29400 {
29401 PyThreadState* __tstate = wxPyBeginAllowThreads();
29402 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
29403 wxPyEndAllowThreads(__tstate);
29404 if (PyErr_Occurred()) SWIG_fail;
29405 }
29406 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29407 return resultobj;
29408fail:
29409 return NULL;
29410}
29411
29412
29413SWIGINTERN PyObject *_wrap_TimeSpan___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29414 PyObject *resultobj = 0;
29415 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29416 int arg2 ;
29417 wxTimeSpan result;
29418 void *argp1 = 0 ;
29419 int res1 = 0 ;
29420 int val2 ;
29421 int ecode2 = 0 ;
29422 PyObject * obj0 = 0 ;
29423 PyObject * obj1 = 0 ;
29424 char * kwnames[] = {
29425 (char *) "self",(char *) "n", NULL
29426 };
29427
29428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) SWIG_fail;
29429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29430 if (!SWIG_IsOK(res1)) {
29431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___mul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29432 }
29433 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29434 ecode2 = SWIG_AsVal_int(obj1, &val2);
29435 if (!SWIG_IsOK(ecode2)) {
29436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___mul__" "', expected argument " "2"" of type '" "int""'");
29437 }
29438 arg2 = static_cast< int >(val2);
29439 {
29440 PyThreadState* __tstate = wxPyBeginAllowThreads();
29441 result = wxTimeSpan___mul__(arg1,arg2);
29442 wxPyEndAllowThreads(__tstate);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29446 return resultobj;
29447fail:
29448 return NULL;
29449}
29450
29451
29452SWIGINTERN PyObject *_wrap_TimeSpan___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29453 PyObject *resultobj = 0;
29454 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29455 int arg2 ;
29456 wxTimeSpan result;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 int val2 ;
29460 int ecode2 = 0 ;
29461 PyObject * obj0 = 0 ;
29462 PyObject * obj1 = 0 ;
29463 char * kwnames[] = {
29464 (char *) "self",(char *) "n", NULL
29465 };
29466
29467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) SWIG_fail;
29468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29469 if (!SWIG_IsOK(res1)) {
29470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___rmul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29471 }
29472 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29473 ecode2 = SWIG_AsVal_int(obj1, &val2);
29474 if (!SWIG_IsOK(ecode2)) {
29475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___rmul__" "', expected argument " "2"" of type '" "int""'");
29476 }
29477 arg2 = static_cast< int >(val2);
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
29480 result = wxTimeSpan___rmul__(arg1,arg2);
29481 wxPyEndAllowThreads(__tstate);
29482 if (PyErr_Occurred()) SWIG_fail;
29483 }
29484 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29485 return resultobj;
29486fail:
29487 return NULL;
29488}
29489
29490
29491SWIGINTERN PyObject *_wrap_TimeSpan___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29492 PyObject *resultobj = 0;
29493 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29494 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29495 bool result;
29496 void *argp1 = 0 ;
29497 int res1 = 0 ;
29498 void *argp2 = 0 ;
29499 int res2 = 0 ;
29500 PyObject * obj0 = 0 ;
29501 PyObject * obj1 = 0 ;
29502 char * kwnames[] = {
29503 (char *) "self",(char *) "other", NULL
29504 };
29505
29506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) SWIG_fail;
29507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29508 if (!SWIG_IsOK(res1)) {
29509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___lt__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29510 }
29511 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29513 if (!SWIG_IsOK(res2)) {
29514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___lt__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29515 }
29516 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29517 {
29518 PyThreadState* __tstate = wxPyBeginAllowThreads();
29519 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
29520 wxPyEndAllowThreads(__tstate);
29521 if (PyErr_Occurred()) SWIG_fail;
29522 }
29523 {
29524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29525 }
29526 return resultobj;
29527fail:
29528 return NULL;
29529}
29530
29531
29532SWIGINTERN PyObject *_wrap_TimeSpan___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29533 PyObject *resultobj = 0;
29534 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29535 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29536 bool result;
29537 void *argp1 = 0 ;
29538 int res1 = 0 ;
29539 void *argp2 = 0 ;
29540 int res2 = 0 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 char * kwnames[] = {
29544 (char *) "self",(char *) "other", NULL
29545 };
29546
29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___le__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29551 }
29552 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29553 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29554 if (!SWIG_IsOK(res2)) {
29555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___le__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29556 }
29557 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
29561 wxPyEndAllowThreads(__tstate);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 {
29565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29566 }
29567 return resultobj;
29568fail:
29569 return NULL;
29570}
29571
29572
29573SWIGINTERN PyObject *_wrap_TimeSpan___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29574 PyObject *resultobj = 0;
29575 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29576 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29577 bool result;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 void *argp2 = 0 ;
29581 int res2 = 0 ;
29582 PyObject * obj0 = 0 ;
29583 PyObject * obj1 = 0 ;
29584 char * kwnames[] = {
29585 (char *) "self",(char *) "other", NULL
29586 };
29587
29588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) SWIG_fail;
29589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29590 if (!SWIG_IsOK(res1)) {
29591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___gt__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29592 }
29593 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29595 if (!SWIG_IsOK(res2)) {
29596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___gt__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29597 }
29598 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
29602 wxPyEndAllowThreads(__tstate);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 }
29605 {
29606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29607 }
29608 return resultobj;
29609fail:
29610 return NULL;
29611}
29612
29613
29614SWIGINTERN PyObject *_wrap_TimeSpan___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29615 PyObject *resultobj = 0;
29616 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29617 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29618 bool result;
29619 void *argp1 = 0 ;
29620 int res1 = 0 ;
29621 void *argp2 = 0 ;
29622 int res2 = 0 ;
29623 PyObject * obj0 = 0 ;
29624 PyObject * obj1 = 0 ;
29625 char * kwnames[] = {
29626 (char *) "self",(char *) "other", NULL
29627 };
29628
29629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) SWIG_fail;
29630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29631 if (!SWIG_IsOK(res1)) {
29632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ge__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29633 }
29634 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29636 if (!SWIG_IsOK(res2)) {
29637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ge__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29638 }
29639 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29640 {
29641 PyThreadState* __tstate = wxPyBeginAllowThreads();
29642 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
29643 wxPyEndAllowThreads(__tstate);
29644 if (PyErr_Occurred()) SWIG_fail;
29645 }
29646 {
29647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29648 }
29649 return resultobj;
29650fail:
29651 return NULL;
29652}
29653
29654
29655SWIGINTERN PyObject *_wrap_TimeSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29656 PyObject *resultobj = 0;
29657 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29658 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29659 bool result;
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
29662 void *argp2 = 0 ;
29663 int res2 = 0 ;
29664 PyObject * obj0 = 0 ;
29665 PyObject * obj1 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "other", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___eq__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29674 }
29675 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29677 if (!SWIG_IsOK(res2)) {
29678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___eq__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29679 }
29680 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29681 {
29682 PyThreadState* __tstate = wxPyBeginAllowThreads();
29683 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
29684 wxPyEndAllowThreads(__tstate);
29685 if (PyErr_Occurred()) SWIG_fail;
29686 }
29687 {
29688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29689 }
29690 return resultobj;
29691fail:
29692 return NULL;
29693}
29694
29695
29696SWIGINTERN PyObject *_wrap_TimeSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29697 PyObject *resultobj = 0;
29698 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29699 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29700 bool result;
29701 void *argp1 = 0 ;
29702 int res1 = 0 ;
29703 void *argp2 = 0 ;
29704 int res2 = 0 ;
29705 PyObject * obj0 = 0 ;
29706 PyObject * obj1 = 0 ;
29707 char * kwnames[] = {
29708 (char *) "self",(char *) "other", NULL
29709 };
29710
29711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
29712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29713 if (!SWIG_IsOK(res1)) {
29714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ne__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29715 }
29716 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29718 if (!SWIG_IsOK(res2)) {
29719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ne__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29720 }
29721 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29722 {
29723 PyThreadState* __tstate = wxPyBeginAllowThreads();
29724 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
29725 wxPyEndAllowThreads(__tstate);
29726 if (PyErr_Occurred()) SWIG_fail;
29727 }
29728 {
29729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29730 }
29731 return resultobj;
29732fail:
29733 return NULL;
b88bce5f
RD
29734}
29735
29736
0085ce49
RD
29737SWIGINTERN PyObject *_wrap_TimeSpan_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29738 PyObject *resultobj = 0;
29739 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29740 bool result;
29741 void *argp1 = 0 ;
29742 int res1 = 0 ;
29743 PyObject *swig_obj[1] ;
29744
29745 if (!args) SWIG_fail;
29746 swig_obj[0] = args;
29747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29748 if (!SWIG_IsOK(res1)) {
29749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsNull" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29750 }
29751 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29752 {
29753 PyThreadState* __tstate = wxPyBeginAllowThreads();
29754 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
29755 wxPyEndAllowThreads(__tstate);
29756 if (PyErr_Occurred()) SWIG_fail;
29757 }
29758 {
29759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29760 }
29761 return resultobj;
29762fail:
29763 return NULL;
b88bce5f
RD
29764}
29765
29766
0085ce49
RD
29767SWIGINTERN PyObject *_wrap_TimeSpan_IsPositive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29768 PyObject *resultobj = 0;
29769 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29770 bool result;
29771 void *argp1 = 0 ;
29772 int res1 = 0 ;
29773 PyObject *swig_obj[1] ;
29774
29775 if (!args) SWIG_fail;
29776 swig_obj[0] = args;
29777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29778 if (!SWIG_IsOK(res1)) {
29779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsPositive" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29780 }
29781 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29782 {
29783 PyThreadState* __tstate = wxPyBeginAllowThreads();
29784 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
29785 wxPyEndAllowThreads(__tstate);
29786 if (PyErr_Occurred()) SWIG_fail;
29787 }
29788 {
29789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29790 }
29791 return resultobj;
29792fail:
29793 return NULL;
d14a1e28
RD
29794}
29795
29796
0085ce49
RD
29797SWIGINTERN PyObject *_wrap_TimeSpan_IsNegative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29798 PyObject *resultobj = 0;
29799 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29800 bool result;
29801 void *argp1 = 0 ;
29802 int res1 = 0 ;
29803 PyObject *swig_obj[1] ;
29804
29805 if (!args) SWIG_fail;
29806 swig_obj[0] = args;
29807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29808 if (!SWIG_IsOK(res1)) {
29809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsNegative" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29810 }
29811 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
29815 wxPyEndAllowThreads(__tstate);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 {
29819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29820 }
29821 return resultobj;
29822fail:
29823 return NULL;
29824}
29825
29826
29827SWIGINTERN PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29828 PyObject *resultobj = 0;
29829 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29830 wxTimeSpan *arg2 = 0 ;
29831 bool result;
29832 void *argp1 = 0 ;
29833 int res1 = 0 ;
29834 void *argp2 = 0 ;
29835 int res2 = 0 ;
29836 PyObject * obj0 = 0 ;
29837 PyObject * obj1 = 0 ;
29838 char * kwnames[] = {
29839 (char *) "self",(char *) "ts", NULL
29840 };
29841
29842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) SWIG_fail;
29843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29844 if (!SWIG_IsOK(res1)) {
29845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsEqualTo" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29846 }
29847 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29849 if (!SWIG_IsOK(res2)) {
29850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsEqualTo" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29851 }
29852 if (!argp2) {
29853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsEqualTo" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29854 }
29855 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29856 {
29857 PyThreadState* __tstate = wxPyBeginAllowThreads();
29858 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
29859 wxPyEndAllowThreads(__tstate);
29860 if (PyErr_Occurred()) SWIG_fail;
29861 }
29862 {
29863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29864 }
29865 return resultobj;
29866fail:
29867 return NULL;
29868}
29869
29870
29871SWIGINTERN PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29872 PyObject *resultobj = 0;
29873 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29874 wxTimeSpan *arg2 = 0 ;
29875 bool result;
29876 void *argp1 = 0 ;
29877 int res1 = 0 ;
29878 void *argp2 = 0 ;
29879 int res2 = 0 ;
29880 PyObject * obj0 = 0 ;
29881 PyObject * obj1 = 0 ;
29882 char * kwnames[] = {
29883 (char *) "self",(char *) "ts", NULL
29884 };
29885
29886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) SWIG_fail;
29887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29888 if (!SWIG_IsOK(res1)) {
29889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsLongerThan" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29890 }
29891 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29893 if (!SWIG_IsOK(res2)) {
29894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsLongerThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29895 }
29896 if (!argp2) {
29897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsLongerThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29898 }
29899 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29900 {
29901 PyThreadState* __tstate = wxPyBeginAllowThreads();
29902 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
29903 wxPyEndAllowThreads(__tstate);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
29906 {
29907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29908 }
29909 return resultobj;
29910fail:
29911 return NULL;
29912}
29913
29914
29915SWIGINTERN PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29916 PyObject *resultobj = 0;
29917 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29918 wxTimeSpan *arg2 = 0 ;
29919 bool result;
29920 void *argp1 = 0 ;
29921 int res1 = 0 ;
29922 void *argp2 = 0 ;
29923 int res2 = 0 ;
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 char * kwnames[] = {
29927 (char *) "self",(char *) "t", NULL
29928 };
29929
29930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) SWIG_fail;
29931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29932 if (!SWIG_IsOK(res1)) {
29933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsShorterThan" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29934 }
29935 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29937 if (!SWIG_IsOK(res2)) {
29938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsShorterThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29939 }
29940 if (!argp2) {
29941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsShorterThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29942 }
29943 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
29947 wxPyEndAllowThreads(__tstate);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
29950 {
29951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29952 }
29953 return resultobj;
29954fail:
29955 return NULL;
b2dc1044
RD
29956}
29957
29958
0085ce49
RD
29959SWIGINTERN PyObject *_wrap_TimeSpan_GetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29960 PyObject *resultobj = 0;
29961 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29962 int result;
29963 void *argp1 = 0 ;
29964 int res1 = 0 ;
29965 PyObject *swig_obj[1] ;
29966
29967 if (!args) SWIG_fail;
29968 swig_obj[0] = args;
29969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29970 if (!SWIG_IsOK(res1)) {
29971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetWeeks" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29972 }
29973 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 resultobj = SWIG_From_int(static_cast< int >(result));
29981 return resultobj;
29982fail:
29983 return NULL;
b2dc1044
RD
29984}
29985
29986
0085ce49
RD
29987SWIGINTERN PyObject *_wrap_TimeSpan_GetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29988 PyObject *resultobj = 0;
29989 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29990 int result;
29991 void *argp1 = 0 ;
29992 int res1 = 0 ;
29993 PyObject *swig_obj[1] ;
29994
29995 if (!args) SWIG_fail;
29996 swig_obj[0] = args;
29997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29998 if (!SWIG_IsOK(res1)) {
29999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetDays" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30000 }
30001 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30002 {
30003 PyThreadState* __tstate = wxPyBeginAllowThreads();
30004 result = (int)((wxTimeSpan const *)arg1)->GetDays();
30005 wxPyEndAllowThreads(__tstate);
30006 if (PyErr_Occurred()) SWIG_fail;
30007 }
30008 resultobj = SWIG_From_int(static_cast< int >(result));
30009 return resultobj;
30010fail:
30011 return NULL;
b2dc1044
RD
30012}
30013
30014
0085ce49
RD
30015SWIGINTERN PyObject *_wrap_TimeSpan_GetHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30016 PyObject *resultobj = 0;
30017 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30018 int result;
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 PyObject *swig_obj[1] ;
30022
30023 if (!args) SWIG_fail;
30024 swig_obj[0] = args;
30025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30026 if (!SWIG_IsOK(res1)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetHours" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30028 }
30029 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30030 {
30031 PyThreadState* __tstate = wxPyBeginAllowThreads();
30032 result = (int)((wxTimeSpan const *)arg1)->GetHours();
30033 wxPyEndAllowThreads(__tstate);
30034 if (PyErr_Occurred()) SWIG_fail;
30035 }
30036 resultobj = SWIG_From_int(static_cast< int >(result));
30037 return resultobj;
30038fail:
30039 return NULL;
b2dc1044
RD
30040}
30041
30042
0085ce49
RD
30043SWIGINTERN PyObject *_wrap_TimeSpan_GetMinutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30044 PyObject *resultobj = 0;
30045 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30046 int result;
30047 void *argp1 = 0 ;
30048 int res1 = 0 ;
30049 PyObject *swig_obj[1] ;
30050
30051 if (!args) SWIG_fail;
30052 swig_obj[0] = args;
30053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30054 if (!SWIG_IsOK(res1)) {
30055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetMinutes" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30056 }
30057 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30058 {
30059 PyThreadState* __tstate = wxPyBeginAllowThreads();
30060 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
30061 wxPyEndAllowThreads(__tstate);
30062 if (PyErr_Occurred()) SWIG_fail;
30063 }
30064 resultobj = SWIG_From_int(static_cast< int >(result));
30065 return resultobj;
30066fail:
30067 return NULL;
d14a1e28
RD
30068}
30069
30070
0085ce49
RD
30071SWIGINTERN PyObject *_wrap_TimeSpan_GetSeconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30072 PyObject *resultobj = 0;
30073 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30074 wxLongLong result;
30075 void *argp1 = 0 ;
30076 int res1 = 0 ;
30077 PyObject *swig_obj[1] ;
30078
30079 if (!args) SWIG_fail;
30080 swig_obj[0] = args;
30081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30082 if (!SWIG_IsOK(res1)) {
30083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetSeconds" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30084 }
30085 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30086 {
30087 PyThreadState* __tstate = wxPyBeginAllowThreads();
30088 result = ((wxTimeSpan const *)arg1)->GetSeconds();
30089 wxPyEndAllowThreads(__tstate);
30090 if (PyErr_Occurred()) SWIG_fail;
30091 }
30092 {
30093 PyObject *hi, *lo, *shifter, *shifted;
30094 hi = PyLong_FromLong( (&result)->GetHi() );
30095 lo = PyLong_FromLong( (&result)->GetLo() );
30096 shifter = PyLong_FromLong(32);
30097 shifted = PyNumber_Lshift(hi, shifter);
30098 resultobj = PyNumber_Or(shifted, lo);
30099 Py_DECREF(hi);
30100 Py_DECREF(lo);
30101 Py_DECREF(shifter);
30102 Py_DECREF(shifted);
30103 }
30104 return resultobj;
30105fail:
30106 return NULL;
d14a1e28
RD
30107}
30108
30109
0085ce49
RD
30110SWIGINTERN PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30111 PyObject *resultobj = 0;
30112 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30113 wxLongLong result;
30114 void *argp1 = 0 ;
30115 int res1 = 0 ;
30116 PyObject *swig_obj[1] ;
30117
30118 if (!args) SWIG_fail;
30119 swig_obj[0] = args;
30120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30121 if (!SWIG_IsOK(res1)) {
30122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetMilliseconds" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30123 }
30124 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30125 {
30126 PyThreadState* __tstate = wxPyBeginAllowThreads();
30127 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
30128 wxPyEndAllowThreads(__tstate);
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 {
30132 PyObject *hi, *lo, *shifter, *shifted;
30133 hi = PyLong_FromLong( (&result)->GetHi() );
30134 lo = PyLong_FromLong( (&result)->GetLo() );
30135 shifter = PyLong_FromLong(32);
30136 shifted = PyNumber_Lshift(hi, shifter);
30137 resultobj = PyNumber_Or(shifted, lo);
30138 Py_DECREF(hi);
30139 Py_DECREF(lo);
30140 Py_DECREF(shifter);
30141 Py_DECREF(shifted);
30142 }
30143 return resultobj;
30144fail:
30145 return NULL;
30146}
30147
30148
30149SWIGINTERN PyObject *_wrap_TimeSpan_Format(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30150 PyObject *resultobj = 0;
30151 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30152 wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ;
30153 wxString *arg2 = (wxString *) &arg2_defvalue ;
30154 wxString result;
30155 void *argp1 = 0 ;
30156 int res1 = 0 ;
30157 bool temp2 = false ;
30158 PyObject * obj0 = 0 ;
30159 PyObject * obj1 = 0 ;
30160 char * kwnames[] = {
30161 (char *) "self",(char *) "format", NULL
30162 };
30163
30164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) SWIG_fail;
30165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Format" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30168 }
30169 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30170 if (obj1) {
4f89f6a3 30171 {
0085ce49
RD
30172 arg2 = wxString_in_helper(obj1);
30173 if (arg2 == NULL) SWIG_fail;
30174 temp2 = true;
4f89f6a3 30175 }
0085ce49
RD
30176 }
30177 {
30178 PyThreadState* __tstate = wxPyBeginAllowThreads();
30179 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
30180 wxPyEndAllowThreads(__tstate);
30181 if (PyErr_Occurred()) SWIG_fail;
30182 }
30183 {
30184#if wxUSE_UNICODE
30185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30186#else
30187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30188#endif
30189 }
30190 {
30191 if (temp2)
30192 delete arg2;
30193 }
30194 return resultobj;
30195fail:
30196 {
30197 if (temp2)
30198 delete arg2;
30199 }
30200 return NULL;
30201}
30202
30203
30204SWIGINTERN PyObject *TimeSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30205 PyObject *obj;
30206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30207 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimeSpan, SWIG_NewClientData(obj));
30208 return SWIG_Py_Void();
30209}
30210
30211SWIGINTERN PyObject *TimeSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30212 return SWIG_Python_InitShadowInstance(args);
30213}
30214
30215SWIGINTERN PyObject *_wrap_new_DateSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 int arg1 = (int) 0 ;
30218 int arg2 = (int) 0 ;
30219 int arg3 = (int) 0 ;
30220 int arg4 = (int) 0 ;
30221 wxDateSpan *result = 0 ;
30222 int val1 ;
30223 int ecode1 = 0 ;
30224 int val2 ;
30225 int ecode2 = 0 ;
30226 int val3 ;
30227 int ecode3 = 0 ;
30228 int val4 ;
30229 int ecode4 = 0 ;
30230 PyObject * obj0 = 0 ;
30231 PyObject * obj1 = 0 ;
30232 PyObject * obj2 = 0 ;
30233 PyObject * obj3 = 0 ;
30234 char * kwnames[] = {
30235 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
30236 };
30237
30238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30239 if (obj0) {
30240 ecode1 = SWIG_AsVal_int(obj0, &val1);
30241 if (!SWIG_IsOK(ecode1)) {
30242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateSpan" "', expected argument " "1"" of type '" "int""'");
30243 }
30244 arg1 = static_cast< int >(val1);
30245 }
30246 if (obj1) {
30247 ecode2 = SWIG_AsVal_int(obj1, &val2);
30248 if (!SWIG_IsOK(ecode2)) {
30249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateSpan" "', expected argument " "2"" of type '" "int""'");
30250 }
30251 arg2 = static_cast< int >(val2);
30252 }
30253 if (obj2) {
30254 ecode3 = SWIG_AsVal_int(obj2, &val3);
30255 if (!SWIG_IsOK(ecode3)) {
30256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateSpan" "', expected argument " "3"" of type '" "int""'");
30257 }
30258 arg3 = static_cast< int >(val3);
30259 }
30260 if (obj3) {
30261 ecode4 = SWIG_AsVal_int(obj3, &val4);
30262 if (!SWIG_IsOK(ecode4)) {
30263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateSpan" "', expected argument " "4"" of type '" "int""'");
30264 }
30265 arg4 = static_cast< int >(val4);
30266 }
30267 {
30268 PyThreadState* __tstate = wxPyBeginAllowThreads();
30269 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
30270 wxPyEndAllowThreads(__tstate);
30271 if (PyErr_Occurred()) SWIG_fail;
30272 }
30273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_NEW | 0 );
30274 return resultobj;
30275fail:
30276 return NULL;
d14a1e28
RD
30277}
30278
30279
0085ce49
RD
30280SWIGINTERN PyObject *_wrap_delete_DateSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30281 PyObject *resultobj = 0;
30282 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30283 void *argp1 = 0 ;
30284 int res1 = 0 ;
30285 PyObject *swig_obj[1] ;
30286
30287 if (!args) SWIG_fail;
30288 swig_obj[0] = args;
30289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
30290 if (!SWIG_IsOK(res1)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateSpan" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30292 }
30293 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30294 {
30295 PyThreadState* __tstate = wxPyBeginAllowThreads();
30296 delete arg1;
d14a1e28 30297
0085ce49
RD
30298 wxPyEndAllowThreads(__tstate);
30299 if (PyErr_Occurred()) SWIG_fail;
30300 }
30301 resultobj = SWIG_Py_Void();
30302 return resultobj;
30303fail:
30304 return NULL;
30305}
30306
30307
30308SWIGINTERN PyObject *_wrap_DateSpan_Days(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30309 PyObject *resultobj = 0;
30310 int arg1 ;
30311 wxDateSpan result;
30312 int val1 ;
30313 int ecode1 = 0 ;
30314 PyObject * obj0 = 0 ;
30315 char * kwnames[] = {
30316 (char *) "days", NULL
30317 };
30318
30319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) SWIG_fail;
30320 ecode1 = SWIG_AsVal_int(obj0, &val1);
30321 if (!SWIG_IsOK(ecode1)) {
30322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Days" "', expected argument " "1"" of type '" "int""'");
30323 }
30324 arg1 = static_cast< int >(val1);
30325 {
30326 PyThreadState* __tstate = wxPyBeginAllowThreads();
30327 result = wxDateSpan::Days(arg1);
30328 wxPyEndAllowThreads(__tstate);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30332 return resultobj;
30333fail:
30334 return NULL;
d14a1e28
RD
30335}
30336
30337
0085ce49
RD
30338SWIGINTERN PyObject *_wrap_DateSpan_Day(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30339 PyObject *resultobj = 0;
30340 wxDateSpan result;
30341
30342 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Day",0,0,0)) SWIG_fail;
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 result = wxDateSpan::Day();
30346 wxPyEndAllowThreads(__tstate);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30350 return resultobj;
30351fail:
30352 return NULL;
30353}
30354
30355
30356SWIGINTERN PyObject *_wrap_DateSpan_Weeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30357 PyObject *resultobj = 0;
30358 int arg1 ;
30359 wxDateSpan result;
30360 int val1 ;
30361 int ecode1 = 0 ;
30362 PyObject * obj0 = 0 ;
30363 char * kwnames[] = {
30364 (char *) "weeks", NULL
30365 };
30366
30367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) SWIG_fail;
30368 ecode1 = SWIG_AsVal_int(obj0, &val1);
30369 if (!SWIG_IsOK(ecode1)) {
30370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Weeks" "', expected argument " "1"" of type '" "int""'");
30371 }
30372 arg1 = static_cast< int >(val1);
30373 {
30374 PyThreadState* __tstate = wxPyBeginAllowThreads();
30375 result = wxDateSpan::Weeks(arg1);
30376 wxPyEndAllowThreads(__tstate);
30377 if (PyErr_Occurred()) SWIG_fail;
30378 }
30379 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30380 return resultobj;
30381fail:
30382 return NULL;
d14a1e28
RD
30383}
30384
30385
0085ce49
RD
30386SWIGINTERN PyObject *_wrap_DateSpan_Week(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30387 PyObject *resultobj = 0;
30388 wxDateSpan result;
30389
30390 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Week",0,0,0)) SWIG_fail;
30391 {
30392 PyThreadState* __tstate = wxPyBeginAllowThreads();
30393 result = wxDateSpan::Week();
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30398 return resultobj;
30399fail:
30400 return NULL;
30401}
30402
30403
30404SWIGINTERN PyObject *_wrap_DateSpan_Months(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30405 PyObject *resultobj = 0;
30406 int arg1 ;
30407 wxDateSpan result;
30408 int val1 ;
30409 int ecode1 = 0 ;
30410 PyObject * obj0 = 0 ;
30411 char * kwnames[] = {
30412 (char *) "mon", NULL
30413 };
30414
30415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) SWIG_fail;
30416 ecode1 = SWIG_AsVal_int(obj0, &val1);
30417 if (!SWIG_IsOK(ecode1)) {
30418 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Months" "', expected argument " "1"" of type '" "int""'");
30419 }
30420 arg1 = static_cast< int >(val1);
30421 {
30422 PyThreadState* __tstate = wxPyBeginAllowThreads();
30423 result = wxDateSpan::Months(arg1);
30424 wxPyEndAllowThreads(__tstate);
30425 if (PyErr_Occurred()) SWIG_fail;
30426 }
30427 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30428 return resultobj;
30429fail:
30430 return NULL;
d14a1e28
RD
30431}
30432
30433
0085ce49
RD
30434SWIGINTERN PyObject *_wrap_DateSpan_Month(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30435 PyObject *resultobj = 0;
30436 wxDateSpan result;
30437
30438 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Month",0,0,0)) SWIG_fail;
30439 {
30440 PyThreadState* __tstate = wxPyBeginAllowThreads();
30441 result = wxDateSpan::Month();
30442 wxPyEndAllowThreads(__tstate);
30443 if (PyErr_Occurred()) SWIG_fail;
30444 }
30445 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30446 return resultobj;
30447fail:
30448 return NULL;
30449}
30450
30451
30452SWIGINTERN PyObject *_wrap_DateSpan_Years(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30453 PyObject *resultobj = 0;
30454 int arg1 ;
30455 wxDateSpan result;
30456 int val1 ;
30457 int ecode1 = 0 ;
30458 PyObject * obj0 = 0 ;
30459 char * kwnames[] = {
30460 (char *) "years", NULL
30461 };
30462
30463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) SWIG_fail;
30464 ecode1 = SWIG_AsVal_int(obj0, &val1);
30465 if (!SWIG_IsOK(ecode1)) {
30466 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Years" "', expected argument " "1"" of type '" "int""'");
30467 }
30468 arg1 = static_cast< int >(val1);
30469 {
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 result = wxDateSpan::Years(arg1);
30472 wxPyEndAllowThreads(__tstate);
30473 if (PyErr_Occurred()) SWIG_fail;
30474 }
30475 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30476 return resultobj;
30477fail:
30478 return NULL;
d14a1e28
RD
30479}
30480
30481
0085ce49
RD
30482SWIGINTERN PyObject *_wrap_DateSpan_Year(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30483 PyObject *resultobj = 0;
30484 wxDateSpan result;
30485
30486 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Year",0,0,0)) SWIG_fail;
30487 {
30488 PyThreadState* __tstate = wxPyBeginAllowThreads();
30489 result = wxDateSpan::Year();
30490 wxPyEndAllowThreads(__tstate);
30491 if (PyErr_Occurred()) SWIG_fail;
30492 }
30493 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30494 return resultobj;
30495fail:
30496 return NULL;
30497}
30498
30499
30500SWIGINTERN PyObject *_wrap_DateSpan_SetYears(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30501 PyObject *resultobj = 0;
30502 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30503 int arg2 ;
30504 wxDateSpan *result = 0 ;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 int val2 ;
30508 int ecode2 = 0 ;
30509 PyObject * obj0 = 0 ;
30510 PyObject * obj1 = 0 ;
30511 char * kwnames[] = {
30512 (char *) "self",(char *) "n", NULL
30513 };
30514
30515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) SWIG_fail;
30516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30517 if (!SWIG_IsOK(res1)) {
30518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetYears" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30519 }
30520 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30521 ecode2 = SWIG_AsVal_int(obj1, &val2);
30522 if (!SWIG_IsOK(ecode2)) {
30523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetYears" "', expected argument " "2"" of type '" "int""'");
30524 }
30525 arg2 = static_cast< int >(val2);
30526 {
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30528 {
0085ce49
RD
30529 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
30530 result = (wxDateSpan *) &_result_ref;
093d3ff1 30531 }
0085ce49
RD
30532 wxPyEndAllowThreads(__tstate);
30533 if (PyErr_Occurred()) SWIG_fail;
30534 }
30535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30536 return resultobj;
30537fail:
30538 return NULL;
30539}
30540
30541
30542SWIGINTERN PyObject *_wrap_DateSpan_SetMonths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj = 0;
30544 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30545 int arg2 ;
30546 wxDateSpan *result = 0 ;
30547 void *argp1 = 0 ;
30548 int res1 = 0 ;
30549 int val2 ;
30550 int ecode2 = 0 ;
30551 PyObject * obj0 = 0 ;
30552 PyObject * obj1 = 0 ;
30553 char * kwnames[] = {
30554 (char *) "self",(char *) "n", NULL
30555 };
30556
30557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) SWIG_fail;
30558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetMonths" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30561 }
30562 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30563 ecode2 = SWIG_AsVal_int(obj1, &val2);
30564 if (!SWIG_IsOK(ecode2)) {
30565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetMonths" "', expected argument " "2"" of type '" "int""'");
30566 }
30567 arg2 = static_cast< int >(val2);
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30570 {
0085ce49
RD
30571 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
30572 result = (wxDateSpan *) &_result_ref;
994141e6 30573 }
0085ce49
RD
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30578 return resultobj;
30579fail:
30580 return NULL;
30581}
30582
30583
30584SWIGINTERN PyObject *_wrap_DateSpan_SetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30585 PyObject *resultobj = 0;
30586 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30587 int arg2 ;
30588 wxDateSpan *result = 0 ;
30589 void *argp1 = 0 ;
30590 int res1 = 0 ;
30591 int val2 ;
30592 int ecode2 = 0 ;
30593 PyObject * obj0 = 0 ;
30594 PyObject * obj1 = 0 ;
30595 char * kwnames[] = {
30596 (char *) "self",(char *) "n", NULL
30597 };
30598
30599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) SWIG_fail;
30600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30601 if (!SWIG_IsOK(res1)) {
30602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetWeeks" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30603 }
30604 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30605 ecode2 = SWIG_AsVal_int(obj1, &val2);
30606 if (!SWIG_IsOK(ecode2)) {
30607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetWeeks" "', expected argument " "2"" of type '" "int""'");
30608 }
30609 arg2 = static_cast< int >(val2);
30610 {
30611 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30612 {
0085ce49
RD
30613 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
30614 result = (wxDateSpan *) &_result_ref;
d14a1e28 30615 }
0085ce49
RD
30616 wxPyEndAllowThreads(__tstate);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30620 return resultobj;
30621fail:
30622 return NULL;
30623}
30624
30625
30626SWIGINTERN PyObject *_wrap_DateSpan_SetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30627 PyObject *resultobj = 0;
30628 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30629 int arg2 ;
30630 wxDateSpan *result = 0 ;
30631 void *argp1 = 0 ;
30632 int res1 = 0 ;
30633 int val2 ;
30634 int ecode2 = 0 ;
30635 PyObject * obj0 = 0 ;
30636 PyObject * obj1 = 0 ;
30637 char * kwnames[] = {
30638 (char *) "self",(char *) "n", NULL
30639 };
30640
30641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) SWIG_fail;
30642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30643 if (!SWIG_IsOK(res1)) {
30644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetDays" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30645 }
30646 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30647 ecode2 = SWIG_AsVal_int(obj1, &val2);
30648 if (!SWIG_IsOK(ecode2)) {
30649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetDays" "', expected argument " "2"" of type '" "int""'");
30650 }
30651 arg2 = static_cast< int >(val2);
30652 {
30653 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30654 {
0085ce49
RD
30655 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
30656 result = (wxDateSpan *) &_result_ref;
d14a1e28 30657 }
0085ce49
RD
30658 wxPyEndAllowThreads(__tstate);
30659 if (PyErr_Occurred()) SWIG_fail;
30660 }
30661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30662 return resultobj;
30663fail:
30664 return NULL;
d14a1e28
RD
30665}
30666
30667
0085ce49
RD
30668SWIGINTERN PyObject *_wrap_DateSpan_GetYears(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30669 PyObject *resultobj = 0;
30670 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30671 int result;
30672 void *argp1 = 0 ;
30673 int res1 = 0 ;
30674 PyObject *swig_obj[1] ;
30675
30676 if (!args) SWIG_fail;
30677 swig_obj[0] = args;
30678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30679 if (!SWIG_IsOK(res1)) {
30680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetYears" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30681 }
30682 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30683 {
30684 PyThreadState* __tstate = wxPyBeginAllowThreads();
30685 result = (int)((wxDateSpan const *)arg1)->GetYears();
30686 wxPyEndAllowThreads(__tstate);
30687 if (PyErr_Occurred()) SWIG_fail;
30688 }
30689 resultobj = SWIG_From_int(static_cast< int >(result));
30690 return resultobj;
30691fail:
30692 return NULL;
d14a1e28
RD
30693}
30694
30695
0085ce49
RD
30696SWIGINTERN PyObject *_wrap_DateSpan_GetMonths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30697 PyObject *resultobj = 0;
30698 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30699 int result;
30700 void *argp1 = 0 ;
30701 int res1 = 0 ;
30702 PyObject *swig_obj[1] ;
30703
30704 if (!args) SWIG_fail;
30705 swig_obj[0] = args;
30706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30707 if (!SWIG_IsOK(res1)) {
30708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetMonths" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30709 }
30710 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30711 {
30712 PyThreadState* __tstate = wxPyBeginAllowThreads();
30713 result = (int)((wxDateSpan const *)arg1)->GetMonths();
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_From_int(static_cast< int >(result));
30718 return resultobj;
30719fail:
30720 return NULL;
d14a1e28
RD
30721}
30722
30723
0085ce49
RD
30724SWIGINTERN PyObject *_wrap_DateSpan_GetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30725 PyObject *resultobj = 0;
30726 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30727 int result;
30728 void *argp1 = 0 ;
30729 int res1 = 0 ;
30730 PyObject *swig_obj[1] ;
30731
30732 if (!args) SWIG_fail;
30733 swig_obj[0] = args;
30734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30735 if (!SWIG_IsOK(res1)) {
30736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetWeeks" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30737 }
30738 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30739 {
30740 PyThreadState* __tstate = wxPyBeginAllowThreads();
30741 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
30742 wxPyEndAllowThreads(__tstate);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 resultobj = SWIG_From_int(static_cast< int >(result));
30746 return resultobj;
30747fail:
30748 return NULL;
d14a1e28
RD
30749}
30750
30751
0085ce49
RD
30752SWIGINTERN PyObject *_wrap_DateSpan_GetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30753 PyObject *resultobj = 0;
30754 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30755 int result;
30756 void *argp1 = 0 ;
30757 int res1 = 0 ;
30758 PyObject *swig_obj[1] ;
30759
30760 if (!args) SWIG_fail;
30761 swig_obj[0] = args;
30762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetDays" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30765 }
30766 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30767 {
30768 PyThreadState* __tstate = wxPyBeginAllowThreads();
30769 result = (int)((wxDateSpan const *)arg1)->GetDays();
30770 wxPyEndAllowThreads(__tstate);
30771 if (PyErr_Occurred()) SWIG_fail;
30772 }
30773 resultobj = SWIG_From_int(static_cast< int >(result));
30774 return resultobj;
30775fail:
30776 return NULL;
d14a1e28
RD
30777}
30778
30779
0085ce49
RD
30780SWIGINTERN PyObject *_wrap_DateSpan_GetTotalDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30781 PyObject *resultobj = 0;
30782 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30783 int result;
30784 void *argp1 = 0 ;
30785 int res1 = 0 ;
30786 PyObject *swig_obj[1] ;
30787
30788 if (!args) SWIG_fail;
30789 swig_obj[0] = args;
30790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30791 if (!SWIG_IsOK(res1)) {
30792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetTotalDays" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30793 }
30794 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30795 {
30796 PyThreadState* __tstate = wxPyBeginAllowThreads();
30797 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_From_int(static_cast< int >(result));
30802 return resultobj;
30803fail:
30804 return NULL;
30805}
30806
30807
30808SWIGINTERN PyObject *_wrap_DateSpan_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30809 PyObject *resultobj = 0;
30810 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30811 wxDateSpan *arg2 = 0 ;
30812 wxDateSpan *result = 0 ;
30813 void *argp1 = 0 ;
30814 int res1 = 0 ;
30815 void *argp2 = 0 ;
30816 int res2 = 0 ;
30817 PyObject * obj0 = 0 ;
30818 PyObject * obj1 = 0 ;
30819 char * kwnames[] = {
30820 (char *) "self",(char *) "other", NULL
30821 };
30822
30823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) SWIG_fail;
30824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30825 if (!SWIG_IsOK(res1)) {
30826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Add" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30827 }
30828 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
30830 if (!SWIG_IsOK(res2)) {
30831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan_Add" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30832 }
30833 if (!argp2) {
30834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan_Add" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30835 }
30836 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
30837 {
30838 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30839 {
0085ce49
RD
30840 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
30841 result = (wxDateSpan *) &_result_ref;
d14a1e28 30842 }
0085ce49
RD
30843 wxPyEndAllowThreads(__tstate);
30844 if (PyErr_Occurred()) SWIG_fail;
30845 }
30846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30847 return resultobj;
30848fail:
30849 return NULL;
30850}
30851
30852
30853SWIGINTERN PyObject *_wrap_DateSpan_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30854 PyObject *resultobj = 0;
30855 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30856 wxDateSpan *arg2 = 0 ;
30857 wxDateSpan *result = 0 ;
30858 void *argp1 = 0 ;
30859 int res1 = 0 ;
30860 void *argp2 = 0 ;
30861 int res2 = 0 ;
30862 PyObject * obj0 = 0 ;
30863 PyObject * obj1 = 0 ;
30864 char * kwnames[] = {
30865 (char *) "self",(char *) "other", NULL
30866 };
30867
30868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
30869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30870 if (!SWIG_IsOK(res1)) {
30871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Subtract" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30872 }
30873 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
30875 if (!SWIG_IsOK(res2)) {
30876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan_Subtract" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30877 }
30878 if (!argp2) {
30879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan_Subtract" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30880 }
30881 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
30882 {
30883 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30884 {
0085ce49
RD
30885 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
30886 result = (wxDateSpan *) &_result_ref;
d14a1e28 30887 }
0085ce49
RD
30888 wxPyEndAllowThreads(__tstate);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30892 return resultobj;
30893fail:
30894 return NULL;
d14a1e28
RD
30895}
30896
30897
0085ce49
RD
30898SWIGINTERN PyObject *_wrap_DateSpan_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30899 PyObject *resultobj = 0;
30900 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30901 wxDateSpan *result = 0 ;
30902 void *argp1 = 0 ;
30903 int res1 = 0 ;
30904 PyObject *swig_obj[1] ;
30905
30906 if (!args) SWIG_fail;
30907 swig_obj[0] = args;
30908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30909 if (!SWIG_IsOK(res1)) {
30910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Neg" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30911 }
30912 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30913 {
30914 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30915 {
0085ce49
RD
30916 wxDateSpan &_result_ref = (arg1)->Neg();
30917 result = (wxDateSpan *) &_result_ref;
d14a1e28 30918 }
0085ce49
RD
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30923 return resultobj;
30924fail:
30925 return NULL;
30926}
30927
30928
30929SWIGINTERN PyObject *_wrap_DateSpan_Multiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30930 PyObject *resultobj = 0;
30931 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30932 int arg2 ;
30933 wxDateSpan *result = 0 ;
30934 void *argp1 = 0 ;
30935 int res1 = 0 ;
30936 int val2 ;
30937 int ecode2 = 0 ;
30938 PyObject * obj0 = 0 ;
30939 PyObject * obj1 = 0 ;
30940 char * kwnames[] = {
30941 (char *) "self",(char *) "factor", NULL
30942 };
30943
30944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) SWIG_fail;
30945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30946 if (!SWIG_IsOK(res1)) {
30947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Multiply" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30948 }
30949 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30950 ecode2 = SWIG_AsVal_int(obj1, &val2);
30951 if (!SWIG_IsOK(ecode2)) {
30952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_Multiply" "', expected argument " "2"" of type '" "int""'");
30953 }
30954 arg2 = static_cast< int >(val2);
30955 {
30956 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 30957 {
0085ce49
RD
30958 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
30959 result = (wxDateSpan *) &_result_ref;
d14a1e28 30960 }
0085ce49
RD
30961 wxPyEndAllowThreads(__tstate);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30965 return resultobj;
30966fail:
30967 return NULL;
30968}
30969
30970
30971SWIGINTERN PyObject *_wrap_DateSpan___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30972 PyObject *resultobj = 0;
30973 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30974 wxDateSpan *arg2 = 0 ;
30975 wxDateSpan *result = 0 ;
30976 void *argp1 = 0 ;
30977 int res1 = 0 ;
30978 void *argp2 = 0 ;
30979 int res2 = 0 ;
30980 PyObject * obj0 = 0 ;
30981 PyObject * obj1 = 0 ;
30982 char * kwnames[] = {
30983 (char *) "self",(char *) "other", NULL
30984 };
30985
30986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
30987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
30988 if (!SWIG_IsOK(res1)) {
30989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___iadd__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30990 }
30991 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
30993 if (!SWIG_IsOK(res2)) {
30994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30995 }
30996 if (!argp2) {
30997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30998 }
30999 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31000 {
31001 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 31002 {
0085ce49
RD
31003 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
31004 result = (wxDateSpan *) &_result_ref;
d14a1e28 31005 }
0085ce49
RD
31006 wxPyEndAllowThreads(__tstate);
31007 if (PyErr_Occurred()) SWIG_fail;
31008 }
31009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31010 return resultobj;
31011fail:
31012 return NULL;
31013}
31014
31015
31016SWIGINTERN PyObject *_wrap_DateSpan___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31017 PyObject *resultobj = 0;
31018 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31019 wxDateSpan *arg2 = 0 ;
31020 wxDateSpan *result = 0 ;
31021 void *argp1 = 0 ;
31022 int res1 = 0 ;
31023 void *argp2 = 0 ;
31024 int res2 = 0 ;
31025 PyObject * obj0 = 0 ;
31026 PyObject * obj1 = 0 ;
31027 char * kwnames[] = {
31028 (char *) "self",(char *) "other", NULL
31029 };
31030
31031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
31032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___isub__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31035 }
31036 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31038 if (!SWIG_IsOK(res2)) {
31039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31040 }
31041 if (!argp2) {
31042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31043 }
31044 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31045 {
31046 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 31047 {
0085ce49
RD
31048 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
31049 result = (wxDateSpan *) &_result_ref;
d14a1e28 31050 }
0085ce49
RD
31051 wxPyEndAllowThreads(__tstate);
31052 if (PyErr_Occurred()) SWIG_fail;
31053 }
31054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31055 return resultobj;
31056fail:
31057 return NULL;
d14a1e28
RD
31058}
31059
31060
0085ce49
RD
31061SWIGINTERN PyObject *_wrap_DateSpan___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31062 PyObject *resultobj = 0;
31063 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31064 wxDateSpan *result = 0 ;
31065 void *argp1 = 0 ;
31066 int res1 = 0 ;
31067 PyObject *swig_obj[1] ;
31068
31069 if (!args) SWIG_fail;
31070 swig_obj[0] = args;
31071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31072 if (!SWIG_IsOK(res1)) {
31073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___neg__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31074 }
31075 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31076 {
31077 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 31078 {
0085ce49
RD
31079 wxDateSpan &_result_ref = (arg1)->operator -();
31080 result = (wxDateSpan *) &_result_ref;
d14a1e28 31081 }
0085ce49
RD
31082 wxPyEndAllowThreads(__tstate);
31083 if (PyErr_Occurred()) SWIG_fail;
31084 }
31085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
31086 return resultobj;
31087fail:
31088 return NULL;
31089}
31090
31091
31092SWIGINTERN PyObject *_wrap_DateSpan___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31093 PyObject *resultobj = 0;
31094 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31095 int arg2 ;
31096 wxDateSpan *result = 0 ;
31097 void *argp1 = 0 ;
31098 int res1 = 0 ;
31099 int val2 ;
31100 int ecode2 = 0 ;
31101 PyObject * obj0 = 0 ;
31102 PyObject * obj1 = 0 ;
31103 char * kwnames[] = {
31104 (char *) "self",(char *) "factor", NULL
31105 };
31106
31107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
31108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
31109 if (!SWIG_IsOK(res1)) {
31110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___imul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31111 }
31112 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31113 ecode2 = SWIG_AsVal_int(obj1, &val2);
31114 if (!SWIG_IsOK(ecode2)) {
31115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___imul__" "', expected argument " "2"" of type '" "int""'");
31116 }
31117 arg2 = static_cast< int >(val2);
31118 {
31119 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 31120 {
0085ce49
RD
31121 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
31122 result = (wxDateSpan *) &_result_ref;
d14a1e28 31123 }
0085ce49
RD
31124 wxPyEndAllowThreads(__tstate);
31125 if (PyErr_Occurred()) SWIG_fail;
31126 }
31127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31128 return resultobj;
31129fail:
31130 return NULL;
31131}
31132
31133
31134SWIGINTERN PyObject *_wrap_DateSpan___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31135 PyObject *resultobj = 0;
31136 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31137 wxDateSpan *arg2 = 0 ;
31138 wxDateSpan result;
31139 void *argp1 = 0 ;
31140 int res1 = 0 ;
31141 void *argp2 = 0 ;
31142 int res2 = 0 ;
31143 PyObject * obj0 = 0 ;
31144 PyObject * obj1 = 0 ;
31145 char * kwnames[] = {
31146 (char *) "self",(char *) "other", NULL
31147 };
31148
31149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) SWIG_fail;
31150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31151 if (!SWIG_IsOK(res1)) {
31152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___add__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31153 }
31154 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31156 if (!SWIG_IsOK(res2)) {
31157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31158 }
31159 if (!argp2) {
31160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31161 }
31162 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31170 return resultobj;
31171fail:
31172 return NULL;
31173}
31174
31175
31176SWIGINTERN PyObject *_wrap_DateSpan___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31177 PyObject *resultobj = 0;
31178 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31179 wxDateSpan *arg2 = 0 ;
31180 wxDateSpan result;
31181 void *argp1 = 0 ;
31182 int res1 = 0 ;
31183 void *argp2 = 0 ;
31184 int res2 = 0 ;
31185 PyObject * obj0 = 0 ;
31186 PyObject * obj1 = 0 ;
31187 char * kwnames[] = {
31188 (char *) "self",(char *) "other", NULL
31189 };
31190
31191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
31192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31193 if (!SWIG_IsOK(res1)) {
31194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___sub__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31195 }
31196 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31198 if (!SWIG_IsOK(res2)) {
31199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31200 }
31201 if (!argp2) {
31202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31203 }
31204 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31205 {
31206 PyThreadState* __tstate = wxPyBeginAllowThreads();
31207 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
31208 wxPyEndAllowThreads(__tstate);
31209 if (PyErr_Occurred()) SWIG_fail;
31210 }
31211 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31212 return resultobj;
31213fail:
31214 return NULL;
31215}
31216
31217
31218SWIGINTERN PyObject *_wrap_DateSpan___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31219 PyObject *resultobj = 0;
31220 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31221 int arg2 ;
31222 wxDateSpan result;
31223 void *argp1 = 0 ;
31224 int res1 = 0 ;
31225 int val2 ;
31226 int ecode2 = 0 ;
31227 PyObject * obj0 = 0 ;
31228 PyObject * obj1 = 0 ;
31229 char * kwnames[] = {
31230 (char *) "self",(char *) "n", NULL
31231 };
31232
31233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) SWIG_fail;
31234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31235 if (!SWIG_IsOK(res1)) {
31236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___mul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31237 }
31238 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31239 ecode2 = SWIG_AsVal_int(obj1, &val2);
31240 if (!SWIG_IsOK(ecode2)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___mul__" "', expected argument " "2"" of type '" "int""'");
31242 }
31243 arg2 = static_cast< int >(val2);
31244 {
31245 PyThreadState* __tstate = wxPyBeginAllowThreads();
31246 result = wxDateSpan___mul__(arg1,arg2);
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31251 return resultobj;
31252fail:
31253 return NULL;
31254}
31255
31256
31257SWIGINTERN PyObject *_wrap_DateSpan___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31258 PyObject *resultobj = 0;
31259 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31260 int arg2 ;
31261 wxDateSpan result;
31262 void *argp1 = 0 ;
31263 int res1 = 0 ;
31264 int val2 ;
31265 int ecode2 = 0 ;
31266 PyObject * obj0 = 0 ;
31267 PyObject * obj1 = 0 ;
31268 char * kwnames[] = {
31269 (char *) "self",(char *) "n", NULL
31270 };
31271
31272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) SWIG_fail;
31273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31274 if (!SWIG_IsOK(res1)) {
31275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___rmul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31276 }
31277 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31278 ecode2 = SWIG_AsVal_int(obj1, &val2);
31279 if (!SWIG_IsOK(ecode2)) {
31280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___rmul__" "', expected argument " "2"" of type '" "int""'");
31281 }
31282 arg2 = static_cast< int >(val2);
31283 {
31284 PyThreadState* __tstate = wxPyBeginAllowThreads();
31285 result = wxDateSpan___rmul__(arg1,arg2);
31286 wxPyEndAllowThreads(__tstate);
31287 if (PyErr_Occurred()) SWIG_fail;
31288 }
31289 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31290 return resultobj;
31291fail:
31292 return NULL;
31293}
31294
31295
31296SWIGINTERN PyObject *_wrap_DateSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31297 PyObject *resultobj = 0;
31298 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31299 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
31300 bool result;
31301 void *argp1 = 0 ;
31302 int res1 = 0 ;
31303 void *argp2 = 0 ;
31304 int res2 = 0 ;
31305 PyObject * obj0 = 0 ;
31306 PyObject * obj1 = 0 ;
31307 char * kwnames[] = {
31308 (char *) "self",(char *) "other", NULL
31309 };
31310
31311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
31312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31313 if (!SWIG_IsOK(res1)) {
31314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___eq__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31315 }
31316 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31318 if (!SWIG_IsOK(res2)) {
31319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___eq__" "', expected argument " "2"" of type '" "wxDateSpan const *""'");
31320 }
31321 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31322 {
31323 PyThreadState* __tstate = wxPyBeginAllowThreads();
31324 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
31325 wxPyEndAllowThreads(__tstate);
31326 if (PyErr_Occurred()) SWIG_fail;
31327 }
31328 {
31329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31330 }
31331 return resultobj;
31332fail:
31333 return NULL;
31334}
31335
31336
31337SWIGINTERN PyObject *_wrap_DateSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31338 PyObject *resultobj = 0;
31339 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31340 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
31341 bool result;
31342 void *argp1 = 0 ;
31343 int res1 = 0 ;
31344 void *argp2 = 0 ;
31345 int res2 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 char * kwnames[] = {
31349 (char *) "self",(char *) "other", NULL
31350 };
31351
31352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
31353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31354 if (!SWIG_IsOK(res1)) {
31355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___ne__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31356 }
31357 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31359 if (!SWIG_IsOK(res2)) {
31360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___ne__" "', expected argument " "2"" of type '" "wxDateSpan const *""'");
31361 }
31362 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31363 {
31364 PyThreadState* __tstate = wxPyBeginAllowThreads();
31365 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
31366 wxPyEndAllowThreads(__tstate);
31367 if (PyErr_Occurred()) SWIG_fail;
31368 }
31369 {
31370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31371 }
31372 return resultobj;
31373fail:
31374 return NULL;
31375}
d14a1e28 31376
0085ce49
RD
31377
31378SWIGINTERN PyObject *DateSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31379 PyObject *obj;
31380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31381 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateSpan, SWIG_NewClientData(obj));
31382 return SWIG_Py_Void();
d14a1e28
RD
31383}
31384
0085ce49
RD
31385SWIGINTERN PyObject *DateSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31386 return SWIG_Python_InitShadowInstance(args);
31387}
d14a1e28 31388
0085ce49
RD
31389SWIGINTERN PyObject *_wrap_GetLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31390 PyObject *resultobj = 0;
31391 long result;
31392
31393 if (!SWIG_Python_UnpackTuple(args,"GetLocalTime",0,0,0)) SWIG_fail;
31394 {
31395 PyThreadState* __tstate = wxPyBeginAllowThreads();
31396 result = (long)wxGetLocalTime();
31397 wxPyEndAllowThreads(__tstate);
31398 if (PyErr_Occurred()) SWIG_fail;
31399 }
31400 resultobj = SWIG_From_long(static_cast< long >(result));
31401 return resultobj;
31402fail:
31403 return NULL;
d14a1e28
RD
31404}
31405
31406
0085ce49
RD
31407SWIGINTERN PyObject *_wrap_GetUTCTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31408 PyObject *resultobj = 0;
31409 long result;
31410
31411 if (!SWIG_Python_UnpackTuple(args,"GetUTCTime",0,0,0)) SWIG_fail;
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 result = (long)wxGetUTCTime();
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_From_long(static_cast< long >(result));
31419 return resultobj;
31420fail:
31421 return NULL;
d14a1e28
RD
31422}
31423
31424
0085ce49
RD
31425SWIGINTERN PyObject *_wrap_GetCurrentTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31426 PyObject *resultobj = 0;
31427 long result;
31428
31429 if (!SWIG_Python_UnpackTuple(args,"GetCurrentTime",0,0,0)) SWIG_fail;
31430 {
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 result = (long)wxGetCurrentTime();
31433 wxPyEndAllowThreads(__tstate);
31434 if (PyErr_Occurred()) SWIG_fail;
31435 }
31436 resultobj = SWIG_From_long(static_cast< long >(result));
31437 return resultobj;
31438fail:
31439 return NULL;
d14a1e28
RD
31440}
31441
31442
0085ce49
RD
31443SWIGINTERN PyObject *_wrap_GetLocalTimeMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31444 PyObject *resultobj = 0;
31445 wxLongLong result;
31446
31447 if (!SWIG_Python_UnpackTuple(args,"GetLocalTimeMillis",0,0,0)) SWIG_fail;
31448 {
31449 PyThreadState* __tstate = wxPyBeginAllowThreads();
31450 result = wxGetLocalTimeMillis();
31451 wxPyEndAllowThreads(__tstate);
31452 if (PyErr_Occurred()) SWIG_fail;
31453 }
31454 {
31455 PyObject *hi, *lo, *shifter, *shifted;
31456 hi = PyLong_FromLong( (&result)->GetHi() );
31457 lo = PyLong_FromLong( (&result)->GetLo() );
31458 shifter = PyLong_FromLong(32);
31459 shifted = PyNumber_Lshift(hi, shifter);
31460 resultobj = PyNumber_Or(shifted, lo);
31461 Py_DECREF(hi);
31462 Py_DECREF(lo);
31463 Py_DECREF(shifter);
31464 Py_DECREF(shifted);
31465 }
31466 return resultobj;
31467fail:
31468 return NULL;
d14a1e28
RD
31469}
31470
31471
0085ce49
RD
31472SWIGINTERN int DefaultDateTime_set(PyObject *) {
31473 SWIG_Error(SWIG_AttributeError,"Variable DefaultDateTime is read-only.");
31474 return 1;
d14a1e28
RD
31475}
31476
31477
0085ce49
RD
31478SWIGINTERN PyObject *DefaultDateTime_get(void) {
31479 PyObject *pyobj = 0;
31480
31481 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0 );
31482 return pyobj;
d14a1e28
RD
31483}
31484
31485
0085ce49
RD
31486SWIGINTERN PyObject *_wrap_new_DataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31487 PyObject *resultobj = 0;
31488 wxDataFormatId arg1 ;
31489 wxDataFormat *result = 0 ;
31490 int val1 ;
31491 int ecode1 = 0 ;
31492 PyObject * obj0 = 0 ;
31493 char * kwnames[] = {
31494 (char *) "type", NULL
31495 };
31496
31497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) SWIG_fail;
31498 ecode1 = SWIG_AsVal_int(obj0, &val1);
31499 if (!SWIG_IsOK(ecode1)) {
31500 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DataFormat" "', expected argument " "1"" of type '" "wxDataFormatId""'");
31501 }
31502 arg1 = static_cast< wxDataFormatId >(val1);
31503 {
31504 PyThreadState* __tstate = wxPyBeginAllowThreads();
31505 result = (wxDataFormat *)new wxDataFormat(arg1);
31506 wxPyEndAllowThreads(__tstate);
31507 if (PyErr_Occurred()) SWIG_fail;
31508 }
31509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_NEW | 0 );
31510 return resultobj;
31511fail:
31512 return NULL;
d14a1e28
RD
31513}
31514
31515
0085ce49
RD
31516SWIGINTERN PyObject *_wrap_new_CustomDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31517 PyObject *resultobj = 0;
31518 wxString *arg1 = 0 ;
31519 wxDataFormat *result = 0 ;
31520 bool temp1 = false ;
31521 PyObject * obj0 = 0 ;
31522 char * kwnames[] = {
31523 (char *) "format", NULL
31524 };
31525
31526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) SWIG_fail;
31527 {
31528 arg1 = wxString_in_helper(obj0);
31529 if (arg1 == NULL) SWIG_fail;
31530 temp1 = true;
31531 }
31532 {
31533 PyThreadState* __tstate = wxPyBeginAllowThreads();
31534 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
31535 wxPyEndAllowThreads(__tstate);
31536 if (PyErr_Occurred()) SWIG_fail;
31537 }
31538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
31539 {
31540 if (temp1)
31541 delete arg1;
31542 }
31543 return resultobj;
31544fail:
31545 {
31546 if (temp1)
31547 delete arg1;
31548 }
31549 return NULL;
d14a1e28
RD
31550}
31551
31552
0085ce49
RD
31553SWIGINTERN PyObject *_wrap_delete_DataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31554 PyObject *resultobj = 0;
31555 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31556 void *argp1 = 0 ;
31557 int res1 = 0 ;
31558 PyObject *swig_obj[1] ;
31559
31560 if (!args) SWIG_fail;
31561 swig_obj[0] = args;
31562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, SWIG_POINTER_DISOWN | 0 );
31563 if (!SWIG_IsOK(res1)) {
31564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataFormat" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31565 }
31566 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31567 {
31568 PyThreadState* __tstate = wxPyBeginAllowThreads();
31569 delete arg1;
d14a1e28 31570
0085ce49
RD
31571 wxPyEndAllowThreads(__tstate);
31572 if (PyErr_Occurred()) SWIG_fail;
31573 }
31574 resultobj = SWIG_Py_Void();
31575 return resultobj;
31576fail:
31577 return NULL;
31578}
31579
31580
31581SWIGINTERN PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31582 PyObject *resultobj = 0;
31583 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31584 wxDataFormatId arg2 ;
31585 bool result;
31586 void *argp1 = 0 ;
31587 int res1 = 0 ;
31588 int val2 ;
31589 int ecode2 = 0 ;
31590
31591 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31593 if (!SWIG_IsOK(res1)) {
31594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___eq__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31595 }
31596 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31597 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31598 if (!SWIG_IsOK(ecode2)) {
31599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31600 }
31601 arg2 = static_cast< wxDataFormatId >(val2);
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2);
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 {
31609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31610 }
31611 return resultobj;
31612fail:
31613 return NULL;
d14a1e28
RD
31614}
31615
31616
0085ce49
RD
31617SWIGINTERN PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31618 PyObject *resultobj = 0;
31619 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31620 wxDataFormatId arg2 ;
31621 bool result;
31622 void *argp1 = 0 ;
31623 int res1 = 0 ;
31624 int val2 ;
31625 int ecode2 = 0 ;
31626
31627 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31629 if (!SWIG_IsOK(res1)) {
31630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___ne__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31631 }
31632 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31633 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31634 if (!SWIG_IsOK(ecode2)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31636 }
31637 arg2 = static_cast< wxDataFormatId >(val2);
31638 {
31639 PyThreadState* __tstate = wxPyBeginAllowThreads();
31640 result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2);
31641 wxPyEndAllowThreads(__tstate);
31642 if (PyErr_Occurred()) SWIG_fail;
31643 }
31644 {
31645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31646 }
31647 return resultobj;
31648fail:
31649 return NULL;
d14a1e28
RD
31650}
31651
31652
0085ce49
RD
31653SWIGINTERN PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31654 PyObject *resultobj = 0;
31655 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31656 wxDataFormat *arg2 = 0 ;
31657 bool result;
31658 void *argp1 = 0 ;
31659 int res1 = 0 ;
31660 void *argp2 = 0 ;
31661 int res2 = 0 ;
31662
31663 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31665 if (!SWIG_IsOK(res1)) {
31666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___eq__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31667 }
31668 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31669 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
31670 if (!SWIG_IsOK(res2)) {
31671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31672 }
31673 if (!argp2) {
31674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31675 }
31676 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 {
31684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31685 }
31686 return resultobj;
31687fail:
31688 return NULL;
d14a1e28
RD
31689}
31690
31691
0085ce49
RD
31692SWIGINTERN PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
31693 int argc;
31694 PyObject *argv[3];
31695
31696 if (!(argc = SWIG_Python_UnpackTuple(args,"DataFormat___eq__",0,2,argv))) SWIG_fail;
31697 --argc;
31698 if (argc == 2) {
31699 int _v = 0;
d14a1e28 31700 {
0085ce49
RD
31701 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDataFormat, 0);
31702 _v = SWIG_CheckState(res);
d14a1e28 31703 }
0085ce49
RD
31704 if (!_v) goto check_1;
31705 return _wrap_DataFormat___eq____SWIG_1(self, argc, argv);
31706 }
31707check_1:
31708
31709 if (argc == 2) {
31710 return _wrap_DataFormat___eq____SWIG_0(self, argc, argv);
31711 }
31712
31713fail:
31714 Py_INCREF(Py_NotImplemented);
31715 return Py_NotImplemented;
d14a1e28
RD
31716}
31717
31718
0085ce49
RD
31719SWIGINTERN PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31720 PyObject *resultobj = 0;
31721 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31722 wxDataFormat *arg2 = 0 ;
31723 bool result;
31724 void *argp1 = 0 ;
31725 int res1 = 0 ;
31726 void *argp2 = 0 ;
31727 int res2 = 0 ;
31728
31729 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31731 if (!SWIG_IsOK(res1)) {
31732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___ne__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31733 }
31734 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31735 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
31736 if (!SWIG_IsOK(res2)) {
31737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31738 }
31739 if (!argp2) {
31740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31741 }
31742 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
31743 {
31744 PyThreadState* __tstate = wxPyBeginAllowThreads();
31745 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
31746 wxPyEndAllowThreads(__tstate);
31747 if (PyErr_Occurred()) SWIG_fail;
31748 }
31749 {
31750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31751 }
31752 return resultobj;
31753fail:
31754 return NULL;
d14a1e28
RD
31755}
31756
31757
0085ce49
RD
31758SWIGINTERN PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
31759 int argc;
31760 PyObject *argv[3];
31761
31762 if (!(argc = SWIG_Python_UnpackTuple(args,"DataFormat___ne__",0,2,argv))) SWIG_fail;
31763 --argc;
31764 if (argc == 2) {
31765 int _v = 0;
d14a1e28 31766 {
0085ce49
RD
31767 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDataFormat, 0);
31768 _v = SWIG_CheckState(res);
d14a1e28 31769 }
0085ce49
RD
31770 if (!_v) goto check_1;
31771 return _wrap_DataFormat___ne____SWIG_1(self, argc, argv);
31772 }
31773check_1:
31774
31775 if (argc == 2) {
31776 return _wrap_DataFormat___ne____SWIG_0(self, argc, argv);
31777 }
31778
31779fail:
31780 Py_INCREF(Py_NotImplemented);
31781 return Py_NotImplemented;
31782}
31783
31784
31785SWIGINTERN PyObject *_wrap_DataFormat_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31786 PyObject *resultobj = 0;
31787 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31788 wxDataFormatId arg2 ;
31789 void *argp1 = 0 ;
31790 int res1 = 0 ;
31791 int val2 ;
31792 int ecode2 = 0 ;
31793 PyObject * obj0 = 0 ;
31794 PyObject * obj1 = 0 ;
31795 char * kwnames[] = {
31796 (char *) "self",(char *) "format", NULL
31797 };
31798
31799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
31800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31801 if (!SWIG_IsOK(res1)) {
31802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_SetType" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31803 }
31804 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31805 ecode2 = SWIG_AsVal_int(obj1, &val2);
31806 if (!SWIG_IsOK(ecode2)) {
31807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat_SetType" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31808 }
31809 arg2 = static_cast< wxDataFormatId >(val2);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 (arg1)->SetType(arg2);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_Py_Void();
31817 return resultobj;
31818fail:
31819 return NULL;
d14a1e28
RD
31820}
31821
31822
0085ce49
RD
31823SWIGINTERN PyObject *_wrap_DataFormat_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31824 PyObject *resultobj = 0;
31825 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31826 wxDataFormatId result;
31827 void *argp1 = 0 ;
31828 int res1 = 0 ;
31829 PyObject *swig_obj[1] ;
31830
31831 if (!args) SWIG_fail;
31832 swig_obj[0] = args;
31833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31834 if (!SWIG_IsOK(res1)) {
31835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_GetType" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31836 }
31837 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31838 {
31839 PyThreadState* __tstate = wxPyBeginAllowThreads();
31840 result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType();
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 resultobj = SWIG_From_int(static_cast< int >(result));
31845 return resultobj;
31846fail:
31847 return NULL;
d14a1e28
RD
31848}
31849
31850
0085ce49
RD
31851SWIGINTERN PyObject *_wrap_DataFormat_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31852 PyObject *resultobj = 0;
31853 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31854 wxString result;
31855 void *argp1 = 0 ;
31856 int res1 = 0 ;
31857 PyObject *swig_obj[1] ;
31858
31859 if (!args) SWIG_fail;
31860 swig_obj[0] = args;
31861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31862 if (!SWIG_IsOK(res1)) {
31863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_GetId" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31864 }
31865 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31866 {
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 result = ((wxDataFormat const *)arg1)->GetId();
31869 wxPyEndAllowThreads(__tstate);
31870 if (PyErr_Occurred()) SWIG_fail;
31871 }
31872 {
31873#if wxUSE_UNICODE
31874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31875#else
31876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31877#endif
31878 }
31879 return resultobj;
31880fail:
31881 return NULL;
31882}
31883
31884
31885SWIGINTERN PyObject *_wrap_DataFormat_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31886 PyObject *resultobj = 0;
31887 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31888 wxString *arg2 = 0 ;
31889 void *argp1 = 0 ;
31890 int res1 = 0 ;
31891 bool temp2 = false ;
31892 PyObject * obj0 = 0 ;
31893 PyObject * obj1 = 0 ;
31894 char * kwnames[] = {
31895 (char *) "self",(char *) "format", NULL
31896 };
31897
31898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31900 if (!SWIG_IsOK(res1)) {
31901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_SetId" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31902 }
31903 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31904 {
31905 arg2 = wxString_in_helper(obj1);
31906 if (arg2 == NULL) SWIG_fail;
31907 temp2 = true;
31908 }
31909 {
31910 PyThreadState* __tstate = wxPyBeginAllowThreads();
31911 (arg1)->SetId((wxString const &)*arg2);
31912 wxPyEndAllowThreads(__tstate);
31913 if (PyErr_Occurred()) SWIG_fail;
31914 }
31915 resultobj = SWIG_Py_Void();
31916 {
31917 if (temp2)
31918 delete arg2;
31919 }
31920 return resultobj;
31921fail:
31922 {
31923 if (temp2)
31924 delete arg2;
31925 }
31926 return NULL;
d14a1e28
RD
31927}
31928
31929
0085ce49
RD
31930SWIGINTERN PyObject *DataFormat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31931 PyObject *obj;
31932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31933 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataFormat, SWIG_NewClientData(obj));
31934 return SWIG_Py_Void();
d14a1e28
RD
31935}
31936
0085ce49
RD
31937SWIGINTERN PyObject *DataFormat_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31938 return SWIG_Python_InitShadowInstance(args);
31939}
d14a1e28 31940
0085ce49
RD
31941SWIGINTERN int FormatInvalid_set(PyObject *) {
31942 SWIG_Error(SWIG_AttributeError,"Variable FormatInvalid is read-only.");
31943 return 1;
d14a1e28
RD
31944}
31945
31946
0085ce49
RD
31947SWIGINTERN PyObject *FormatInvalid_get(void) {
31948 PyObject *pyobj = 0;
31949
31950 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0 );
31951 return pyobj;
d14a1e28
RD
31952}
31953
31954
0085ce49
RD
31955SWIGINTERN PyObject *_wrap_delete_DataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31956 PyObject *resultobj = 0;
31957 wxDataObject *arg1 = (wxDataObject *) 0 ;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 PyObject *swig_obj[1] ;
31961
31962 if (!args) SWIG_fail;
31963 swig_obj[0] = args;
31964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataObject" "', expected argument " "1"" of type '" "wxDataObject *""'");
31967 }
31968 arg1 = reinterpret_cast< wxDataObject * >(argp1);
31969 {
31970 PyThreadState* __tstate = wxPyBeginAllowThreads();
31971 delete arg1;
d14a1e28 31972
0085ce49
RD
31973 wxPyEndAllowThreads(__tstate);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
31976 resultobj = SWIG_Py_Void();
31977 return resultobj;
31978fail:
31979 return NULL;
31980}
31981
31982
31983SWIGINTERN PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31984 PyObject *resultobj = 0;
31985 wxDataObject *arg1 = (wxDataObject *) 0 ;
31986 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
31987 SwigValueWrapper<wxDataFormat > result;
31988 void *argp1 = 0 ;
31989 int res1 = 0 ;
31990 int val2 ;
31991 int ecode2 = 0 ;
31992 PyObject * obj0 = 0 ;
31993 PyObject * obj1 = 0 ;
31994 char * kwnames[] = {
31995 (char *) "self",(char *) "dir", NULL
31996 };
31997
31998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) SWIG_fail;
31999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32000 if (!SWIG_IsOK(res1)) {
32001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetPreferredFormat" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32002 }
32003 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32004 if (obj1) {
32005 ecode2 = SWIG_AsVal_int(obj1, &val2);
32006 if (!SWIG_IsOK(ecode2)) {
32007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetPreferredFormat" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32008 }
32009 arg2 = static_cast< wxDataObject::Direction >(val2);
32010 }
32011 {
32012 PyThreadState* __tstate = wxPyBeginAllowThreads();
32013 result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2);
32014 wxPyEndAllowThreads(__tstate);
32015 if (PyErr_Occurred()) SWIG_fail;
32016 }
32017 resultobj = SWIG_NewPointerObj((new wxDataFormat(static_cast< const wxDataFormat& >(result))), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
32018 return resultobj;
32019fail:
32020 return NULL;
32021}
32022
32023
32024SWIGINTERN PyObject *_wrap_DataObject_GetFormatCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32025 PyObject *resultobj = 0;
32026 wxDataObject *arg1 = (wxDataObject *) 0 ;
32027 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
32028 size_t result;
32029 void *argp1 = 0 ;
32030 int res1 = 0 ;
32031 int val2 ;
32032 int ecode2 = 0 ;
32033 PyObject * obj0 = 0 ;
32034 PyObject * obj1 = 0 ;
32035 char * kwnames[] = {
32036 (char *) "self",(char *) "dir", NULL
32037 };
32038
32039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) SWIG_fail;
32040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32041 if (!SWIG_IsOK(res1)) {
32042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetFormatCount" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32043 }
32044 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32045 if (obj1) {
32046 ecode2 = SWIG_AsVal_int(obj1, &val2);
32047 if (!SWIG_IsOK(ecode2)) {
32048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetFormatCount" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32049 }
32050 arg2 = static_cast< wxDataObject::Direction >(val2);
32051 }
32052 {
32053 PyThreadState* __tstate = wxPyBeginAllowThreads();
32054 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2);
32055 wxPyEndAllowThreads(__tstate);
32056 if (PyErr_Occurred()) SWIG_fail;
32057 }
32058 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32059 return resultobj;
32060fail:
32061 return NULL;
32062}
32063
32064
32065SWIGINTERN PyObject *_wrap_DataObject_IsSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32066 PyObject *resultobj = 0;
32067 wxDataObject *arg1 = (wxDataObject *) 0 ;
32068 wxDataFormat *arg2 = 0 ;
32069 wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ;
32070 bool result;
32071 void *argp1 = 0 ;
32072 int res1 = 0 ;
32073 void *argp2 = 0 ;
32074 int res2 = 0 ;
32075 int val3 ;
32076 int ecode3 = 0 ;
32077 PyObject * obj0 = 0 ;
32078 PyObject * obj1 = 0 ;
32079 PyObject * obj2 = 0 ;
32080 char * kwnames[] = {
32081 (char *) "self",(char *) "format",(char *) "dir", NULL
32082 };
32083
32084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32086 if (!SWIG_IsOK(res1)) {
32087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_IsSupported" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32088 }
32089 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32091 if (!SWIG_IsOK(res2)) {
32092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32093 }
32094 if (!argp2) {
32095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32096 }
32097 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32098 if (obj2) {
32099 ecode3 = SWIG_AsVal_int(obj2, &val3);
32100 if (!SWIG_IsOK(ecode3)) {
32101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataObject_IsSupported" "', expected argument " "3"" of type '" "wxDataObject::Direction""'");
32102 }
32103 arg3 = static_cast< wxDataObject::Direction >(val3);
32104 }
32105 {
32106 PyThreadState* __tstate = wxPyBeginAllowThreads();
32107 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3);
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 {
32112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32113 }
32114 return resultobj;
32115fail:
32116 return NULL;
32117}
32118
32119
32120SWIGINTERN PyObject *_wrap_DataObject_GetDataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32121 PyObject *resultobj = 0;
32122 wxDataObject *arg1 = (wxDataObject *) 0 ;
32123 wxDataFormat *arg2 = 0 ;
32124 size_t result;
32125 void *argp1 = 0 ;
32126 int res1 = 0 ;
32127 void *argp2 = 0 ;
32128 int res2 = 0 ;
32129 PyObject * obj0 = 0 ;
32130 PyObject * obj1 = 0 ;
32131 char * kwnames[] = {
32132 (char *) "self",(char *) "format", NULL
32133 };
32134
32135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) SWIG_fail;
32136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32137 if (!SWIG_IsOK(res1)) {
32138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetDataSize" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32139 }
32140 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32142 if (!SWIG_IsOK(res2)) {
32143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_GetDataSize" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32144 }
32145 if (!argp2) {
32146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_GetDataSize" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32147 }
32148 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32149 {
32150 PyThreadState* __tstate = wxPyBeginAllowThreads();
32151 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
32152 wxPyEndAllowThreads(__tstate);
32153 if (PyErr_Occurred()) SWIG_fail;
32154 }
32155 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32156 return resultobj;
32157fail:
32158 return NULL;
32159}
32160
32161
32162SWIGINTERN PyObject *_wrap_DataObject_GetAllFormats(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32163 PyObject *resultobj = 0;
32164 wxDataObject *arg1 = (wxDataObject *) 0 ;
32165 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
32166 PyObject *result = 0 ;
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
32169 int val2 ;
32170 int ecode2 = 0 ;
32171 PyObject * obj0 = 0 ;
32172 PyObject * obj1 = 0 ;
32173 char * kwnames[] = {
32174 (char *) "self",(char *) "dir", NULL
32175 };
32176
32177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) SWIG_fail;
32178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32179 if (!SWIG_IsOK(res1)) {
32180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetAllFormats" "', expected argument " "1"" of type '" "wxDataObject *""'");
32181 }
32182 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32183 if (obj1) {
32184 ecode2 = SWIG_AsVal_int(obj1, &val2);
32185 if (!SWIG_IsOK(ecode2)) {
32186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetAllFormats" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32187 }
32188 arg2 = static_cast< wxDataObject::Direction >(val2);
32189 }
32190 {
32191 PyThreadState* __tstate = wxPyBeginAllowThreads();
32192 result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2);
32193 wxPyEndAllowThreads(__tstate);
32194 if (PyErr_Occurred()) SWIG_fail;
32195 }
32196 resultobj = result;
32197 return resultobj;
32198fail:
32199 return NULL;
32200}
32201
32202
32203SWIGINTERN PyObject *_wrap_DataObject_GetDataHere(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32204 PyObject *resultobj = 0;
32205 wxDataObject *arg1 = (wxDataObject *) 0 ;
32206 wxDataFormat *arg2 = 0 ;
32207 PyObject *result = 0 ;
32208 void *argp1 = 0 ;
32209 int res1 = 0 ;
32210 void *argp2 = 0 ;
32211 int res2 = 0 ;
32212 PyObject * obj0 = 0 ;
32213 PyObject * obj1 = 0 ;
32214 char * kwnames[] = {
32215 (char *) "self",(char *) "format", NULL
32216 };
32217
32218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) SWIG_fail;
32219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32220 if (!SWIG_IsOK(res1)) {
32221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetDataHere" "', expected argument " "1"" of type '" "wxDataObject *""'");
32222 }
32223 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32225 if (!SWIG_IsOK(res2)) {
32226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_GetDataHere" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32227 }
32228 if (!argp2) {
32229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_GetDataHere" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32230 }
32231 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32232 {
32233 PyThreadState* __tstate = wxPyBeginAllowThreads();
32234 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
32235 wxPyEndAllowThreads(__tstate);
32236 if (PyErr_Occurred()) SWIG_fail;
32237 }
32238 resultobj = result;
32239 return resultobj;
32240fail:
32241 return NULL;
32242}
32243
32244
32245SWIGINTERN PyObject *_wrap_DataObject_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32246 PyObject *resultobj = 0;
32247 wxDataObject *arg1 = (wxDataObject *) 0 ;
32248 wxDataFormat *arg2 = 0 ;
32249 PyObject *arg3 = (PyObject *) 0 ;
32250 bool result;
32251 void *argp1 = 0 ;
32252 int res1 = 0 ;
32253 void *argp2 = 0 ;
32254 int res2 = 0 ;
32255 PyObject * obj0 = 0 ;
32256 PyObject * obj1 = 0 ;
32257 PyObject * obj2 = 0 ;
32258 char * kwnames[] = {
32259 (char *) "self",(char *) "format",(char *) "data", NULL
32260 };
32261
32262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32264 if (!SWIG_IsOK(res1)) {
32265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_SetData" "', expected argument " "1"" of type '" "wxDataObject *""'");
32266 }
32267 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32268 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32269 if (!SWIG_IsOK(res2)) {
32270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_SetData" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32271 }
32272 if (!argp2) {
32273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_SetData" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32274 }
32275 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32276 arg3 = obj2;
32277 {
32278 PyThreadState* __tstate = wxPyBeginAllowThreads();
32279 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
32280 wxPyEndAllowThreads(__tstate);
32281 if (PyErr_Occurred()) SWIG_fail;
32282 }
32283 {
32284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32285 }
32286 return resultobj;
32287fail:
32288 return NULL;
d14a1e28
RD
32289}
32290
32291
0085ce49
RD
32292SWIGINTERN PyObject *DataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32293 PyObject *obj;
32294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32295 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObject, SWIG_NewClientData(obj));
32296 return SWIG_Py_Void();
32297}
32298
32299SWIGINTERN PyObject *_wrap_new_DataObjectSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32300 PyObject *resultobj = 0;
32301 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
32302 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
32303 wxDataObjectSimple *result = 0 ;
32304 void *argp1 = 0 ;
32305 int res1 = 0 ;
32306 PyObject * obj0 = 0 ;
32307 char * kwnames[] = {
32308 (char *) "format", NULL
32309 };
32310
32311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) SWIG_fail;
32312 if (obj0) {
32313 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
32314 if (!SWIG_IsOK(res1)) {
32315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d14a1e28 32316 }
0085ce49
RD
32317 if (!argp1) {
32318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d14a1e28 32319 }
0085ce49
RD
32320 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
32321 }
32322 {
32323 PyThreadState* __tstate = wxPyBeginAllowThreads();
32324 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
32325 wxPyEndAllowThreads(__tstate);
32326 if (PyErr_Occurred()) SWIG_fail;
32327 }
32328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_NEW | 0 );
32329 return resultobj;
32330fail:
32331 return NULL;
d14a1e28
RD
32332}
32333
32334
0085ce49
RD
32335SWIGINTERN PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32336 PyObject *resultobj = 0;
32337 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32338 wxDataFormat *result = 0 ;
32339 void *argp1 = 0 ;
32340 int res1 = 0 ;
32341 PyObject *swig_obj[1] ;
32342
32343 if (!args) SWIG_fail;
32344 swig_obj[0] = args;
32345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32346 if (!SWIG_IsOK(res1)) {
32347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetFormat" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32348 }
32349 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32350 {
32351 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 32352 {
0085ce49
RD
32353 wxDataFormat const &_result_ref = (arg1)->GetFormat();
32354 result = (wxDataFormat *) &_result_ref;
d14a1e28 32355 }
0085ce49
RD
32356 wxPyEndAllowThreads(__tstate);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 }
32359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, 0 | 0 );
32360 return resultobj;
32361fail:
32362 return NULL;
32363}
32364
32365
32366SWIGINTERN PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32367 PyObject *resultobj = 0;
32368 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32369 wxDataFormat *arg2 = 0 ;
32370 void *argp1 = 0 ;
32371 int res1 = 0 ;
32372 void *argp2 = 0 ;
32373 int res2 = 0 ;
32374 PyObject * obj0 = 0 ;
32375 PyObject * obj1 = 0 ;
32376 char * kwnames[] = {
32377 (char *) "self",(char *) "format", NULL
32378 };
32379
32380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) SWIG_fail;
32381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32382 if (!SWIG_IsOK(res1)) {
32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_SetFormat" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32384 }
32385 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32387 if (!SWIG_IsOK(res2)) {
32388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObjectSimple_SetFormat" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32389 }
32390 if (!argp2) {
32391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObjectSimple_SetFormat" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32392 }
32393 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32394 {
32395 PyThreadState* __tstate = wxPyBeginAllowThreads();
32396 (arg1)->SetFormat((wxDataFormat const &)*arg2);
32397 wxPyEndAllowThreads(__tstate);
32398 if (PyErr_Occurred()) SWIG_fail;
32399 }
32400 resultobj = SWIG_Py_Void();
32401 return resultobj;
32402fail:
32403 return NULL;
d14a1e28
RD
32404}
32405
32406
0085ce49
RD
32407SWIGINTERN PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32408 PyObject *resultobj = 0;
32409 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32410 size_t result;
32411 void *argp1 = 0 ;
32412 int res1 = 0 ;
32413 PyObject *swig_obj[1] ;
32414
32415 if (!args) SWIG_fail;
32416 swig_obj[0] = args;
32417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32418 if (!SWIG_IsOK(res1)) {
32419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetDataSize" "', expected argument " "1"" of type '" "wxDataObjectSimple const *""'");
32420 }
32421 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32429 return resultobj;
32430fail:
32431 return NULL;
d14a1e28
RD
32432}
32433
32434
0085ce49
RD
32435SWIGINTERN PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32436 PyObject *resultobj = 0;
32437 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32438 PyObject *result = 0 ;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 PyObject *swig_obj[1] ;
32442
32443 if (!args) SWIG_fail;
32444 swig_obj[0] = args;
32445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32446 if (!SWIG_IsOK(res1)) {
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetDataHere" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32448 }
32449 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = result;
32457 return resultobj;
32458fail:
32459 return NULL;
32460}
32461
32462
32463SWIGINTERN PyObject *_wrap_DataObjectSimple_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32464 PyObject *resultobj = 0;
32465 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32466 PyObject *arg2 = (PyObject *) 0 ;
32467 bool result;
32468 void *argp1 = 0 ;
32469 int res1 = 0 ;
32470 PyObject * obj0 = 0 ;
32471 PyObject * obj1 = 0 ;
32472 char * kwnames[] = {
32473 (char *) "self",(char *) "data", NULL
32474 };
32475
32476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32478 if (!SWIG_IsOK(res1)) {
32479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_SetData" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32480 }
32481 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32482 arg2 = obj1;
32483 {
32484 PyThreadState* __tstate = wxPyBeginAllowThreads();
32485 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 {
32490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32491 }
32492 return resultobj;
32493fail:
32494 return NULL;
d14a1e28
RD
32495}
32496
32497
0085ce49
RD
32498SWIGINTERN PyObject *DataObjectSimple_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32499 PyObject *obj;
32500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32501 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObjectSimple, SWIG_NewClientData(obj));
32502 return SWIG_Py_Void();
d14a1e28
RD
32503}
32504
0085ce49
RD
32505SWIGINTERN PyObject *DataObjectSimple_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32506 return SWIG_Python_InitShadowInstance(args);
32507}
d14a1e28 32508
0085ce49
RD
32509SWIGINTERN PyObject *_wrap_new_PyDataObjectSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32510 PyObject *resultobj = 0;
32511 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
32512 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
32513 wxPyDataObjectSimple *result = 0 ;
32514 void *argp1 = 0 ;
32515 int res1 = 0 ;
32516 PyObject * obj0 = 0 ;
32517 char * kwnames[] = {
32518 (char *) "format", NULL
32519 };
32520
32521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) SWIG_fail;
32522 if (obj0) {
32523 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
32524 if (!SWIG_IsOK(res1)) {
32525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyDataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d14a1e28 32526 }
0085ce49
RD
32527 if (!argp1) {
32528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyDataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d14a1e28 32529 }
0085ce49
RD
32530 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
32531 }
32532 {
32533 PyThreadState* __tstate = wxPyBeginAllowThreads();
32534 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
32535 wxPyEndAllowThreads(__tstate);
32536 if (PyErr_Occurred()) SWIG_fail;
32537 }
32538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_NEW | 0 );
32539 return resultobj;
32540fail:
32541 return NULL;
32542}
32543
32544
32545SWIGINTERN PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32546 PyObject *resultobj = 0;
32547 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
32548 PyObject *arg2 = (PyObject *) 0 ;
32549 PyObject *arg3 = (PyObject *) 0 ;
32550 void *argp1 = 0 ;
32551 int res1 = 0 ;
32552 PyObject * obj0 = 0 ;
32553 PyObject * obj1 = 0 ;
32554 PyObject * obj2 = 0 ;
32555 char * kwnames[] = {
32556 (char *) "self",(char *) "self",(char *) "_class", NULL
32557 };
32558
32559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDataObjectSimple, 0 | 0 );
32561 if (!SWIG_IsOK(res1)) {
32562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyDataObjectSimple__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDataObjectSimple *""'");
32563 }
32564 arg1 = reinterpret_cast< wxPyDataObjectSimple * >(argp1);
32565 arg2 = obj1;
32566 arg3 = obj2;
32567 {
32568 PyThreadState* __tstate = wxPyBeginAllowThreads();
32569 (arg1)->_setCallbackInfo(arg2,arg3);
32570 wxPyEndAllowThreads(__tstate);
32571 if (PyErr_Occurred()) SWIG_fail;
32572 }
32573 resultobj = SWIG_Py_Void();
32574 return resultobj;
32575fail:
32576 return NULL;
d14a1e28
RD
32577}
32578
32579
0085ce49
RD
32580SWIGINTERN PyObject *PyDataObjectSimple_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32581 PyObject *obj;
32582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32583 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDataObjectSimple, SWIG_NewClientData(obj));
32584 return SWIG_Py_Void();
d14a1e28
RD
32585}
32586
0085ce49
RD
32587SWIGINTERN PyObject *PyDataObjectSimple_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32588 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
32589}
32590
0085ce49
RD
32591SWIGINTERN PyObject *_wrap_new_DataObjectComposite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32592 PyObject *resultobj = 0;
32593 wxDataObjectComposite *result = 0 ;
32594
32595 if (!SWIG_Python_UnpackTuple(args,"new_DataObjectComposite",0,0,0)) SWIG_fail;
32596 {
32597 PyThreadState* __tstate = wxPyBeginAllowThreads();
32598 result = (wxDataObjectComposite *)new wxDataObjectComposite();
32599 wxPyEndAllowThreads(__tstate);
32600 if (PyErr_Occurred()) SWIG_fail;
32601 }
32602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_NEW | 0 );
32603 return resultobj;
32604fail:
32605 return NULL;
32606}
32607
32608
32609SWIGINTERN PyObject *_wrap_DataObjectComposite_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32610 PyObject *resultobj = 0;
32611 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
32612 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
32613 bool arg3 = (bool) false ;
32614 void *argp1 = 0 ;
32615 int res1 = 0 ;
32616 int res2 = 0 ;
32617 bool val3 ;
32618 int ecode3 = 0 ;
32619 PyObject * obj0 = 0 ;
32620 PyObject * obj1 = 0 ;
32621 PyObject * obj2 = 0 ;
32622 char * kwnames[] = {
32623 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
32624 };
32625
32626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectComposite, 0 | 0 );
32628 if (!SWIG_IsOK(res1)) {
32629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectComposite_Add" "', expected argument " "1"" of type '" "wxDataObjectComposite *""'");
32630 }
32631 arg1 = reinterpret_cast< wxDataObjectComposite * >(argp1);
32632 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_DISOWN | 0 );
32633 if (!SWIG_IsOK(res2)) {
32634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObjectComposite_Add" "', expected argument " "2"" of type '" "wxDataObjectSimple *""'");
32635 }
32636 if (obj2) {
32637 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32638 if (!SWIG_IsOK(ecode3)) {
32639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataObjectComposite_Add" "', expected argument " "3"" of type '" "bool""'");
32640 }
32641 arg3 = static_cast< bool >(val3);
32642 }
32643 {
32644 PyThreadState* __tstate = wxPyBeginAllowThreads();
32645 (arg1)->Add(arg2,arg3);
32646 wxPyEndAllowThreads(__tstate);
32647 if (PyErr_Occurred()) SWIG_fail;
32648 }
32649 resultobj = SWIG_Py_Void();
32650 return resultobj;
32651fail:
32652 return NULL;
7e63a440
RD
32653}
32654
32655
e9d6f3a4
RD
32656SWIGINTERN PyObject *_wrap_DataObjectComposite_GetReceivedFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32657 PyObject *resultobj = 0;
32658 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
32659 SwigValueWrapper<wxDataFormat > result;
32660 void *argp1 = 0 ;
32661 int res1 = 0 ;
32662 PyObject *swig_obj[1] ;
32663
32664 if (!args) SWIG_fail;
32665 swig_obj[0] = args;
32666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectComposite, 0 | 0 );
32667 if (!SWIG_IsOK(res1)) {
32668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectComposite_GetReceivedFormat" "', expected argument " "1"" of type '" "wxDataObjectComposite const *""'");
32669 }
32670 arg1 = reinterpret_cast< wxDataObjectComposite * >(argp1);
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 result = ((wxDataObjectComposite const *)arg1)->GetReceivedFormat();
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_NewPointerObj((new wxDataFormat(static_cast< const wxDataFormat& >(result))), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
32678 return resultobj;
32679fail:
32680 return NULL;
32681}
32682
32683
0085ce49
RD
32684SWIGINTERN PyObject *DataObjectComposite_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32685 PyObject *obj;
32686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32687 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObjectComposite, SWIG_NewClientData(obj));
32688 return SWIG_Py_Void();
d14a1e28
RD
32689}
32690
0085ce49
RD
32691SWIGINTERN PyObject *DataObjectComposite_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32692 return SWIG_Python_InitShadowInstance(args);
32693}
d14a1e28 32694
0085ce49
RD
32695SWIGINTERN PyObject *_wrap_new_TextDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32696 PyObject *resultobj = 0;
32697 wxString const &arg1_defvalue = wxPyEmptyString ;
32698 wxString *arg1 = (wxString *) &arg1_defvalue ;
32699 wxTextDataObject *result = 0 ;
32700 bool temp1 = false ;
32701 PyObject * obj0 = 0 ;
32702 char * kwnames[] = {
32703 (char *) "text", NULL
32704 };
32705
32706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) SWIG_fail;
32707 if (obj0) {
d14a1e28 32708 {
0085ce49
RD
32709 arg1 = wxString_in_helper(obj0);
32710 if (arg1 == NULL) SWIG_fail;
32711 temp1 = true;
d14a1e28 32712 }
0085ce49
RD
32713 }
32714 {
32715 PyThreadState* __tstate = wxPyBeginAllowThreads();
32716 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
32717 wxPyEndAllowThreads(__tstate);
32718 if (PyErr_Occurred()) SWIG_fail;
32719 }
32720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_NEW | 0 );
32721 {
32722 if (temp1)
32723 delete arg1;
32724 }
32725 return resultobj;
32726fail:
32727 {
32728 if (temp1)
32729 delete arg1;
32730 }
32731 return NULL;
d14a1e28
RD
32732}
32733
32734
0085ce49
RD
32735SWIGINTERN PyObject *_wrap_TextDataObject_GetTextLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32736 PyObject *resultobj = 0;
32737 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32738 size_t result;
32739 void *argp1 = 0 ;
32740 int res1 = 0 ;
32741 PyObject *swig_obj[1] ;
32742
32743 if (!args) SWIG_fail;
32744 swig_obj[0] = args;
32745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32746 if (!SWIG_IsOK(res1)) {
32747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_GetTextLength" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32748 }
32749 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 result = (size_t)(arg1)->GetTextLength();
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32757 return resultobj;
32758fail:
32759 return NULL;
d14a1e28
RD
32760}
32761
32762
0085ce49
RD
32763SWIGINTERN PyObject *_wrap_TextDataObject_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32764 PyObject *resultobj = 0;
32765 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32766 wxString result;
32767 void *argp1 = 0 ;
32768 int res1 = 0 ;
32769 PyObject *swig_obj[1] ;
32770
32771 if (!args) SWIG_fail;
32772 swig_obj[0] = args;
32773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_GetText" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32776 }
32777 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 result = (arg1)->GetText();
32781 wxPyEndAllowThreads(__tstate);
32782 if (PyErr_Occurred()) SWIG_fail;
32783 }
32784 {
32785#if wxUSE_UNICODE
32786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32787#else
32788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32789#endif
32790 }
32791 return resultobj;
32792fail:
32793 return NULL;
32794}
32795
32796
32797SWIGINTERN PyObject *_wrap_TextDataObject_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32798 PyObject *resultobj = 0;
32799 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32800 wxString *arg2 = 0 ;
32801 void *argp1 = 0 ;
32802 int res1 = 0 ;
32803 bool temp2 = false ;
32804 PyObject * obj0 = 0 ;
32805 PyObject * obj1 = 0 ;
32806 char * kwnames[] = {
32807 (char *) "self",(char *) "text", NULL
32808 };
32809
32810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
32811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32812 if (!SWIG_IsOK(res1)) {
32813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_SetText" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32814 }
32815 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32816 {
32817 arg2 = wxString_in_helper(obj1);
32818 if (arg2 == NULL) SWIG_fail;
32819 temp2 = true;
32820 }
32821 {
32822 PyThreadState* __tstate = wxPyBeginAllowThreads();
32823 (arg1)->SetText((wxString const &)*arg2);
32824 wxPyEndAllowThreads(__tstate);
32825 if (PyErr_Occurred()) SWIG_fail;
32826 }
32827 resultobj = SWIG_Py_Void();
32828 {
32829 if (temp2)
32830 delete arg2;
32831 }
32832 return resultobj;
32833fail:
32834 {
32835 if (temp2)
32836 delete arg2;
32837 }
32838 return NULL;
d14a1e28
RD
32839}
32840
32841
0085ce49
RD
32842SWIGINTERN PyObject *TextDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32843 PyObject *obj;
32844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32845 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextDataObject, SWIG_NewClientData(obj));
32846 return SWIG_Py_Void();
d14a1e28
RD
32847}
32848
0085ce49
RD
32849SWIGINTERN PyObject *TextDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32850 return SWIG_Python_InitShadowInstance(args);
32851}
d14a1e28 32852
0085ce49
RD
32853SWIGINTERN PyObject *_wrap_new_PyTextDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32854 PyObject *resultobj = 0;
32855 wxString const &arg1_defvalue = wxPyEmptyString ;
32856 wxString *arg1 = (wxString *) &arg1_defvalue ;
32857 wxPyTextDataObject *result = 0 ;
32858 bool temp1 = false ;
32859 PyObject * obj0 = 0 ;
32860 char * kwnames[] = {
32861 (char *) "text", NULL
32862 };
32863
32864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) SWIG_fail;
32865 if (obj0) {
093d3ff1 32866 {
0085ce49
RD
32867 arg1 = wxString_in_helper(obj0);
32868 if (arg1 == NULL) SWIG_fail;
32869 temp1 = true;
093d3ff1 32870 }
0085ce49
RD
32871 }
32872 {
32873 PyThreadState* __tstate = wxPyBeginAllowThreads();
32874 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_NEW | 0 );
32879 {
32880 if (temp1)
32881 delete arg1;
32882 }
32883 return resultobj;
32884fail:
32885 {
32886 if (temp1)
32887 delete arg1;
32888 }
32889 return NULL;
32890}
32891
32892
32893SWIGINTERN PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32894 PyObject *resultobj = 0;
32895 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
32896 PyObject *arg2 = (PyObject *) 0 ;
32897 PyObject *arg3 = (PyObject *) 0 ;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 PyObject * obj0 = 0 ;
32901 PyObject * obj1 = 0 ;
32902 PyObject * obj2 = 0 ;
32903 char * kwnames[] = {
32904 (char *) "self",(char *) "self",(char *) "_class", NULL
32905 };
32906
32907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDataObject, 0 | 0 );
32909 if (!SWIG_IsOK(res1)) {
32910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyTextDataObject__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTextDataObject *""'");
32911 }
32912 arg1 = reinterpret_cast< wxPyTextDataObject * >(argp1);
32913 arg2 = obj1;
32914 arg3 = obj2;
32915 {
32916 PyThreadState* __tstate = wxPyBeginAllowThreads();
32917 (arg1)->_setCallbackInfo(arg2,arg3);
32918 wxPyEndAllowThreads(__tstate);
32919 if (PyErr_Occurred()) SWIG_fail;
32920 }
32921 resultobj = SWIG_Py_Void();
32922 return resultobj;
32923fail:
32924 return NULL;
d14a1e28
RD
32925}
32926
32927
0085ce49
RD
32928SWIGINTERN PyObject *PyTextDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32929 PyObject *obj;
32930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32931 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTextDataObject, SWIG_NewClientData(obj));
32932 return SWIG_Py_Void();
d14a1e28
RD
32933}
32934
0085ce49
RD
32935SWIGINTERN PyObject *PyTextDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32936 return SWIG_Python_InitShadowInstance(args);
32937}
d14a1e28 32938
0085ce49
RD
32939SWIGINTERN PyObject *_wrap_new_BitmapDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32940 PyObject *resultobj = 0;
32941 wxBitmap const &arg1_defvalue = wxNullBitmap ;
32942 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
32943 wxBitmapDataObject *result = 0 ;
32944 void *argp1 = 0 ;
32945 int res1 = 0 ;
32946 PyObject * obj0 = 0 ;
32947 char * kwnames[] = {
32948 (char *) "bitmap", NULL
32949 };
32950
32951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) SWIG_fail;
32952 if (obj0) {
32953 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
32954 if (!SWIG_IsOK(res1)) {
32955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d14a1e28 32956 }
0085ce49
RD
32957 if (!argp1) {
32958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
093d3ff1 32959 }
0085ce49
RD
32960 arg1 = reinterpret_cast< wxBitmap * >(argp1);
32961 }
32962 {
32963 PyThreadState* __tstate = wxPyBeginAllowThreads();
32964 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
32965 wxPyEndAllowThreads(__tstate);
32966 if (PyErr_Occurred()) SWIG_fail;
32967 }
32968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_NEW | 0 );
32969 return resultobj;
32970fail:
32971 return NULL;
d14a1e28
RD
32972}
32973
32974
0085ce49
RD
32975SWIGINTERN PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32976 PyObject *resultobj = 0;
32977 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
32978 wxBitmap result;
32979 void *argp1 = 0 ;
32980 int res1 = 0 ;
32981 PyObject *swig_obj[1] ;
32982
32983 if (!args) SWIG_fail;
32984 swig_obj[0] = args;
32985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapDataObject, 0 | 0 );
32986 if (!SWIG_IsOK(res1)) {
32987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapDataObject_GetBitmap" "', expected argument " "1"" of type '" "wxBitmapDataObject const *""'");
32988 }
32989 arg1 = reinterpret_cast< wxBitmapDataObject * >(argp1);
32990 {
32991 PyThreadState* __tstate = wxPyBeginAllowThreads();
32992 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
32993 wxPyEndAllowThreads(__tstate);
32994 if (PyErr_Occurred()) SWIG_fail;
32995 }
32996 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32997 return resultobj;
32998fail:
32999 return NULL;
33000}
33001
33002
33003SWIGINTERN PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33004 PyObject *resultobj = 0;
33005 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
33006 wxBitmap *arg2 = 0 ;
33007 void *argp1 = 0 ;
33008 int res1 = 0 ;
33009 void *argp2 = 0 ;
33010 int res2 = 0 ;
33011 PyObject * obj0 = 0 ;
33012 PyObject * obj1 = 0 ;
33013 char * kwnames[] = {
33014 (char *) "self",(char *) "bitmap", NULL
33015 };
33016
33017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
33018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapDataObject, 0 | 0 );
33019 if (!SWIG_IsOK(res1)) {
33020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "1"" of type '" "wxBitmapDataObject *""'");
33021 }
33022 arg1 = reinterpret_cast< wxBitmapDataObject * >(argp1);
33023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33024 if (!SWIG_IsOK(res2)) {
33025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33026 }
33027 if (!argp2) {
33028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33029 }
33030 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_Py_Void();
33038 return resultobj;
33039fail:
33040 return NULL;
d14a1e28
RD
33041}
33042
33043
0085ce49
RD
33044SWIGINTERN PyObject *BitmapDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33045 PyObject *obj;
33046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33047 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapDataObject, SWIG_NewClientData(obj));
33048 return SWIG_Py_Void();
d14a1e28
RD
33049}
33050
0085ce49
RD
33051SWIGINTERN PyObject *BitmapDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33052 return SWIG_Python_InitShadowInstance(args);
33053}
d14a1e28 33054
0085ce49
RD
33055SWIGINTERN PyObject *_wrap_new_PyBitmapDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj = 0;
33057 wxBitmap const &arg1_defvalue = wxNullBitmap ;
33058 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
33059 wxPyBitmapDataObject *result = 0 ;
33060 void *argp1 = 0 ;
33061 int res1 = 0 ;
33062 PyObject * obj0 = 0 ;
33063 char * kwnames[] = {
33064 (char *) "bitmap", NULL
33065 };
33066
33067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) SWIG_fail;
33068 if (obj0) {
33069 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
33070 if (!SWIG_IsOK(res1)) {
33071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyBitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d14a1e28 33072 }
0085ce49
RD
33073 if (!argp1) {
33074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyBitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d14a1e28 33075 }
0085ce49
RD
33076 arg1 = reinterpret_cast< wxBitmap * >(argp1);
33077 }
33078 {
33079 PyThreadState* __tstate = wxPyBeginAllowThreads();
33080 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
33081 wxPyEndAllowThreads(__tstate);
33082 if (PyErr_Occurred()) SWIG_fail;
33083 }
33084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_NEW | 0 );
33085 return resultobj;
33086fail:
33087 return NULL;
33088}
33089
33090
33091SWIGINTERN PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33092 PyObject *resultobj = 0;
33093 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
33094 PyObject *arg2 = (PyObject *) 0 ;
33095 PyObject *arg3 = (PyObject *) 0 ;
33096 void *argp1 = 0 ;
33097 int res1 = 0 ;
33098 PyObject * obj0 = 0 ;
33099 PyObject * obj1 = 0 ;
33100 PyObject * obj2 = 0 ;
33101 char * kwnames[] = {
33102 (char *) "self",(char *) "self",(char *) "_class", NULL
33103 };
33104
33105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyBitmapDataObject, 0 | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyBitmapDataObject__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyBitmapDataObject *""'");
33109 }
33110 arg1 = reinterpret_cast< wxPyBitmapDataObject * >(argp1);
33111 arg2 = obj1;
33112 arg3 = obj2;
33113 {
33114 PyThreadState* __tstate = wxPyBeginAllowThreads();
33115 (arg1)->_setCallbackInfo(arg2,arg3);
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 resultobj = SWIG_Py_Void();
33120 return resultobj;
33121fail:
33122 return NULL;
d14a1e28
RD
33123}
33124
33125
0085ce49
RD
33126SWIGINTERN PyObject *PyBitmapDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33127 PyObject *obj;
33128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33129 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyBitmapDataObject, SWIG_NewClientData(obj));
33130 return SWIG_Py_Void();
943e8dfd
RD
33131}
33132
0085ce49
RD
33133SWIGINTERN PyObject *PyBitmapDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33134 return SWIG_Python_InitShadowInstance(args);
33135}
943e8dfd 33136
0085ce49
RD
33137SWIGINTERN PyObject *_wrap_new_FileDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33138 PyObject *resultobj = 0;
33139 wxFileDataObject *result = 0 ;
33140
33141 if (!SWIG_Python_UnpackTuple(args,"new_FileDataObject",0,0,0)) SWIG_fail;
33142 {
33143 PyThreadState* __tstate = wxPyBeginAllowThreads();
33144 result = (wxFileDataObject *)new wxFileDataObject();
33145 wxPyEndAllowThreads(__tstate);
33146 if (PyErr_Occurred()) SWIG_fail;
33147 }
33148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_NEW | 0 );
33149 return resultobj;
33150fail:
33151 return NULL;
943e8dfd
RD
33152}
33153
33154
0085ce49
RD
33155SWIGINTERN PyObject *_wrap_FileDataObject_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33156 PyObject *resultobj = 0;
33157 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
33158 wxArrayString *result = 0 ;
33159 void *argp1 = 0 ;
33160 int res1 = 0 ;
33161 PyObject *swig_obj[1] ;
33162
33163 if (!args) SWIG_fail;
33164 swig_obj[0] = args;
33165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDataObject, 0 | 0 );
33166 if (!SWIG_IsOK(res1)) {
33167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDataObject_GetFilenames" "', expected argument " "1"" of type '" "wxFileDataObject *""'");
33168 }
33169 arg1 = reinterpret_cast< wxFileDataObject * >(argp1);
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
943e8dfd 33172 {
0085ce49
RD
33173 wxArrayString const &_result_ref = (arg1)->GetFilenames();
33174 result = (wxArrayString *) &_result_ref;
943e8dfd 33175 }
0085ce49
RD
33176 wxPyEndAllowThreads(__tstate);
33177 if (PyErr_Occurred()) SWIG_fail;
33178 }
33179 {
33180 resultobj = wxArrayString2PyList_helper(*result);
33181 }
33182 return resultobj;
33183fail:
33184 return NULL;
33185}
33186
33187
33188SWIGINTERN PyObject *_wrap_FileDataObject_AddFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33189 PyObject *resultobj = 0;
33190 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
33191 wxString *arg2 = 0 ;
33192 void *argp1 = 0 ;
33193 int res1 = 0 ;
33194 bool temp2 = false ;
33195 PyObject * obj0 = 0 ;
33196 PyObject * obj1 = 0 ;
33197 char * kwnames[] = {
33198 (char *) "self",(char *) "filename", NULL
33199 };
33200
33201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) SWIG_fail;
33202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDataObject, 0 | 0 );
33203 if (!SWIG_IsOK(res1)) {
33204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDataObject_AddFile" "', expected argument " "1"" of type '" "wxFileDataObject *""'");
33205 }
33206 arg1 = reinterpret_cast< wxFileDataObject * >(argp1);
33207 {
33208 arg2 = wxString_in_helper(obj1);
33209 if (arg2 == NULL) SWIG_fail;
33210 temp2 = true;
33211 }
33212 {
33213 PyThreadState* __tstate = wxPyBeginAllowThreads();
33214 (arg1)->AddFile((wxString const &)*arg2);
33215 wxPyEndAllowThreads(__tstate);
33216 if (PyErr_Occurred()) SWIG_fail;
33217 }
33218 resultobj = SWIG_Py_Void();
33219 {
33220 if (temp2)
33221 delete arg2;
33222 }
33223 return resultobj;
33224fail:
33225 {
33226 if (temp2)
33227 delete arg2;
33228 }
33229 return NULL;
943e8dfd
RD
33230}
33231
33232
0085ce49
RD
33233SWIGINTERN PyObject *FileDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33234 PyObject *obj;
33235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33236 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDataObject, SWIG_NewClientData(obj));
33237 return SWIG_Py_Void();
943e8dfd
RD
33238}
33239
0085ce49
RD
33240SWIGINTERN PyObject *FileDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33241 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
33242}
33243
0085ce49
RD
33244SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33245 PyObject *resultobj = 0;
33246 wxDataFormat *arg1 = 0 ;
33247 wxCustomDataObject *result = 0 ;
33248 void *argp1 = 0 ;
33249 int res1 = 0 ;
33250
33251 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
33253 if (!SWIG_IsOK(res1)) {
33254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CustomDataObject" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
33255 }
33256 if (!argp1) {
33257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CustomDataObject" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
33258 }
33259 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33267 return resultobj;
33268fail:
33269 return NULL;
d14a1e28
RD
33270}
33271
33272
0085ce49
RD
33273SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33274 PyObject *resultobj = 0;
33275 wxString *arg1 = 0 ;
33276 wxCustomDataObject *result = 0 ;
33277 bool temp1 = false ;
33278
33279 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33280 {
33281 arg1 = wxString_in_helper(swig_obj[0]);
33282 if (arg1 == NULL) SWIG_fail;
33283 temp1 = true;
33284 }
33285 {
33286 PyThreadState* __tstate = wxPyBeginAllowThreads();
33287 result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1);
33288 wxPyEndAllowThreads(__tstate);
33289 if (PyErr_Occurred()) SWIG_fail;
33290 }
33291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33292 {
33293 if (temp1)
33294 delete arg1;
33295 }
33296 return resultobj;
33297fail:
33298 {
33299 if (temp1)
33300 delete arg1;
33301 }
33302 return NULL;
943e8dfd
RD
33303}
33304
33305
0085ce49
RD
33306SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
33307 PyObject *resultobj = 0;
33308 wxCustomDataObject *result = 0 ;
33309
33310 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
33311 {
33312 PyThreadState* __tstate = wxPyBeginAllowThreads();
33313 result = (wxCustomDataObject *)new wxCustomDataObject();
33314 wxPyEndAllowThreads(__tstate);
33315 if (PyErr_Occurred()) SWIG_fail;
33316 }
33317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33318 return resultobj;
33319fail:
33320 return NULL;
943e8dfd
RD
33321}
33322
33323
0085ce49
RD
33324SWIGINTERN PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) {
33325 int argc;
33326 PyObject *argv[2];
33327
33328 if (!(argc = SWIG_Python_UnpackTuple(args,"new_CustomDataObject",0,1,argv))) SWIG_fail;
33329 --argc;
33330 if (argc == 0) {
33331 return _wrap_new_CustomDataObject__SWIG_2(self, argc, argv);
33332 }
33333 if (argc == 1) {
33334 int _v = 0;
093d3ff1 33335 {
0085ce49
RD
33336 {
33337 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
33338 }
093d3ff1 33339 }
0085ce49
RD
33340 if (!_v) goto check_2;
33341 return _wrap_new_CustomDataObject__SWIG_1(self, argc, argv);
33342 }
33343check_2:
33344
33345 if (argc == 1) {
33346 return _wrap_new_CustomDataObject__SWIG_0(self, argc, argv);
33347 }
33348
33349fail:
33350 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'");
33351 return NULL;
33352}
33353
33354
33355SWIGINTERN PyObject *_wrap_CustomDataObject_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33356 PyObject *resultobj = 0;
33357 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33358 PyObject *arg2 = (PyObject *) 0 ;
33359 bool result;
33360 void *argp1 = 0 ;
33361 int res1 = 0 ;
33362 PyObject * obj0 = 0 ;
33363 PyObject * obj1 = 0 ;
33364 char * kwnames[] = {
33365 (char *) "self",(char *) "data", NULL
33366 };
33367
33368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33370 if (!SWIG_IsOK(res1)) {
33371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_SetData" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33372 }
33373 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33374 arg2 = obj1;
33375 {
33376 PyThreadState* __tstate = wxPyBeginAllowThreads();
33377 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
33378 wxPyEndAllowThreads(__tstate);
33379 if (PyErr_Occurred()) SWIG_fail;
33380 }
33381 {
33382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33383 }
33384 return resultobj;
33385fail:
33386 return NULL;
d14a1e28
RD
33387}
33388
33389
0085ce49
RD
33390SWIGINTERN PyObject *_wrap_CustomDataObject_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33391 PyObject *resultobj = 0;
33392 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33393 size_t result;
33394 void *argp1 = 0 ;
33395 int res1 = 0 ;
33396 PyObject *swig_obj[1] ;
33397
33398 if (!args) SWIG_fail;
33399 swig_obj[0] = args;
33400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33401 if (!SWIG_IsOK(res1)) {
33402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_GetSize" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33403 }
33404 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33405 {
33406 PyThreadState* __tstate = wxPyBeginAllowThreads();
33407 result = (size_t)(arg1)->GetSize();
33408 wxPyEndAllowThreads(__tstate);
33409 if (PyErr_Occurred()) SWIG_fail;
33410 }
33411 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33412 return resultobj;
33413fail:
33414 return NULL;
d14a1e28
RD
33415}
33416
33417
0085ce49
RD
33418SWIGINTERN PyObject *_wrap_CustomDataObject_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33419 PyObject *resultobj = 0;
33420 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33421 PyObject *result = 0 ;
33422 void *argp1 = 0 ;
33423 int res1 = 0 ;
33424 PyObject *swig_obj[1] ;
33425
33426 if (!args) SWIG_fail;
33427 swig_obj[0] = args;
33428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33429 if (!SWIG_IsOK(res1)) {
33430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_GetData" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33431 }
33432 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33433 {
33434 PyThreadState* __tstate = wxPyBeginAllowThreads();
33435 result = (PyObject *)wxCustomDataObject_GetData(arg1);
33436 wxPyEndAllowThreads(__tstate);
33437 if (PyErr_Occurred()) SWIG_fail;
33438 }
33439 resultobj = result;
33440 return resultobj;
33441fail:
33442 return NULL;
d14a1e28
RD
33443}
33444
33445
0085ce49
RD
33446SWIGINTERN PyObject *CustomDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33447 PyObject *obj;
33448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33449 SWIG_TypeNewClientData(SWIGTYPE_p_wxCustomDataObject, SWIG_NewClientData(obj));
33450 return SWIG_Py_Void();
d14a1e28
RD
33451}
33452
0085ce49
RD
33453SWIGINTERN PyObject *CustomDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33454 return SWIG_Python_InitShadowInstance(args);
33455}
d14a1e28 33456
fc46b7f3 33457SWIGINTERN PyObject *_wrap_new_URLDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 33458 PyObject *resultobj = 0;
fc46b7f3
RD
33459 wxString const &arg1_defvalue = wxPyEmptyString ;
33460 wxString *arg1 = (wxString *) &arg1_defvalue ;
0085ce49 33461 wxURLDataObject *result = 0 ;
fc46b7f3
RD
33462 bool temp1 = false ;
33463 PyObject * obj0 = 0 ;
33464 char * kwnames[] = {
33465 (char *) "url", NULL
33466 };
0085ce49 33467
fc46b7f3
RD
33468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_URLDataObject",kwnames,&obj0)) SWIG_fail;
33469 if (obj0) {
33470 {
33471 arg1 = wxString_in_helper(obj0);
33472 if (arg1 == NULL) SWIG_fail;
33473 temp1 = true;
33474 }
33475 }
0085ce49
RD
33476 {
33477 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 33478 result = (wxURLDataObject *)new wxURLDataObject((wxString const &)*arg1);
0085ce49
RD
33479 wxPyEndAllowThreads(__tstate);
33480 if (PyErr_Occurred()) SWIG_fail;
33481 }
33482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_NEW | 0 );
fc46b7f3
RD
33483 {
33484 if (temp1)
33485 delete arg1;
33486 }
0085ce49
RD
33487 return resultobj;
33488fail:
fc46b7f3
RD
33489 {
33490 if (temp1)
33491 delete arg1;
33492 }
0085ce49 33493 return NULL;
d14a1e28
RD
33494}
33495
33496
0085ce49
RD
33497SWIGINTERN PyObject *_wrap_URLDataObject_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33498 PyObject *resultobj = 0;
33499 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
33500 wxString result;
33501 void *argp1 = 0 ;
33502 int res1 = 0 ;
33503 PyObject *swig_obj[1] ;
33504
33505 if (!args) SWIG_fail;
33506 swig_obj[0] = args;
33507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxURLDataObject, 0 | 0 );
33508 if (!SWIG_IsOK(res1)) {
33509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "URLDataObject_GetURL" "', expected argument " "1"" of type '" "wxURLDataObject *""'");
33510 }
33511 arg1 = reinterpret_cast< wxURLDataObject * >(argp1);
33512 {
33513 PyThreadState* __tstate = wxPyBeginAllowThreads();
33514 result = (arg1)->GetURL();
33515 wxPyEndAllowThreads(__tstate);
33516 if (PyErr_Occurred()) SWIG_fail;
33517 }
33518 {
33519#if wxUSE_UNICODE
33520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33521#else
33522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33523#endif
33524 }
33525 return resultobj;
33526fail:
33527 return NULL;
33528}
33529
33530
33531SWIGINTERN PyObject *_wrap_URLDataObject_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33532 PyObject *resultobj = 0;
33533 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
33534 wxString *arg2 = 0 ;
33535 void *argp1 = 0 ;
33536 int res1 = 0 ;
33537 bool temp2 = false ;
33538 PyObject * obj0 = 0 ;
33539 PyObject * obj1 = 0 ;
33540 char * kwnames[] = {
33541 (char *) "self",(char *) "url", NULL
33542 };
33543
33544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
33545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxURLDataObject, 0 | 0 );
33546 if (!SWIG_IsOK(res1)) {
33547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "URLDataObject_SetURL" "', expected argument " "1"" of type '" "wxURLDataObject *""'");
33548 }
33549 arg1 = reinterpret_cast< wxURLDataObject * >(argp1);
33550 {
33551 arg2 = wxString_in_helper(obj1);
33552 if (arg2 == NULL) SWIG_fail;
33553 temp2 = true;
33554 }
33555 {
33556 PyThreadState* __tstate = wxPyBeginAllowThreads();
33557 (arg1)->SetURL((wxString const &)*arg2);
33558 wxPyEndAllowThreads(__tstate);
33559 if (PyErr_Occurred()) SWIG_fail;
33560 }
33561 resultobj = SWIG_Py_Void();
33562 {
33563 if (temp2)
33564 delete arg2;
33565 }
33566 return resultobj;
33567fail:
33568 {
33569 if (temp2)
33570 delete arg2;
33571 }
33572 return NULL;
d14a1e28
RD
33573}
33574
33575
0085ce49
RD
33576SWIGINTERN PyObject *URLDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33577 PyObject *obj;
33578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33579 SWIG_TypeNewClientData(SWIGTYPE_p_wxURLDataObject, SWIG_NewClientData(obj));
33580 return SWIG_Py_Void();
d14a1e28
RD
33581}
33582
0085ce49
RD
33583SWIGINTERN PyObject *URLDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 return SWIG_Python_InitShadowInstance(args);
33585}
d14a1e28 33586
0085ce49
RD
33587SWIGINTERN PyObject *_wrap_new_MetafileDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33588 PyObject *resultobj = 0;
33589 wxMetafileDataObject *result = 0 ;
33590
33591 if (!SWIG_Python_UnpackTuple(args,"new_MetafileDataObject",0,0,0)) SWIG_fail;
33592 {
33593 PyThreadState* __tstate = wxPyBeginAllowThreads();
33594 result = (wxMetafileDataObject *)new wxMetafileDataObject();
33595 wxPyEndAllowThreads(__tstate);
33596 if (PyErr_Occurred()) SWIG_fail;
33597 }
33598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_NEW | 0 );
33599 return resultobj;
33600fail:
33601 return NULL;
d14a1e28
RD
33602}
33603
33604
0085ce49
RD
33605SWIGINTERN PyObject *MetafileDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33606 PyObject *obj;
33607 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33608 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetafileDataObject, SWIG_NewClientData(obj));
33609 return SWIG_Py_Void();
d14a1e28
RD
33610}
33611
0085ce49
RD
33612SWIGINTERN PyObject *MetafileDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33613 return SWIG_Python_InitShadowInstance(args);
33614}
d14a1e28 33615
0085ce49
RD
33616SWIGINTERN PyObject *_wrap_IsDragResultOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33617 PyObject *resultobj = 0;
33618 wxDragResult arg1 ;
33619 bool result;
33620 int val1 ;
33621 int ecode1 = 0 ;
33622 PyObject * obj0 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "res", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) SWIG_fail;
33628 ecode1 = SWIG_AsVal_int(obj0, &val1);
33629 if (!SWIG_IsOK(ecode1)) {
33630 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsDragResultOk" "', expected argument " "1"" of type '" "wxDragResult""'");
33631 }
33632 arg1 = static_cast< wxDragResult >(val1);
33633 {
33634 PyThreadState* __tstate = wxPyBeginAllowThreads();
33635 result = (bool)wxIsDragResultOk(arg1);
33636 wxPyEndAllowThreads(__tstate);
33637 if (PyErr_Occurred()) SWIG_fail;
33638 }
33639 {
33640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33641 }
33642 return resultobj;
33643fail:
33644 return NULL;
33645}
33646
33647
33648SWIGINTERN PyObject *_wrap_new_DropSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33649 PyObject *resultobj = 0;
33650 wxWindow *arg1 = (wxWindow *) 0 ;
33651 wxIcon const &arg2_defvalue = wxNullIcon ;
33652 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
33653 wxIcon const &arg3_defvalue = wxNullIcon ;
33654 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
33655 wxIcon const &arg4_defvalue = wxNullIcon ;
33656 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
33657 wxPyDropSource *result = 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 void *argp2 = 0 ;
33661 int res2 = 0 ;
33662 void *argp3 = 0 ;
33663 int res3 = 0 ;
33664 void *argp4 = 0 ;
33665 int res4 = 0 ;
33666 PyObject * obj0 = 0 ;
33667 PyObject * obj1 = 0 ;
33668 PyObject * obj2 = 0 ;
33669 PyObject * obj3 = 0 ;
33670 char * kwnames[] = {
33671 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
33672 };
33673
33674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33676 if (!SWIG_IsOK(res1)) {
33677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DropSource" "', expected argument " "1"" of type '" "wxWindow *""'");
33678 }
33679 arg1 = reinterpret_cast< wxWindow * >(argp1);
33680 if (obj1) {
33681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33682 if (!SWIG_IsOK(res2)) {
33683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DropSource" "', expected argument " "2"" of type '" "wxIcon const &""'");
d14a1e28 33684 }
0085ce49
RD
33685 if (!argp2) {
33686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "2"" of type '" "wxIcon const &""'");
d14a1e28 33687 }
0085ce49
RD
33688 arg2 = reinterpret_cast< wxIcon * >(argp2);
33689 }
33690 if (obj2) {
33691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxIcon, 0 | 0);
33692 if (!SWIG_IsOK(res3)) {
33693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DropSource" "', expected argument " "3"" of type '" "wxIcon const &""'");
093d3ff1 33694 }
0085ce49
RD
33695 if (!argp3) {
33696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "3"" of type '" "wxIcon const &""'");
d14a1e28 33697 }
0085ce49
RD
33698 arg3 = reinterpret_cast< wxIcon * >(argp3);
33699 }
33700 if (obj3) {
33701 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxIcon, 0 | 0);
33702 if (!SWIG_IsOK(res4)) {
33703 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DropSource" "', expected argument " "4"" of type '" "wxIcon const &""'");
d14a1e28 33704 }
0085ce49
RD
33705 if (!argp4) {
33706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "4"" of type '" "wxIcon const &""'");
33707 }
33708 arg4 = reinterpret_cast< wxIcon * >(argp4);
33709 }
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_NEW | 0 );
33717 return resultobj;
33718fail:
33719 return NULL;
33720}
33721
33722
33723SWIGINTERN PyObject *_wrap_DropSource__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33724 PyObject *resultobj = 0;
33725 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33726 PyObject *arg2 = (PyObject *) 0 ;
33727 PyObject *arg3 = (PyObject *) 0 ;
33728 int arg4 ;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 int val4 ;
33732 int ecode4 = 0 ;
33733 PyObject * obj0 = 0 ;
33734 PyObject * obj1 = 0 ;
33735 PyObject * obj2 = 0 ;
33736 PyObject * obj3 = 0 ;
33737 char * kwnames[] = {
33738 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
33739 };
33740
33741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33743 if (!SWIG_IsOK(res1)) {
33744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33745 }
33746 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33747 arg2 = obj1;
33748 arg3 = obj2;
33749 ecode4 = SWIG_AsVal_int(obj3, &val4);
33750 if (!SWIG_IsOK(ecode4)) {
33751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropSource__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
33752 }
33753 arg4 = static_cast< int >(val4);
33754 {
33755 PyThreadState* __tstate = wxPyBeginAllowThreads();
33756 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
33757 wxPyEndAllowThreads(__tstate);
33758 if (PyErr_Occurred()) SWIG_fail;
33759 }
33760 resultobj = SWIG_Py_Void();
33761 return resultobj;
33762fail:
33763 return NULL;
d14a1e28
RD
33764}
33765
33766
0085ce49
RD
33767SWIGINTERN PyObject *_wrap_delete_DropSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33768 PyObject *resultobj = 0;
33769 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 PyObject *swig_obj[1] ;
33773
33774 if (!args) SWIG_fail;
33775 swig_obj[0] = args;
33776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_DISOWN | 0 );
33777 if (!SWIG_IsOK(res1)) {
33778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DropSource" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33779 }
33780 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33781 {
33782 PyThreadState* __tstate = wxPyBeginAllowThreads();
33783 delete arg1;
d14a1e28 33784
0085ce49
RD
33785 wxPyEndAllowThreads(__tstate);
33786 if (PyErr_Occurred()) SWIG_fail;
33787 }
33788 resultobj = SWIG_Py_Void();
33789 return resultobj;
33790fail:
33791 return NULL;
33792}
33793
33794
33795SWIGINTERN PyObject *_wrap_DropSource_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33796 PyObject *resultobj = 0;
33797 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33798 wxDataObject *arg2 = 0 ;
33799 void *argp1 = 0 ;
33800 int res1 = 0 ;
33801 void *argp2 = 0 ;
33802 int res2 = 0 ;
33803 PyObject * obj0 = 0 ;
33804 PyObject * obj1 = 0 ;
33805 char * kwnames[] = {
33806 (char *) "self",(char *) "data", NULL
33807 };
33808
33809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33811 if (!SWIG_IsOK(res1)) {
33812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_SetData" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33813 }
33814 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataObject, 0 );
33816 if (!SWIG_IsOK(res2)) {
33817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DropSource_SetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
33818 }
33819 if (!argp2) {
33820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DropSource_SetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
33821 }
33822 arg2 = reinterpret_cast< wxDataObject * >(argp2);
33823 {
33824 PyThreadState* __tstate = wxPyBeginAllowThreads();
33825 (arg1)->SetData(*arg2);
33826 wxPyEndAllowThreads(__tstate);
33827 if (PyErr_Occurred()) SWIG_fail;
33828 }
33829 resultobj = SWIG_Py_Void();
33830 return resultobj;
33831fail:
33832 return NULL;
d14a1e28
RD
33833}
33834
33835
0085ce49
RD
33836SWIGINTERN PyObject *_wrap_DropSource_GetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33837 PyObject *resultobj = 0;
33838 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33839 wxDataObject *result = 0 ;
33840 void *argp1 = 0 ;
33841 int res1 = 0 ;
33842 PyObject *swig_obj[1] ;
33843
33844 if (!args) SWIG_fail;
33845 swig_obj[0] = args;
33846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33847 if (!SWIG_IsOK(res1)) {
33848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_GetDataObject" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33849 }
33850 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 result = (wxDataObject *)(arg1)->GetDataObject();
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObject, 0 | 0 );
33858 return resultobj;
33859fail:
33860 return NULL;
33861}
33862
33863
33864SWIGINTERN PyObject *_wrap_DropSource_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33867 wxDragResult arg2 ;
33868 wxCursor *arg3 = 0 ;
33869 void *argp1 = 0 ;
33870 int res1 = 0 ;
33871 int val2 ;
33872 int ecode2 = 0 ;
33873 void *argp3 = 0 ;
33874 int res3 = 0 ;
33875 PyObject * obj0 = 0 ;
33876 PyObject * obj1 = 0 ;
33877 PyObject * obj2 = 0 ;
33878 char * kwnames[] = {
33879 (char *) "self",(char *) "res",(char *) "cursor", NULL
33880 };
33881
33882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33884 if (!SWIG_IsOK(res1)) {
33885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_SetCursor" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33886 }
33887 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33888 ecode2 = SWIG_AsVal_int(obj1, &val2);
33889 if (!SWIG_IsOK(ecode2)) {
33890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_SetCursor" "', expected argument " "2"" of type '" "wxDragResult""'");
33891 }
33892 arg2 = static_cast< wxDragResult >(val2);
33893 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxCursor, 0 | 0);
33894 if (!SWIG_IsOK(res3)) {
33895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DropSource_SetCursor" "', expected argument " "3"" of type '" "wxCursor const &""'");
33896 }
33897 if (!argp3) {
33898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DropSource_SetCursor" "', expected argument " "3"" of type '" "wxCursor const &""'");
33899 }
33900 arg3 = reinterpret_cast< wxCursor * >(argp3);
33901 {
33902 PyThreadState* __tstate = wxPyBeginAllowThreads();
33903 (arg1)->SetCursor(arg2,(wxCursor const &)*arg3);
33904 wxPyEndAllowThreads(__tstate);
33905 if (PyErr_Occurred()) SWIG_fail;
33906 }
33907 resultobj = SWIG_Py_Void();
33908 return resultobj;
33909fail:
33910 return NULL;
33911}
33912
33913
33914SWIGINTERN PyObject *_wrap_DropSource_DoDragDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33915 PyObject *resultobj = 0;
33916 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33917 int arg2 = (int) wxDrag_CopyOnly ;
33918 wxDragResult result;
33919 void *argp1 = 0 ;
33920 int res1 = 0 ;
33921 int val2 ;
33922 int ecode2 = 0 ;
33923 PyObject * obj0 = 0 ;
33924 PyObject * obj1 = 0 ;
33925 char * kwnames[] = {
33926 (char *) "self",(char *) "flags", NULL
33927 };
33928
33929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) SWIG_fail;
33930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33931 if (!SWIG_IsOK(res1)) {
33932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_DoDragDrop" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33933 }
33934 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33935 if (obj1) {
33936 ecode2 = SWIG_AsVal_int(obj1, &val2);
33937 if (!SWIG_IsOK(ecode2)) {
33938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_DoDragDrop" "', expected argument " "2"" of type '" "int""'");
33939 }
33940 arg2 = static_cast< int >(val2);
33941 }
33942 {
33943 PyThreadState* __tstate = wxPyBeginAllowThreads();
33944 result = (wxDragResult)(arg1)->DoDragDrop(arg2);
33945 wxPyEndAllowThreads(__tstate);
33946 if (PyErr_Occurred()) SWIG_fail;
33947 }
33948 resultobj = SWIG_From_int(static_cast< int >(result));
33949 return resultobj;
33950fail:
33951 return NULL;
33952}
33953
33954
33955SWIGINTERN PyObject *_wrap_DropSource_GiveFeedback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33956 PyObject *resultobj = 0;
33957 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33958 wxDragResult arg2 ;
33959 bool result;
33960 void *argp1 = 0 ;
33961 int res1 = 0 ;
33962 int val2 ;
33963 int ecode2 = 0 ;
33964 PyObject * obj0 = 0 ;
33965 PyObject * obj1 = 0 ;
33966 char * kwnames[] = {
33967 (char *) "self",(char *) "effect", NULL
33968 };
33969
33970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_GiveFeedback",kwnames,&obj0,&obj1)) SWIG_fail;
33971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33972 if (!SWIG_IsOK(res1)) {
33973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_GiveFeedback" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33974 }
33975 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33976 ecode2 = SWIG_AsVal_int(obj1, &val2);
33977 if (!SWIG_IsOK(ecode2)) {
33978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_GiveFeedback" "', expected argument " "2"" of type '" "wxDragResult""'");
33979 }
33980 arg2 = static_cast< wxDragResult >(val2);
33981 {
33982 PyThreadState* __tstate = wxPyBeginAllowThreads();
33983 result = (bool)(arg1)->GiveFeedback(arg2);
33984 wxPyEndAllowThreads(__tstate);
33985 if (PyErr_Occurred()) SWIG_fail;
33986 }
33987 {
33988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33989 }
33990 return resultobj;
33991fail:
33992 return NULL;
d14a1e28
RD
33993}
33994
33995
0085ce49
RD
33996SWIGINTERN PyObject *DropSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33997 PyObject *obj;
33998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33999 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDropSource, SWIG_NewClientData(obj));
34000 return SWIG_Py_Void();
d14a1e28
RD
34001}
34002
0085ce49
RD
34003SWIGINTERN PyObject *DropSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34004 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
34005}
34006
0085ce49
RD
34007SWIGINTERN PyObject *_wrap_new_DropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34008 PyObject *resultobj = 0;
34009 wxDataObject *arg1 = (wxDataObject *) NULL ;
34010 wxPyDropTarget *result = 0 ;
34011 int res1 = 0 ;
34012 PyObject * obj0 = 0 ;
34013 char * kwnames[] = {
34014 (char *) "dataObject", NULL
34015 };
34016
34017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) SWIG_fail;
34018 if (obj0) {
34019 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
34020 if (!SWIG_IsOK(res1)) {
34021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DropTarget" "', expected argument " "1"" of type '" "wxDataObject *""'");
4f89f6a3 34022 }
0085ce49
RD
34023 }
34024 {
34025 PyThreadState* __tstate = wxPyBeginAllowThreads();
34026 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
34027 wxPyEndAllowThreads(__tstate);
34028 if (PyErr_Occurred()) SWIG_fail;
34029 }
34030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_NEW | 0 );
34031 return resultobj;
34032fail:
34033 return NULL;
34034}
34035
34036
34037SWIGINTERN PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34038 PyObject *resultobj = 0;
34039 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34040 PyObject *arg2 = (PyObject *) 0 ;
34041 PyObject *arg3 = (PyObject *) 0 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 PyObject * obj0 = 0 ;
34045 PyObject * obj1 = 0 ;
34046 PyObject * obj2 = 0 ;
34047 char * kwnames[] = {
34048 (char *) "self",(char *) "self",(char *) "_class", NULL
34049 };
34050
34051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34053 if (!SWIG_IsOK(res1)) {
34054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34055 }
34056 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34057 arg2 = obj1;
34058 arg3 = obj2;
34059 {
34060 PyThreadState* __tstate = wxPyBeginAllowThreads();
34061 (arg1)->_setCallbackInfo(arg2,arg3);
34062 wxPyEndAllowThreads(__tstate);
34063 if (PyErr_Occurred()) SWIG_fail;
34064 }
34065 resultobj = SWIG_Py_Void();
34066 return resultobj;
34067fail:
34068 return NULL;
d14a1e28
RD
34069}
34070
34071
0085ce49
RD
34072SWIGINTERN PyObject *_wrap_delete_DropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34073 PyObject *resultobj = 0;
34074 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34075 void *argp1 = 0 ;
34076 int res1 = 0 ;
34077 PyObject *swig_obj[1] ;
34078
34079 if (!args) SWIG_fail;
34080 swig_obj[0] = args;
34081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_DISOWN | 0 );
34082 if (!SWIG_IsOK(res1)) {
34083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DropTarget" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34084 }
34085 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34086 {
34087 PyThreadState* __tstate = wxPyBeginAllowThreads();
34088 delete arg1;
d14a1e28 34089
0085ce49
RD
34090 wxPyEndAllowThreads(__tstate);
34091 if (PyErr_Occurred()) SWIG_fail;
34092 }
34093 resultobj = SWIG_Py_Void();
34094 return resultobj;
34095fail:
34096 return NULL;
d14a1e28
RD
34097}
34098
34099
0085ce49
RD
34100SWIGINTERN PyObject *_wrap_DropTarget_GetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34101 PyObject *resultobj = 0;
34102 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34103 wxDataObject *result = 0 ;
34104 void *argp1 = 0 ;
34105 int res1 = 0 ;
34106 PyObject *swig_obj[1] ;
34107
34108 if (!args) SWIG_fail;
34109 swig_obj[0] = args;
34110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34111 if (!SWIG_IsOK(res1)) {
34112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetDataObject" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34113 }
34114 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34115 {
34116 PyThreadState* __tstate = wxPyBeginAllowThreads();
34117 result = (wxDataObject *)(arg1)->GetDataObject();
34118 wxPyEndAllowThreads(__tstate);
34119 if (PyErr_Occurred()) SWIG_fail;
34120 }
34121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObject, 0 | 0 );
34122 return resultobj;
34123fail:
34124 return NULL;
34125}
34126
34127
34128SWIGINTERN PyObject *_wrap_DropTarget_SetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34129 PyObject *resultobj = 0;
34130 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34131 wxDataObject *arg2 = (wxDataObject *) 0 ;
34132 void *argp1 = 0 ;
34133 int res1 = 0 ;
34134 int res2 = 0 ;
34135 PyObject * obj0 = 0 ;
34136 PyObject * obj1 = 0 ;
34137 char * kwnames[] = {
34138 (char *) "self",(char *) "dataObject", NULL
34139 };
34140
34141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) SWIG_fail;
34142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34143 if (!SWIG_IsOK(res1)) {
34144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_SetDataObject" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34145 }
34146 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34147 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
34148 if (!SWIG_IsOK(res2)) {
34149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DropTarget_SetDataObject" "', expected argument " "2"" of type '" "wxDataObject *""'");
34150 }
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 (arg1)->SetDataObject(arg2);
34154 wxPyEndAllowThreads(__tstate);
34155 if (PyErr_Occurred()) SWIG_fail;
34156 }
34157 resultobj = SWIG_Py_Void();
34158 return resultobj;
34159fail:
34160 return NULL;
34161}
34162
34163
34164SWIGINTERN PyObject *_wrap_DropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34165 PyObject *resultobj = 0;
34166 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34167 int arg2 ;
34168 int arg3 ;
34169 wxDragResult arg4 ;
34170 wxDragResult result;
34171 void *argp1 = 0 ;
34172 int res1 = 0 ;
34173 int val2 ;
34174 int ecode2 = 0 ;
34175 int val3 ;
34176 int ecode3 = 0 ;
34177 int val4 ;
34178 int ecode4 = 0 ;
34179 PyObject * obj0 = 0 ;
34180 PyObject * obj1 = 0 ;
34181 PyObject * obj2 = 0 ;
34182 PyObject * obj3 = 0 ;
34183 char * kwnames[] = {
2131d850 34184 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34185 };
34186
34187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34189 if (!SWIG_IsOK(res1)) {
34190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34191 }
34192 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34193 ecode2 = SWIG_AsVal_int(obj1, &val2);
34194 if (!SWIG_IsOK(ecode2)) {
34195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
34196 }
34197 arg2 = static_cast< int >(val2);
34198 ecode3 = SWIG_AsVal_int(obj2, &val3);
34199 if (!SWIG_IsOK(ecode3)) {
34200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
34201 }
34202 arg3 = static_cast< int >(val3);
34203 ecode4 = SWIG_AsVal_int(obj3, &val4);
34204 if (!SWIG_IsOK(ecode4)) {
34205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
34206 }
34207 arg4 = static_cast< wxDragResult >(val4);
34208 {
34209 PyThreadState* __tstate = wxPyBeginAllowThreads();
34210 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
34211 wxPyEndAllowThreads(__tstate);
34212 if (PyErr_Occurred()) SWIG_fail;
34213 }
34214 resultobj = SWIG_From_int(static_cast< int >(result));
34215 return resultobj;
34216fail:
34217 return NULL;
34218}
34219
34220
34221SWIGINTERN PyObject *_wrap_DropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34222 PyObject *resultobj = 0;
34223 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34224 int arg2 ;
34225 int arg3 ;
34226 wxDragResult arg4 ;
34227 wxDragResult result;
34228 void *argp1 = 0 ;
34229 int res1 = 0 ;
34230 int val2 ;
34231 int ecode2 = 0 ;
34232 int val3 ;
34233 int ecode3 = 0 ;
34234 int val4 ;
34235 int ecode4 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 PyObject * obj2 = 0 ;
34239 PyObject * obj3 = 0 ;
34240 char * kwnames[] = {
2131d850 34241 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34242 };
34243
34244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34246 if (!SWIG_IsOK(res1)) {
34247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34248 }
34249 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34250 ecode2 = SWIG_AsVal_int(obj1, &val2);
34251 if (!SWIG_IsOK(ecode2)) {
34252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
34253 }
34254 arg2 = static_cast< int >(val2);
34255 ecode3 = SWIG_AsVal_int(obj2, &val3);
34256 if (!SWIG_IsOK(ecode3)) {
34257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
34258 }
34259 arg3 = static_cast< int >(val3);
34260 ecode4 = SWIG_AsVal_int(obj3, &val4);
34261 if (!SWIG_IsOK(ecode4)) {
34262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
34263 }
34264 arg4 = static_cast< wxDragResult >(val4);
34265 {
34266 PyThreadState* __tstate = wxPyBeginAllowThreads();
34267 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
34268 wxPyEndAllowThreads(__tstate);
34269 if (PyErr_Occurred()) SWIG_fail;
34270 }
34271 resultobj = SWIG_From_int(static_cast< int >(result));
34272 return resultobj;
34273fail:
34274 return NULL;
d14a1e28
RD
34275}
34276
34277
0085ce49
RD
34278SWIGINTERN PyObject *_wrap_DropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34279 PyObject *resultobj = 0;
34280 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34281 void *argp1 = 0 ;
34282 int res1 = 0 ;
34283 PyObject *swig_obj[1] ;
34284
34285 if (!args) SWIG_fail;
34286 swig_obj[0] = args;
34287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34288 if (!SWIG_IsOK(res1)) {
34289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34290 }
34291 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34292 {
34293 PyThreadState* __tstate = wxPyBeginAllowThreads();
34294 (arg1)->OnLeave();
34295 wxPyEndAllowThreads(__tstate);
34296 if (PyErr_Occurred()) SWIG_fail;
34297 }
34298 resultobj = SWIG_Py_Void();
34299 return resultobj;
34300fail:
34301 return NULL;
34302}
34303
34304
34305SWIGINTERN PyObject *_wrap_DropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34306 PyObject *resultobj = 0;
34307 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34308 int arg2 ;
34309 int arg3 ;
34310 bool result;
34311 void *argp1 = 0 ;
34312 int res1 = 0 ;
34313 int val2 ;
34314 int ecode2 = 0 ;
34315 int val3 ;
34316 int ecode3 = 0 ;
34317 PyObject * obj0 = 0 ;
34318 PyObject * obj1 = 0 ;
34319 PyObject * obj2 = 0 ;
34320 char * kwnames[] = {
34321 (char *) "self",(char *) "x",(char *) "y", NULL
34322 };
34323
34324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34326 if (!SWIG_IsOK(res1)) {
34327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34328 }
34329 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34330 ecode2 = SWIG_AsVal_int(obj1, &val2);
34331 if (!SWIG_IsOK(ecode2)) {
34332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
34333 }
34334 arg2 = static_cast< int >(val2);
34335 ecode3 = SWIG_AsVal_int(obj2, &val3);
34336 if (!SWIG_IsOK(ecode3)) {
34337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
34338 }
34339 arg3 = static_cast< int >(val3);
34340 {
34341 PyThreadState* __tstate = wxPyBeginAllowThreads();
34342 result = (bool)(arg1)->OnDrop(arg2,arg3);
34343 wxPyEndAllowThreads(__tstate);
34344 if (PyErr_Occurred()) SWIG_fail;
34345 }
34346 {
34347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34348 }
34349 return resultobj;
34350fail:
34351 return NULL;
d14a1e28
RD
34352}
34353
34354
0085ce49
RD
34355SWIGINTERN PyObject *_wrap_DropTarget_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34356 PyObject *resultobj = 0;
34357 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34358 bool result;
34359 void *argp1 = 0 ;
34360 int res1 = 0 ;
34361 PyObject *swig_obj[1] ;
34362
34363 if (!args) SWIG_fail;
34364 swig_obj[0] = args;
34365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34366 if (!SWIG_IsOK(res1)) {
34367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetData" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34368 }
34369 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34370 {
34371 PyThreadState* __tstate = wxPyBeginAllowThreads();
34372 result = (bool)(arg1)->GetData();
34373 wxPyEndAllowThreads(__tstate);
34374 if (PyErr_Occurred()) SWIG_fail;
34375 }
34376 {
34377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34378 }
34379 return resultobj;
34380fail:
34381 return NULL;
34382}
34383
34384
34385SWIGINTERN PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34386 PyObject *resultobj = 0;
34387 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34388 wxDragResult arg2 ;
34389 void *argp1 = 0 ;
34390 int res1 = 0 ;
34391 int val2 ;
34392 int ecode2 = 0 ;
34393 PyObject * obj0 = 0 ;
34394 PyObject * obj1 = 0 ;
34395 char * kwnames[] = {
34396 (char *) "self",(char *) "action", NULL
34397 };
34398
34399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) SWIG_fail;
34400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34401 if (!SWIG_IsOK(res1)) {
34402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_SetDefaultAction" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34403 }
34404 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34405 ecode2 = SWIG_AsVal_int(obj1, &val2);
34406 if (!SWIG_IsOK(ecode2)) {
34407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_SetDefaultAction" "', expected argument " "2"" of type '" "wxDragResult""'");
34408 }
34409 arg2 = static_cast< wxDragResult >(val2);
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 (arg1)->SetDefaultAction(arg2);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_Py_Void();
34417 return resultobj;
34418fail:
34419 return NULL;
d14a1e28
RD
34420}
34421
34422
0085ce49
RD
34423SWIGINTERN PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34424 PyObject *resultobj = 0;
34425 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34426 wxDragResult result;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 PyObject *swig_obj[1] ;
34430
34431 if (!args) SWIG_fail;
34432 swig_obj[0] = args;
34433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34434 if (!SWIG_IsOK(res1)) {
34435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetDefaultAction" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34436 }
34437 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34438 {
34439 PyThreadState* __tstate = wxPyBeginAllowThreads();
34440 result = (wxDragResult)(arg1)->GetDefaultAction();
34441 wxPyEndAllowThreads(__tstate);
34442 if (PyErr_Occurred()) SWIG_fail;
34443 }
34444 resultobj = SWIG_From_int(static_cast< int >(result));
34445 return resultobj;
34446fail:
34447 return NULL;
d14a1e28
RD
34448}
34449
34450
0085ce49
RD
34451SWIGINTERN PyObject *DropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34452 PyObject *obj;
34453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34454 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDropTarget, SWIG_NewClientData(obj));
34455 return SWIG_Py_Void();
d14a1e28
RD
34456}
34457
0085ce49
RD
34458SWIGINTERN PyObject *DropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34459 return SWIG_Python_InitShadowInstance(args);
34460}
d14a1e28 34461
0085ce49
RD
34462SWIGINTERN PyObject *_wrap_new_TextDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34463 PyObject *resultobj = 0;
34464 wxPyTextDropTarget *result = 0 ;
34465
34466 if (!SWIG_Python_UnpackTuple(args,"new_TextDropTarget",0,0,0)) SWIG_fail;
34467 {
34468 PyThreadState* __tstate = wxPyBeginAllowThreads();
34469 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
34470 wxPyEndAllowThreads(__tstate);
34471 if (PyErr_Occurred()) SWIG_fail;
34472 }
34473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_NEW | 0 );
34474 return resultobj;
34475fail:
34476 return NULL;
34477}
34478
34479
34480SWIGINTERN PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34481 PyObject *resultobj = 0;
34482 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34483 PyObject *arg2 = (PyObject *) 0 ;
34484 PyObject *arg3 = (PyObject *) 0 ;
34485 void *argp1 = 0 ;
34486 int res1 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 PyObject * obj2 = 0 ;
34490 char * kwnames[] = {
34491 (char *) "self",(char *) "self",(char *) "_class", NULL
34492 };
34493
34494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34496 if (!SWIG_IsOK(res1)) {
34497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34498 }
34499 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34500 arg2 = obj1;
34501 arg3 = obj2;
34502 {
34503 PyThreadState* __tstate = wxPyBeginAllowThreads();
34504 (arg1)->_setCallbackInfo(arg2,arg3);
34505 wxPyEndAllowThreads(__tstate);
34506 if (PyErr_Occurred()) SWIG_fail;
34507 }
34508 resultobj = SWIG_Py_Void();
34509 return resultobj;
34510fail:
34511 return NULL;
34512}
34513
34514
34515SWIGINTERN PyObject *_wrap_TextDropTarget_OnDropText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34516 PyObject *resultobj = 0;
34517 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34518 int arg2 ;
34519 int arg3 ;
34520 wxString *arg4 = 0 ;
34521 bool result;
34522 void *argp1 = 0 ;
34523 int res1 = 0 ;
34524 int val2 ;
34525 int ecode2 = 0 ;
34526 int val3 ;
34527 int ecode3 = 0 ;
34528 bool temp4 = false ;
34529 PyObject * obj0 = 0 ;
34530 PyObject * obj1 = 0 ;
34531 PyObject * obj2 = 0 ;
34532 PyObject * obj3 = 0 ;
34533 char * kwnames[] = {
34534 (char *) "self",(char *) "x",(char *) "y",(char *) "text", NULL
34535 };
34536
34537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDropText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34539 if (!SWIG_IsOK(res1)) {
34540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDropText" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34541 }
34542 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34543 ecode2 = SWIG_AsVal_int(obj1, &val2);
34544 if (!SWIG_IsOK(ecode2)) {
34545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDropText" "', expected argument " "2"" of type '" "int""'");
34546 }
34547 arg2 = static_cast< int >(val2);
34548 ecode3 = SWIG_AsVal_int(obj2, &val3);
34549 if (!SWIG_IsOK(ecode3)) {
34550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDropText" "', expected argument " "3"" of type '" "int""'");
34551 }
34552 arg3 = static_cast< int >(val3);
34553 {
34554 arg4 = wxString_in_helper(obj3);
34555 if (arg4 == NULL) SWIG_fail;
34556 temp4 = true;
34557 }
34558 {
34559 PyThreadState* __tstate = wxPyBeginAllowThreads();
34560 result = (bool)(arg1)->OnDropText(arg2,arg3,(wxString const &)*arg4);
34561 wxPyEndAllowThreads(__tstate);
34562 if (PyErr_Occurred()) SWIG_fail;
34563 }
34564 {
34565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34566 }
34567 {
34568 if (temp4)
34569 delete arg4;
34570 }
34571 return resultobj;
34572fail:
34573 {
34574 if (temp4)
34575 delete arg4;
34576 }
34577 return NULL;
34578}
34579
34580
34581SWIGINTERN PyObject *_wrap_TextDropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj = 0;
34583 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34584 int arg2 ;
34585 int arg3 ;
34586 wxDragResult arg4 ;
34587 wxDragResult result;
34588 void *argp1 = 0 ;
34589 int res1 = 0 ;
34590 int val2 ;
34591 int ecode2 = 0 ;
34592 int val3 ;
34593 int ecode3 = 0 ;
34594 int val4 ;
34595 int ecode4 = 0 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 PyObject * obj2 = 0 ;
34599 PyObject * obj3 = 0 ;
34600 char * kwnames[] = {
2131d850 34601 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34602 };
34603
34604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34606 if (!SWIG_IsOK(res1)) {
34607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34608 }
34609 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34610 ecode2 = SWIG_AsVal_int(obj1, &val2);
34611 if (!SWIG_IsOK(ecode2)) {
34612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
34613 }
34614 arg2 = static_cast< int >(val2);
34615 ecode3 = SWIG_AsVal_int(obj2, &val3);
34616 if (!SWIG_IsOK(ecode3)) {
34617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
34618 }
34619 arg3 = static_cast< int >(val3);
34620 ecode4 = SWIG_AsVal_int(obj3, &val4);
34621 if (!SWIG_IsOK(ecode4)) {
34622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
34623 }
34624 arg4 = static_cast< wxDragResult >(val4);
34625 {
34626 PyThreadState* __tstate = wxPyBeginAllowThreads();
34627 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
34628 wxPyEndAllowThreads(__tstate);
34629 if (PyErr_Occurred()) SWIG_fail;
34630 }
34631 resultobj = SWIG_From_int(static_cast< int >(result));
34632 return resultobj;
34633fail:
34634 return NULL;
34635}
34636
34637
34638SWIGINTERN PyObject *_wrap_TextDropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34639 PyObject *resultobj = 0;
34640 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34641 int arg2 ;
34642 int arg3 ;
34643 wxDragResult arg4 ;
34644 wxDragResult result;
34645 void *argp1 = 0 ;
34646 int res1 = 0 ;
34647 int val2 ;
34648 int ecode2 = 0 ;
34649 int val3 ;
34650 int ecode3 = 0 ;
34651 int val4 ;
34652 int ecode4 = 0 ;
34653 PyObject * obj0 = 0 ;
34654 PyObject * obj1 = 0 ;
34655 PyObject * obj2 = 0 ;
34656 PyObject * obj3 = 0 ;
34657 char * kwnames[] = {
2131d850 34658 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34659 };
34660
34661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34663 if (!SWIG_IsOK(res1)) {
34664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34665 }
34666 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34667 ecode2 = SWIG_AsVal_int(obj1, &val2);
34668 if (!SWIG_IsOK(ecode2)) {
34669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
34670 }
34671 arg2 = static_cast< int >(val2);
34672 ecode3 = SWIG_AsVal_int(obj2, &val3);
34673 if (!SWIG_IsOK(ecode3)) {
34674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
34675 }
34676 arg3 = static_cast< int >(val3);
34677 ecode4 = SWIG_AsVal_int(obj3, &val4);
34678 if (!SWIG_IsOK(ecode4)) {
34679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
34680 }
34681 arg4 = static_cast< wxDragResult >(val4);
34682 {
34683 PyThreadState* __tstate = wxPyBeginAllowThreads();
34684 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
34685 wxPyEndAllowThreads(__tstate);
34686 if (PyErr_Occurred()) SWIG_fail;
34687 }
34688 resultobj = SWIG_From_int(static_cast< int >(result));
34689 return resultobj;
34690fail:
34691 return NULL;
d14a1e28
RD
34692}
34693
34694
0085ce49
RD
34695SWIGINTERN PyObject *_wrap_TextDropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34696 PyObject *resultobj = 0;
34697 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34698 void *argp1 = 0 ;
34699 int res1 = 0 ;
34700 PyObject *swig_obj[1] ;
34701
34702 if (!args) SWIG_fail;
34703 swig_obj[0] = args;
34704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34705 if (!SWIG_IsOK(res1)) {
34706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34707 }
34708 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34709 {
34710 PyThreadState* __tstate = wxPyBeginAllowThreads();
34711 (arg1)->OnLeave();
34712 wxPyEndAllowThreads(__tstate);
34713 if (PyErr_Occurred()) SWIG_fail;
34714 }
34715 resultobj = SWIG_Py_Void();
34716 return resultobj;
34717fail:
34718 return NULL;
34719}
34720
34721
34722SWIGINTERN PyObject *_wrap_TextDropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34723 PyObject *resultobj = 0;
34724 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34725 int arg2 ;
34726 int arg3 ;
34727 bool result;
34728 void *argp1 = 0 ;
34729 int res1 = 0 ;
34730 int val2 ;
34731 int ecode2 = 0 ;
34732 int val3 ;
34733 int ecode3 = 0 ;
34734 PyObject * obj0 = 0 ;
34735 PyObject * obj1 = 0 ;
34736 PyObject * obj2 = 0 ;
34737 char * kwnames[] = {
34738 (char *) "self",(char *) "x",(char *) "y", NULL
34739 };
34740
34741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34743 if (!SWIG_IsOK(res1)) {
34744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34745 }
34746 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34747 ecode2 = SWIG_AsVal_int(obj1, &val2);
34748 if (!SWIG_IsOK(ecode2)) {
34749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
34750 }
34751 arg2 = static_cast< int >(val2);
34752 ecode3 = SWIG_AsVal_int(obj2, &val3);
34753 if (!SWIG_IsOK(ecode3)) {
34754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
34755 }
34756 arg3 = static_cast< int >(val3);
34757 {
34758 PyThreadState* __tstate = wxPyBeginAllowThreads();
34759 result = (bool)(arg1)->OnDrop(arg2,arg3);
34760 wxPyEndAllowThreads(__tstate);
34761 if (PyErr_Occurred()) SWIG_fail;
34762 }
34763 {
34764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34765 }
34766 return resultobj;
34767fail:
34768 return NULL;
34769}
34770
34771
34772SWIGINTERN PyObject *_wrap_TextDropTarget_OnData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34773 PyObject *resultobj = 0;
34774 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34775 int arg2 ;
34776 int arg3 ;
34777 wxDragResult arg4 ;
34778 wxDragResult result;
34779 void *argp1 = 0 ;
34780 int res1 = 0 ;
34781 int val2 ;
34782 int ecode2 = 0 ;
34783 int val3 ;
34784 int ecode3 = 0 ;
34785 int val4 ;
34786 int ecode4 = 0 ;
34787 PyObject * obj0 = 0 ;
34788 PyObject * obj1 = 0 ;
34789 PyObject * obj2 = 0 ;
34790 PyObject * obj3 = 0 ;
34791 char * kwnames[] = {
2131d850 34792 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34793 };
34794
34795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34797 if (!SWIG_IsOK(res1)) {
34798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnData" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34799 }
34800 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34801 ecode2 = SWIG_AsVal_int(obj1, &val2);
34802 if (!SWIG_IsOK(ecode2)) {
34803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnData" "', expected argument " "2"" of type '" "int""'");
34804 }
34805 arg2 = static_cast< int >(val2);
34806 ecode3 = SWIG_AsVal_int(obj2, &val3);
34807 if (!SWIG_IsOK(ecode3)) {
34808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnData" "', expected argument " "3"" of type '" "int""'");
34809 }
34810 arg3 = static_cast< int >(val3);
34811 ecode4 = SWIG_AsVal_int(obj3, &val4);
34812 if (!SWIG_IsOK(ecode4)) {
34813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnData" "', expected argument " "4"" of type '" "wxDragResult""'");
34814 }
34815 arg4 = static_cast< wxDragResult >(val4);
34816 {
34817 PyThreadState* __tstate = wxPyBeginAllowThreads();
34818 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
34819 wxPyEndAllowThreads(__tstate);
34820 if (PyErr_Occurred()) SWIG_fail;
34821 }
34822 resultobj = SWIG_From_int(static_cast< int >(result));
34823 return resultobj;
34824fail:
34825 return NULL;
d14a1e28
RD
34826}
34827
34828
0085ce49
RD
34829SWIGINTERN PyObject *TextDropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34830 PyObject *obj;
34831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34832 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTextDropTarget, SWIG_NewClientData(obj));
34833 return SWIG_Py_Void();
d14a1e28
RD
34834}
34835
0085ce49
RD
34836SWIGINTERN PyObject *TextDropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34837 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
34838}
34839
0085ce49
RD
34840SWIGINTERN PyObject *_wrap_new_FileDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34841 PyObject *resultobj = 0;
34842 wxPyFileDropTarget *result = 0 ;
34843
34844 if (!SWIG_Python_UnpackTuple(args,"new_FileDropTarget",0,0,0)) SWIG_fail;
34845 {
34846 PyThreadState* __tstate = wxPyBeginAllowThreads();
34847 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
34848 wxPyEndAllowThreads(__tstate);
34849 if (PyErr_Occurred()) SWIG_fail;
34850 }
34851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_NEW | 0 );
34852 return resultobj;
34853fail:
34854 return NULL;
34855}
34856
34857
34858SWIGINTERN PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34859 PyObject *resultobj = 0;
34860 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
34861 PyObject *arg2 = (PyObject *) 0 ;
34862 PyObject *arg3 = (PyObject *) 0 ;
34863 void *argp1 = 0 ;
34864 int res1 = 0 ;
34865 PyObject * obj0 = 0 ;
34866 PyObject * obj1 = 0 ;
34867 PyObject * obj2 = 0 ;
34868 char * kwnames[] = {
34869 (char *) "self",(char *) "self",(char *) "_class", NULL
34870 };
34871
34872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
34874 if (!SWIG_IsOK(res1)) {
34875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
34876 }
34877 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
34878 arg2 = obj1;
34879 arg3 = obj2;
34880 {
34881 PyThreadState* __tstate = wxPyBeginAllowThreads();
34882 (arg1)->_setCallbackInfo(arg2,arg3);
34883 wxPyEndAllowThreads(__tstate);
34884 if (PyErr_Occurred()) SWIG_fail;
34885 }
34886 resultobj = SWIG_Py_Void();
34887 return resultobj;
34888fail:
34889 return NULL;
34890}
34891
34892
34893SWIGINTERN PyObject *_wrap_FileDropTarget_OnDropFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34894 PyObject *resultobj = 0;
34895 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
34896 int arg2 ;
34897 int arg3 ;
34898 wxArrayString *arg4 = 0 ;
34899 bool result;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 int val2 ;
34903 int ecode2 = 0 ;
34904 int val3 ;
34905 int ecode3 = 0 ;
34906 bool temp4 = false ;
34907 PyObject * obj0 = 0 ;
34908 PyObject * obj1 = 0 ;
34909 PyObject * obj2 = 0 ;
34910 PyObject * obj3 = 0 ;
34911 char * kwnames[] = {
34912 (char *) "self",(char *) "x",(char *) "y",(char *) "filenames", NULL
34913 };
34914
34915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDropFiles",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
34917 if (!SWIG_IsOK(res1)) {
34918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
34919 }
34920 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
34921 ecode2 = SWIG_AsVal_int(obj1, &val2);
34922 if (!SWIG_IsOK(ecode2)) {
34923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "2"" of type '" "int""'");
34924 }
34925 arg2 = static_cast< int >(val2);
34926 ecode3 = SWIG_AsVal_int(obj2, &val3);
34927 if (!SWIG_IsOK(ecode3)) {
34928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "3"" of type '" "int""'");
34929 }
34930 arg3 = static_cast< int >(val3);
34931 {
34932 if (! PySequence_Check(obj3)) {
34933 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
34934 SWIG_fail;
34935 }
34936 arg4 = new wxArrayString;
34937 temp4 = true;
34938 int i, len=PySequence_Length(obj3);
34939 for (i=0; i<len; i++) {
34940 PyObject* item = PySequence_GetItem(obj3, i);
34941 wxString* s = wxString_in_helper(item);
34942 if (PyErr_Occurred()) SWIG_fail;
34943 arg4->Add(*s);
34944 delete s;
34945 Py_DECREF(item);
d14a1e28 34946 }
0085ce49
RD
34947 }
34948 {
34949 PyThreadState* __tstate = wxPyBeginAllowThreads();
34950 result = (bool)(arg1)->OnDropFiles(arg2,arg3,(wxArrayString const &)*arg4);
34951 wxPyEndAllowThreads(__tstate);
34952 if (PyErr_Occurred()) SWIG_fail;
34953 }
34954 {
34955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34956 }
34957 {
34958 if (temp4) delete arg4;
34959 }
34960 return resultobj;
34961fail:
34962 {
34963 if (temp4) delete arg4;
34964 }
34965 return NULL;
34966}
34967
34968
34969SWIGINTERN PyObject *_wrap_FileDropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34970 PyObject *resultobj = 0;
34971 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
34972 int arg2 ;
34973 int arg3 ;
34974 wxDragResult arg4 ;
34975 wxDragResult result;
34976 void *argp1 = 0 ;
34977 int res1 = 0 ;
34978 int val2 ;
34979 int ecode2 = 0 ;
34980 int val3 ;
34981 int ecode3 = 0 ;
34982 int val4 ;
34983 int ecode4 = 0 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 PyObject * obj2 = 0 ;
34987 PyObject * obj3 = 0 ;
34988 char * kwnames[] = {
2131d850 34989 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
34990 };
34991
34992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
34994 if (!SWIG_IsOK(res1)) {
34995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
34996 }
34997 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
34998 ecode2 = SWIG_AsVal_int(obj1, &val2);
34999 if (!SWIG_IsOK(ecode2)) {
35000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
35001 }
35002 arg2 = static_cast< int >(val2);
35003 ecode3 = SWIG_AsVal_int(obj2, &val3);
35004 if (!SWIG_IsOK(ecode3)) {
35005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
35006 }
35007 arg3 = static_cast< int >(val3);
35008 ecode4 = SWIG_AsVal_int(obj3, &val4);
35009 if (!SWIG_IsOK(ecode4)) {
35010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
35011 }
35012 arg4 = static_cast< wxDragResult >(val4);
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
35016 wxPyEndAllowThreads(__tstate);
35017 if (PyErr_Occurred()) SWIG_fail;
35018 }
35019 resultobj = SWIG_From_int(static_cast< int >(result));
35020 return resultobj;
35021fail:
35022 return NULL;
35023}
35024
35025
35026SWIGINTERN PyObject *_wrap_FileDropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35027 PyObject *resultobj = 0;
35028 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35029 int arg2 ;
35030 int arg3 ;
35031 wxDragResult arg4 ;
35032 wxDragResult result;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 int val2 ;
35036 int ecode2 = 0 ;
35037 int val3 ;
35038 int ecode3 = 0 ;
35039 int val4 ;
35040 int ecode4 = 0 ;
35041 PyObject * obj0 = 0 ;
35042 PyObject * obj1 = 0 ;
35043 PyObject * obj2 = 0 ;
35044 PyObject * obj3 = 0 ;
35045 char * kwnames[] = {
2131d850 35046 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
35047 };
35048
35049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35051 if (!SWIG_IsOK(res1)) {
35052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35053 }
35054 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35055 ecode2 = SWIG_AsVal_int(obj1, &val2);
35056 if (!SWIG_IsOK(ecode2)) {
35057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
35058 }
35059 arg2 = static_cast< int >(val2);
35060 ecode3 = SWIG_AsVal_int(obj2, &val3);
35061 if (!SWIG_IsOK(ecode3)) {
35062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
35063 }
35064 arg3 = static_cast< int >(val3);
35065 ecode4 = SWIG_AsVal_int(obj3, &val4);
35066 if (!SWIG_IsOK(ecode4)) {
35067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
35068 }
35069 arg4 = static_cast< wxDragResult >(val4);
35070 {
35071 PyThreadState* __tstate = wxPyBeginAllowThreads();
35072 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
35073 wxPyEndAllowThreads(__tstate);
35074 if (PyErr_Occurred()) SWIG_fail;
35075 }
35076 resultobj = SWIG_From_int(static_cast< int >(result));
35077 return resultobj;
35078fail:
35079 return NULL;
d14a1e28
RD
35080}
35081
35082
0085ce49
RD
35083SWIGINTERN PyObject *_wrap_FileDropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35084 PyObject *resultobj = 0;
35085 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35086 void *argp1 = 0 ;
35087 int res1 = 0 ;
35088 PyObject *swig_obj[1] ;
35089
35090 if (!args) SWIG_fail;
35091 swig_obj[0] = args;
35092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35093 if (!SWIG_IsOK(res1)) {
35094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35095 }
35096 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35097 {
35098 PyThreadState* __tstate = wxPyBeginAllowThreads();
35099 (arg1)->OnLeave();
35100 wxPyEndAllowThreads(__tstate);
35101 if (PyErr_Occurred()) SWIG_fail;
35102 }
35103 resultobj = SWIG_Py_Void();
35104 return resultobj;
35105fail:
35106 return NULL;
35107}
35108
35109
35110SWIGINTERN PyObject *_wrap_FileDropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35111 PyObject *resultobj = 0;
35112 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35113 int arg2 ;
35114 int arg3 ;
35115 bool result;
35116 void *argp1 = 0 ;
35117 int res1 = 0 ;
35118 int val2 ;
35119 int ecode2 = 0 ;
35120 int val3 ;
35121 int ecode3 = 0 ;
35122 PyObject * obj0 = 0 ;
35123 PyObject * obj1 = 0 ;
35124 PyObject * obj2 = 0 ;
35125 char * kwnames[] = {
35126 (char *) "self",(char *) "x",(char *) "y", NULL
35127 };
35128
35129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35131 if (!SWIG_IsOK(res1)) {
35132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35133 }
35134 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35135 ecode2 = SWIG_AsVal_int(obj1, &val2);
35136 if (!SWIG_IsOK(ecode2)) {
35137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
35138 }
35139 arg2 = static_cast< int >(val2);
35140 ecode3 = SWIG_AsVal_int(obj2, &val3);
35141 if (!SWIG_IsOK(ecode3)) {
35142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
35143 }
35144 arg3 = static_cast< int >(val3);
35145 {
35146 PyThreadState* __tstate = wxPyBeginAllowThreads();
35147 result = (bool)(arg1)->OnDrop(arg2,arg3);
35148 wxPyEndAllowThreads(__tstate);
35149 if (PyErr_Occurred()) SWIG_fail;
35150 }
35151 {
35152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35153 }
35154 return resultobj;
35155fail:
35156 return NULL;
35157}
35158
35159
35160SWIGINTERN PyObject *_wrap_FileDropTarget_OnData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35161 PyObject *resultobj = 0;
35162 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35163 int arg2 ;
35164 int arg3 ;
35165 wxDragResult arg4 ;
35166 wxDragResult result;
35167 void *argp1 = 0 ;
35168 int res1 = 0 ;
35169 int val2 ;
35170 int ecode2 = 0 ;
35171 int val3 ;
35172 int ecode3 = 0 ;
35173 int val4 ;
35174 int ecode4 = 0 ;
35175 PyObject * obj0 = 0 ;
35176 PyObject * obj1 = 0 ;
35177 PyObject * obj2 = 0 ;
35178 PyObject * obj3 = 0 ;
35179 char * kwnames[] = {
2131d850 35180 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
0085ce49
RD
35181 };
35182
35183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35185 if (!SWIG_IsOK(res1)) {
35186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnData" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35187 }
35188 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35189 ecode2 = SWIG_AsVal_int(obj1, &val2);
35190 if (!SWIG_IsOK(ecode2)) {
35191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnData" "', expected argument " "2"" of type '" "int""'");
35192 }
35193 arg2 = static_cast< int >(val2);
35194 ecode3 = SWIG_AsVal_int(obj2, &val3);
35195 if (!SWIG_IsOK(ecode3)) {
35196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnData" "', expected argument " "3"" of type '" "int""'");
35197 }
35198 arg3 = static_cast< int >(val3);
35199 ecode4 = SWIG_AsVal_int(obj3, &val4);
35200 if (!SWIG_IsOK(ecode4)) {
35201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnData" "', expected argument " "4"" of type '" "wxDragResult""'");
35202 }
35203 arg4 = static_cast< wxDragResult >(val4);
35204 {
35205 PyThreadState* __tstate = wxPyBeginAllowThreads();
35206 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
35207 wxPyEndAllowThreads(__tstate);
35208 if (PyErr_Occurred()) SWIG_fail;
35209 }
35210 resultobj = SWIG_From_int(static_cast< int >(result));
35211 return resultobj;
35212fail:
35213 return NULL;
d14a1e28
RD
35214}
35215
35216
0085ce49
RD
35217SWIGINTERN PyObject *FileDropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35218 PyObject *obj;
35219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35220 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFileDropTarget, SWIG_NewClientData(obj));
35221 return SWIG_Py_Void();
d14a1e28
RD
35222}
35223
0085ce49
RD
35224SWIGINTERN PyObject *FileDropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35225 return SWIG_Python_InitShadowInstance(args);
35226}
d14a1e28 35227
0085ce49
RD
35228SWIGINTERN PyObject *_wrap_new_Clipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35229 PyObject *resultobj = 0;
35230 wxClipboard *result = 0 ;
35231
35232 if (!SWIG_Python_UnpackTuple(args,"new_Clipboard",0,0,0)) SWIG_fail;
35233 {
35234 PyThreadState* __tstate = wxPyBeginAllowThreads();
35235 result = (wxClipboard *)new wxClipboard();
35236 wxPyEndAllowThreads(__tstate);
35237 if (PyErr_Occurred()) SWIG_fail;
35238 }
35239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboard, SWIG_POINTER_NEW | 0 );
35240 return resultobj;
35241fail:
35242 return NULL;
d14a1e28
RD
35243}
35244
35245
0085ce49
RD
35246SWIGINTERN PyObject *_wrap_delete_Clipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35247 PyObject *resultobj = 0;
35248 wxClipboard *arg1 = (wxClipboard *) 0 ;
35249 void *argp1 = 0 ;
35250 int res1 = 0 ;
35251 PyObject *swig_obj[1] ;
35252
35253 if (!args) SWIG_fail;
35254 swig_obj[0] = args;
35255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, SWIG_POINTER_DISOWN | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Clipboard" "', expected argument " "1"" of type '" "wxClipboard *""'");
35258 }
35259 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35260 {
35261 PyThreadState* __tstate = wxPyBeginAllowThreads();
35262 delete arg1;
d14a1e28 35263
0085ce49
RD
35264 wxPyEndAllowThreads(__tstate);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 resultobj = SWIG_Py_Void();
35268 return resultobj;
35269fail:
35270 return NULL;
d14a1e28
RD
35271}
35272
35273
0085ce49
RD
35274SWIGINTERN PyObject *_wrap_Clipboard_Open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35275 PyObject *resultobj = 0;
35276 wxClipboard *arg1 = (wxClipboard *) 0 ;
35277 bool result;
35278 void *argp1 = 0 ;
35279 int res1 = 0 ;
35280 PyObject *swig_obj[1] ;
35281
35282 if (!args) SWIG_fail;
35283 swig_obj[0] = args;
35284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35285 if (!SWIG_IsOK(res1)) {
35286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Open" "', expected argument " "1"" of type '" "wxClipboard *""'");
35287 }
35288 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35289 {
35290 PyThreadState* __tstate = wxPyBeginAllowThreads();
35291 result = (bool)(arg1)->Open();
35292 wxPyEndAllowThreads(__tstate);
35293 if (PyErr_Occurred()) SWIG_fail;
35294 }
35295 {
35296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35297 }
35298 return resultobj;
35299fail:
35300 return NULL;
d14a1e28
RD
35301}
35302
35303
0085ce49
RD
35304SWIGINTERN PyObject *_wrap_Clipboard_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35305 PyObject *resultobj = 0;
35306 wxClipboard *arg1 = (wxClipboard *) 0 ;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 PyObject *swig_obj[1] ;
35310
35311 if (!args) SWIG_fail;
35312 swig_obj[0] = args;
35313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35314 if (!SWIG_IsOK(res1)) {
35315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Close" "', expected argument " "1"" of type '" "wxClipboard *""'");
35316 }
35317 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 (arg1)->Close();
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_Py_Void();
35325 return resultobj;
35326fail:
35327 return NULL;
d14a1e28
RD
35328}
35329
35330
0085ce49
RD
35331SWIGINTERN PyObject *_wrap_Clipboard_IsOpened(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35332 PyObject *resultobj = 0;
35333 wxClipboard *arg1 = (wxClipboard *) 0 ;
35334 bool result;
35335 void *argp1 = 0 ;
35336 int res1 = 0 ;
35337 PyObject *swig_obj[1] ;
35338
35339 if (!args) SWIG_fail;
35340 swig_obj[0] = args;
35341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35342 if (!SWIG_IsOK(res1)) {
35343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsOpened" "', expected argument " "1"" of type '" "wxClipboard const *""'");
35344 }
35345 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35346 {
35347 PyThreadState* __tstate = wxPyBeginAllowThreads();
35348 result = (bool)((wxClipboard const *)arg1)->IsOpened();
35349 wxPyEndAllowThreads(__tstate);
35350 if (PyErr_Occurred()) SWIG_fail;
35351 }
35352 {
35353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35354 }
35355 return resultobj;
35356fail:
35357 return NULL;
35358}
35359
35360
35361SWIGINTERN PyObject *_wrap_Clipboard_AddData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35362 PyObject *resultobj = 0;
35363 wxClipboard *arg1 = (wxClipboard *) 0 ;
35364 wxDataObject *arg2 = (wxDataObject *) 0 ;
35365 bool result;
35366 void *argp1 = 0 ;
35367 int res1 = 0 ;
35368 int res2 = 0 ;
35369 PyObject * obj0 = 0 ;
35370 PyObject * obj1 = 0 ;
35371 char * kwnames[] = {
35372 (char *) "self",(char *) "data", NULL
35373 };
35374
35375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) SWIG_fail;
35376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35377 if (!SWIG_IsOK(res1)) {
35378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_AddData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35379 }
35380 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35381 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
35382 if (!SWIG_IsOK(res2)) {
35383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_AddData" "', expected argument " "2"" of type '" "wxDataObject *""'");
35384 }
35385 {
35386 PyThreadState* __tstate = wxPyBeginAllowThreads();
35387 result = (bool)(arg1)->AddData(arg2);
35388 wxPyEndAllowThreads(__tstate);
35389 if (PyErr_Occurred()) SWIG_fail;
35390 }
35391 {
35392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35393 }
35394 return resultobj;
35395fail:
35396 return NULL;
35397}
35398
35399
35400SWIGINTERN PyObject *_wrap_Clipboard_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35401 PyObject *resultobj = 0;
35402 wxClipboard *arg1 = (wxClipboard *) 0 ;
35403 wxDataObject *arg2 = (wxDataObject *) 0 ;
35404 bool result;
35405 void *argp1 = 0 ;
35406 int res1 = 0 ;
35407 int res2 = 0 ;
35408 PyObject * obj0 = 0 ;
35409 PyObject * obj1 = 0 ;
35410 char * kwnames[] = {
35411 (char *) "self",(char *) "data", NULL
35412 };
35413
35414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
35415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35416 if (!SWIG_IsOK(res1)) {
35417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_SetData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35418 }
35419 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35420 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
35421 if (!SWIG_IsOK(res2)) {
35422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_SetData" "', expected argument " "2"" of type '" "wxDataObject *""'");
35423 }
35424 {
35425 PyThreadState* __tstate = wxPyBeginAllowThreads();
35426 result = (bool)(arg1)->SetData(arg2);
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 {
35431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35432 }
35433 return resultobj;
35434fail:
35435 return NULL;
35436}
35437
35438
35439SWIGINTERN PyObject *_wrap_Clipboard_IsSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35440 PyObject *resultobj = 0;
35441 wxClipboard *arg1 = (wxClipboard *) 0 ;
35442 wxDataFormat *arg2 = 0 ;
35443 bool result;
35444 void *argp1 = 0 ;
35445 int res1 = 0 ;
35446 void *argp2 = 0 ;
35447 int res2 = 0 ;
35448 PyObject * obj0 = 0 ;
35449 PyObject * obj1 = 0 ;
35450 char * kwnames[] = {
35451 (char *) "self",(char *) "format", NULL
35452 };
35453
35454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) SWIG_fail;
35455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35456 if (!SWIG_IsOK(res1)) {
35457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsSupported" "', expected argument " "1"" of type '" "wxClipboard *""'");
35458 }
35459 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
35461 if (!SWIG_IsOK(res2)) {
35462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
35463 }
35464 if (!argp2) {
35465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clipboard_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
35466 }
35467 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
35468 {
35469 PyThreadState* __tstate = wxPyBeginAllowThreads();
35470 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
35471 wxPyEndAllowThreads(__tstate);
35472 if (PyErr_Occurred()) SWIG_fail;
35473 }
35474 {
35475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35476 }
35477 return resultobj;
35478fail:
35479 return NULL;
35480}
35481
35482
35483SWIGINTERN PyObject *_wrap_Clipboard_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35484 PyObject *resultobj = 0;
35485 wxClipboard *arg1 = (wxClipboard *) 0 ;
35486 wxDataObject *arg2 = 0 ;
35487 bool result;
35488 void *argp1 = 0 ;
35489 int res1 = 0 ;
35490 void *argp2 = 0 ;
35491 int res2 = 0 ;
35492 PyObject * obj0 = 0 ;
35493 PyObject * obj1 = 0 ;
35494 char * kwnames[] = {
35495 (char *) "self",(char *) "data", NULL
35496 };
35497
35498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) SWIG_fail;
35499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35500 if (!SWIG_IsOK(res1)) {
35501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_GetData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35502 }
35503 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataObject, 0 );
35505 if (!SWIG_IsOK(res2)) {
35506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_GetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
35507 }
35508 if (!argp2) {
35509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clipboard_GetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
35510 }
35511 arg2 = reinterpret_cast< wxDataObject * >(argp2);
35512 {
35513 PyThreadState* __tstate = wxPyBeginAllowThreads();
35514 result = (bool)(arg1)->GetData(*arg2);
35515 wxPyEndAllowThreads(__tstate);
35516 if (PyErr_Occurred()) SWIG_fail;
35517 }
35518 {
35519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35520 }
35521 return resultobj;
35522fail:
35523 return NULL;
d14a1e28
RD
35524}
35525
35526
0085ce49
RD
35527SWIGINTERN PyObject *_wrap_Clipboard_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35528 PyObject *resultobj = 0;
35529 wxClipboard *arg1 = (wxClipboard *) 0 ;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 PyObject *swig_obj[1] ;
35533
35534 if (!args) SWIG_fail;
35535 swig_obj[0] = args;
35536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Clear" "', expected argument " "1"" of type '" "wxClipboard *""'");
35539 }
35540 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 (arg1)->Clear();
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_Py_Void();
35548 return resultobj;
35549fail:
35550 return NULL;
d14a1e28
RD
35551}
35552
35553
0085ce49
RD
35554SWIGINTERN PyObject *_wrap_Clipboard_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35555 PyObject *resultobj = 0;
35556 wxClipboard *arg1 = (wxClipboard *) 0 ;
35557 bool result;
35558 void *argp1 = 0 ;
35559 int res1 = 0 ;
35560 PyObject *swig_obj[1] ;
35561
35562 if (!args) SWIG_fail;
35563 swig_obj[0] = args;
35564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35565 if (!SWIG_IsOK(res1)) {
35566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Flush" "', expected argument " "1"" of type '" "wxClipboard *""'");
35567 }
35568 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35569 {
35570 PyThreadState* __tstate = wxPyBeginAllowThreads();
35571 result = (bool)(arg1)->Flush();
35572 wxPyEndAllowThreads(__tstate);
35573 if (PyErr_Occurred()) SWIG_fail;
35574 }
35575 {
35576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35577 }
35578 return resultobj;
35579fail:
35580 return NULL;
35581}
35582
35583
35584SWIGINTERN PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35585 PyObject *resultobj = 0;
35586 wxClipboard *arg1 = (wxClipboard *) 0 ;
35587 bool arg2 = (bool) true ;
35588 void *argp1 = 0 ;
35589 int res1 = 0 ;
35590 bool val2 ;
35591 int ecode2 = 0 ;
35592 PyObject * obj0 = 0 ;
35593 PyObject * obj1 = 0 ;
35594 char * kwnames[] = {
35595 (char *) "self",(char *) "primary", NULL
35596 };
35597
35598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) SWIG_fail;
35599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35600 if (!SWIG_IsOK(res1)) {
35601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_UsePrimarySelection" "', expected argument " "1"" of type '" "wxClipboard *""'");
35602 }
35603 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35604 if (obj1) {
35605 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35606 if (!SWIG_IsOK(ecode2)) {
35607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Clipboard_UsePrimarySelection" "', expected argument " "2"" of type '" "bool""'");
35608 }
35609 arg2 = static_cast< bool >(val2);
35610 }
35611 {
35612 PyThreadState* __tstate = wxPyBeginAllowThreads();
35613 (arg1)->UsePrimarySelection(arg2);
35614 wxPyEndAllowThreads(__tstate);
35615 if (PyErr_Occurred()) SWIG_fail;
35616 }
35617 resultobj = SWIG_Py_Void();
35618 return resultobj;
35619fail:
35620 return NULL;
d14a1e28
RD
35621}
35622
35623
0085ce49
RD
35624SWIGINTERN PyObject *_wrap_Clipboard_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35625 PyObject *resultobj = 0;
35626 wxClipboard *result = 0 ;
35627
35628 if (!SWIG_Python_UnpackTuple(args,"Clipboard_Get",0,0,0)) SWIG_fail;
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 result = (wxClipboard *)wxClipboard::Get();
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboard, 0 | 0 );
35636 return resultobj;
35637fail:
35638 return NULL;
d14a1e28
RD
35639}
35640
35641
0085ce49
RD
35642SWIGINTERN PyObject *Clipboard_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35643 PyObject *obj;
35644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35645 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboard, SWIG_NewClientData(obj));
35646 return SWIG_Py_Void();
d14a1e28
RD
35647}
35648
0085ce49
RD
35649SWIGINTERN PyObject *Clipboard_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35650 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
35651}
35652
0085ce49
RD
35653SWIGINTERN PyObject *_wrap_new_ClipboardLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35654 PyObject *resultobj = 0;
35655 wxClipboard *arg1 = (wxClipboard *) NULL ;
35656 wxClipboardLocker *result = 0 ;
35657 void *argp1 = 0 ;
35658 int res1 = 0 ;
35659 PyObject * obj0 = 0 ;
35660 char * kwnames[] = {
35661 (char *) "clipboard", NULL
35662 };
35663
35664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) SWIG_fail;
35665 if (obj0) {
35666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35667 if (!SWIG_IsOK(res1)) {
35668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClipboardLocker" "', expected argument " "1"" of type '" "wxClipboard *""'");
d14a1e28 35669 }
0085ce49
RD
35670 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35671 }
35672 {
35673 PyThreadState* __tstate = wxPyBeginAllowThreads();
35674 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
35675 wxPyEndAllowThreads(__tstate);
35676 if (PyErr_Occurred()) SWIG_fail;
35677 }
35678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_NEW | 0 );
35679 return resultobj;
35680fail:
35681 return NULL;
d14a1e28
RD
35682}
35683
35684
0085ce49
RD
35685SWIGINTERN PyObject *_wrap_delete_ClipboardLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35686 PyObject *resultobj = 0;
35687 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
35688 void *argp1 = 0 ;
35689 int res1 = 0 ;
35690 PyObject *swig_obj[1] ;
35691
35692 if (!args) SWIG_fail;
35693 swig_obj[0] = args;
35694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_DISOWN | 0 );
35695 if (!SWIG_IsOK(res1)) {
35696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ClipboardLocker" "', expected argument " "1"" of type '" "wxClipboardLocker *""'");
35697 }
35698 arg1 = reinterpret_cast< wxClipboardLocker * >(argp1);
35699 {
35700 PyThreadState* __tstate = wxPyBeginAllowThreads();
35701 delete arg1;
d14a1e28 35702
0085ce49
RD
35703 wxPyEndAllowThreads(__tstate);
35704 if (PyErr_Occurred()) SWIG_fail;
35705 }
35706 resultobj = SWIG_Py_Void();
35707 return resultobj;
35708fail:
35709 return NULL;
d14a1e28
RD
35710}
35711
35712
0085ce49
RD
35713SWIGINTERN PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35714 PyObject *resultobj = 0;
35715 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
35716 bool result;
35717 void *argp1 = 0 ;
35718 int res1 = 0 ;
35719 PyObject *swig_obj[1] ;
35720
35721 if (!args) SWIG_fail;
35722 swig_obj[0] = args;
35723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboardLocker, 0 | 0 );
35724 if (!SWIG_IsOK(res1)) {
35725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ClipboardLocker___nonzero__" "', expected argument " "1"" of type '" "wxClipboardLocker *""'");
35726 }
35727 arg1 = reinterpret_cast< wxClipboardLocker * >(argp1);
35728 {
35729 PyThreadState* __tstate = wxPyBeginAllowThreads();
35730 result = (bool)wxClipboardLocker___nonzero__(arg1);
35731 wxPyEndAllowThreads(__tstate);
35732 if (PyErr_Occurred()) SWIG_fail;
35733 }
35734 {
35735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35736 }
35737 return resultobj;
35738fail:
35739 return NULL;
35740}
35741
35742
35743SWIGINTERN PyObject *ClipboardLocker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35744 PyObject *obj;
35745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35746 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboardLocker, SWIG_NewClientData(obj));
35747 return SWIG_Py_Void();
35748}
35749
35750SWIGINTERN PyObject *ClipboardLocker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35751 return SWIG_Python_InitShadowInstance(args);
35752}
35753
35754SWIGINTERN PyObject *_wrap_new_VideoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35755 PyObject *resultobj = 0;
35756 int arg1 = (int) 0 ;
35757 int arg2 = (int) 0 ;
35758 int arg3 = (int) 0 ;
35759 int arg4 = (int) 0 ;
35760 wxVideoMode *result = 0 ;
35761 int val1 ;
35762 int ecode1 = 0 ;
35763 int val2 ;
35764 int ecode2 = 0 ;
35765 int val3 ;
35766 int ecode3 = 0 ;
35767 int val4 ;
35768 int ecode4 = 0 ;
35769 PyObject * obj0 = 0 ;
35770 PyObject * obj1 = 0 ;
35771 PyObject * obj2 = 0 ;
35772 PyObject * obj3 = 0 ;
35773 char * kwnames[] = {
35774 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
35775 };
35776
35777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35778 if (obj0) {
35779 ecode1 = SWIG_AsVal_int(obj0, &val1);
35780 if (!SWIG_IsOK(ecode1)) {
35781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VideoMode" "', expected argument " "1"" of type '" "int""'");
35782 }
35783 arg1 = static_cast< int >(val1);
35784 }
35785 if (obj1) {
35786 ecode2 = SWIG_AsVal_int(obj1, &val2);
35787 if (!SWIG_IsOK(ecode2)) {
35788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VideoMode" "', expected argument " "2"" of type '" "int""'");
35789 }
35790 arg2 = static_cast< int >(val2);
35791 }
35792 if (obj2) {
35793 ecode3 = SWIG_AsVal_int(obj2, &val3);
35794 if (!SWIG_IsOK(ecode3)) {
35795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_VideoMode" "', expected argument " "3"" of type '" "int""'");
35796 }
35797 arg3 = static_cast< int >(val3);
35798 }
35799 if (obj3) {
35800 ecode4 = SWIG_AsVal_int(obj3, &val4);
35801 if (!SWIG_IsOK(ecode4)) {
35802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_VideoMode" "', expected argument " "4"" of type '" "int""'");
35803 }
35804 arg4 = static_cast< int >(val4);
35805 }
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
35809 wxPyEndAllowThreads(__tstate);
35810 if (PyErr_Occurred()) SWIG_fail;
35811 }
35812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxVideoMode, SWIG_POINTER_NEW | 0 );
35813 return resultobj;
35814fail:
35815 return NULL;
d14a1e28
RD
35816}
35817
35818
0085ce49
RD
35819SWIGINTERN PyObject *_wrap_delete_VideoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35820 PyObject *resultobj = 0;
35821 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35822 void *argp1 = 0 ;
35823 int res1 = 0 ;
35824 PyObject *swig_obj[1] ;
35825
35826 if (!args) SWIG_fail;
35827 swig_obj[0] = args;
35828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, SWIG_POINTER_DISOWN | 0 );
35829 if (!SWIG_IsOK(res1)) {
35830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VideoMode" "', expected argument " "1"" of type '" "wxVideoMode *""'");
35831 }
35832 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35833 {
35834 PyThreadState* __tstate = wxPyBeginAllowThreads();
35835 delete arg1;
d14a1e28 35836
0085ce49
RD
35837 wxPyEndAllowThreads(__tstate);
35838 if (PyErr_Occurred()) SWIG_fail;
35839 }
35840 resultobj = SWIG_Py_Void();
35841 return resultobj;
35842fail:
35843 return NULL;
35844}
35845
35846
35847SWIGINTERN PyObject *_wrap_VideoMode_Matches(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj = 0;
35849 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35850 wxVideoMode *arg2 = 0 ;
35851 bool result;
35852 void *argp1 = 0 ;
35853 int res1 = 0 ;
35854 void *argp2 = 0 ;
35855 int res2 = 0 ;
35856 PyObject * obj0 = 0 ;
35857 PyObject * obj1 = 0 ;
35858 char * kwnames[] = {
35859 (char *) "self",(char *) "other", NULL
35860 };
35861
35862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) SWIG_fail;
35863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35864 if (!SWIG_IsOK(res1)) {
35865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_Matches" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35866 }
35867 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
35869 if (!SWIG_IsOK(res2)) {
35870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode_Matches" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
35871 }
35872 if (!argp2) {
35873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VideoMode_Matches" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
35874 }
35875 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
35876 {
35877 PyThreadState* __tstate = wxPyBeginAllowThreads();
35878 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
35879 wxPyEndAllowThreads(__tstate);
35880 if (PyErr_Occurred()) SWIG_fail;
35881 }
35882 {
35883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35884 }
35885 return resultobj;
35886fail:
35887 return NULL;
d14a1e28
RD
35888}
35889
35890
0085ce49
RD
35891SWIGINTERN PyObject *_wrap_VideoMode_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35892 PyObject *resultobj = 0;
35893 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35894 int result;
35895 void *argp1 = 0 ;
35896 int res1 = 0 ;
35897 PyObject *swig_obj[1] ;
35898
35899 if (!args) SWIG_fail;
35900 swig_obj[0] = args;
35901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35902 if (!SWIG_IsOK(res1)) {
35903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetWidth" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35904 }
35905 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35906 {
35907 PyThreadState* __tstate = wxPyBeginAllowThreads();
35908 result = (int)((wxVideoMode const *)arg1)->GetWidth();
35909 wxPyEndAllowThreads(__tstate);
35910 if (PyErr_Occurred()) SWIG_fail;
35911 }
35912 resultobj = SWIG_From_int(static_cast< int >(result));
35913 return resultobj;
35914fail:
35915 return NULL;
d14a1e28
RD
35916}
35917
35918
0085ce49
RD
35919SWIGINTERN PyObject *_wrap_VideoMode_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35920 PyObject *resultobj = 0;
35921 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35922 int result;
35923 void *argp1 = 0 ;
35924 int res1 = 0 ;
35925 PyObject *swig_obj[1] ;
35926
35927 if (!args) SWIG_fail;
35928 swig_obj[0] = args;
35929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35930 if (!SWIG_IsOK(res1)) {
35931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetHeight" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35932 }
35933 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35934 {
35935 PyThreadState* __tstate = wxPyBeginAllowThreads();
35936 result = (int)((wxVideoMode const *)arg1)->GetHeight();
35937 wxPyEndAllowThreads(__tstate);
35938 if (PyErr_Occurred()) SWIG_fail;
35939 }
35940 resultobj = SWIG_From_int(static_cast< int >(result));
35941 return resultobj;
35942fail:
35943 return NULL;
d14a1e28
RD
35944}
35945
35946
0085ce49
RD
35947SWIGINTERN PyObject *_wrap_VideoMode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35948 PyObject *resultobj = 0;
35949 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35950 int result;
35951 void *argp1 = 0 ;
35952 int res1 = 0 ;
35953 PyObject *swig_obj[1] ;
35954
35955 if (!args) SWIG_fail;
35956 swig_obj[0] = args;
35957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35958 if (!SWIG_IsOK(res1)) {
35959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetDepth" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35960 }
35961 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35962 {
35963 PyThreadState* __tstate = wxPyBeginAllowThreads();
35964 result = (int)((wxVideoMode const *)arg1)->GetDepth();
35965 wxPyEndAllowThreads(__tstate);
35966 if (PyErr_Occurred()) SWIG_fail;
35967 }
35968 resultobj = SWIG_From_int(static_cast< int >(result));
35969 return resultobj;
35970fail:
35971 return NULL;
d14a1e28
RD
35972}
35973
35974
0085ce49
RD
35975SWIGINTERN PyObject *_wrap_VideoMode_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35976 PyObject *resultobj = 0;
35977 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35978 bool result;
35979 void *argp1 = 0 ;
35980 int res1 = 0 ;
35981 PyObject *swig_obj[1] ;
35982
35983 if (!args) SWIG_fail;
35984 swig_obj[0] = args;
35985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35986 if (!SWIG_IsOK(res1)) {
35987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_IsOk" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35988 }
35989 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35990 {
35991 PyThreadState* __tstate = wxPyBeginAllowThreads();
35992 result = (bool)((wxVideoMode const *)arg1)->IsOk();
35993 wxPyEndAllowThreads(__tstate);
35994 if (PyErr_Occurred()) SWIG_fail;
35995 }
35996 {
35997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35998 }
35999 return resultobj;
36000fail:
36001 return NULL;
36002}
36003
36004
36005SWIGINTERN PyObject *_wrap_VideoMode___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36006 PyObject *resultobj = 0;
36007 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36008 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
36009 bool result;
36010 void *argp1 = 0 ;
36011 int res1 = 0 ;
36012 void *argp2 = 0 ;
36013 int res2 = 0 ;
36014 PyObject * obj0 = 0 ;
36015 PyObject * obj1 = 0 ;
36016 char * kwnames[] = {
36017 (char *) "self",(char *) "other", NULL
36018 };
36019
36020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
36021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36022 if (!SWIG_IsOK(res1)) {
36023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode___eq__" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36024 }
36025 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36027 if (!SWIG_IsOK(res2)) {
36028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode___eq__" "', expected argument " "2"" of type '" "wxVideoMode const *""'");
36029 }
36030 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36031 {
36032 PyThreadState* __tstate = wxPyBeginAllowThreads();
36033 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
36034 wxPyEndAllowThreads(__tstate);
36035 if (PyErr_Occurred()) SWIG_fail;
36036 }
36037 {
36038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36039 }
36040 return resultobj;
36041fail:
36042 return NULL;
36043}
36044
36045
36046SWIGINTERN PyObject *_wrap_VideoMode___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36047 PyObject *resultobj = 0;
36048 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36049 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
36050 bool result;
36051 void *argp1 = 0 ;
36052 int res1 = 0 ;
36053 void *argp2 = 0 ;
36054 int res2 = 0 ;
36055 PyObject * obj0 = 0 ;
36056 PyObject * obj1 = 0 ;
36057 char * kwnames[] = {
36058 (char *) "self",(char *) "other", NULL
36059 };
36060
36061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
36062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36063 if (!SWIG_IsOK(res1)) {
36064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode___ne__" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36065 }
36066 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36068 if (!SWIG_IsOK(res2)) {
36069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode___ne__" "', expected argument " "2"" of type '" "wxVideoMode const *""'");
36070 }
36071 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36072 {
36073 PyThreadState* __tstate = wxPyBeginAllowThreads();
36074 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
36075 wxPyEndAllowThreads(__tstate);
36076 if (PyErr_Occurred()) SWIG_fail;
36077 }
36078 {
36079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36080 }
36081 return resultobj;
36082fail:
36083 return NULL;
d14a1e28
RD
36084}
36085
36086
0085ce49
RD
36087SWIGINTERN PyObject *_wrap_VideoMode_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36088 PyObject *resultobj = 0;
36089 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36090 int arg2 ;
36091 void *argp1 = 0 ;
36092 int res1 = 0 ;
36093 int val2 ;
36094 int ecode2 = 0 ;
36095 PyObject *swig_obj[2] ;
36096
36097 if (!SWIG_Python_UnpackTuple(args,"VideoMode_w_set",2,2,swig_obj)) SWIG_fail;
36098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36099 if (!SWIG_IsOK(res1)) {
36100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_w_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36101 }
36102 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36103 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36104 if (!SWIG_IsOK(ecode2)) {
36105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_w_set" "', expected argument " "2"" of type '" "int""'");
36106 }
36107 arg2 = static_cast< int >(val2);
36108 if (arg1) (arg1)->w = arg2;
36109
36110 resultobj = SWIG_Py_Void();
36111 return resultobj;
36112fail:
36113 return NULL;
d14a1e28
RD
36114}
36115
36116
0085ce49
RD
36117SWIGINTERN PyObject *_wrap_VideoMode_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36118 PyObject *resultobj = 0;
36119 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36120 int result;
36121 void *argp1 = 0 ;
36122 int res1 = 0 ;
36123 PyObject *swig_obj[1] ;
36124
36125 if (!args) SWIG_fail;
36126 swig_obj[0] = args;
36127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36128 if (!SWIG_IsOK(res1)) {
36129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_w_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36130 }
36131 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36132 result = (int) ((arg1)->w);
36133 resultobj = SWIG_From_int(static_cast< int >(result));
36134 return resultobj;
36135fail:
36136 return NULL;
36137}
36138
36139
36140SWIGINTERN PyObject *_wrap_VideoMode_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36141 PyObject *resultobj = 0;
36142 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36143 int arg2 ;
36144 void *argp1 = 0 ;
36145 int res1 = 0 ;
36146 int val2 ;
36147 int ecode2 = 0 ;
36148 PyObject *swig_obj[2] ;
36149
36150 if (!SWIG_Python_UnpackTuple(args,"VideoMode_h_set",2,2,swig_obj)) SWIG_fail;
36151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36152 if (!SWIG_IsOK(res1)) {
36153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_h_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36154 }
36155 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36156 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36157 if (!SWIG_IsOK(ecode2)) {
36158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_h_set" "', expected argument " "2"" of type '" "int""'");
36159 }
36160 arg2 = static_cast< int >(val2);
36161 if (arg1) (arg1)->h = arg2;
36162
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165fail:
36166 return NULL;
d14a1e28
RD
36167}
36168
36169
0085ce49
RD
36170SWIGINTERN PyObject *_wrap_VideoMode_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36171 PyObject *resultobj = 0;
36172 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36173 int result;
36174 void *argp1 = 0 ;
36175 int res1 = 0 ;
36176 PyObject *swig_obj[1] ;
36177
36178 if (!args) SWIG_fail;
36179 swig_obj[0] = args;
36180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36181 if (!SWIG_IsOK(res1)) {
36182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_h_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36183 }
36184 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36185 result = (int) ((arg1)->h);
36186 resultobj = SWIG_From_int(static_cast< int >(result));
36187 return resultobj;
36188fail:
36189 return NULL;
36190}
36191
36192
36193SWIGINTERN PyObject *_wrap_VideoMode_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36194 PyObject *resultobj = 0;
36195 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36196 int arg2 ;
36197 void *argp1 = 0 ;
36198 int res1 = 0 ;
36199 int val2 ;
36200 int ecode2 = 0 ;
36201 PyObject *swig_obj[2] ;
36202
36203 if (!SWIG_Python_UnpackTuple(args,"VideoMode_bpp_set",2,2,swig_obj)) SWIG_fail;
36204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36205 if (!SWIG_IsOK(res1)) {
36206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_bpp_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36207 }
36208 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36209 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36210 if (!SWIG_IsOK(ecode2)) {
36211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_bpp_set" "', expected argument " "2"" of type '" "int""'");
36212 }
36213 arg2 = static_cast< int >(val2);
36214 if (arg1) (arg1)->bpp = arg2;
36215
36216 resultobj = SWIG_Py_Void();
36217 return resultobj;
36218fail:
36219 return NULL;
d14a1e28
RD
36220}
36221
36222
0085ce49
RD
36223SWIGINTERN PyObject *_wrap_VideoMode_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36224 PyObject *resultobj = 0;
36225 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36226 int result;
36227 void *argp1 = 0 ;
36228 int res1 = 0 ;
36229 PyObject *swig_obj[1] ;
36230
36231 if (!args) SWIG_fail;
36232 swig_obj[0] = args;
36233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36234 if (!SWIG_IsOK(res1)) {
36235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_bpp_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36236 }
36237 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36238 result = (int) ((arg1)->bpp);
36239 resultobj = SWIG_From_int(static_cast< int >(result));
36240 return resultobj;
36241fail:
36242 return NULL;
36243}
36244
36245
36246SWIGINTERN PyObject *_wrap_VideoMode_refresh_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36247 PyObject *resultobj = 0;
36248 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36249 int arg2 ;
36250 void *argp1 = 0 ;
36251 int res1 = 0 ;
36252 int val2 ;
36253 int ecode2 = 0 ;
36254 PyObject *swig_obj[2] ;
36255
36256 if (!SWIG_Python_UnpackTuple(args,"VideoMode_refresh_set",2,2,swig_obj)) SWIG_fail;
36257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36258 if (!SWIG_IsOK(res1)) {
36259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_refresh_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36260 }
36261 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36262 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36263 if (!SWIG_IsOK(ecode2)) {
36264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_refresh_set" "', expected argument " "2"" of type '" "int""'");
36265 }
36266 arg2 = static_cast< int >(val2);
36267 if (arg1) (arg1)->refresh = arg2;
36268
36269 resultobj = SWIG_Py_Void();
36270 return resultobj;
36271fail:
36272 return NULL;
d14a1e28
RD
36273}
36274
36275
0085ce49
RD
36276SWIGINTERN PyObject *_wrap_VideoMode_refresh_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36277 PyObject *resultobj = 0;
36278 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36279 int result;
36280 void *argp1 = 0 ;
36281 int res1 = 0 ;
36282 PyObject *swig_obj[1] ;
36283
36284 if (!args) SWIG_fail;
36285 swig_obj[0] = args;
36286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36287 if (!SWIG_IsOK(res1)) {
36288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_refresh_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36289 }
36290 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36291 result = (int) ((arg1)->refresh);
36292 resultobj = SWIG_From_int(static_cast< int >(result));
36293 return resultobj;
36294fail:
36295 return NULL;
d14a1e28
RD
36296}
36297
36298
0085ce49
RD
36299SWIGINTERN PyObject *VideoMode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36300 PyObject *obj;
36301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36302 SWIG_TypeNewClientData(SWIGTYPE_p_wxVideoMode, SWIG_NewClientData(obj));
36303 return SWIG_Py_Void();
d14a1e28
RD
36304}
36305
0085ce49
RD
36306SWIGINTERN PyObject *VideoMode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36307 return SWIG_Python_InitShadowInstance(args);
36308}
d14a1e28 36309
0085ce49
RD
36310SWIGINTERN int DefaultVideoMode_set(PyObject *) {
36311 SWIG_Error(SWIG_AttributeError,"Variable DefaultVideoMode is read-only.");
36312 return 1;
d14a1e28
RD
36313}
36314
36315
0085ce49
RD
36316SWIGINTERN PyObject *DefaultVideoMode_get(void) {
36317 PyObject *pyobj = 0;
36318
36319 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0 );
36320 return pyobj;
d14a1e28
RD
36321}
36322
36323
0085ce49
RD
36324SWIGINTERN PyObject *_wrap_new_Display(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36325 PyObject *resultobj = 0;
c2829a8f 36326 unsigned int arg1 = (unsigned int) 0 ;
0085ce49 36327 wxDisplay *result = 0 ;
c2829a8f 36328 unsigned int val1 ;
0085ce49
RD
36329 int ecode1 = 0 ;
36330 PyObject * obj0 = 0 ;
36331 char * kwnames[] = {
36332 (char *) "index", NULL
36333 };
36334
36335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) SWIG_fail;
36336 if (obj0) {
c2829a8f 36337 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
0085ce49 36338 if (!SWIG_IsOK(ecode1)) {
c2829a8f 36339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Display" "', expected argument " "1"" of type '" "unsigned int""'");
0085ce49 36340 }
c2829a8f 36341 arg1 = static_cast< unsigned int >(val1);
0085ce49
RD
36342 }
36343 {
36344 PyThreadState* __tstate = wxPyBeginAllowThreads();
36345 result = (wxDisplay *)new wxDisplay(arg1);
36346 wxPyEndAllowThreads(__tstate);
36347 if (PyErr_Occurred()) SWIG_fail;
36348 }
36349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDisplay, SWIG_POINTER_NEW | 0 );
36350 return resultobj;
36351fail:
36352 return NULL;
d14a1e28
RD
36353}
36354
36355
0085ce49
RD
36356SWIGINTERN PyObject *_wrap_delete_Display(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36357 PyObject *resultobj = 0;
36358 wxDisplay *arg1 = (wxDisplay *) 0 ;
36359 void *argp1 = 0 ;
36360 int res1 = 0 ;
36361 PyObject *swig_obj[1] ;
36362
36363 if (!args) SWIG_fail;
36364 swig_obj[0] = args;
36365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, SWIG_POINTER_DISOWN | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Display" "', expected argument " "1"" of type '" "wxDisplay *""'");
36368 }
36369 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36370 {
36371 PyThreadState* __tstate = wxPyBeginAllowThreads();
36372 delete arg1;
d14a1e28 36373
0085ce49
RD
36374 wxPyEndAllowThreads(__tstate);
36375 if (PyErr_Occurred()) SWIG_fail;
36376 }
36377 resultobj = SWIG_Py_Void();
36378 return resultobj;
36379fail:
36380 return NULL;
d14a1e28
RD
36381}
36382
36383
0085ce49
RD
36384SWIGINTERN PyObject *_wrap_Display_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36385 PyObject *resultobj = 0;
c2829a8f 36386 unsigned int result;
0085ce49
RD
36387
36388 if (!SWIG_Python_UnpackTuple(args,"Display_GetCount",0,0,0)) SWIG_fail;
36389 {
36390 PyThreadState* __tstate = wxPyBeginAllowThreads();
c2829a8f 36391 result = (unsigned int)wxDisplay::GetCount();
0085ce49
RD
36392 wxPyEndAllowThreads(__tstate);
36393 if (PyErr_Occurred()) SWIG_fail;
36394 }
c2829a8f 36395 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
36396 return resultobj;
36397fail:
36398 return NULL;
d14a1e28
RD
36399}
36400
36401
0085ce49
RD
36402SWIGINTERN PyObject *_wrap_Display_GetFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxPoint *arg1 = 0 ;
36405 int result;
36406 wxPoint temp1 ;
36407 PyObject * obj0 = 0 ;
36408 char * kwnames[] = {
36409 (char *) "pt", NULL
36410 };
36411
36412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) SWIG_fail;
36413 {
36414 arg1 = &temp1;
36415 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
36416 }
36417 {
36418 PyThreadState* __tstate = wxPyBeginAllowThreads();
36419 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
36420 wxPyEndAllowThreads(__tstate);
36421 if (PyErr_Occurred()) SWIG_fail;
36422 }
36423 resultobj = SWIG_From_int(static_cast< int >(result));
36424 return resultobj;
36425fail:
36426 return NULL;
36427}
36428
36429
36430SWIGINTERN PyObject *_wrap_Display_GetFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36431 PyObject *resultobj = 0;
36432 wxWindow *arg1 = (wxWindow *) 0 ;
36433 int result;
36434 void *argp1 = 0 ;
36435 int res1 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "window", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetFromWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36445 }
36446 arg1 = reinterpret_cast< wxWindow * >(argp1);
36447 {
36448 PyThreadState* __tstate = wxPyBeginAllowThreads();
36449 result = (int)wxDisplay::GetFromWindow(arg1);
36450 wxPyEndAllowThreads(__tstate);
36451 if (PyErr_Occurred()) SWIG_fail;
36452 }
36453 resultobj = SWIG_From_int(static_cast< int >(result));
36454 return resultobj;
36455fail:
36456 return NULL;
d14a1e28
RD
36457}
36458
36459
0085ce49
RD
36460SWIGINTERN PyObject *_wrap_Display_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36461 PyObject *resultobj = 0;
36462 wxDisplay *arg1 = (wxDisplay *) 0 ;
36463 bool result;
36464 void *argp1 = 0 ;
36465 int res1 = 0 ;
36466 PyObject *swig_obj[1] ;
36467
36468 if (!args) SWIG_fail;
36469 swig_obj[0] = args;
36470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36471 if (!SWIG_IsOK(res1)) {
36472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_IsOk" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36473 }
36474 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36475 {
36476 PyThreadState* __tstate = wxPyBeginAllowThreads();
36477 result = (bool)((wxDisplay const *)arg1)->IsOk();
36478 wxPyEndAllowThreads(__tstate);
36479 if (PyErr_Occurred()) SWIG_fail;
36480 }
36481 {
36482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36483 }
36484 return resultobj;
36485fail:
36486 return NULL;
d14a1e28
RD
36487}
36488
36489
0085ce49
RD
36490SWIGINTERN PyObject *_wrap_Display_GetGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36491 PyObject *resultobj = 0;
36492 wxDisplay *arg1 = (wxDisplay *) 0 ;
36493 wxRect result;
36494 void *argp1 = 0 ;
36495 int res1 = 0 ;
36496 PyObject *swig_obj[1] ;
36497
36498 if (!args) SWIG_fail;
36499 swig_obj[0] = args;
36500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36501 if (!SWIG_IsOK(res1)) {
36502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetGeometry" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36503 }
36504 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36505 {
36506 PyThreadState* __tstate = wxPyBeginAllowThreads();
36507 result = ((wxDisplay const *)arg1)->GetGeometry();
36508 wxPyEndAllowThreads(__tstate);
36509 if (PyErr_Occurred()) SWIG_fail;
36510 }
36511 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36512 return resultobj;
36513fail:
36514 return NULL;
d14a1e28
RD
36515}
36516
36517
f52cbe90
RD
36518SWIGINTERN PyObject *_wrap_Display_GetClientArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36519 PyObject *resultobj = 0;
36520 wxDisplay *arg1 = (wxDisplay *) 0 ;
36521 wxRect result;
36522 void *argp1 = 0 ;
36523 int res1 = 0 ;
36524 PyObject *swig_obj[1] ;
36525
36526 if (!args) SWIG_fail;
36527 swig_obj[0] = args;
36528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36529 if (!SWIG_IsOK(res1)) {
36530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetClientArea" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36531 }
36532 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36533 {
36534 PyThreadState* __tstate = wxPyBeginAllowThreads();
36535 result = ((wxDisplay const *)arg1)->GetClientArea();
36536 wxPyEndAllowThreads(__tstate);
36537 if (PyErr_Occurred()) SWIG_fail;
36538 }
36539 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36540 return resultobj;
36541fail:
36542 return NULL;
36543}
36544
36545
0085ce49
RD
36546SWIGINTERN PyObject *_wrap_Display_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36547 PyObject *resultobj = 0;
36548 wxDisplay *arg1 = (wxDisplay *) 0 ;
36549 wxString result;
36550 void *argp1 = 0 ;
36551 int res1 = 0 ;
36552 PyObject *swig_obj[1] ;
36553
36554 if (!args) SWIG_fail;
36555 swig_obj[0] = args;
36556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36557 if (!SWIG_IsOK(res1)) {
36558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetName" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36559 }
36560 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36561 {
36562 PyThreadState* __tstate = wxPyBeginAllowThreads();
36563 result = ((wxDisplay const *)arg1)->GetName();
36564 wxPyEndAllowThreads(__tstate);
36565 if (PyErr_Occurred()) SWIG_fail;
36566 }
36567 {
36568#if wxUSE_UNICODE
36569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36570#else
36571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36572#endif
36573 }
36574 return resultobj;
36575fail:
36576 return NULL;
d14a1e28
RD
36577}
36578
36579
0085ce49
RD
36580SWIGINTERN PyObject *_wrap_Display_IsPrimary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36581 PyObject *resultobj = 0;
36582 wxDisplay *arg1 = (wxDisplay *) 0 ;
36583 bool result;
36584 void *argp1 = 0 ;
36585 int res1 = 0 ;
36586 PyObject *swig_obj[1] ;
36587
36588 if (!args) SWIG_fail;
36589 swig_obj[0] = args;
36590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36591 if (!SWIG_IsOK(res1)) {
36592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_IsPrimary" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36593 }
36594 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36595 {
36596 PyThreadState* __tstate = wxPyBeginAllowThreads();
36597 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
36598 wxPyEndAllowThreads(__tstate);
36599 if (PyErr_Occurred()) SWIG_fail;
36600 }
36601 {
36602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36603 }
36604 return resultobj;
36605fail:
36606 return NULL;
36607}
36608
36609
36610SWIGINTERN PyObject *_wrap_Display_GetModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36611 PyObject *resultobj = 0;
36612 wxDisplay *arg1 = (wxDisplay *) 0 ;
36613 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
36614 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
36615 PyObject *result = 0 ;
36616 void *argp1 = 0 ;
36617 int res1 = 0 ;
36618 void *argp2 = 0 ;
36619 int res2 = 0 ;
36620 PyObject * obj0 = 0 ;
36621 PyObject * obj1 = 0 ;
36622 char * kwnames[] = {
36623 (char *) "self",(char *) "mode", NULL
36624 };
36625
36626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) SWIG_fail;
36627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36628 if (!SWIG_IsOK(res1)) {
36629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetModes" "', expected argument " "1"" of type '" "wxDisplay *""'");
36630 }
36631 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36632 if (obj1) {
36633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
36634 if (!SWIG_IsOK(res2)) {
36635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Display_GetModes" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d14a1e28 36636 }
0085ce49
RD
36637 if (!argp2) {
36638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Display_GetModes" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d14a1e28 36639 }
0085ce49
RD
36640 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36641 }
36642 {
36643 PyThreadState* __tstate = wxPyBeginAllowThreads();
36644 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
36645 wxPyEndAllowThreads(__tstate);
36646 if (PyErr_Occurred()) SWIG_fail;
36647 }
36648 resultobj = result;
36649 return resultobj;
36650fail:
36651 return NULL;
d14a1e28
RD
36652}
36653
36654
0085ce49
RD
36655SWIGINTERN PyObject *_wrap_Display_GetCurrentMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36656 PyObject *resultobj = 0;
36657 wxDisplay *arg1 = (wxDisplay *) 0 ;
36658 wxVideoMode result;
36659 void *argp1 = 0 ;
36660 int res1 = 0 ;
36661 PyObject *swig_obj[1] ;
36662
36663 if (!args) SWIG_fail;
36664 swig_obj[0] = args;
36665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36666 if (!SWIG_IsOK(res1)) {
36667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetCurrentMode" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36668 }
36669 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36670 {
36671 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36672 result = wxDisplay_GetCurrentMode((wxDisplay const *)arg1);
0085ce49
RD
36673 wxPyEndAllowThreads(__tstate);
36674 if (PyErr_Occurred()) SWIG_fail;
36675 }
36676 resultobj = SWIG_NewPointerObj((new wxVideoMode(static_cast< const wxVideoMode& >(result))), SWIGTYPE_p_wxVideoMode, SWIG_POINTER_OWN | 0 );
36677 return resultobj;
36678fail:
36679 return NULL;
36680}
36681
36682
36683SWIGINTERN PyObject *_wrap_Display_ChangeMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36684 PyObject *resultobj = 0;
36685 wxDisplay *arg1 = (wxDisplay *) 0 ;
36686 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
36687 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
36688 bool result;
36689 void *argp1 = 0 ;
36690 int res1 = 0 ;
36691 void *argp2 = 0 ;
36692 int res2 = 0 ;
36693 PyObject * obj0 = 0 ;
36694 PyObject * obj1 = 0 ;
36695 char * kwnames[] = {
36696 (char *) "self",(char *) "mode", NULL
36697 };
36698
36699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) SWIG_fail;
36700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36701 if (!SWIG_IsOK(res1)) {
36702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_ChangeMode" "', expected argument " "1"" of type '" "wxDisplay *""'");
36703 }
36704 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36705 if (obj1) {
36706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
36707 if (!SWIG_IsOK(res2)) {
36708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Display_ChangeMode" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d14a1e28 36709 }
0085ce49
RD
36710 if (!argp2) {
36711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Display_ChangeMode" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d14a1e28 36712 }
0085ce49
RD
36713 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36714 }
36715 {
36716 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36717 result = (bool)wxDisplay_ChangeMode(arg1,(wxVideoMode const &)*arg2);
0085ce49
RD
36718 wxPyEndAllowThreads(__tstate);
36719 if (PyErr_Occurred()) SWIG_fail;
36720 }
36721 {
36722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36723 }
36724 return resultobj;
36725fail:
36726 return NULL;
d14a1e28
RD
36727}
36728
36729
0085ce49
RD
36730SWIGINTERN PyObject *_wrap_Display_ResetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36731 PyObject *resultobj = 0;
36732 wxDisplay *arg1 = (wxDisplay *) 0 ;
36733 void *argp1 = 0 ;
36734 int res1 = 0 ;
36735 PyObject *swig_obj[1] ;
36736
36737 if (!args) SWIG_fail;
36738 swig_obj[0] = args;
36739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36740 if (!SWIG_IsOK(res1)) {
36741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_ResetMode" "', expected argument " "1"" of type '" "wxDisplay *""'");
36742 }
36743 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36744 {
36745 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36746 wxDisplay_ResetMode(arg1);
0085ce49
RD
36747 wxPyEndAllowThreads(__tstate);
36748 if (PyErr_Occurred()) SWIG_fail;
36749 }
36750 resultobj = SWIG_Py_Void();
36751 return resultobj;
36752fail:
36753 return NULL;
d14a1e28
RD
36754}
36755
36756
0085ce49
RD
36757SWIGINTERN PyObject *Display_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36758 PyObject *obj;
36759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36760 SWIG_TypeNewClientData(SWIGTYPE_p_wxDisplay, SWIG_NewClientData(obj));
36761 return SWIG_Py_Void();
d14a1e28
RD
36762}
36763
0085ce49
RD
36764SWIGINTERN PyObject *Display_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36765 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
36766}
36767
0085ce49
RD
36768SWIGINTERN PyObject *_wrap_StandardPaths_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36769 PyObject *resultobj = 0;
36770 wxStandardPaths *result = 0 ;
36771
36772 if (!SWIG_Python_UnpackTuple(args,"StandardPaths_Get",0,0,0)) SWIG_fail;
36773 {
36774 PyThreadState* __tstate = wxPyBeginAllowThreads();
36775 result = (wxStandardPaths *)wxStandardPaths_Get();
36776 wxPyEndAllowThreads(__tstate);
36777 if (PyErr_Occurred()) SWIG_fail;
36778 }
36779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36780 return resultobj;
36781fail:
36782 return NULL;
d14a1e28
RD
36783}
36784
36785
0085ce49
RD
36786SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36787 PyObject *resultobj = 0;
36788 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36789 wxString result;
36790 void *argp1 = 0 ;
36791 int res1 = 0 ;
36792 PyObject *swig_obj[1] ;
36793
36794 if (!args) SWIG_fail;
36795 swig_obj[0] = args;
36796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36797 if (!SWIG_IsOK(res1)) {
36798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetConfigDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36799 }
36800 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36801 {
36802 PyThreadState* __tstate = wxPyBeginAllowThreads();
36803 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
36804 wxPyEndAllowThreads(__tstate);
36805 if (PyErr_Occurred()) SWIG_fail;
36806 }
36807 {
36808#if wxUSE_UNICODE
36809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36810#else
36811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36812#endif
36813 }
36814 return resultobj;
36815fail:
36816 return NULL;
d14a1e28
RD
36817}
36818
36819
0085ce49
RD
36820SWIGINTERN PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36821 PyObject *resultobj = 0;
36822 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36823 wxString result;
36824 void *argp1 = 0 ;
36825 int res1 = 0 ;
36826 PyObject *swig_obj[1] ;
36827
36828 if (!args) SWIG_fail;
36829 swig_obj[0] = args;
36830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36831 if (!SWIG_IsOK(res1)) {
36832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserConfigDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36833 }
36834 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36835 {
36836 PyThreadState* __tstate = wxPyBeginAllowThreads();
36837 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
36838 wxPyEndAllowThreads(__tstate);
36839 if (PyErr_Occurred()) SWIG_fail;
36840 }
36841 {
36842#if wxUSE_UNICODE
36843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36844#else
36845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36846#endif
36847 }
36848 return resultobj;
36849fail:
36850 return NULL;
d14a1e28
RD
36851}
36852
36853
0085ce49
RD
36854SWIGINTERN PyObject *_wrap_StandardPaths_GetDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36855 PyObject *resultobj = 0;
36856 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36857 wxString result;
36858 void *argp1 = 0 ;
36859 int res1 = 0 ;
36860 PyObject *swig_obj[1] ;
36861
36862 if (!args) SWIG_fail;
36863 swig_obj[0] = args;
36864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36865 if (!SWIG_IsOK(res1)) {
36866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36867 }
36868 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36869 {
36870 PyThreadState* __tstate = wxPyBeginAllowThreads();
36871 result = ((wxStandardPaths const *)arg1)->GetDataDir();
36872 wxPyEndAllowThreads(__tstate);
36873 if (PyErr_Occurred()) SWIG_fail;
36874 }
36875 {
36876#if wxUSE_UNICODE
36877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36878#else
36879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36880#endif
36881 }
36882 return resultobj;
36883fail:
36884 return NULL;
d14a1e28
RD
36885}
36886
36887
0085ce49
RD
36888SWIGINTERN PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36889 PyObject *resultobj = 0;
36890 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36891 wxString result;
36892 void *argp1 = 0 ;
36893 int res1 = 0 ;
36894 PyObject *swig_obj[1] ;
36895
36896 if (!args) SWIG_fail;
36897 swig_obj[0] = args;
36898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36899 if (!SWIG_IsOK(res1)) {
36900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetLocalDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36901 }
36902 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36903 {
36904 PyThreadState* __tstate = wxPyBeginAllowThreads();
36905 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
36906 wxPyEndAllowThreads(__tstate);
36907 if (PyErr_Occurred()) SWIG_fail;
36908 }
36909 {
36910#if wxUSE_UNICODE
36911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36912#else
36913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36914#endif
36915 }
36916 return resultobj;
36917fail:
36918 return NULL;
d14a1e28
RD
36919}
36920
36921
0085ce49
RD
36922SWIGINTERN PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36923 PyObject *resultobj = 0;
36924 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36925 wxString result;
36926 void *argp1 = 0 ;
36927 int res1 = 0 ;
36928 PyObject *swig_obj[1] ;
36929
36930 if (!args) SWIG_fail;
36931 swig_obj[0] = args;
36932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36933 if (!SWIG_IsOK(res1)) {
36934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36935 }
36936 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36937 {
36938 PyThreadState* __tstate = wxPyBeginAllowThreads();
36939 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
36940 wxPyEndAllowThreads(__tstate);
36941 if (PyErr_Occurred()) SWIG_fail;
36942 }
36943 {
36944#if wxUSE_UNICODE
36945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36946#else
36947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36948#endif
36949 }
36950 return resultobj;
36951fail:
36952 return NULL;
d14a1e28
RD
36953}
36954
36955
0085ce49
RD
36956SWIGINTERN PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36957 PyObject *resultobj = 0;
36958 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36959 wxString result;
36960 void *argp1 = 0 ;
36961 int res1 = 0 ;
36962 PyObject *swig_obj[1] ;
36963
36964 if (!args) SWIG_fail;
36965 swig_obj[0] = args;
36966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36967 if (!SWIG_IsOK(res1)) {
36968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserLocalDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36969 }
36970 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36971 {
36972 PyThreadState* __tstate = wxPyBeginAllowThreads();
36973 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
36974 wxPyEndAllowThreads(__tstate);
36975 if (PyErr_Occurred()) SWIG_fail;
36976 }
36977 {
36978#if wxUSE_UNICODE
36979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36980#else
36981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36982#endif
36983 }
36984 return resultobj;
36985fail:
36986 return NULL;
d14a1e28
RD
36987}
36988
36989
0085ce49
RD
36990SWIGINTERN PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36991 PyObject *resultobj = 0;
36992 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36993 wxString result;
36994 void *argp1 = 0 ;
36995 int res1 = 0 ;
36996 PyObject *swig_obj[1] ;
36997
36998 if (!args) SWIG_fail;
36999 swig_obj[0] = args;
37000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37001 if (!SWIG_IsOK(res1)) {
37002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetPluginsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37003 }
37004 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 {
37012#if wxUSE_UNICODE
37013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37014#else
37015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37016#endif
37017 }
37018 return resultobj;
37019fail:
37020 return NULL;
37021}
37022
37023
e9d6f3a4
RD
37024SWIGINTERN PyObject *_wrap_StandardPaths_GetResourcesDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37025 PyObject *resultobj = 0;
37026 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37027 wxString result;
37028 void *argp1 = 0 ;
37029 int res1 = 0 ;
37030 PyObject *swig_obj[1] ;
37031
37032 if (!args) SWIG_fail;
37033 swig_obj[0] = args;
37034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37035 if (!SWIG_IsOK(res1)) {
37036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetResourcesDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37037 }
37038 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37039 {
37040 PyThreadState* __tstate = wxPyBeginAllowThreads();
37041 result = ((wxStandardPaths const *)arg1)->GetResourcesDir();
37042 wxPyEndAllowThreads(__tstate);
37043 if (PyErr_Occurred()) SWIG_fail;
37044 }
37045 {
37046#if wxUSE_UNICODE
37047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37048#else
37049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37050#endif
37051 }
37052 return resultobj;
37053fail:
37054 return NULL;
37055}
37056
37057
37058SWIGINTERN PyObject *_wrap_StandardPaths_GetLocalizedResourcesDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37059 PyObject *resultobj = 0;
37060 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37061 wxString *arg2 = 0 ;
37062 wxStandardPaths::ResourceCat arg3 = (wxStandardPaths::ResourceCat) wxStandardPaths::ResourceCat_None ;
37063 wxString result;
37064 void *argp1 = 0 ;
37065 int res1 = 0 ;
37066 bool temp2 = false ;
37067 int val3 ;
37068 int ecode3 = 0 ;
37069 PyObject * obj0 = 0 ;
37070 PyObject * obj1 = 0 ;
37071 PyObject * obj2 = 0 ;
37072 char * kwnames[] = {
37073 (char *) "self",(char *) "lang",(char *) "category", NULL
37074 };
37075
37076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StandardPaths_GetLocalizedResourcesDir",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37078 if (!SWIG_IsOK(res1)) {
37079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetLocalizedResourcesDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37080 }
37081 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37082 {
37083 arg2 = wxString_in_helper(obj1);
37084 if (arg2 == NULL) SWIG_fail;
37085 temp2 = true;
37086 }
37087 if (obj2) {
37088 ecode3 = SWIG_AsVal_int(obj2, &val3);
37089 if (!SWIG_IsOK(ecode3)) {
37090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StandardPaths_GetLocalizedResourcesDir" "', expected argument " "3"" of type '" "wxStandardPaths::ResourceCat""'");
37091 }
37092 arg3 = static_cast< wxStandardPaths::ResourceCat >(val3);
37093 }
37094 {
37095 PyThreadState* __tstate = wxPyBeginAllowThreads();
37096 result = ((wxStandardPaths const *)arg1)->GetLocalizedResourcesDir((wxString const &)*arg2,arg3);
37097 wxPyEndAllowThreads(__tstate);
37098 if (PyErr_Occurred()) SWIG_fail;
37099 }
37100 {
37101#if wxUSE_UNICODE
37102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37103#else
37104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37105#endif
37106 }
37107 {
37108 if (temp2)
37109 delete arg2;
37110 }
37111 return resultobj;
37112fail:
37113 {
37114 if (temp2)
37115 delete arg2;
37116 }
37117 return NULL;
37118}
37119
37120
50efceee
RD
37121SWIGINTERN PyObject *_wrap_StandardPaths_GetDocumentsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37122 PyObject *resultobj = 0;
37123 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37124 wxString result;
37125 void *argp1 = 0 ;
37126 int res1 = 0 ;
37127 PyObject *swig_obj[1] ;
37128
37129 if (!args) SWIG_fail;
37130 swig_obj[0] = args;
37131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37132 if (!SWIG_IsOK(res1)) {
37133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDocumentsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37134 }
37135 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37136 {
37137 PyThreadState* __tstate = wxPyBeginAllowThreads();
37138 result = ((wxStandardPaths const *)arg1)->GetDocumentsDir();
37139 wxPyEndAllowThreads(__tstate);
37140 if (PyErr_Occurred()) SWIG_fail;
37141 }
37142 {
37143#if wxUSE_UNICODE
37144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37145#else
37146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37147#endif
37148 }
37149 return resultobj;
37150fail:
37151 return NULL;
37152}
37153
37154
ae8635b6
RD
37155SWIGINTERN PyObject *_wrap_StandardPaths_GetTempDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37156 PyObject *resultobj = 0;
37157 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37158 wxString result;
37159 void *argp1 = 0 ;
37160 int res1 = 0 ;
37161 PyObject *swig_obj[1] ;
37162
37163 if (!args) SWIG_fail;
37164 swig_obj[0] = args;
37165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37166 if (!SWIG_IsOK(res1)) {
37167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetTempDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37168 }
37169 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37170 {
37171 PyThreadState* __tstate = wxPyBeginAllowThreads();
37172 result = ((wxStandardPaths const *)arg1)->GetTempDir();
37173 wxPyEndAllowThreads(__tstate);
37174 if (PyErr_Occurred()) SWIG_fail;
37175 }
37176 {
37177#if wxUSE_UNICODE
37178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37179#else
37180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37181#endif
37182 }
37183 return resultobj;
37184fail:
37185 return NULL;
37186}
37187
37188
0085ce49
RD
37189SWIGINTERN PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37190 PyObject *resultobj = 0;
37191 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37192 wxString *arg2 = 0 ;
37193 void *argp1 = 0 ;
37194 int res1 = 0 ;
37195 bool temp2 = false ;
37196 PyObject * obj0 = 0 ;
37197 PyObject * obj1 = 0 ;
37198 char * kwnames[] = {
37199 (char *) "self",(char *) "prefix", NULL
37200 };
37201
37202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) SWIG_fail;
37203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37204 if (!SWIG_IsOK(res1)) {
37205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_SetInstallPrefix" "', expected argument " "1"" of type '" "wxStandardPaths *""'");
37206 }
37207 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37208 {
37209 arg2 = wxString_in_helper(obj1);
37210 if (arg2 == NULL) SWIG_fail;
37211 temp2 = true;
37212 }
37213 {
37214 PyThreadState* __tstate = wxPyBeginAllowThreads();
37215 (arg1)->SetInstallPrefix((wxString const &)*arg2);
37216 wxPyEndAllowThreads(__tstate);
37217 if (PyErr_Occurred()) SWIG_fail;
37218 }
37219 resultobj = SWIG_Py_Void();
37220 {
37221 if (temp2)
37222 delete arg2;
37223 }
37224 return resultobj;
37225fail:
37226 {
37227 if (temp2)
37228 delete arg2;
37229 }
37230 return NULL;
d14a1e28
RD
37231}
37232
37233
0085ce49
RD
37234SWIGINTERN PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37235 PyObject *resultobj = 0;
37236 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37237 wxString result;
37238 void *argp1 = 0 ;
37239 int res1 = 0 ;
37240 PyObject *swig_obj[1] ;
37241
37242 if (!args) SWIG_fail;
37243 swig_obj[0] = args;
37244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37245 if (!SWIG_IsOK(res1)) {
37246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetInstallPrefix" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37247 }
37248 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37249 {
37250 PyThreadState* __tstate = wxPyBeginAllowThreads();
37251 result = ((wxStandardPaths const *)arg1)->GetInstallPrefix();
37252 wxPyEndAllowThreads(__tstate);
37253 if (PyErr_Occurred()) SWIG_fail;
37254 }
37255 {
37256#if wxUSE_UNICODE
37257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37258#else
37259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37260#endif
37261 }
37262 return resultobj;
37263fail:
37264 return NULL;
d14a1e28
RD
37265}
37266
37267
0085ce49
RD
37268SWIGINTERN PyObject *StandardPaths_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37269 PyObject *obj;
37270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37271 SWIG_TypeNewClientData(SWIGTYPE_p_wxStandardPaths, SWIG_NewClientData(obj));
37272 return SWIG_Py_Void();
d14a1e28
RD
37273}
37274
704eda0c
RD
37275SWIGINTERN PyObject *_wrap_new_PowerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37276 PyObject *resultobj = 0;
37277 wxEventType arg1 ;
37278 wxPowerEvent *result = 0 ;
37279 int val1 ;
37280 int ecode1 = 0 ;
37281 PyObject * obj0 = 0 ;
37282 char * kwnames[] = {
37283 (char *) "evtType", NULL
37284 };
37285
37286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PowerEvent",kwnames,&obj0)) SWIG_fail;
37287 ecode1 = SWIG_AsVal_int(obj0, &val1);
37288 if (!SWIG_IsOK(ecode1)) {
37289 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PowerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
37290 }
37291 arg1 = static_cast< wxEventType >(val1);
37292 {
37293 PyThreadState* __tstate = wxPyBeginAllowThreads();
37294 result = (wxPowerEvent *)new wxPowerEvent(arg1);
37295 wxPyEndAllowThreads(__tstate);
37296 if (PyErr_Occurred()) SWIG_fail;
37297 }
37298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPowerEvent, SWIG_POINTER_NEW | 0 );
37299 return resultobj;
37300fail:
37301 return NULL;
37302}
37303
37304
37305SWIGINTERN PyObject *_wrap_PowerEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37306 PyObject *resultobj = 0;
37307 wxPowerEvent *arg1 = (wxPowerEvent *) 0 ;
37308 void *argp1 = 0 ;
37309 int res1 = 0 ;
37310 PyObject *swig_obj[1] ;
37311
37312 if (!args) SWIG_fail;
37313 swig_obj[0] = args;
37314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPowerEvent, 0 | 0 );
37315 if (!SWIG_IsOK(res1)) {
37316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PowerEvent_Veto" "', expected argument " "1"" of type '" "wxPowerEvent *""'");
37317 }
37318 arg1 = reinterpret_cast< wxPowerEvent * >(argp1);
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 (arg1)->Veto();
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 resultobj = SWIG_Py_Void();
37326 return resultobj;
37327fail:
37328 return NULL;
37329}
37330
37331
37332SWIGINTERN PyObject *_wrap_PowerEvent_IsVetoed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37333 PyObject *resultobj = 0;
37334 wxPowerEvent *arg1 = (wxPowerEvent *) 0 ;
37335 bool result;
37336 void *argp1 = 0 ;
37337 int res1 = 0 ;
37338 PyObject *swig_obj[1] ;
37339
37340 if (!args) SWIG_fail;
37341 swig_obj[0] = args;
37342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPowerEvent, 0 | 0 );
37343 if (!SWIG_IsOK(res1)) {
37344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PowerEvent_IsVetoed" "', expected argument " "1"" of type '" "wxPowerEvent const *""'");
37345 }
37346 arg1 = reinterpret_cast< wxPowerEvent * >(argp1);
37347 {
37348 PyThreadState* __tstate = wxPyBeginAllowThreads();
37349 result = (bool)((wxPowerEvent const *)arg1)->IsVetoed();
37350 wxPyEndAllowThreads(__tstate);
37351 if (PyErr_Occurred()) SWIG_fail;
37352 }
37353 {
37354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37355 }
37356 return resultobj;
37357fail:
37358 return NULL;
37359}
37360
37361
37362SWIGINTERN PyObject *PowerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37363 PyObject *obj;
37364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37365 SWIG_TypeNewClientData(SWIGTYPE_p_wxPowerEvent, SWIG_NewClientData(obj));
37366 return SWIG_Py_Void();
37367}
37368
37369SWIGINTERN PyObject *PowerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37370 return SWIG_Python_InitShadowInstance(args);
37371}
37372
37373SWIGINTERN PyObject *_wrap_GetPowerType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37374 PyObject *resultobj = 0;
37375 wxPowerType result;
37376
37377 if (!SWIG_Python_UnpackTuple(args,"GetPowerType",0,0,0)) SWIG_fail;
37378 {
37379 PyThreadState* __tstate = wxPyBeginAllowThreads();
37380 result = (wxPowerType)wxGetPowerType();
37381 wxPyEndAllowThreads(__tstate);
37382 if (PyErr_Occurred()) SWIG_fail;
37383 }
37384 resultobj = SWIG_From_int(static_cast< int >(result));
37385 return resultobj;
37386fail:
37387 return NULL;
37388}
37389
37390
37391SWIGINTERN PyObject *_wrap_GetBatteryState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37392 PyObject *resultobj = 0;
37393 wxBatteryState result;
37394
37395 if (!SWIG_Python_UnpackTuple(args,"GetBatteryState",0,0,0)) SWIG_fail;
37396 {
37397 PyThreadState* __tstate = wxPyBeginAllowThreads();
37398 result = (wxBatteryState)wxGetBatteryState();
37399 wxPyEndAllowThreads(__tstate);
37400 if (PyErr_Occurred()) SWIG_fail;
37401 }
37402 resultobj = SWIG_From_int(static_cast< int >(result));
37403 return resultobj;
37404fail:
37405 return NULL;
37406}
37407
37408
b39fe951
RD
37409SWIGINTERN PyObject *_wrap_new_AboutDialogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37410 PyObject *resultobj = 0;
37411 wxAboutDialogInfo *result = 0 ;
37412
37413 if (!SWIG_Python_UnpackTuple(args,"new_AboutDialogInfo",0,0,0)) SWIG_fail;
37414 {
37415 PyThreadState* __tstate = wxPyBeginAllowThreads();
37416 result = (wxAboutDialogInfo *)new wxAboutDialogInfo();
37417 wxPyEndAllowThreads(__tstate);
37418 if (PyErr_Occurred()) SWIG_fail;
37419 }
37420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAboutDialogInfo, SWIG_POINTER_NEW | 0 );
37421 return resultobj;
37422fail:
37423 return NULL;
37424}
37425
37426
37427SWIGINTERN PyObject *_wrap_delete_AboutDialogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37428 PyObject *resultobj = 0;
37429 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37430 void *argp1 = 0 ;
37431 int res1 = 0 ;
37432 PyObject *swig_obj[1] ;
37433
37434 if (!args) SWIG_fail;
37435 swig_obj[0] = args;
37436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, SWIG_POINTER_DISOWN | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AboutDialogInfo" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37439 }
37440 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37441 {
37442 PyThreadState* __tstate = wxPyBeginAllowThreads();
37443 delete arg1;
37444
37445 wxPyEndAllowThreads(__tstate);
37446 if (PyErr_Occurred()) SWIG_fail;
37447 }
37448 resultobj = SWIG_Py_Void();
37449 return resultobj;
37450fail:
37451 return NULL;
37452}
37453
37454
37455SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37456 PyObject *resultobj = 0;
37457 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37458 wxString *arg2 = 0 ;
37459 void *argp1 = 0 ;
37460 int res1 = 0 ;
37461 bool temp2 = false ;
37462 PyObject * obj0 = 0 ;
37463 PyObject * obj1 = 0 ;
37464 char * kwnames[] = {
37465 (char *) "self",(char *) "name", NULL
37466 };
37467
37468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
37469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37470 if (!SWIG_IsOK(res1)) {
37471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetName" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37472 }
37473 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37474 {
37475 arg2 = wxString_in_helper(obj1);
37476 if (arg2 == NULL) SWIG_fail;
37477 temp2 = true;
37478 }
37479 {
37480 PyThreadState* __tstate = wxPyBeginAllowThreads();
37481 (arg1)->SetName((wxString const &)*arg2);
37482 wxPyEndAllowThreads(__tstate);
37483 if (PyErr_Occurred()) SWIG_fail;
37484 }
37485 resultobj = SWIG_Py_Void();
37486 {
37487 if (temp2)
37488 delete arg2;
37489 }
37490 return resultobj;
37491fail:
37492 {
37493 if (temp2)
37494 delete arg2;
37495 }
37496 return NULL;
37497}
37498
37499
37500SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37501 PyObject *resultobj = 0;
37502 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37503 wxString result;
37504 void *argp1 = 0 ;
37505 int res1 = 0 ;
37506 PyObject *swig_obj[1] ;
37507
37508 if (!args) SWIG_fail;
37509 swig_obj[0] = args;
37510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37511 if (!SWIG_IsOK(res1)) {
37512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetName" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37513 }
37514 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 result = ((wxAboutDialogInfo const *)arg1)->GetName();
37518 wxPyEndAllowThreads(__tstate);
37519 if (PyErr_Occurred()) SWIG_fail;
37520 }
37521 {
37522#if wxUSE_UNICODE
37523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37524#else
37525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37526#endif
37527 }
37528 return resultobj;
37529fail:
37530 return NULL;
37531}
37532
37533
37534SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37535 PyObject *resultobj = 0;
37536 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37537 wxString *arg2 = 0 ;
37538 void *argp1 = 0 ;
37539 int res1 = 0 ;
37540 bool temp2 = false ;
37541 PyObject * obj0 = 0 ;
37542 PyObject * obj1 = 0 ;
37543 char * kwnames[] = {
37544 (char *) "self",(char *) "version", NULL
37545 };
37546
37547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail;
37548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37549 if (!SWIG_IsOK(res1)) {
37550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37551 }
37552 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37553 {
37554 arg2 = wxString_in_helper(obj1);
37555 if (arg2 == NULL) SWIG_fail;
37556 temp2 = true;
37557 }
37558 {
37559 PyThreadState* __tstate = wxPyBeginAllowThreads();
37560 (arg1)->SetVersion((wxString const &)*arg2);
37561 wxPyEndAllowThreads(__tstate);
37562 if (PyErr_Occurred()) SWIG_fail;
37563 }
37564 resultobj = SWIG_Py_Void();
37565 {
37566 if (temp2)
37567 delete arg2;
37568 }
37569 return resultobj;
37570fail:
37571 {
37572 if (temp2)
37573 delete arg2;
37574 }
37575 return NULL;
37576}
37577
37578
37579SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37580 PyObject *resultobj = 0;
37581 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37582 bool result;
37583 void *argp1 = 0 ;
37584 int res1 = 0 ;
37585 PyObject *swig_obj[1] ;
37586
37587 if (!args) SWIG_fail;
37588 swig_obj[0] = args;
37589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37590 if (!SWIG_IsOK(res1)) {
37591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37592 }
37593 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37594 {
37595 PyThreadState* __tstate = wxPyBeginAllowThreads();
37596 result = (bool)((wxAboutDialogInfo const *)arg1)->HasVersion();
37597 wxPyEndAllowThreads(__tstate);
37598 if (PyErr_Occurred()) SWIG_fail;
37599 }
37600 {
37601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37602 }
37603 return resultobj;
37604fail:
37605 return NULL;
37606}
37607
37608
37609SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37610 PyObject *resultobj = 0;
37611 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37612 wxString result;
37613 void *argp1 = 0 ;
37614 int res1 = 0 ;
37615 PyObject *swig_obj[1] ;
37616
37617 if (!args) SWIG_fail;
37618 swig_obj[0] = args;
37619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37620 if (!SWIG_IsOK(res1)) {
37621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37622 }
37623 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37624 {
37625 PyThreadState* __tstate = wxPyBeginAllowThreads();
37626 result = ((wxAboutDialogInfo const *)arg1)->GetVersion();
37627 wxPyEndAllowThreads(__tstate);
37628 if (PyErr_Occurred()) SWIG_fail;
37629 }
37630 {
37631#if wxUSE_UNICODE
37632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37633#else
37634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37635#endif
37636 }
37637 return resultobj;
37638fail:
37639 return NULL;
37640}
37641
37642
37643SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37644 PyObject *resultobj = 0;
37645 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37646 wxString *arg2 = 0 ;
37647 void *argp1 = 0 ;
37648 int res1 = 0 ;
37649 bool temp2 = false ;
37650 PyObject * obj0 = 0 ;
37651 PyObject * obj1 = 0 ;
37652 char * kwnames[] = {
37653 (char *) "self",(char *) "desc", NULL
37654 };
37655
37656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDescription",kwnames,&obj0,&obj1)) SWIG_fail;
37657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37658 if (!SWIG_IsOK(res1)) {
37659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37660 }
37661 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37662 {
37663 arg2 = wxString_in_helper(obj1);
37664 if (arg2 == NULL) SWIG_fail;
37665 temp2 = true;
37666 }
37667 {
37668 PyThreadState* __tstate = wxPyBeginAllowThreads();
37669 (arg1)->SetDescription((wxString const &)*arg2);
37670 wxPyEndAllowThreads(__tstate);
37671 if (PyErr_Occurred()) SWIG_fail;
37672 }
37673 resultobj = SWIG_Py_Void();
37674 {
37675 if (temp2)
37676 delete arg2;
37677 }
37678 return resultobj;
37679fail:
37680 {
37681 if (temp2)
37682 delete arg2;
37683 }
37684 return NULL;
37685}
37686
37687
37688SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37689 PyObject *resultobj = 0;
37690 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37691 bool result;
37692 void *argp1 = 0 ;
37693 int res1 = 0 ;
37694 PyObject *swig_obj[1] ;
37695
37696 if (!args) SWIG_fail;
37697 swig_obj[0] = args;
37698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37699 if (!SWIG_IsOK(res1)) {
37700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37701 }
37702 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37703 {
37704 PyThreadState* __tstate = wxPyBeginAllowThreads();
37705 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDescription();
37706 wxPyEndAllowThreads(__tstate);
37707 if (PyErr_Occurred()) SWIG_fail;
37708 }
37709 {
37710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37711 }
37712 return resultobj;
37713fail:
37714 return NULL;
37715}
37716
37717
37718SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37719 PyObject *resultobj = 0;
37720 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37721 wxString result;
37722 void *argp1 = 0 ;
37723 int res1 = 0 ;
37724 PyObject *swig_obj[1] ;
37725
37726 if (!args) SWIG_fail;
37727 swig_obj[0] = args;
37728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37729 if (!SWIG_IsOK(res1)) {
37730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37731 }
37732 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37733 {
37734 PyThreadState* __tstate = wxPyBeginAllowThreads();
37735 result = ((wxAboutDialogInfo const *)arg1)->GetDescription();
37736 wxPyEndAllowThreads(__tstate);
37737 if (PyErr_Occurred()) SWIG_fail;
37738 }
37739 {
37740#if wxUSE_UNICODE
37741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37742#else
37743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37744#endif
37745 }
37746 return resultobj;
37747fail:
37748 return NULL;
37749}
37750
37751
37752SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37753 PyObject *resultobj = 0;
37754 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37755 wxString *arg2 = 0 ;
37756 void *argp1 = 0 ;
37757 int res1 = 0 ;
37758 bool temp2 = false ;
37759 PyObject * obj0 = 0 ;
37760 PyObject * obj1 = 0 ;
37761 char * kwnames[] = {
37762 (char *) "self",(char *) "copyright", NULL
37763 };
37764
37765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetCopyright",kwnames,&obj0,&obj1)) SWIG_fail;
37766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37767 if (!SWIG_IsOK(res1)) {
37768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37769 }
37770 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37771 {
37772 arg2 = wxString_in_helper(obj1);
37773 if (arg2 == NULL) SWIG_fail;
37774 temp2 = true;
37775 }
37776 {
37777 PyThreadState* __tstate = wxPyBeginAllowThreads();
37778 (arg1)->SetCopyright((wxString const &)*arg2);
37779 wxPyEndAllowThreads(__tstate);
37780 if (PyErr_Occurred()) SWIG_fail;
37781 }
37782 resultobj = SWIG_Py_Void();
37783 {
37784 if (temp2)
37785 delete arg2;
37786 }
37787 return resultobj;
37788fail:
37789 {
37790 if (temp2)
37791 delete arg2;
37792 }
37793 return NULL;
37794}
37795
37796
37797SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37798 PyObject *resultobj = 0;
37799 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37800 bool result;
37801 void *argp1 = 0 ;
37802 int res1 = 0 ;
37803 PyObject *swig_obj[1] ;
37804
37805 if (!args) SWIG_fail;
37806 swig_obj[0] = args;
37807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37808 if (!SWIG_IsOK(res1)) {
37809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37810 }
37811 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37812 {
37813 PyThreadState* __tstate = wxPyBeginAllowThreads();
37814 result = (bool)((wxAboutDialogInfo const *)arg1)->HasCopyright();
37815 wxPyEndAllowThreads(__tstate);
37816 if (PyErr_Occurred()) SWIG_fail;
37817 }
37818 {
37819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37820 }
37821 return resultobj;
37822fail:
37823 return NULL;
37824}
37825
37826
37827SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37828 PyObject *resultobj = 0;
37829 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37830 wxString result;
37831 void *argp1 = 0 ;
37832 int res1 = 0 ;
37833 PyObject *swig_obj[1] ;
37834
37835 if (!args) SWIG_fail;
37836 swig_obj[0] = args;
37837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37838 if (!SWIG_IsOK(res1)) {
37839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37840 }
37841 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37842 {
37843 PyThreadState* __tstate = wxPyBeginAllowThreads();
37844 result = ((wxAboutDialogInfo const *)arg1)->GetCopyright();
37845 wxPyEndAllowThreads(__tstate);
37846 if (PyErr_Occurred()) SWIG_fail;
37847 }
37848 {
37849#if wxUSE_UNICODE
37850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37851#else
37852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37853#endif
37854 }
37855 return resultobj;
37856fail:
37857 return NULL;
37858}
37859
37860
37861SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37862 PyObject *resultobj = 0;
37863 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37864 wxString *arg2 = 0 ;
37865 void *argp1 = 0 ;
37866 int res1 = 0 ;
37867 bool temp2 = false ;
37868 PyObject * obj0 = 0 ;
37869 PyObject * obj1 = 0 ;
37870 char * kwnames[] = {
37871 (char *) "self",(char *) "licence", NULL
37872 };
37873
37874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetLicence",kwnames,&obj0,&obj1)) SWIG_fail;
37875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37876 if (!SWIG_IsOK(res1)) {
37877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37878 }
37879 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37880 {
37881 arg2 = wxString_in_helper(obj1);
37882 if (arg2 == NULL) SWIG_fail;
37883 temp2 = true;
37884 }
37885 {
37886 PyThreadState* __tstate = wxPyBeginAllowThreads();
37887 (arg1)->SetLicence((wxString const &)*arg2);
37888 wxPyEndAllowThreads(__tstate);
37889 if (PyErr_Occurred()) SWIG_fail;
37890 }
37891 resultobj = SWIG_Py_Void();
37892 {
37893 if (temp2)
37894 delete arg2;
37895 }
37896 return resultobj;
37897fail:
37898 {
37899 if (temp2)
37900 delete arg2;
37901 }
37902 return NULL;
37903}
37904
37905
37906SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetLicense(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37907 PyObject *resultobj = 0;
37908 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37909 wxString *arg2 = 0 ;
37910 void *argp1 = 0 ;
37911 int res1 = 0 ;
37912 bool temp2 = false ;
37913 PyObject * obj0 = 0 ;
37914 PyObject * obj1 = 0 ;
37915 char * kwnames[] = {
37916 (char *) "self",(char *) "licence", NULL
37917 };
37918
37919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetLicense",kwnames,&obj0,&obj1)) SWIG_fail;
37920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37921 if (!SWIG_IsOK(res1)) {
37922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetLicense" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37923 }
37924 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37925 {
37926 arg2 = wxString_in_helper(obj1);
37927 if (arg2 == NULL) SWIG_fail;
37928 temp2 = true;
37929 }
37930 {
37931 PyThreadState* __tstate = wxPyBeginAllowThreads();
37932 (arg1)->SetLicense((wxString const &)*arg2);
37933 wxPyEndAllowThreads(__tstate);
37934 if (PyErr_Occurred()) SWIG_fail;
37935 }
37936 resultobj = SWIG_Py_Void();
37937 {
37938 if (temp2)
37939 delete arg2;
37940 }
37941 return resultobj;
37942fail:
37943 {
37944 if (temp2)
37945 delete arg2;
37946 }
37947 return NULL;
37948}
37949
37950
37951SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37952 PyObject *resultobj = 0;
37953 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37954 bool result;
37955 void *argp1 = 0 ;
37956 int res1 = 0 ;
37957 PyObject *swig_obj[1] ;
37958
37959 if (!args) SWIG_fail;
37960 swig_obj[0] = args;
37961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37962 if (!SWIG_IsOK(res1)) {
37963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37964 }
37965 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37966 {
37967 PyThreadState* __tstate = wxPyBeginAllowThreads();
37968 result = (bool)((wxAboutDialogInfo const *)arg1)->HasLicence();
37969 wxPyEndAllowThreads(__tstate);
37970 if (PyErr_Occurred()) SWIG_fail;
37971 }
37972 {
37973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37974 }
37975 return resultobj;
37976fail:
37977 return NULL;
37978}
37979
37980
37981SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37982 PyObject *resultobj = 0;
37983 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37984 wxString result;
37985 void *argp1 = 0 ;
37986 int res1 = 0 ;
37987 PyObject *swig_obj[1] ;
37988
37989 if (!args) SWIG_fail;
37990 swig_obj[0] = args;
37991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37992 if (!SWIG_IsOK(res1)) {
37993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37994 }
37995 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37996 {
37997 PyThreadState* __tstate = wxPyBeginAllowThreads();
37998 result = ((wxAboutDialogInfo const *)arg1)->GetLicence();
37999 wxPyEndAllowThreads(__tstate);
38000 if (PyErr_Occurred()) SWIG_fail;
38001 }
38002 {
38003#if wxUSE_UNICODE
38004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38005#else
38006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38007#endif
38008 }
38009 return resultobj;
38010fail:
38011 return NULL;
38012}
38013
38014
38015SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38016 PyObject *resultobj = 0;
38017 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38018 wxIcon *arg2 = 0 ;
38019 void *argp1 = 0 ;
38020 int res1 = 0 ;
38021 void *argp2 = 0 ;
38022 int res2 = 0 ;
38023 PyObject * obj0 = 0 ;
38024 PyObject * obj1 = 0 ;
38025 char * kwnames[] = {
38026 (char *) "self",(char *) "icon", NULL
38027 };
38028
38029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
38030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38031 if (!SWIG_IsOK(res1)) {
38032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38033 }
38034 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38036 if (!SWIG_IsOK(res2)) {
38037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38038 }
38039 if (!argp2) {
38040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38041 }
38042 arg2 = reinterpret_cast< wxIcon * >(argp2);
38043 {
38044 PyThreadState* __tstate = wxPyBeginAllowThreads();
38045 (arg1)->SetIcon((wxIcon const &)*arg2);
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 resultobj = SWIG_Py_Void();
38050 return resultobj;
38051fail:
38052 return NULL;
38053}
38054
38055
38056SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38057 PyObject *resultobj = 0;
38058 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38059 bool result;
38060 void *argp1 = 0 ;
38061 int res1 = 0 ;
38062 PyObject *swig_obj[1] ;
38063
38064 if (!args) SWIG_fail;
38065 swig_obj[0] = args;
38066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38067 if (!SWIG_IsOK(res1)) {
38068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38069 }
38070 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38071 {
38072 PyThreadState* __tstate = wxPyBeginAllowThreads();
38073 result = (bool)((wxAboutDialogInfo const *)arg1)->HasIcon();
38074 wxPyEndAllowThreads(__tstate);
38075 if (PyErr_Occurred()) SWIG_fail;
38076 }
38077 {
38078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38079 }
38080 return resultobj;
38081fail:
38082 return NULL;
38083}
38084
38085
38086SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38087 PyObject *resultobj = 0;
38088 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38089 wxIcon result;
38090 void *argp1 = 0 ;
38091 int res1 = 0 ;
38092 PyObject *swig_obj[1] ;
38093
38094 if (!args) SWIG_fail;
38095 swig_obj[0] = args;
38096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38097 if (!SWIG_IsOK(res1)) {
38098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38099 }
38100 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38101 {
38102 PyThreadState* __tstate = wxPyBeginAllowThreads();
38103 result = ((wxAboutDialogInfo const *)arg1)->GetIcon();
38104 wxPyEndAllowThreads(__tstate);
38105 if (PyErr_Occurred()) SWIG_fail;
38106 }
38107 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
38108 return resultobj;
38109fail:
38110 return NULL;
38111}
38112
38113
38114SWIGINTERN PyObject *_wrap_AboutDialogInfo__SetWebSite(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38115 PyObject *resultobj = 0;
38116 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38117 wxString *arg2 = 0 ;
38118 wxString const &arg3_defvalue = wxEmptyString ;
38119 wxString *arg3 = (wxString *) &arg3_defvalue ;
38120 void *argp1 = 0 ;
38121 int res1 = 0 ;
38122 bool temp2 = false ;
38123 bool temp3 = false ;
38124 PyObject * obj0 = 0 ;
38125 PyObject * obj1 = 0 ;
38126 PyObject * obj2 = 0 ;
38127 char * kwnames[] = {
38128 (char *) "self",(char *) "url",(char *) "desc", NULL
38129 };
38130
38131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:AboutDialogInfo__SetWebSite",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38133 if (!SWIG_IsOK(res1)) {
38134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__SetWebSite" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38135 }
38136 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38137 {
38138 arg2 = wxString_in_helper(obj1);
38139 if (arg2 == NULL) SWIG_fail;
38140 temp2 = true;
38141 }
38142 if (obj2) {
38143 {
38144 arg3 = wxString_in_helper(obj2);
38145 if (arg3 == NULL) SWIG_fail;
38146 temp3 = true;
38147 }
38148 }
38149 {
38150 PyThreadState* __tstate = wxPyBeginAllowThreads();
38151 (arg1)->SetWebSite((wxString const &)*arg2,(wxString const &)*arg3);
38152 wxPyEndAllowThreads(__tstate);
38153 if (PyErr_Occurred()) SWIG_fail;
38154 }
38155 resultobj = SWIG_Py_Void();
38156 {
38157 if (temp2)
38158 delete arg2;
38159 }
38160 {
38161 if (temp3)
38162 delete arg3;
38163 }
38164 return resultobj;
38165fail:
38166 {
38167 if (temp2)
38168 delete arg2;
38169 }
38170 {
38171 if (temp3)
38172 delete arg3;
38173 }
38174 return NULL;
38175}
38176
38177
38178SWIGINTERN PyObject *_wrap_AboutDialogInfo__GetWebSiteURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38179 PyObject *resultobj = 0;
38180 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38181 wxString result;
38182 void *argp1 = 0 ;
38183 int res1 = 0 ;
38184 PyObject *swig_obj[1] ;
38185
38186 if (!args) SWIG_fail;
38187 swig_obj[0] = args;
38188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38189 if (!SWIG_IsOK(res1)) {
38190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__GetWebSiteURL" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38191 }
38192 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38193 {
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 result = ((wxAboutDialogInfo const *)arg1)->GetWebSiteURL();
38196 wxPyEndAllowThreads(__tstate);
38197 if (PyErr_Occurred()) SWIG_fail;
38198 }
38199 {
38200#if wxUSE_UNICODE
38201 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38202#else
38203 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38204#endif
38205 }
38206 return resultobj;
38207fail:
38208 return NULL;
38209}
38210
38211
38212SWIGINTERN PyObject *_wrap_AboutDialogInfo__GetWebSiteDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38213 PyObject *resultobj = 0;
38214 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38215 wxString result;
38216 void *argp1 = 0 ;
38217 int res1 = 0 ;
38218 PyObject *swig_obj[1] ;
38219
38220 if (!args) SWIG_fail;
38221 swig_obj[0] = args;
38222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38223 if (!SWIG_IsOK(res1)) {
38224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__GetWebSiteDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38225 }
38226 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38227 {
38228 PyThreadState* __tstate = wxPyBeginAllowThreads();
38229 result = ((wxAboutDialogInfo const *)arg1)->GetWebSiteDescription();
38230 wxPyEndAllowThreads(__tstate);
38231 if (PyErr_Occurred()) SWIG_fail;
38232 }
38233 {
38234#if wxUSE_UNICODE
38235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38236#else
38237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38238#endif
38239 }
38240 return resultobj;
38241fail:
38242 return NULL;
38243}
38244
38245
38246SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasWebSite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38247 PyObject *resultobj = 0;
38248 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38249 bool result;
38250 void *argp1 = 0 ;
38251 int res1 = 0 ;
38252 PyObject *swig_obj[1] ;
38253
38254 if (!args) SWIG_fail;
38255 swig_obj[0] = args;
38256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38257 if (!SWIG_IsOK(res1)) {
38258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasWebSite" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38259 }
38260 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38261 {
38262 PyThreadState* __tstate = wxPyBeginAllowThreads();
38263 result = (bool)((wxAboutDialogInfo const *)arg1)->HasWebSite();
38264 wxPyEndAllowThreads(__tstate);
38265 if (PyErr_Occurred()) SWIG_fail;
38266 }
38267 {
38268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38269 }
38270 return resultobj;
38271fail:
38272 return NULL;
38273}
38274
38275
38276SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38277 PyObject *resultobj = 0;
38278 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38279 wxArrayString *arg2 = 0 ;
38280 void *argp1 = 0 ;
38281 int res1 = 0 ;
38282 bool temp2 = false ;
38283 PyObject * obj0 = 0 ;
38284 PyObject * obj1 = 0 ;
38285 char * kwnames[] = {
38286 (char *) "self",(char *) "developers", NULL
38287 };
38288
38289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDevelopers",kwnames,&obj0,&obj1)) SWIG_fail;
38290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38291 if (!SWIG_IsOK(res1)) {
38292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38293 }
38294 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38295 {
38296 if (! PySequence_Check(obj1)) {
38297 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38298 SWIG_fail;
38299 }
38300 arg2 = new wxArrayString;
38301 temp2 = true;
38302 int i, len=PySequence_Length(obj1);
38303 for (i=0; i<len; i++) {
38304 PyObject* item = PySequence_GetItem(obj1, i);
38305 wxString* s = wxString_in_helper(item);
38306 if (PyErr_Occurred()) SWIG_fail;
38307 arg2->Add(*s);
38308 delete s;
38309 Py_DECREF(item);
38310 }
38311 }
38312 {
38313 PyThreadState* __tstate = wxPyBeginAllowThreads();
38314 (arg1)->SetDevelopers((wxArrayString const &)*arg2);
38315 wxPyEndAllowThreads(__tstate);
38316 if (PyErr_Occurred()) SWIG_fail;
38317 }
38318 resultobj = SWIG_Py_Void();
38319 {
38320 if (temp2) delete arg2;
38321 }
38322 return resultobj;
38323fail:
38324 {
38325 if (temp2) delete arg2;
38326 }
38327 return NULL;
38328}
38329
38330
38331SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddDeveloper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38332 PyObject *resultobj = 0;
38333 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38334 wxString *arg2 = 0 ;
38335 void *argp1 = 0 ;
38336 int res1 = 0 ;
38337 bool temp2 = false ;
38338 PyObject * obj0 = 0 ;
38339 PyObject * obj1 = 0 ;
38340 char * kwnames[] = {
38341 (char *) "self",(char *) "developer", NULL
38342 };
38343
38344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddDeveloper",kwnames,&obj0,&obj1)) SWIG_fail;
38345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38346 if (!SWIG_IsOK(res1)) {
38347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddDeveloper" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38348 }
38349 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38350 {
38351 arg2 = wxString_in_helper(obj1);
38352 if (arg2 == NULL) SWIG_fail;
38353 temp2 = true;
38354 }
38355 {
38356 PyThreadState* __tstate = wxPyBeginAllowThreads();
38357 (arg1)->AddDeveloper((wxString const &)*arg2);
38358 wxPyEndAllowThreads(__tstate);
38359 if (PyErr_Occurred()) SWIG_fail;
38360 }
38361 resultobj = SWIG_Py_Void();
38362 {
38363 if (temp2)
38364 delete arg2;
38365 }
38366 return resultobj;
38367fail:
38368 {
38369 if (temp2)
38370 delete arg2;
38371 }
38372 return NULL;
38373}
38374
38375
38376SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38377 PyObject *resultobj = 0;
38378 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38379 bool result;
38380 void *argp1 = 0 ;
38381 int res1 = 0 ;
38382 PyObject *swig_obj[1] ;
38383
38384 if (!args) SWIG_fail;
38385 swig_obj[0] = args;
38386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38387 if (!SWIG_IsOK(res1)) {
38388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38389 }
38390 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38391 {
38392 PyThreadState* __tstate = wxPyBeginAllowThreads();
38393 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDevelopers();
38394 wxPyEndAllowThreads(__tstate);
38395 if (PyErr_Occurred()) SWIG_fail;
38396 }
38397 {
38398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38399 }
38400 return resultobj;
38401fail:
38402 return NULL;
38403}
38404
38405
38406SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38407 PyObject *resultobj = 0;
38408 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38409 wxArrayString *result = 0 ;
38410 void *argp1 = 0 ;
38411 int res1 = 0 ;
38412 PyObject *swig_obj[1] ;
38413
38414 if (!args) SWIG_fail;
38415 swig_obj[0] = args;
38416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38417 if (!SWIG_IsOK(res1)) {
38418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38419 }
38420 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38421 {
38422 PyThreadState* __tstate = wxPyBeginAllowThreads();
38423 {
38424 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetDevelopers();
38425 result = (wxArrayString *) &_result_ref;
38426 }
38427 wxPyEndAllowThreads(__tstate);
38428 if (PyErr_Occurred()) SWIG_fail;
38429 }
38430 {
38431 resultobj = wxArrayString2PyList_helper(*result);
38432 }
38433 return resultobj;
38434fail:
38435 return NULL;
38436}
38437
38438
38439SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38440 PyObject *resultobj = 0;
38441 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38442 wxArrayString *arg2 = 0 ;
38443 void *argp1 = 0 ;
38444 int res1 = 0 ;
38445 bool temp2 = false ;
38446 PyObject * obj0 = 0 ;
38447 PyObject * obj1 = 0 ;
38448 char * kwnames[] = {
38449 (char *) "self",(char *) "docwriters", NULL
38450 };
38451
38452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDocWriters",kwnames,&obj0,&obj1)) SWIG_fail;
38453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38454 if (!SWIG_IsOK(res1)) {
38455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38456 }
38457 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38458 {
38459 if (! PySequence_Check(obj1)) {
38460 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38461 SWIG_fail;
38462 }
38463 arg2 = new wxArrayString;
38464 temp2 = true;
38465 int i, len=PySequence_Length(obj1);
38466 for (i=0; i<len; i++) {
38467 PyObject* item = PySequence_GetItem(obj1, i);
38468 wxString* s = wxString_in_helper(item);
38469 if (PyErr_Occurred()) SWIG_fail;
38470 arg2->Add(*s);
38471 delete s;
38472 Py_DECREF(item);
38473 }
38474 }
38475 {
38476 PyThreadState* __tstate = wxPyBeginAllowThreads();
38477 (arg1)->SetDocWriters((wxArrayString const &)*arg2);
38478 wxPyEndAllowThreads(__tstate);
38479 if (PyErr_Occurred()) SWIG_fail;
38480 }
38481 resultobj = SWIG_Py_Void();
38482 {
38483 if (temp2) delete arg2;
38484 }
38485 return resultobj;
38486fail:
38487 {
38488 if (temp2) delete arg2;
38489 }
38490 return NULL;
38491}
38492
38493
38494SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddDocWriter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38495 PyObject *resultobj = 0;
38496 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38497 wxString *arg2 = 0 ;
38498 void *argp1 = 0 ;
38499 int res1 = 0 ;
38500 bool temp2 = false ;
38501 PyObject * obj0 = 0 ;
38502 PyObject * obj1 = 0 ;
38503 char * kwnames[] = {
38504 (char *) "self",(char *) "docwriter", NULL
38505 };
38506
38507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddDocWriter",kwnames,&obj0,&obj1)) SWIG_fail;
38508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38509 if (!SWIG_IsOK(res1)) {
38510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddDocWriter" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38511 }
38512 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38513 {
38514 arg2 = wxString_in_helper(obj1);
38515 if (arg2 == NULL) SWIG_fail;
38516 temp2 = true;
38517 }
38518 {
38519 PyThreadState* __tstate = wxPyBeginAllowThreads();
38520 (arg1)->AddDocWriter((wxString const &)*arg2);
38521 wxPyEndAllowThreads(__tstate);
38522 if (PyErr_Occurred()) SWIG_fail;
38523 }
38524 resultobj = SWIG_Py_Void();
38525 {
38526 if (temp2)
38527 delete arg2;
38528 }
38529 return resultobj;
38530fail:
38531 {
38532 if (temp2)
38533 delete arg2;
38534 }
38535 return NULL;
38536}
38537
38538
38539SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38540 PyObject *resultobj = 0;
38541 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38542 bool result;
38543 void *argp1 = 0 ;
38544 int res1 = 0 ;
38545 PyObject *swig_obj[1] ;
38546
38547 if (!args) SWIG_fail;
38548 swig_obj[0] = args;
38549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38550 if (!SWIG_IsOK(res1)) {
38551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38552 }
38553 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38554 {
38555 PyThreadState* __tstate = wxPyBeginAllowThreads();
38556 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDocWriters();
38557 wxPyEndAllowThreads(__tstate);
38558 if (PyErr_Occurred()) SWIG_fail;
38559 }
38560 {
38561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38562 }
38563 return resultobj;
38564fail:
38565 return NULL;
38566}
38567
38568
38569SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38570 PyObject *resultobj = 0;
38571 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38572 wxArrayString *result = 0 ;
38573 void *argp1 = 0 ;
38574 int res1 = 0 ;
38575 PyObject *swig_obj[1] ;
38576
38577 if (!args) SWIG_fail;
38578 swig_obj[0] = args;
38579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38580 if (!SWIG_IsOK(res1)) {
38581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38582 }
38583 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38584 {
38585 PyThreadState* __tstate = wxPyBeginAllowThreads();
38586 {
38587 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetDocWriters();
38588 result = (wxArrayString *) &_result_ref;
38589 }
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 {
38594 resultobj = wxArrayString2PyList_helper(*result);
38595 }
38596 return resultobj;
38597fail:
38598 return NULL;
38599}
38600
38601
38602SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38603 PyObject *resultobj = 0;
38604 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38605 wxArrayString *arg2 = 0 ;
38606 void *argp1 = 0 ;
38607 int res1 = 0 ;
38608 bool temp2 = false ;
38609 PyObject * obj0 = 0 ;
38610 PyObject * obj1 = 0 ;
38611 char * kwnames[] = {
38612 (char *) "self",(char *) "artists", NULL
38613 };
38614
38615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetArtists",kwnames,&obj0,&obj1)) SWIG_fail;
38616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38617 if (!SWIG_IsOK(res1)) {
38618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38619 }
38620 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38621 {
38622 if (! PySequence_Check(obj1)) {
38623 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38624 SWIG_fail;
38625 }
38626 arg2 = new wxArrayString;
38627 temp2 = true;
38628 int i, len=PySequence_Length(obj1);
38629 for (i=0; i<len; i++) {
38630 PyObject* item = PySequence_GetItem(obj1, i);
38631 wxString* s = wxString_in_helper(item);
38632 if (PyErr_Occurred()) SWIG_fail;
38633 arg2->Add(*s);
38634 delete s;
38635 Py_DECREF(item);
38636 }
38637 }
38638 {
38639 PyThreadState* __tstate = wxPyBeginAllowThreads();
38640 (arg1)->SetArtists((wxArrayString const &)*arg2);
38641 wxPyEndAllowThreads(__tstate);
38642 if (PyErr_Occurred()) SWIG_fail;
38643 }
38644 resultobj = SWIG_Py_Void();
38645 {
38646 if (temp2) delete arg2;
38647 }
38648 return resultobj;
38649fail:
38650 {
38651 if (temp2) delete arg2;
38652 }
38653 return NULL;
38654}
38655
38656
38657SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddArtist(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38658 PyObject *resultobj = 0;
38659 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38660 wxString *arg2 = 0 ;
38661 void *argp1 = 0 ;
38662 int res1 = 0 ;
38663 bool temp2 = false ;
38664 PyObject * obj0 = 0 ;
38665 PyObject * obj1 = 0 ;
38666 char * kwnames[] = {
38667 (char *) "self",(char *) "artist", NULL
38668 };
38669
38670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddArtist",kwnames,&obj0,&obj1)) SWIG_fail;
38671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38672 if (!SWIG_IsOK(res1)) {
38673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddArtist" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38674 }
38675 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38676 {
38677 arg2 = wxString_in_helper(obj1);
38678 if (arg2 == NULL) SWIG_fail;
38679 temp2 = true;
38680 }
38681 {
38682 PyThreadState* __tstate = wxPyBeginAllowThreads();
38683 (arg1)->AddArtist((wxString const &)*arg2);
38684 wxPyEndAllowThreads(__tstate);
38685 if (PyErr_Occurred()) SWIG_fail;
38686 }
38687 resultobj = SWIG_Py_Void();
38688 {
38689 if (temp2)
38690 delete arg2;
38691 }
38692 return resultobj;
38693fail:
38694 {
38695 if (temp2)
38696 delete arg2;
38697 }
38698 return NULL;
38699}
38700
38701
38702SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38703 PyObject *resultobj = 0;
38704 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38705 bool result;
38706 void *argp1 = 0 ;
38707 int res1 = 0 ;
38708 PyObject *swig_obj[1] ;
38709
38710 if (!args) SWIG_fail;
38711 swig_obj[0] = args;
38712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38713 if (!SWIG_IsOK(res1)) {
38714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38715 }
38716 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38717 {
38718 PyThreadState* __tstate = wxPyBeginAllowThreads();
38719 result = (bool)((wxAboutDialogInfo const *)arg1)->HasArtists();
38720 wxPyEndAllowThreads(__tstate);
38721 if (PyErr_Occurred()) SWIG_fail;
38722 }
38723 {
38724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38725 }
38726 return resultobj;
38727fail:
38728 return NULL;
38729}
38730
38731
38732SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38733 PyObject *resultobj = 0;
38734 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38735 wxArrayString *result = 0 ;
38736 void *argp1 = 0 ;
38737 int res1 = 0 ;
38738 PyObject *swig_obj[1] ;
38739
38740 if (!args) SWIG_fail;
38741 swig_obj[0] = args;
38742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38743 if (!SWIG_IsOK(res1)) {
38744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38745 }
38746 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38747 {
38748 PyThreadState* __tstate = wxPyBeginAllowThreads();
38749 {
38750 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetArtists();
38751 result = (wxArrayString *) &_result_ref;
38752 }
38753 wxPyEndAllowThreads(__tstate);
38754 if (PyErr_Occurred()) SWIG_fail;
38755 }
38756 {
38757 resultobj = wxArrayString2PyList_helper(*result);
38758 }
38759 return resultobj;
38760fail:
38761 return NULL;
38762}
38763
38764
38765SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38766 PyObject *resultobj = 0;
38767 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38768 wxArrayString *arg2 = 0 ;
38769 void *argp1 = 0 ;
38770 int res1 = 0 ;
38771 bool temp2 = false ;
38772 PyObject * obj0 = 0 ;
38773 PyObject * obj1 = 0 ;
38774 char * kwnames[] = {
38775 (char *) "self",(char *) "translators", NULL
38776 };
38777
38778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetTranslators",kwnames,&obj0,&obj1)) SWIG_fail;
38779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38780 if (!SWIG_IsOK(res1)) {
38781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38782 }
38783 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38784 {
38785 if (! PySequence_Check(obj1)) {
38786 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38787 SWIG_fail;
38788 }
38789 arg2 = new wxArrayString;
38790 temp2 = true;
38791 int i, len=PySequence_Length(obj1);
38792 for (i=0; i<len; i++) {
38793 PyObject* item = PySequence_GetItem(obj1, i);
38794 wxString* s = wxString_in_helper(item);
38795 if (PyErr_Occurred()) SWIG_fail;
38796 arg2->Add(*s);
38797 delete s;
38798 Py_DECREF(item);
38799 }
38800 }
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 (arg1)->SetTranslators((wxArrayString const &)*arg2);
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 resultobj = SWIG_Py_Void();
38808 {
38809 if (temp2) delete arg2;
38810 }
38811 return resultobj;
38812fail:
38813 {
38814 if (temp2) delete arg2;
38815 }
38816 return NULL;
38817}
38818
38819
38820SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddTranslator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38821 PyObject *resultobj = 0;
38822 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38823 wxString *arg2 = 0 ;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 bool temp2 = false ;
38827 PyObject * obj0 = 0 ;
38828 PyObject * obj1 = 0 ;
38829 char * kwnames[] = {
38830 (char *) "self",(char *) "translator", NULL
38831 };
38832
38833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddTranslator",kwnames,&obj0,&obj1)) SWIG_fail;
38834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38835 if (!SWIG_IsOK(res1)) {
38836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddTranslator" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38837 }
38838 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38839 {
38840 arg2 = wxString_in_helper(obj1);
38841 if (arg2 == NULL) SWIG_fail;
38842 temp2 = true;
38843 }
38844 {
38845 PyThreadState* __tstate = wxPyBeginAllowThreads();
38846 (arg1)->AddTranslator((wxString const &)*arg2);
38847 wxPyEndAllowThreads(__tstate);
38848 if (PyErr_Occurred()) SWIG_fail;
38849 }
38850 resultobj = SWIG_Py_Void();
38851 {
38852 if (temp2)
38853 delete arg2;
38854 }
38855 return resultobj;
38856fail:
38857 {
38858 if (temp2)
38859 delete arg2;
38860 }
38861 return NULL;
38862}
38863
38864
38865SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38866 PyObject *resultobj = 0;
38867 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38868 bool result;
38869 void *argp1 = 0 ;
38870 int res1 = 0 ;
38871 PyObject *swig_obj[1] ;
38872
38873 if (!args) SWIG_fail;
38874 swig_obj[0] = args;
38875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38876 if (!SWIG_IsOK(res1)) {
38877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38878 }
38879 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38880 {
38881 PyThreadState* __tstate = wxPyBeginAllowThreads();
38882 result = (bool)((wxAboutDialogInfo const *)arg1)->HasTranslators();
38883 wxPyEndAllowThreads(__tstate);
38884 if (PyErr_Occurred()) SWIG_fail;
38885 }
38886 {
38887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38888 }
38889 return resultobj;
38890fail:
38891 return NULL;
38892}
38893
38894
38895SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38896 PyObject *resultobj = 0;
38897 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38898 wxArrayString *result = 0 ;
38899 void *argp1 = 0 ;
38900 int res1 = 0 ;
38901 PyObject *swig_obj[1] ;
38902
38903 if (!args) SWIG_fail;
38904 swig_obj[0] = args;
38905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38906 if (!SWIG_IsOK(res1)) {
38907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38908 }
38909 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38910 {
38911 PyThreadState* __tstate = wxPyBeginAllowThreads();
38912 {
38913 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetTranslators();
38914 result = (wxArrayString *) &_result_ref;
38915 }
38916 wxPyEndAllowThreads(__tstate);
38917 if (PyErr_Occurred()) SWIG_fail;
38918 }
38919 {
38920 resultobj = wxArrayString2PyList_helper(*result);
38921 }
38922 return resultobj;
38923fail:
38924 return NULL;
38925}
38926
38927
38928SWIGINTERN PyObject *_wrap_AboutDialogInfo_IsSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38929 PyObject *resultobj = 0;
38930 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38931 bool result;
38932 void *argp1 = 0 ;
38933 int res1 = 0 ;
38934 PyObject *swig_obj[1] ;
38935
38936 if (!args) SWIG_fail;
38937 swig_obj[0] = args;
38938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38939 if (!SWIG_IsOK(res1)) {
38940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_IsSimple" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38941 }
38942 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38943 {
38944 PyThreadState* __tstate = wxPyBeginAllowThreads();
38945 result = (bool)((wxAboutDialogInfo const *)arg1)->IsSimple();
38946 wxPyEndAllowThreads(__tstate);
38947 if (PyErr_Occurred()) SWIG_fail;
38948 }
38949 {
38950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38951 }
38952 return resultobj;
38953fail:
38954 return NULL;
38955}
38956
38957
38958SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDescriptionAndCredits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38959 PyObject *resultobj = 0;
38960 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38961 wxString result;
38962 void *argp1 = 0 ;
38963 int res1 = 0 ;
38964 PyObject *swig_obj[1] ;
38965
38966 if (!args) SWIG_fail;
38967 swig_obj[0] = args;
38968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38969 if (!SWIG_IsOK(res1)) {
38970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDescriptionAndCredits" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38971 }
38972 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38973 {
38974 PyThreadState* __tstate = wxPyBeginAllowThreads();
38975 result = ((wxAboutDialogInfo const *)arg1)->GetDescriptionAndCredits();
38976 wxPyEndAllowThreads(__tstate);
38977 if (PyErr_Occurred()) SWIG_fail;
38978 }
38979 {
38980#if wxUSE_UNICODE
38981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38982#else
38983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38984#endif
38985 }
38986 return resultobj;
38987fail:
38988 return NULL;
38989}
38990
38991
38992SWIGINTERN PyObject *AboutDialogInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38993 PyObject *obj;
38994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38995 SWIG_TypeNewClientData(SWIGTYPE_p_wxAboutDialogInfo, SWIG_NewClientData(obj));
38996 return SWIG_Py_Void();
38997}
38998
38999SWIGINTERN PyObject *AboutDialogInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39000 return SWIG_Python_InitShadowInstance(args);
39001}
39002
39003SWIGINTERN PyObject *_wrap_AboutBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39004 PyObject *resultobj = 0;
39005 wxAboutDialogInfo *arg1 = 0 ;
39006 void *argp1 = 0 ;
39007 int res1 = 0 ;
39008 PyObject * obj0 = 0 ;
39009 char * kwnames[] = {
39010 (char *) "info", NULL
39011 };
39012
39013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AboutBox",kwnames,&obj0)) SWIG_fail;
39014 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxAboutDialogInfo, 0 | 0);
39015 if (!SWIG_IsOK(res1)) {
39016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutBox" "', expected argument " "1"" of type '" "wxAboutDialogInfo const &""'");
39017 }
39018 if (!argp1) {
39019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AboutBox" "', expected argument " "1"" of type '" "wxAboutDialogInfo const &""'");
39020 }
39021 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39022 {
39023 PyThreadState* __tstate = wxPyBeginAllowThreads();
39024 wxAboutBox((wxAboutDialogInfo const &)*arg1);
39025 wxPyEndAllowThreads(__tstate);
39026 if (PyErr_Occurred()) SWIG_fail;
39027 }
39028 resultobj = SWIG_Py_Void();
39029 return resultobj;
39030fail:
39031 return NULL;
39032}
39033
39034
0085ce49
RD
39035static PyMethodDef SwigMethods[] = {
39036 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"SystemSettings_GetScreenType", (PyCFunction)_wrap_SystemSettings_GetScreenType, METH_NOARGS, NULL},
39041 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL},
39043 { (char *)"new_SystemOptions", (PyCFunction)_wrap_new_SystemOptions, METH_NOARGS, NULL},
39044 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
39051 { (char *)"SystemOptions_swiginit", SystemOptions_swiginit, METH_VARARGS, NULL},
39052 { (char *)"NewId", (PyCFunction)_wrap_NewId, METH_NOARGS, NULL},
39053 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"GetCurrentId", (PyCFunction)_wrap_GetCurrentId, METH_NOARGS, NULL},
39055 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
97ab0f6a 39058 { (char *)"GetStockHelpString", (PyCFunction) _wrap_GetStockHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39059 { (char *)"Bell", (PyCFunction)_wrap_Bell, METH_NOARGS, NULL},
39060 { (char *)"EndBusyCursor", (PyCFunction)_wrap_EndBusyCursor, METH_NOARGS, NULL},
39061 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"IsBusy", (PyCFunction)_wrap_IsBusy, METH_NOARGS, NULL},
39063 { (char *)"Now", (PyCFunction)_wrap_Now, METH_NOARGS, NULL},
39064 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"StartTimer", (PyCFunction)_wrap_StartTimer, METH_NOARGS, NULL},
39066 { (char *)"GetOsVersion", (PyCFunction)_wrap_GetOsVersion, METH_NOARGS, NULL},
39067 { (char *)"GetOsDescription", (PyCFunction)_wrap_GetOsDescription, METH_NOARGS, NULL},
fc46b7f3
RD
39068 { (char *)"IsPlatformLittleEndian", (PyCFunction)_wrap_IsPlatformLittleEndian, METH_NOARGS, NULL},
39069 { (char *)"IsPlatform64Bit", (PyCFunction)_wrap_IsPlatform64Bit, METH_NOARGS, NULL},
0085ce49
RD
39070 { (char *)"GetFreeMemory", (PyCFunction)_wrap_GetFreeMemory, METH_NOARGS, NULL},
39071 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"GetEmailAddress", (PyCFunction)_wrap_GetEmailAddress, METH_NOARGS, NULL},
39078 { (char *)"GetHostName", (PyCFunction)_wrap_GetHostName, METH_NOARGS, NULL},
39079 { (char *)"GetFullHostName", (PyCFunction)_wrap_GetFullHostName, METH_NOARGS, NULL},
39080 { (char *)"GetUserId", (PyCFunction)_wrap_GetUserId, METH_NOARGS, NULL},
39081 { (char *)"GetUserName", (PyCFunction)_wrap_GetUserName, METH_NOARGS, NULL},
39082 { (char *)"GetHomeDir", (PyCFunction)_wrap_GetHomeDir, METH_NOARGS, NULL},
39083 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"GetProcessId", (PyCFunction)_wrap_GetProcessId, METH_NOARGS, NULL},
39085 { (char *)"Trap", (PyCFunction)_wrap_Trap, METH_NOARGS, NULL},
39086 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892 39095 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39096 { (char *)"ColourDisplay", (PyCFunction)_wrap_ColourDisplay, METH_NOARGS, NULL},
39097 { (char *)"DisplayDepth", (PyCFunction)_wrap_DisplayDepth, METH_NOARGS, NULL},
39098 { (char *)"GetDisplayDepth", (PyCFunction)_wrap_GetDisplayDepth, METH_NOARGS, NULL},
39099 { (char *)"DisplaySize", (PyCFunction)_wrap_DisplaySize, METH_NOARGS, NULL},
39100 { (char *)"GetDisplaySize", (PyCFunction)_wrap_GetDisplaySize, METH_NOARGS, NULL},
39101 { (char *)"DisplaySizeMM", (PyCFunction)_wrap_DisplaySizeMM, METH_NOARGS, NULL},
39102 { (char *)"GetDisplaySizeMM", (PyCFunction)_wrap_GetDisplaySizeMM, METH_NOARGS, NULL},
39103 { (char *)"ClientDisplayRect", (PyCFunction)_wrap_ClientDisplayRect, METH_NOARGS, NULL},
39104 { (char *)"GetClientDisplayRect", (PyCFunction)_wrap_GetClientDisplayRect, METH_NOARGS, NULL},
39105 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"GetXDisplay", (PyCFunction)_wrap_GetXDisplay, METH_NOARGS, NULL},
39107 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"GetMousePosition", (PyCFunction)_wrap_GetMousePosition, METH_NOARGS, NULL},
39109 { (char *)"FindWindowAtPointer", (PyCFunction)_wrap_FindWindowAtPointer, METH_NOARGS, NULL},
39110 { (char *)"GetActiveWindow", (PyCFunction)_wrap_GetActiveWindow, METH_NOARGS, NULL},
39111 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"new_MouseState", (PyCFunction)_wrap_new_MouseState, METH_NOARGS, NULL},
39117 { (char *)"delete_MouseState", (PyCFunction)_wrap_delete_MouseState, METH_O, NULL},
39118 { (char *)"MouseState_GetX", (PyCFunction)_wrap_MouseState_GetX, METH_O, NULL},
39119 { (char *)"MouseState_GetY", (PyCFunction)_wrap_MouseState_GetY, METH_O, NULL},
39120 { (char *)"MouseState_LeftDown", (PyCFunction)_wrap_MouseState_LeftDown, METH_O, NULL},
39121 { (char *)"MouseState_MiddleDown", (PyCFunction)_wrap_MouseState_MiddleDown, METH_O, NULL},
39122 { (char *)"MouseState_RightDown", (PyCFunction)_wrap_MouseState_RightDown, METH_O, NULL},
39123 { (char *)"MouseState_ControlDown", (PyCFunction)_wrap_MouseState_ControlDown, METH_O, NULL},
39124 { (char *)"MouseState_ShiftDown", (PyCFunction)_wrap_MouseState_ShiftDown, METH_O, NULL},
39125 { (char *)"MouseState_AltDown", (PyCFunction)_wrap_MouseState_AltDown, METH_O, NULL},
39126 { (char *)"MouseState_MetaDown", (PyCFunction)_wrap_MouseState_MetaDown, METH_O, NULL},
39127 { (char *)"MouseState_CmdDown", (PyCFunction)_wrap_MouseState_CmdDown, METH_O, NULL},
39128 { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL},
39138 { (char *)"MouseState_swiginit", MouseState_swiginit, METH_VARARGS, NULL},
39139 { (char *)"GetMouseState", (PyCFunction)_wrap_GetMouseState, METH_NOARGS, NULL},
39140 { (char *)"WakeUpMainThread", (PyCFunction)_wrap_WakeUpMainThread, METH_NOARGS, NULL},
39141 { (char *)"MutexGuiEnter", (PyCFunction)_wrap_MutexGuiEnter, METH_NOARGS, NULL},
39142 { (char *)"MutexGuiLeave", (PyCFunction)_wrap_MutexGuiLeave, METH_NOARGS, NULL},
39143 { (char *)"new_MutexGuiLocker", (PyCFunction)_wrap_new_MutexGuiLocker, METH_NOARGS, NULL},
39144 { (char *)"delete_MutexGuiLocker", (PyCFunction)_wrap_delete_MutexGuiLocker, METH_O, NULL},
39145 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
39146 { (char *)"MutexGuiLocker_swiginit", MutexGuiLocker_swiginit, METH_VARARGS, NULL},
39147 { (char *)"Thread_IsMain", (PyCFunction)_wrap_Thread_IsMain, METH_NOARGS, NULL},
39148 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"delete_ToolTip", (PyCFunction)_wrap_delete_ToolTip, METH_O, NULL},
39150 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"ToolTip_GetTip", (PyCFunction)_wrap_ToolTip_GetTip, METH_O, NULL},
39152 { (char *)"ToolTip_GetWindow", (PyCFunction)_wrap_ToolTip_GetWindow, METH_O, NULL},
39153 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
39156 { (char *)"ToolTip_swiginit", ToolTip_swiginit, METH_VARARGS, NULL},
39157 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"delete_Caret", (PyCFunction)_wrap_delete_Caret, METH_O, NULL},
39159 { (char *)"Caret_Destroy", (PyCFunction)_wrap_Caret_Destroy, METH_O, NULL},
39160 { (char *)"Caret_IsOk", (PyCFunction)_wrap_Caret_IsOk, METH_O, NULL},
39161 { (char *)"Caret_IsVisible", (PyCFunction)_wrap_Caret_IsVisible, METH_O, NULL},
39162 { (char *)"Caret_GetPosition", (PyCFunction)_wrap_Caret_GetPosition, METH_O, NULL},
39163 { (char *)"Caret_GetPositionTuple", (PyCFunction)_wrap_Caret_GetPositionTuple, METH_O, NULL},
39164 { (char *)"Caret_GetSize", (PyCFunction)_wrap_Caret_GetSize, METH_O, NULL},
39165 { (char *)"Caret_GetSizeTuple", (PyCFunction)_wrap_Caret_GetSizeTuple, METH_O, NULL},
39166 { (char *)"Caret_GetWindow", (PyCFunction)_wrap_Caret_GetWindow, METH_O, NULL},
39167 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"Caret_Hide", (PyCFunction)_wrap_Caret_Hide, METH_O, NULL},
39173 { (char *)"Caret_GetBlinkTime", (PyCFunction)_wrap_Caret_GetBlinkTime, METH_NOARGS, NULL},
39174 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL},
39176 { (char *)"Caret_swiginit", Caret_swiginit, METH_VARARGS, NULL},
39177 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"delete_BusyCursor", (PyCFunction)_wrap_delete_BusyCursor, METH_O, NULL},
39179 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL},
39180 { (char *)"BusyCursor_swiginit", BusyCursor_swiginit, METH_VARARGS, NULL},
39181 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"delete_WindowDisabler", (PyCFunction)_wrap_delete_WindowDisabler, METH_O, NULL},
39183 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL},
39184 { (char *)"WindowDisabler_swiginit", WindowDisabler_swiginit, METH_VARARGS, NULL},
39185 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"delete_BusyInfo", (PyCFunction)_wrap_delete_BusyInfo, METH_O, NULL},
39187 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL},
39188 { (char *)"BusyInfo_swiginit", BusyInfo_swiginit, METH_VARARGS, NULL},
39189 { (char *)"new_StopWatch", (PyCFunction)_wrap_new_StopWatch, METH_NOARGS, NULL},
3ecece7e 39190 { (char *)"delete_StopWatch", (PyCFunction)_wrap_delete_StopWatch, METH_O, NULL},
0085ce49
RD
39191 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"StopWatch_Pause", (PyCFunction)_wrap_StopWatch_Pause, METH_O, NULL},
39193 { (char *)"StopWatch_Resume", (PyCFunction)_wrap_StopWatch_Resume, METH_O, NULL},
39194 { (char *)"StopWatch_Time", (PyCFunction)_wrap_StopWatch_Time, METH_O, NULL},
39195 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL},
39196 { (char *)"StopWatch_swiginit", StopWatch_swiginit, METH_VARARGS, NULL},
39197 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"delete_FileHistory", (PyCFunction)_wrap_delete_FileHistory, METH_O, NULL},
39199 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"FileHistory_GetMaxFiles", (PyCFunction)_wrap_FileHistory_GetMaxFiles, METH_O, NULL},
39202 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction)_wrap_FileHistory_AddFilesToMenu, METH_O, NULL},
39207 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"FileHistory_GetCount", (PyCFunction)_wrap_FileHistory_GetCount, METH_O, NULL},
39210 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL},
39211 { (char *)"FileHistory_swiginit", FileHistory_swiginit, METH_VARARGS, NULL},
39212 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"new_PreSingleInstanceChecker", (PyCFunction)_wrap_new_PreSingleInstanceChecker, METH_NOARGS, NULL},
39214 { (char *)"delete_SingleInstanceChecker", (PyCFunction)_wrap_delete_SingleInstanceChecker, METH_O, NULL},
39215 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction)_wrap_SingleInstanceChecker_IsAnotherRunning, METH_O, NULL},
39217 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL},
39218 { (char *)"SingleInstanceChecker_swiginit", SingleInstanceChecker_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39219 { (char *)"new_PlatformInformation", (PyCFunction)_wrap_new_PlatformInformation, METH_NOARGS, NULL},
39220 { (char *)"PlatformInformation___eq__", (PyCFunction) _wrap_PlatformInformation___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"PlatformInformation___ne__", (PyCFunction) _wrap_PlatformInformation___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"PlatformInformation_GetOSMajorVersion", (PyCFunction)_wrap_PlatformInformation_GetOSMajorVersion, METH_O, NULL},
39223 { (char *)"PlatformInformation_GetOSMinorVersion", (PyCFunction)_wrap_PlatformInformation_GetOSMinorVersion, METH_O, NULL},
5acb46e0 39224 { (char *)"PlatformInformation_CheckOSVersion", (PyCFunction) _wrap_PlatformInformation_CheckOSVersion, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3
RD
39225 { (char *)"PlatformInformation_GetToolkitMajorVersion", (PyCFunction)_wrap_PlatformInformation_GetToolkitMajorVersion, METH_O, NULL},
39226 { (char *)"PlatformInformation_GetToolkitMinorVersion", (PyCFunction)_wrap_PlatformInformation_GetToolkitMinorVersion, METH_O, NULL},
5acb46e0 39227 { (char *)"PlatformInformation_CheckToolkitVersion", (PyCFunction) _wrap_PlatformInformation_CheckToolkitVersion, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3
RD
39228 { (char *)"PlatformInformation_IsUsingUniversalWidgets", (PyCFunction)_wrap_PlatformInformation_IsUsingUniversalWidgets, METH_O, NULL},
39229 { (char *)"PlatformInformation_GetOperatingSystemId", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemId, METH_O, NULL},
39230 { (char *)"PlatformInformation_GetPortId", (PyCFunction)_wrap_PlatformInformation_GetPortId, METH_O, NULL},
39231 { (char *)"PlatformInformation_GetArchitecture", (PyCFunction)_wrap_PlatformInformation_GetArchitecture, METH_O, NULL},
39232 { (char *)"PlatformInformation_GetEndianness", (PyCFunction)_wrap_PlatformInformation_GetEndianness, METH_O, NULL},
39233 { (char *)"PlatformInformation_GetOperatingSystemFamilyName", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemFamilyName, METH_O, NULL},
39234 { (char *)"PlatformInformation_GetOperatingSystemIdName", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemIdName, METH_O, NULL},
39235 { (char *)"PlatformInformation_GetPortIdName", (PyCFunction)_wrap_PlatformInformation_GetPortIdName, METH_O, NULL},
39236 { (char *)"PlatformInformation_GetPortIdShortName", (PyCFunction)_wrap_PlatformInformation_GetPortIdShortName, METH_O, NULL},
39237 { (char *)"PlatformInformation_GetArchName", (PyCFunction)_wrap_PlatformInformation_GetArchName, METH_O, NULL},
39238 { (char *)"PlatformInformation_GetEndiannessName", (PyCFunction)_wrap_PlatformInformation_GetEndiannessName, METH_O, NULL},
39239 { (char *)"PlatformInformation_SetOSVersion", (PyCFunction) _wrap_PlatformInformation_SetOSVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"PlatformInformation_SetToolkitVersion", (PyCFunction) _wrap_PlatformInformation_SetToolkitVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"PlatformInformation_SetOperatingSystemId", (PyCFunction) _wrap_PlatformInformation_SetOperatingSystemId, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"PlatformInformation_SetPortId", (PyCFunction) _wrap_PlatformInformation_SetPortId, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"PlatformInformation_SetArchitecture", (PyCFunction) _wrap_PlatformInformation_SetArchitecture, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"PlatformInformation_SetEndianness", (PyCFunction) _wrap_PlatformInformation_SetEndianness, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"PlatformInformation_IsOk", (PyCFunction)_wrap_PlatformInformation_IsOk, METH_O, NULL},
39246 { (char *)"PlatformInformation_swigregister", PlatformInformation_swigregister, METH_VARARGS, NULL},
39247 { (char *)"PlatformInformation_swiginit", PlatformInformation_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39248 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"delete_TipProvider", (PyCFunction)_wrap_delete_TipProvider, METH_O, NULL},
39250 { (char *)"TipProvider_GetTip", (PyCFunction)_wrap_TipProvider_GetTip, METH_O, NULL},
39251 { (char *)"TipProvider_GetCurrentTip", (PyCFunction)_wrap_TipProvider_GetCurrentTip, METH_O, NULL},
39252 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL},
39254 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL},
39257 { (char *)"PyTipProvider_swiginit", PyTipProvider_swiginit, METH_VARARGS, NULL},
39258 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"delete_Timer", (PyCFunction)_wrap_delete_Timer, METH_O, NULL},
39262 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Timer_GetOwner", (PyCFunction)_wrap_Timer_GetOwner, METH_O, NULL},
39265 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Timer_Stop", (PyCFunction)_wrap_Timer_Stop, METH_O, NULL},
39267 { (char *)"Timer_Notify", (PyCFunction)_wrap_Timer_Notify, METH_O, NULL},
39268 { (char *)"Timer_IsRunning", (PyCFunction)_wrap_Timer_IsRunning, METH_O, NULL},
39269 { (char *)"Timer_GetInterval", (PyCFunction)_wrap_Timer_GetInterval, METH_O, NULL},
39270 { (char *)"Timer_GetId", (PyCFunction)_wrap_Timer_GetId, METH_O, NULL},
39271 { (char *)"Timer_IsOneShot", (PyCFunction)_wrap_Timer_IsOneShot, METH_O, NULL},
39272 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL},
39273 { (char *)"Timer_swiginit", Timer_swiginit, METH_VARARGS, NULL},
39274 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"TimerEvent_GetInterval", (PyCFunction)_wrap_TimerEvent_GetInterval, METH_O, NULL},
39276 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL},
39277 { (char *)"TimerEvent_swiginit", TimerEvent_swiginit, METH_VARARGS, NULL},
39278 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL},
39279 { (char *)"delete_TimerRunner", (PyCFunction)_wrap_delete_TimerRunner, METH_O, NULL},
39280 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
39282 { (char *)"TimerRunner_swiginit", TimerRunner_swiginit, METH_VARARGS, NULL},
39283 { (char *)"new_Log", (PyCFunction)_wrap_new_Log, METH_NOARGS, NULL},
39284 { (char *)"delete_Log", (PyCFunction)_wrap_delete_Log, METH_O, NULL},
39285 { (char *)"Log_IsEnabled", (PyCFunction)_wrap_Log_IsEnabled, METH_NOARGS, NULL},
39286 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"Log_Flush", (PyCFunction)_wrap_Log_Flush, METH_O, NULL},
39289 { (char *)"Log_FlushActive", (PyCFunction)_wrap_Log_FlushActive, METH_NOARGS, NULL},
39290 { (char *)"Log_GetActiveTarget", (PyCFunction)_wrap_Log_GetActiveTarget, METH_NOARGS, NULL},
39291 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"Log_Suspend", (PyCFunction)_wrap_Log_Suspend, METH_NOARGS, NULL},
39293 { (char *)"Log_Resume", (PyCFunction)_wrap_Log_Resume, METH_NOARGS, NULL},
39294 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"Log_DontCreateOnDemand", (PyCFunction)_wrap_Log_DontCreateOnDemand, METH_NOARGS, NULL},
10044bf1
RD
39297 { (char *)"Log_SetRepetitionCounting", (PyCFunction) _wrap_Log_SetRepetitionCounting, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"Log_GetRepetitionCounting", (PyCFunction)_wrap_Log_GetRepetitionCounting, METH_NOARGS, NULL},
0085ce49
RD
39299 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"Log_ClearTraceMasks", (PyCFunction)_wrap_Log_ClearTraceMasks, METH_NOARGS, NULL},
39303 { (char *)"Log_GetTraceMasks", (PyCFunction)_wrap_Log_GetTraceMasks, METH_NOARGS, NULL},
39304 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"Log_GetVerbose", (PyCFunction)_wrap_Log_GetVerbose, METH_NOARGS, NULL},
39306 { (char *)"Log_GetTraceMask", (PyCFunction)_wrap_Log_GetTraceMask, METH_NOARGS, NULL},
39307 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"Log_GetLogLevel", (PyCFunction)_wrap_Log_GetLogLevel, METH_NOARGS, NULL},
39309 { (char *)"Log_GetTimestamp", (PyCFunction)_wrap_Log_GetTimestamp, METH_NOARGS, NULL},
39310 { (char *)"Log_TimeStamp", (PyCFunction)_wrap_Log_TimeStamp, METH_NOARGS, NULL},
39311 { (char *)"Log_Destroy", (PyCFunction)_wrap_Log_Destroy, METH_O, NULL},
39312 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL},
39313 { (char *)"Log_swiginit", Log_swiginit, METH_VARARGS, NULL},
39314 { (char *)"new_LogStderr", (PyCFunction)_wrap_new_LogStderr, METH_NOARGS, NULL},
39315 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL},
39316 { (char *)"LogStderr_swiginit", LogStderr_swiginit, METH_VARARGS, NULL},
39317 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL},
39319 { (char *)"LogTextCtrl_swiginit", LogTextCtrl_swiginit, METH_VARARGS, NULL},
39320 { (char *)"new_LogGui", (PyCFunction)_wrap_new_LogGui, METH_NOARGS, NULL},
39321 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL},
39322 { (char *)"LogGui_swiginit", LogGui_swiginit, METH_VARARGS, NULL},
39323 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"LogWindow_GetFrame", (PyCFunction)_wrap_LogWindow_GetFrame, METH_O, NULL},
39326 { (char *)"LogWindow_GetOldLog", (PyCFunction)_wrap_LogWindow_GetOldLog, METH_O, NULL},
39327 { (char *)"LogWindow_IsPassingMessages", (PyCFunction)_wrap_LogWindow_IsPassingMessages, METH_O, NULL},
39328 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL},
39330 { (char *)"LogWindow_swiginit", LogWindow_swiginit, METH_VARARGS, NULL},
39331 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"LogChain_IsPassingMessages", (PyCFunction)_wrap_LogChain_IsPassingMessages, METH_O, NULL},
39335 { (char *)"LogChain_GetOldLog", (PyCFunction)_wrap_LogChain_GetOldLog, METH_O, NULL},
39336 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL},
39337 { (char *)"LogChain_swiginit", LogChain_swiginit, METH_VARARGS, NULL},
39338 { (char *)"new_LogBuffer", (PyCFunction)_wrap_new_LogBuffer, METH_NOARGS, NULL},
39339 { (char *)"LogBuffer_GetBuffer", (PyCFunction)_wrap_LogBuffer_GetBuffer, METH_O, NULL},
39340 { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL},
39341 { (char *)"LogBuffer_swiginit", LogBuffer_swiginit, METH_VARARGS, NULL},
39342 { (char *)"SysErrorCode", (PyCFunction)_wrap_SysErrorCode, METH_NOARGS, NULL},
39343 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL},
39356 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"new_LogNull", (PyCFunction)_wrap_new_LogNull, METH_NOARGS, NULL},
39358 { (char *)"delete_LogNull", (PyCFunction)_wrap_delete_LogNull, METH_O, NULL},
39359 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL},
39360 { (char *)"LogNull_swiginit", LogNull_swiginit, METH_VARARGS, NULL},
39361 { (char *)"new_PyLog", (PyCFunction)_wrap_new_PyLog, METH_NOARGS, NULL},
39362 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL},
39364 { (char *)"PyLog_swiginit", PyLog_swiginit, METH_VARARGS, NULL},
39365 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"Process_Redirect", (PyCFunction)_wrap_Process_Redirect, METH_O, NULL},
39372 { (char *)"Process_IsRedirected", (PyCFunction)_wrap_Process_IsRedirected, METH_O, NULL},
39373 { (char *)"Process_Detach", (PyCFunction)_wrap_Process_Detach, METH_O, NULL},
39374 { (char *)"Process_GetInputStream", (PyCFunction)_wrap_Process_GetInputStream, METH_O, NULL},
39375 { (char *)"Process_GetErrorStream", (PyCFunction)_wrap_Process_GetErrorStream, METH_O, NULL},
39376 { (char *)"Process_GetOutputStream", (PyCFunction)_wrap_Process_GetOutputStream, METH_O, NULL},
39377 { (char *)"Process_CloseOutput", (PyCFunction)_wrap_Process_CloseOutput, METH_O, NULL},
39378 { (char *)"Process_IsInputOpened", (PyCFunction)_wrap_Process_IsInputOpened, METH_O, NULL},
39379 { (char *)"Process_IsInputAvailable", (PyCFunction)_wrap_Process_IsInputAvailable, METH_O, NULL},
39380 { (char *)"Process_IsErrorAvailable", (PyCFunction)_wrap_Process_IsErrorAvailable, METH_O, NULL},
39381 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL},
39382 { (char *)"Process_swiginit", Process_swiginit, METH_VARARGS, NULL},
39383 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"ProcessEvent_GetPid", (PyCFunction)_wrap_ProcessEvent_GetPid, METH_O, NULL},
39385 { (char *)"ProcessEvent_GetExitCode", (PyCFunction)_wrap_ProcessEvent_GetExitCode, METH_O, NULL},
39386 { (char *)"ProcessEvent_m_pid_set", _wrap_ProcessEvent_m_pid_set, METH_VARARGS, NULL},
39387 { (char *)"ProcessEvent_m_pid_get", (PyCFunction)_wrap_ProcessEvent_m_pid_get, METH_O, NULL},
39388 { (char *)"ProcessEvent_m_exitcode_set", _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS, NULL},
39389 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction)_wrap_ProcessEvent_m_exitcode_get, METH_O, NULL},
39390 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL},
39391 { (char *)"ProcessEvent_swiginit", ProcessEvent_swiginit, METH_VARARGS, NULL},
39392 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"delete_Joystick", (PyCFunction)_wrap_delete_Joystick, METH_O, NULL},
39396 { (char *)"Joystick_GetPosition", (PyCFunction)_wrap_Joystick_GetPosition, METH_O, NULL},
39397 { (char *)"Joystick_GetZPosition", (PyCFunction)_wrap_Joystick_GetZPosition, METH_O, NULL},
39398 { (char *)"Joystick_GetButtonState", (PyCFunction)_wrap_Joystick_GetButtonState, METH_O, NULL},
39399 { (char *)"Joystick_GetPOVPosition", (PyCFunction)_wrap_Joystick_GetPOVPosition, METH_O, NULL},
39400 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction)_wrap_Joystick_GetPOVCTSPosition, METH_O, NULL},
39401 { (char *)"Joystick_GetRudderPosition", (PyCFunction)_wrap_Joystick_GetRudderPosition, METH_O, NULL},
39402 { (char *)"Joystick_GetUPosition", (PyCFunction)_wrap_Joystick_GetUPosition, METH_O, NULL},
39403 { (char *)"Joystick_GetVPosition", (PyCFunction)_wrap_Joystick_GetVPosition, METH_O, NULL},
39404 { (char *)"Joystick_GetMovementThreshold", (PyCFunction)_wrap_Joystick_GetMovementThreshold, METH_O, NULL},
39405 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"Joystick_IsOk", (PyCFunction)_wrap_Joystick_IsOk, METH_O, NULL},
39407 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction)_wrap_Joystick_GetNumberJoysticks, METH_O, NULL},
39408 { (char *)"Joystick_GetManufacturerId", (PyCFunction)_wrap_Joystick_GetManufacturerId, METH_O, NULL},
39409 { (char *)"Joystick_GetProductId", (PyCFunction)_wrap_Joystick_GetProductId, METH_O, NULL},
39410 { (char *)"Joystick_GetProductName", (PyCFunction)_wrap_Joystick_GetProductName, METH_O, NULL},
39411 { (char *)"Joystick_GetXMin", (PyCFunction)_wrap_Joystick_GetXMin, METH_O, NULL},
39412 { (char *)"Joystick_GetYMin", (PyCFunction)_wrap_Joystick_GetYMin, METH_O, NULL},
39413 { (char *)"Joystick_GetZMin", (PyCFunction)_wrap_Joystick_GetZMin, METH_O, NULL},
39414 { (char *)"Joystick_GetXMax", (PyCFunction)_wrap_Joystick_GetXMax, METH_O, NULL},
39415 { (char *)"Joystick_GetYMax", (PyCFunction)_wrap_Joystick_GetYMax, METH_O, NULL},
39416 { (char *)"Joystick_GetZMax", (PyCFunction)_wrap_Joystick_GetZMax, METH_O, NULL},
39417 { (char *)"Joystick_GetNumberButtons", (PyCFunction)_wrap_Joystick_GetNumberButtons, METH_O, NULL},
39418 { (char *)"Joystick_GetNumberAxes", (PyCFunction)_wrap_Joystick_GetNumberAxes, METH_O, NULL},
39419 { (char *)"Joystick_GetMaxButtons", (PyCFunction)_wrap_Joystick_GetMaxButtons, METH_O, NULL},
39420 { (char *)"Joystick_GetMaxAxes", (PyCFunction)_wrap_Joystick_GetMaxAxes, METH_O, NULL},
39421 { (char *)"Joystick_GetPollingMin", (PyCFunction)_wrap_Joystick_GetPollingMin, METH_O, NULL},
39422 { (char *)"Joystick_GetPollingMax", (PyCFunction)_wrap_Joystick_GetPollingMax, METH_O, NULL},
39423 { (char *)"Joystick_GetRudderMin", (PyCFunction)_wrap_Joystick_GetRudderMin, METH_O, NULL},
39424 { (char *)"Joystick_GetRudderMax", (PyCFunction)_wrap_Joystick_GetRudderMax, METH_O, NULL},
39425 { (char *)"Joystick_GetUMin", (PyCFunction)_wrap_Joystick_GetUMin, METH_O, NULL},
39426 { (char *)"Joystick_GetUMax", (PyCFunction)_wrap_Joystick_GetUMax, METH_O, NULL},
39427 { (char *)"Joystick_GetVMin", (PyCFunction)_wrap_Joystick_GetVMin, METH_O, NULL},
39428 { (char *)"Joystick_GetVMax", (PyCFunction)_wrap_Joystick_GetVMax, METH_O, NULL},
39429 { (char *)"Joystick_HasRudder", (PyCFunction)_wrap_Joystick_HasRudder, METH_O, NULL},
39430 { (char *)"Joystick_HasZ", (PyCFunction)_wrap_Joystick_HasZ, METH_O, NULL},
39431 { (char *)"Joystick_HasU", (PyCFunction)_wrap_Joystick_HasU, METH_O, NULL},
39432 { (char *)"Joystick_HasV", (PyCFunction)_wrap_Joystick_HasV, METH_O, NULL},
39433 { (char *)"Joystick_HasPOV", (PyCFunction)_wrap_Joystick_HasPOV, METH_O, NULL},
39434 { (char *)"Joystick_HasPOV4Dir", (PyCFunction)_wrap_Joystick_HasPOV4Dir, METH_O, NULL},
39435 { (char *)"Joystick_HasPOVCTS", (PyCFunction)_wrap_Joystick_HasPOVCTS, METH_O, NULL},
39436 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Joystick_ReleaseCapture", (PyCFunction)_wrap_Joystick_ReleaseCapture, METH_O, NULL},
39438 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL},
39439 { (char *)"Joystick_swiginit", Joystick_swiginit, METH_VARARGS, NULL},
39440 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"JoystickEvent_GetPosition", (PyCFunction)_wrap_JoystickEvent_GetPosition, METH_O, NULL},
39442 { (char *)"JoystickEvent_GetZPosition", (PyCFunction)_wrap_JoystickEvent_GetZPosition, METH_O, NULL},
39443 { (char *)"JoystickEvent_GetButtonState", (PyCFunction)_wrap_JoystickEvent_GetButtonState, METH_O, NULL},
39444 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction)_wrap_JoystickEvent_GetButtonChange, METH_O, NULL},
39445 { (char *)"JoystickEvent_GetJoystick", (PyCFunction)_wrap_JoystickEvent_GetJoystick, METH_O, NULL},
39446 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"JoystickEvent_IsButton", (PyCFunction)_wrap_JoystickEvent_IsButton, METH_O, NULL},
39452 { (char *)"JoystickEvent_IsMove", (PyCFunction)_wrap_JoystickEvent_IsMove, METH_O, NULL},
39453 { (char *)"JoystickEvent_IsZMove", (PyCFunction)_wrap_JoystickEvent_IsZMove, METH_O, NULL},
39454 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL},
39458 { (char *)"JoystickEvent_swiginit", JoystickEvent_swiginit, METH_VARARGS, NULL},
39459 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"delete_Sound", (PyCFunction)_wrap_delete_Sound, METH_O, NULL},
39462 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"Sound_IsOk", (PyCFunction)_wrap_Sound_IsOk, METH_O, NULL},
39465 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"Sound_Stop", (PyCFunction)_wrap_Sound_Stop, METH_NOARGS, NULL},
39468 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL},
39469 { (char *)"Sound_swiginit", Sound_swiginit, METH_VARARGS, NULL},
39470 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"new_NullFileTypeInfo", (PyCFunction)_wrap_new_NullFileTypeInfo, METH_NOARGS, NULL},
39473 { (char *)"FileTypeInfo_IsValid", (PyCFunction)_wrap_FileTypeInfo_IsValid, METH_O, NULL},
39474 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction)_wrap_FileTypeInfo_GetMimeType, METH_O, NULL},
39477 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction)_wrap_FileTypeInfo_GetOpenCommand, METH_O, NULL},
39478 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction)_wrap_FileTypeInfo_GetPrintCommand, METH_O, NULL},
39479 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction)_wrap_FileTypeInfo_GetShortDesc, METH_O, NULL},
39480 { (char *)"FileTypeInfo_GetDescription", (PyCFunction)_wrap_FileTypeInfo_GetDescription, METH_O, NULL},
39481 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction)_wrap_FileTypeInfo_GetExtensions, METH_O, NULL},
39482 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction)_wrap_FileTypeInfo_GetExtensionsCount, METH_O, NULL},
39483 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction)_wrap_FileTypeInfo_GetIconFile, METH_O, NULL},
39484 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction)_wrap_FileTypeInfo_GetIconIndex, METH_O, NULL},
39485 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL},
39486 { (char *)"FileTypeInfo_swiginit", FileTypeInfo_swiginit, METH_VARARGS, NULL},
39487 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"delete_FileType", (PyCFunction)_wrap_delete_FileType, METH_O, NULL},
39489 { (char *)"FileType_GetMimeType", (PyCFunction)_wrap_FileType_GetMimeType, METH_O, NULL},
39490 { (char *)"FileType_GetMimeTypes", (PyCFunction)_wrap_FileType_GetMimeTypes, METH_O, NULL},
39491 { (char *)"FileType_GetExtensions", (PyCFunction)_wrap_FileType_GetExtensions, METH_O, NULL},
39492 { (char *)"FileType_GetIcon", (PyCFunction)_wrap_FileType_GetIcon, METH_O, NULL},
39493 { (char *)"FileType_GetIconInfo", (PyCFunction)_wrap_FileType_GetIconInfo, METH_O, NULL},
39494 { (char *)"FileType_GetDescription", (PyCFunction)_wrap_FileType_GetDescription, METH_O, NULL},
39495 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"FileType_Unassociate", (PyCFunction)_wrap_FileType_Unassociate, METH_O, NULL},
39501 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL},
39503 { (char *)"FileType_swiginit", FileType_swiginit, METH_VARARGS, NULL},
39504 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"new_MimeTypesManager", (PyCFunction)_wrap_new_MimeTypesManager, METH_NOARGS, NULL},
39506 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"MimeTypesManager_ClearData", (PyCFunction)_wrap_MimeTypesManager_ClearData, METH_O, NULL},
39508 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction)_wrap_MimeTypesManager_EnumAllFileTypes, METH_O, NULL},
39513 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"delete_MimeTypesManager", (PyCFunction)_wrap_delete_MimeTypesManager, METH_O, NULL},
39517 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
39518 { (char *)"MimeTypesManager_swiginit", MimeTypesManager_swiginit, METH_VARARGS, NULL},
39519 { (char *)"new_ArtProvider", (PyCFunction)_wrap_new_ArtProvider, METH_NOARGS, NULL},
39520 { (char *)"delete_ArtProvider", (PyCFunction)_wrap_delete_ArtProvider, METH_O, NULL},
39521 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
4391d97b
RD
39522 { (char *)"ArtProvider_Push", (PyCFunction) _wrap_ArtProvider_Push, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"ArtProvider_Insert", (PyCFunction) _wrap_ArtProvider_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"ArtProvider_Pop", (PyCFunction)_wrap_ArtProvider_Pop, METH_NOARGS, NULL},
39525 { (char *)"ArtProvider_Delete", (PyCFunction) _wrap_ArtProvider_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39526 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"ArtProvider_Destroy", (PyCFunction)_wrap_ArtProvider_Destroy, METH_O, NULL},
39530 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL},
39531 { (char *)"ArtProvider_swiginit", ArtProvider_swiginit, METH_VARARGS, NULL},
39532 { (char *)"delete_ConfigBase", (PyCFunction)_wrap_delete_ConfigBase, METH_O, NULL},
39533 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"ConfigBase_Create", (PyCFunction)_wrap_ConfigBase_Create, METH_NOARGS, NULL},
39536 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction)_wrap_ConfigBase_DontCreateOnDemand, METH_NOARGS, NULL},
39537 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"ConfigBase_GetPath", (PyCFunction)_wrap_ConfigBase_GetPath, METH_O, NULL},
39539 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction)_wrap_ConfigBase_GetFirstGroup, METH_O, NULL},
39540 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction)_wrap_ConfigBase_GetFirstEntry, METH_O, NULL},
39542 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"ConfigBase_DeleteAll", (PyCFunction)_wrap_ConfigBase_DeleteAll, METH_O, NULL},
39563 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction)_wrap_ConfigBase_IsExpandingEnvVars, METH_O, NULL},
39565 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction)_wrap_ConfigBase_IsRecordingDefaults, METH_O, NULL},
39567 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"ConfigBase_GetAppName", (PyCFunction)_wrap_ConfigBase_GetAppName, METH_O, NULL},
39569 { (char *)"ConfigBase_GetVendorName", (PyCFunction)_wrap_ConfigBase_GetVendorName, METH_O, NULL},
39570 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"ConfigBase_GetStyle", (PyCFunction)_wrap_ConfigBase_GetStyle, METH_O, NULL},
39574 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL},
39575 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"delete_Config", (PyCFunction)_wrap_delete_Config, METH_O, NULL},
39577 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL},
39578 { (char *)"Config_swiginit", Config_swiginit, METH_VARARGS, NULL},
39579 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"delete_FileConfig", (PyCFunction)_wrap_delete_FileConfig, METH_O, NULL},
39581 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL},
39582 { (char *)"FileConfig_swiginit", FileConfig_swiginit, METH_VARARGS, NULL},
39583 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"delete_ConfigPathChanger", (PyCFunction)_wrap_delete_ConfigPathChanger, METH_O, NULL},
39585 { (char *)"ConfigPathChanger_Name", (PyCFunction)_wrap_ConfigPathChanger_Name, METH_O, NULL},
39586 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL},
39587 { (char *)"ConfigPathChanger_swiginit", ConfigPathChanger_swiginit, METH_VARARGS, NULL},
39588 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"DateTime_GetCountry", (PyCFunction)_wrap_DateTime_GetCountry, METH_NOARGS, NULL},
39591 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"DateTime_GetAmPmStrings", (PyCFunction)_wrap_DateTime_GetAmPmStrings, METH_NOARGS, NULL},
39602 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"DateTime_Now", (PyCFunction)_wrap_DateTime_Now, METH_NOARGS, NULL},
39606 { (char *)"DateTime_UNow", (PyCFunction)_wrap_DateTime_UNow, METH_NOARGS, NULL},
39607 { (char *)"DateTime_Today", (PyCFunction)_wrap_DateTime_Today, METH_NOARGS, NULL},
39608 { (char *)"new_DateTime", (PyCFunction)_wrap_new_DateTime, METH_NOARGS, NULL},
39609 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"new_DateTimeFromDateTime", (PyCFunction) _wrap_new_DateTimeFromDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"delete_DateTime", (PyCFunction)_wrap_delete_DateTime, METH_O, NULL},
39615 { (char *)"DateTime_SetToCurrent", (PyCFunction)_wrap_DateTime_SetToCurrent, METH_O, NULL},
39616 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"DateTime_ResetTime", (PyCFunction)_wrap_DateTime_ResetTime, METH_O, NULL},
39621 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39639 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction)_wrap_DateTime_GetJulianDayNumber, METH_O, NULL},
39645 { (char *)"DateTime_GetJDN", (PyCFunction)_wrap_DateTime_GetJDN, METH_O, NULL},
39646 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction)_wrap_DateTime_GetModifiedJulianDayNumber, METH_O, NULL},
39647 { (char *)"DateTime_GetMJD", (PyCFunction)_wrap_DateTime_GetMJD, METH_O, NULL},
39648 { (char *)"DateTime_GetRataDie", (PyCFunction)_wrap_DateTime_GetRataDie, METH_O, NULL},
39649 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"DateTime_IsValid", (PyCFunction)_wrap_DateTime_IsValid, METH_O, NULL},
39661 { (char *)"DateTime_GetTicks", (PyCFunction)_wrap_DateTime_GetTicks, METH_O, NULL},
39662 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL},
39688 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL},
39689 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL},
39690 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL},
39691 { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39696 { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"DateTime_FormatDate", (PyCFunction)_wrap_DateTime_FormatDate, METH_O, NULL},
39704 { (char *)"DateTime_FormatTime", (PyCFunction)_wrap_DateTime_FormatTime, METH_O, NULL},
39705 { (char *)"DateTime_FormatISODate", (PyCFunction)_wrap_DateTime_FormatISODate, METH_O, NULL},
39706 { (char *)"DateTime_FormatISOTime", (PyCFunction)_wrap_DateTime_FormatISOTime, METH_O, NULL},
39707 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL},
39708 { (char *)"DateTime_swiginit", DateTime_swiginit, METH_VARARGS, NULL},
e9d6f3a4
RD
39709 { (char *)"TimeSpan_Milliseconds", (PyCFunction) _wrap_TimeSpan_Milliseconds, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"TimeSpan_Millisecond", (PyCFunction)_wrap_TimeSpan_Millisecond, METH_NOARGS, NULL},
0085ce49
RD
39711 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"TimeSpan_Second", (PyCFunction)_wrap_TimeSpan_Second, METH_NOARGS, NULL},
39713 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"TimeSpan_Minute", (PyCFunction)_wrap_TimeSpan_Minute, METH_NOARGS, NULL},
39715 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"TimeSpan_Hour", (PyCFunction)_wrap_TimeSpan_Hour, METH_NOARGS, NULL},
39717 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"TimeSpan_Day", (PyCFunction)_wrap_TimeSpan_Day, METH_NOARGS, NULL},
39719 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
39720 { (char *)"TimeSpan_Week", (PyCFunction)_wrap_TimeSpan_Week, METH_NOARGS, NULL},
39721 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"delete_TimeSpan", (PyCFunction)_wrap_delete_TimeSpan, METH_O, NULL},
39723 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39724 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"TimeSpan_Neg", (PyCFunction)_wrap_TimeSpan_Neg, METH_O, NULL},
39727 { (char *)"TimeSpan_Abs", (PyCFunction)_wrap_TimeSpan_Abs, METH_O, NULL},
39728 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
39730 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
39731 { (char *)"TimeSpan___neg__", (PyCFunction)_wrap_TimeSpan___neg__, METH_O, NULL},
39732 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
39740 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39742 { (char *)"TimeSpan_IsNull", (PyCFunction)_wrap_TimeSpan_IsNull, METH_O, NULL},
39743 { (char *)"TimeSpan_IsPositive", (PyCFunction)_wrap_TimeSpan_IsPositive, METH_O, NULL},
39744 { (char *)"TimeSpan_IsNegative", (PyCFunction)_wrap_TimeSpan_IsNegative, METH_O, NULL},
39745 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"TimeSpan_GetWeeks", (PyCFunction)_wrap_TimeSpan_GetWeeks, METH_O, NULL},
39749 { (char *)"TimeSpan_GetDays", (PyCFunction)_wrap_TimeSpan_GetDays, METH_O, NULL},
39750 { (char *)"TimeSpan_GetHours", (PyCFunction)_wrap_TimeSpan_GetHours, METH_O, NULL},
39751 { (char *)"TimeSpan_GetMinutes", (PyCFunction)_wrap_TimeSpan_GetMinutes, METH_O, NULL},
39752 { (char *)"TimeSpan_GetSeconds", (PyCFunction)_wrap_TimeSpan_GetSeconds, METH_O, NULL},
39753 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction)_wrap_TimeSpan_GetMilliseconds, METH_O, NULL},
39754 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL},
39756 { (char *)"TimeSpan_swiginit", TimeSpan_swiginit, METH_VARARGS, NULL},
39757 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"delete_DateSpan", (PyCFunction)_wrap_delete_DateSpan, METH_O, NULL},
39759 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"DateSpan_Day", (PyCFunction)_wrap_DateSpan_Day, METH_NOARGS, NULL},
39761 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"DateSpan_Week", (PyCFunction)_wrap_DateSpan_Week, METH_NOARGS, NULL},
39763 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"DateSpan_Month", (PyCFunction)_wrap_DateSpan_Month, METH_NOARGS, NULL},
39765 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"DateSpan_Year", (PyCFunction)_wrap_DateSpan_Year, METH_NOARGS, NULL},
39767 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"DateSpan_GetYears", (PyCFunction)_wrap_DateSpan_GetYears, METH_O, NULL},
39772 { (char *)"DateSpan_GetMonths", (PyCFunction)_wrap_DateSpan_GetMonths, METH_O, NULL},
39773 { (char *)"DateSpan_GetWeeks", (PyCFunction)_wrap_DateSpan_GetWeeks, METH_O, NULL},
39774 { (char *)"DateSpan_GetDays", (PyCFunction)_wrap_DateSpan_GetDays, METH_O, NULL},
39775 { (char *)"DateSpan_GetTotalDays", (PyCFunction)_wrap_DateSpan_GetTotalDays, METH_O, NULL},
39776 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"DateSpan_Neg", (PyCFunction)_wrap_DateSpan_Neg, METH_O, NULL},
39779 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"DateSpan___neg__", (PyCFunction)_wrap_DateSpan___neg__, METH_O, NULL},
39783 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL},
39791 { (char *)"DateSpan_swiginit", DateSpan_swiginit, METH_VARARGS, NULL},
39792 { (char *)"GetLocalTime", (PyCFunction)_wrap_GetLocalTime, METH_NOARGS, NULL},
39793 { (char *)"GetUTCTime", (PyCFunction)_wrap_GetUTCTime, METH_NOARGS, NULL},
39794 { (char *)"GetCurrentTime", (PyCFunction)_wrap_GetCurrentTime, METH_NOARGS, NULL},
39795 { (char *)"GetLocalTimeMillis", (PyCFunction)_wrap_GetLocalTimeMillis, METH_NOARGS, NULL},
39796 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"delete_DataFormat", (PyCFunction)_wrap_delete_DataFormat, METH_O, NULL},
39799 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL},
39800 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL},
39801 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"DataFormat_GetType", (PyCFunction)_wrap_DataFormat_GetType, METH_O, NULL},
39803 { (char *)"DataFormat_GetId", (PyCFunction)_wrap_DataFormat_GetId, METH_O, NULL},
39804 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL},
39806 { (char *)"DataFormat_swiginit", DataFormat_swiginit, METH_VARARGS, NULL},
39807 { (char *)"delete_DataObject", (PyCFunction)_wrap_delete_DataObject, METH_O, NULL},
39808 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL},
39816 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"DataObjectSimple_GetFormat", (PyCFunction)_wrap_DataObjectSimple_GetFormat, METH_O, NULL},
39818 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction)_wrap_DataObjectSimple_GetDataSize, METH_O, NULL},
39820 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction)_wrap_DataObjectSimple_GetDataHere, METH_O, NULL},
39821 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL},
39823 { (char *)"DataObjectSimple_swiginit", DataObjectSimple_swiginit, METH_VARARGS, NULL},
39824 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL},
39827 { (char *)"PyDataObjectSimple_swiginit", PyDataObjectSimple_swiginit, METH_VARARGS, NULL},
39828 { (char *)"new_DataObjectComposite", (PyCFunction)_wrap_new_DataObjectComposite, METH_NOARGS, NULL},
39829 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 39830 { (char *)"DataObjectComposite_GetReceivedFormat", (PyCFunction)_wrap_DataObjectComposite_GetReceivedFormat, METH_O, NULL},
0085ce49
RD
39831 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL},
39832 { (char *)"DataObjectComposite_swiginit", DataObjectComposite_swiginit, METH_VARARGS, NULL},
39833 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"TextDataObject_GetTextLength", (PyCFunction)_wrap_TextDataObject_GetTextLength, METH_O, NULL},
39835 { (char *)"TextDataObject_GetText", (PyCFunction)_wrap_TextDataObject_GetText, METH_O, NULL},
39836 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL},
39838 { (char *)"TextDataObject_swiginit", TextDataObject_swiginit, METH_VARARGS, NULL},
39839 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL},
39842 { (char *)"PyTextDataObject_swiginit", PyTextDataObject_swiginit, METH_VARARGS, NULL},
39843 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction)_wrap_BitmapDataObject_GetBitmap, METH_O, NULL},
39845 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL},
39847 { (char *)"BitmapDataObject_swiginit", BitmapDataObject_swiginit, METH_VARARGS, NULL},
39848 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL},
39851 { (char *)"PyBitmapDataObject_swiginit", PyBitmapDataObject_swiginit, METH_VARARGS, NULL},
39852 { (char *)"new_FileDataObject", (PyCFunction)_wrap_new_FileDataObject, METH_NOARGS, NULL},
39853 { (char *)"FileDataObject_GetFilenames", (PyCFunction)_wrap_FileDataObject_GetFilenames, METH_O, NULL},
39854 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL},
39856 { (char *)"FileDataObject_swiginit", FileDataObject_swiginit, METH_VARARGS, NULL},
39857 { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL},
39858 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"CustomDataObject_GetSize", (PyCFunction)_wrap_CustomDataObject_GetSize, METH_O, NULL},
39860 { (char *)"CustomDataObject_GetData", (PyCFunction)_wrap_CustomDataObject_GetData, METH_O, NULL},
39861 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL},
39862 { (char *)"CustomDataObject_swiginit", CustomDataObject_swiginit, METH_VARARGS, NULL},
fc46b7f3 39863 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39864 { (char *)"URLDataObject_GetURL", (PyCFunction)_wrap_URLDataObject_GetURL, METH_O, NULL},
39865 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL},
39867 { (char *)"URLDataObject_swiginit", URLDataObject_swiginit, METH_VARARGS, NULL},
39868 { (char *)"new_MetafileDataObject", (PyCFunction)_wrap_new_MetafileDataObject, METH_NOARGS, NULL},
39869 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL},
39870 { (char *)"MetafileDataObject_swiginit", MetafileDataObject_swiginit, METH_VARARGS, NULL},
39871 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39874 { (char *)"delete_DropSource", (PyCFunction)_wrap_delete_DropSource, METH_O, NULL},
39875 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"DropSource_GetDataObject", (PyCFunction)_wrap_DropSource_GetDataObject, METH_O, NULL},
39877 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"DropSource_GiveFeedback", (PyCFunction) _wrap_DropSource_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL},
39881 { (char *)"DropSource_swiginit", DropSource_swiginit, METH_VARARGS, NULL},
39882 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39884 { (char *)"delete_DropTarget", (PyCFunction)_wrap_delete_DropTarget, METH_O, NULL},
39885 { (char *)"DropTarget_GetDataObject", (PyCFunction)_wrap_DropTarget_GetDataObject, METH_O, NULL},
39886 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39887 { (char *)"DropTarget_OnEnter", (PyCFunction) _wrap_DropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
39888 { (char *)"DropTarget_OnDragOver", (PyCFunction) _wrap_DropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"DropTarget_OnLeave", (PyCFunction)_wrap_DropTarget_OnLeave, METH_O, NULL},
39890 { (char *)"DropTarget_OnDrop", (PyCFunction) _wrap_DropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
39891 { (char *)"DropTarget_GetData", (PyCFunction)_wrap_DropTarget_GetData, METH_O, NULL},
39892 { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"DropTarget_GetDefaultAction", (PyCFunction)_wrap_DropTarget_GetDefaultAction, METH_O, NULL},
39894 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL},
39895 { (char *)"DropTarget_swiginit", DropTarget_swiginit, METH_VARARGS, NULL},
39896 { (char *)"new_TextDropTarget", (PyCFunction)_wrap_new_TextDropTarget, METH_NOARGS, NULL},
39897 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"TextDropTarget_OnDropText", (PyCFunction) _wrap_TextDropTarget_OnDropText, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"TextDropTarget_OnEnter", (PyCFunction) _wrap_TextDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"TextDropTarget_OnDragOver", (PyCFunction) _wrap_TextDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"TextDropTarget_OnLeave", (PyCFunction)_wrap_TextDropTarget_OnLeave, METH_O, NULL},
39902 { (char *)"TextDropTarget_OnDrop", (PyCFunction) _wrap_TextDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"TextDropTarget_OnData", (PyCFunction) _wrap_TextDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL},
39905 { (char *)"TextDropTarget_swiginit", TextDropTarget_swiginit, METH_VARARGS, NULL},
39906 { (char *)"new_FileDropTarget", (PyCFunction)_wrap_new_FileDropTarget, METH_NOARGS, NULL},
39907 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"FileDropTarget_OnDropFiles", (PyCFunction) _wrap_FileDropTarget_OnDropFiles, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"FileDropTarget_OnEnter", (PyCFunction) _wrap_FileDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
39910 { (char *)"FileDropTarget_OnDragOver", (PyCFunction) _wrap_FileDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
39911 { (char *)"FileDropTarget_OnLeave", (PyCFunction)_wrap_FileDropTarget_OnLeave, METH_O, NULL},
39912 { (char *)"FileDropTarget_OnDrop", (PyCFunction) _wrap_FileDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
39913 { (char *)"FileDropTarget_OnData", (PyCFunction) _wrap_FileDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL},
39915 { (char *)"FileDropTarget_swiginit", FileDropTarget_swiginit, METH_VARARGS, NULL},
39916 { (char *)"new_Clipboard", (PyCFunction)_wrap_new_Clipboard, METH_NOARGS, NULL},
39917 { (char *)"delete_Clipboard", (PyCFunction)_wrap_delete_Clipboard, METH_O, NULL},
39918 { (char *)"Clipboard_Open", (PyCFunction)_wrap_Clipboard_Open, METH_O, NULL},
39919 { (char *)"Clipboard_Close", (PyCFunction)_wrap_Clipboard_Close, METH_O, NULL},
39920 { (char *)"Clipboard_IsOpened", (PyCFunction)_wrap_Clipboard_IsOpened, METH_O, NULL},
39921 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"Clipboard_Clear", (PyCFunction)_wrap_Clipboard_Clear, METH_O, NULL},
39926 { (char *)"Clipboard_Flush", (PyCFunction)_wrap_Clipboard_Flush, METH_O, NULL},
39927 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"Clipboard_Get", (PyCFunction)_wrap_Clipboard_Get, METH_NOARGS, NULL},
39929 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
39930 { (char *)"Clipboard_swiginit", Clipboard_swiginit, METH_VARARGS, NULL},
39931 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"delete_ClipboardLocker", (PyCFunction)_wrap_delete_ClipboardLocker, METH_O, NULL},
39933 { (char *)"ClipboardLocker___nonzero__", (PyCFunction)_wrap_ClipboardLocker___nonzero__, METH_O, NULL},
39934 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL},
39935 { (char *)"ClipboardLocker_swiginit", ClipboardLocker_swiginit, METH_VARARGS, NULL},
39936 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"delete_VideoMode", (PyCFunction)_wrap_delete_VideoMode, METH_O, NULL},
39938 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"VideoMode_GetWidth", (PyCFunction)_wrap_VideoMode_GetWidth, METH_O, NULL},
39940 { (char *)"VideoMode_GetHeight", (PyCFunction)_wrap_VideoMode_GetHeight, METH_O, NULL},
39941 { (char *)"VideoMode_GetDepth", (PyCFunction)_wrap_VideoMode_GetDepth, METH_O, NULL},
39942 { (char *)"VideoMode_IsOk", (PyCFunction)_wrap_VideoMode_IsOk, METH_O, NULL},
39943 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"VideoMode_w_set", _wrap_VideoMode_w_set, METH_VARARGS, NULL},
39946 { (char *)"VideoMode_w_get", (PyCFunction)_wrap_VideoMode_w_get, METH_O, NULL},
39947 { (char *)"VideoMode_h_set", _wrap_VideoMode_h_set, METH_VARARGS, NULL},
39948 { (char *)"VideoMode_h_get", (PyCFunction)_wrap_VideoMode_h_get, METH_O, NULL},
39949 { (char *)"VideoMode_bpp_set", _wrap_VideoMode_bpp_set, METH_VARARGS, NULL},
39950 { (char *)"VideoMode_bpp_get", (PyCFunction)_wrap_VideoMode_bpp_get, METH_O, NULL},
39951 { (char *)"VideoMode_refresh_set", _wrap_VideoMode_refresh_set, METH_VARARGS, NULL},
39952 { (char *)"VideoMode_refresh_get", (PyCFunction)_wrap_VideoMode_refresh_get, METH_O, NULL},
39953 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL},
39954 { (char *)"VideoMode_swiginit", VideoMode_swiginit, METH_VARARGS, NULL},
39955 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"delete_Display", (PyCFunction)_wrap_delete_Display, METH_O, NULL},
39957 { (char *)"Display_GetCount", (PyCFunction)_wrap_Display_GetCount, METH_NOARGS, NULL},
39958 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"Display_IsOk", (PyCFunction)_wrap_Display_IsOk, METH_O, NULL},
39961 { (char *)"Display_GetGeometry", (PyCFunction)_wrap_Display_GetGeometry, METH_O, NULL},
f52cbe90 39962 { (char *)"Display_GetClientArea", (PyCFunction)_wrap_Display_GetClientArea, METH_O, NULL},
0085ce49
RD
39963 { (char *)"Display_GetName", (PyCFunction)_wrap_Display_GetName, METH_O, NULL},
39964 { (char *)"Display_IsPrimary", (PyCFunction)_wrap_Display_IsPrimary, METH_O, NULL},
39965 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"Display_GetCurrentMode", (PyCFunction)_wrap_Display_GetCurrentMode, METH_O, NULL},
39967 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"Display_ResetMode", (PyCFunction)_wrap_Display_ResetMode, METH_O, NULL},
39969 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
39970 { (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
39971 { (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
39972 { (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
39973 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
39974 { (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
39975 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction)_wrap_StandardPaths_GetLocalDataDir, METH_O, NULL},
39976 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction)_wrap_StandardPaths_GetUserDataDir, METH_O, NULL},
39977 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction)_wrap_StandardPaths_GetUserLocalDataDir, METH_O, NULL},
39978 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction)_wrap_StandardPaths_GetPluginsDir, METH_O, NULL},
e9d6f3a4
RD
39979 { (char *)"StandardPaths_GetResourcesDir", (PyCFunction)_wrap_StandardPaths_GetResourcesDir, METH_O, NULL},
39980 { (char *)"StandardPaths_GetLocalizedResourcesDir", (PyCFunction) _wrap_StandardPaths_GetLocalizedResourcesDir, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39981 { (char *)"StandardPaths_GetDocumentsDir", (PyCFunction)_wrap_StandardPaths_GetDocumentsDir, METH_O, NULL},
ae8635b6 39982 { (char *)"StandardPaths_GetTempDir", (PyCFunction)_wrap_StandardPaths_GetTempDir, METH_O, NULL},
0085ce49
RD
39983 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39984 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction)_wrap_StandardPaths_GetInstallPrefix, METH_O, NULL},
39985 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},
704eda0c
RD
39986 { (char *)"new_PowerEvent", (PyCFunction) _wrap_new_PowerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39987 { (char *)"PowerEvent_Veto", (PyCFunction)_wrap_PowerEvent_Veto, METH_O, NULL},
39988 { (char *)"PowerEvent_IsVetoed", (PyCFunction)_wrap_PowerEvent_IsVetoed, METH_O, NULL},
39989 { (char *)"PowerEvent_swigregister", PowerEvent_swigregister, METH_VARARGS, NULL},
39990 { (char *)"PowerEvent_swiginit", PowerEvent_swiginit, METH_VARARGS, NULL},
39991 { (char *)"GetPowerType", (PyCFunction)_wrap_GetPowerType, METH_NOARGS, NULL},
39992 { (char *)"GetBatteryState", (PyCFunction)_wrap_GetBatteryState, METH_NOARGS, NULL},
b39fe951
RD
39993 { (char *)"new_AboutDialogInfo", (PyCFunction)_wrap_new_AboutDialogInfo, METH_NOARGS, NULL},
39994 { (char *)"delete_AboutDialogInfo", (PyCFunction)_wrap_delete_AboutDialogInfo, METH_O, NULL},
39995 { (char *)"AboutDialogInfo_SetName", (PyCFunction) _wrap_AboutDialogInfo_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"AboutDialogInfo_GetName", (PyCFunction)_wrap_AboutDialogInfo_GetName, METH_O, NULL},
39997 { (char *)"AboutDialogInfo_SetVersion", (PyCFunction) _wrap_AboutDialogInfo_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"AboutDialogInfo_HasVersion", (PyCFunction)_wrap_AboutDialogInfo_HasVersion, METH_O, NULL},
39999 { (char *)"AboutDialogInfo_GetVersion", (PyCFunction)_wrap_AboutDialogInfo_GetVersion, METH_O, NULL},
40000 { (char *)"AboutDialogInfo_SetDescription", (PyCFunction) _wrap_AboutDialogInfo_SetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"AboutDialogInfo_HasDescription", (PyCFunction)_wrap_AboutDialogInfo_HasDescription, METH_O, NULL},
40002 { (char *)"AboutDialogInfo_GetDescription", (PyCFunction)_wrap_AboutDialogInfo_GetDescription, METH_O, NULL},
40003 { (char *)"AboutDialogInfo_SetCopyright", (PyCFunction) _wrap_AboutDialogInfo_SetCopyright, METH_VARARGS | METH_KEYWORDS, NULL},
40004 { (char *)"AboutDialogInfo_HasCopyright", (PyCFunction)_wrap_AboutDialogInfo_HasCopyright, METH_O, NULL},
40005 { (char *)"AboutDialogInfo_GetCopyright", (PyCFunction)_wrap_AboutDialogInfo_GetCopyright, METH_O, NULL},
40006 { (char *)"AboutDialogInfo_SetLicence", (PyCFunction) _wrap_AboutDialogInfo_SetLicence, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"AboutDialogInfo_SetLicense", (PyCFunction) _wrap_AboutDialogInfo_SetLicense, METH_VARARGS | METH_KEYWORDS, NULL},
40008 { (char *)"AboutDialogInfo_HasLicence", (PyCFunction)_wrap_AboutDialogInfo_HasLicence, METH_O, NULL},
40009 { (char *)"AboutDialogInfo_GetLicence", (PyCFunction)_wrap_AboutDialogInfo_GetLicence, METH_O, NULL},
40010 { (char *)"AboutDialogInfo_SetIcon", (PyCFunction) _wrap_AboutDialogInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40011 { (char *)"AboutDialogInfo_HasIcon", (PyCFunction)_wrap_AboutDialogInfo_HasIcon, METH_O, NULL},
40012 { (char *)"AboutDialogInfo_GetIcon", (PyCFunction)_wrap_AboutDialogInfo_GetIcon, METH_O, NULL},
40013 { (char *)"AboutDialogInfo__SetWebSite", (PyCFunction) _wrap_AboutDialogInfo__SetWebSite, METH_VARARGS | METH_KEYWORDS, NULL},
40014 { (char *)"AboutDialogInfo__GetWebSiteURL", (PyCFunction)_wrap_AboutDialogInfo__GetWebSiteURL, METH_O, NULL},
40015 { (char *)"AboutDialogInfo__GetWebSiteDescription", (PyCFunction)_wrap_AboutDialogInfo__GetWebSiteDescription, METH_O, NULL},
40016 { (char *)"AboutDialogInfo_HasWebSite", (PyCFunction)_wrap_AboutDialogInfo_HasWebSite, METH_O, NULL},
40017 { (char *)"AboutDialogInfo_SetDevelopers", (PyCFunction) _wrap_AboutDialogInfo_SetDevelopers, METH_VARARGS | METH_KEYWORDS, NULL},
40018 { (char *)"AboutDialogInfo_AddDeveloper", (PyCFunction) _wrap_AboutDialogInfo_AddDeveloper, METH_VARARGS | METH_KEYWORDS, NULL},
40019 { (char *)"AboutDialogInfo_HasDevelopers", (PyCFunction)_wrap_AboutDialogInfo_HasDevelopers, METH_O, NULL},
40020 { (char *)"AboutDialogInfo_GetDevelopers", (PyCFunction)_wrap_AboutDialogInfo_GetDevelopers, METH_O, NULL},
40021 { (char *)"AboutDialogInfo_SetDocWriters", (PyCFunction) _wrap_AboutDialogInfo_SetDocWriters, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"AboutDialogInfo_AddDocWriter", (PyCFunction) _wrap_AboutDialogInfo_AddDocWriter, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"AboutDialogInfo_HasDocWriters", (PyCFunction)_wrap_AboutDialogInfo_HasDocWriters, METH_O, NULL},
40024 { (char *)"AboutDialogInfo_GetDocWriters", (PyCFunction)_wrap_AboutDialogInfo_GetDocWriters, METH_O, NULL},
40025 { (char *)"AboutDialogInfo_SetArtists", (PyCFunction) _wrap_AboutDialogInfo_SetArtists, METH_VARARGS | METH_KEYWORDS, NULL},
40026 { (char *)"AboutDialogInfo_AddArtist", (PyCFunction) _wrap_AboutDialogInfo_AddArtist, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"AboutDialogInfo_HasArtists", (PyCFunction)_wrap_AboutDialogInfo_HasArtists, METH_O, NULL},
40028 { (char *)"AboutDialogInfo_GetArtists", (PyCFunction)_wrap_AboutDialogInfo_GetArtists, METH_O, NULL},
40029 { (char *)"AboutDialogInfo_SetTranslators", (PyCFunction) _wrap_AboutDialogInfo_SetTranslators, METH_VARARGS | METH_KEYWORDS, NULL},
40030 { (char *)"AboutDialogInfo_AddTranslator", (PyCFunction) _wrap_AboutDialogInfo_AddTranslator, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"AboutDialogInfo_HasTranslators", (PyCFunction)_wrap_AboutDialogInfo_HasTranslators, METH_O, NULL},
40032 { (char *)"AboutDialogInfo_GetTranslators", (PyCFunction)_wrap_AboutDialogInfo_GetTranslators, METH_O, NULL},
40033 { (char *)"AboutDialogInfo_IsSimple", (PyCFunction)_wrap_AboutDialogInfo_IsSimple, METH_O, NULL},
40034 { (char *)"AboutDialogInfo_GetDescriptionAndCredits", (PyCFunction)_wrap_AboutDialogInfo_GetDescriptionAndCredits, METH_O, NULL},
40035 { (char *)"AboutDialogInfo_swigregister", AboutDialogInfo_swigregister, METH_VARARGS, NULL},
40036 { (char *)"AboutDialogInfo_swiginit", AboutDialogInfo_swiginit, METH_VARARGS, NULL},
40037 { (char *)"AboutBox", (PyCFunction) _wrap_AboutBox, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
40038 { NULL, NULL, 0, NULL }
40039};
40040
40041
40042/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40043
40044static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
40045 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
40046}
40047static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
40048 return (void *)((wxEvent *) ((wxMenuEvent *) x));
40049}
40050static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
40051 return (void *)((wxEvent *) ((wxCloseEvent *) x));
40052}
40053static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
40054 return (void *)((wxEvent *) ((wxMouseEvent *) x));
40055}
40056static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
40057 return (void *)((wxEvent *) ((wxEraseEvent *) x));
40058}
40059static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
40060 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
40061}
40062static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
40063 return (void *)((wxEvent *) ((wxTimerEvent *) x));
40064}
704eda0c
RD
40065static void *_p_wxPowerEventTo_p_wxEvent(void *x) {
40066 return (void *)((wxEvent *) ((wxPowerEvent *) x));
40067}
0085ce49
RD
40068static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
40069 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
40070}
40071static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
40072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
40073}
0085ce49
RD
40074static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
40075 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
40076}
34e0a3bb
RD
40077static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
40078 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
40079}
2131d850
RD
40080static void *_p_wxPyEventTo_p_wxEvent(void *x) {
40081 return (void *)((wxEvent *) ((wxPyEvent *) x));
40082}
0085ce49
RD
40083static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
40084 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
40085}
40086static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
40087 return (void *)((wxEvent *) ((wxIdleEvent *) x));
40088}
40089static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
40090 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
40091}
40092static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
40093 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
40094}
40095static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
40096 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
40097}
40098static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
40099 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
40100}
40101static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
40102 return (void *)((wxEvent *) ((wxActivateEvent *) x));
40103}
40104static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
40105 return (void *)((wxEvent *) ((wxSizeEvent *) x));
40106}
40107static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
40108 return (void *)((wxEvent *) ((wxMoveEvent *) x));
40109}
40110static void *_p_wxDateEventTo_p_wxEvent(void *x) {
40111 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
40112}
40113static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
40114 return (void *)((wxEvent *) ((wxPaintEvent *) x));
40115}
40116static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
40117 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
40118}
34e0a3bb
RD
40119static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
40120 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
40121}
0085ce49
RD
40122static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
40123 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
40124}
40125static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
40126 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
40127}
40128static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
40129 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
40130}
40131static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
40132 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40133}
40134static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
40135 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
40136}
40137static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
40138 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
40139}
40140static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
40141 return (void *)((wxEvent *) ((wxFocusEvent *) x));
40142}
40143static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
40144 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
40145}
40146static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
40147 return (void *)((wxEvent *) ((wxProcessEvent *) x));
40148}
40149static void *_p_wxShowEventTo_p_wxEvent(void *x) {
40150 return (void *)((wxEvent *) ((wxShowEvent *) x));
40151}
40152static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
40153 return (void *)((wxEvent *) ((wxCommandEvent *) x));
40154}
40155static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
40156 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
40157}
40158static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
40159 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40160}
40161static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
40162 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
40163}
40164static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
40165 return (void *)((wxEvent *) ((wxKeyEvent *) x));
40166}
40167static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
40168 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
40169}
40170static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
40171 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
40172}
40173static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
40174 return (void *)((wxConfigBase *) ((wxConfig *) x));
40175}
40176static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
40177 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40178}
40179static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
40180 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
40181}
40182static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
40183 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
40184}
40185static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
40186 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
40187}
40188static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
40189 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
40190}
40191static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
40192 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
40193}
40194static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
40195 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
40196}
40197static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
40198 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
40199}
40200static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
40201 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40202}
40203static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
40204 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
40205}
40206static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
40207 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
40208}
40209static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
40210 return (void *)((wxDataObject *) ((wxURLDataObject *) x));
40211}
40212static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
40213 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
40214}
40215static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
40216 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
40217}
40218static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
40219 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
40220}
40221static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
40222 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
40223}
40224static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
40225 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
40226}
40227static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
40228 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40229}
40230static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
40231 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
40232}
40233static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
40234 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
40235}
40236static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
40237 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
40238}
40239static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
40240 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
40241}
40242static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
40243 return (void *)((wxEvtHandler *) ((wxWindow *) x));
40244}
40245static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
40246 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40247}
40248static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
40249 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
40250}
40251static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
40252 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
40253}
40254static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
40255 return (void *)((wxEvtHandler *) ((wxValidator *) x));
40256}
40257static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
40258 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
40259}
40260static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
40261 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
40262}
40263static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
40264 return (void *)((wxEvtHandler *) ((wxMenu *) x));
40265}
40266static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
40267 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
40268}
40269static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
40270 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
40271}
40272static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40273 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40274}
0085ce49
RD
40275static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40276 return (void *)((wxObject *) ((wxSizerItem *) x));
40277}
34e0a3bb
RD
40278static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40279 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40280}
0085ce49
RD
40281static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40282 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40283}
40284static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40285 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40286}
40287static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40288 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40289}
40290static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40291 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40292}
40293static void *_p_wxSizerTo_p_wxObject(void *x) {
40294 return (void *)((wxObject *) ((wxSizer *) x));
40295}
40296static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40297 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40298}
40299static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
40300 return (void *)((wxObject *) ((wxFileHistory *) x));
40301}
40302static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40303 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40304}
40305static void *_p_wxEventTo_p_wxObject(void *x) {
40306 return (void *)((wxObject *) ((wxEvent *) x));
40307}
40308static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40309 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40310}
40311static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40312 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40313}
40314static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40315 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40316}
2131d850
RD
40317static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40318 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40319}
0085ce49
RD
40320static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40321 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40322}
40323static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40324 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40325}
40326static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40327 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40328}
40329static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40330 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40331}
40332static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40333 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40334}
40335static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40336 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40337}
40338static void *_p_wxControlTo_p_wxObject(void *x) {
40339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40340}
40341static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40342 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40343}
40344static void *_p_wxTimerEventTo_p_wxObject(void *x) {
40345 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
40346}
704eda0c
RD
40347static void *_p_wxPowerEventTo_p_wxObject(void *x) {
40348 return (void *)((wxObject *) (wxEvent *) ((wxPowerEvent *) x));
40349}
0085ce49
RD
40350static void *_p_wxFSFileTo_p_wxObject(void *x) {
40351 return (void *)((wxObject *) ((wxFSFile *) x));
40352}
40353static void *_p_wxClipboardTo_p_wxObject(void *x) {
40354 return (void *)((wxObject *) ((wxClipboard *) x));
40355}
40356static void *_p_wxPySizerTo_p_wxObject(void *x) {
40357 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40358}
40359static void *_p_wxPyEventTo_p_wxObject(void *x) {
40360 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40361}
40362static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40364}
40365static void *_p_wxShowEventTo_p_wxObject(void *x) {
40366 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40367}
40368static void *_p_wxToolTipTo_p_wxObject(void *x) {
40369 return (void *)((wxObject *) ((wxToolTip *) x));
40370}
40371static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40372 return (void *)((wxObject *) ((wxMenuItem *) x));
40373}
40374static void *_p_wxDateEventTo_p_wxObject(void *x) {
40375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40376}
40377static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40378 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40379}
40380static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40381 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40382}
40383static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40384 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40385}
40386static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40387 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40388}
40389static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40390 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40391}
40392static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40393 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40394}
40395static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40396 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40397}
40398static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40399 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40400}
40401static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40402 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40403}
40404static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40405 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40406}
40407static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40408 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40409}
40410static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40411 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40412}
40413static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40414 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40415}
40416static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40417 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40418}
40419static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40420 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40421}
40422static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40423 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40424}
40425static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40426 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40427}
40428static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40429 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40430}
40431static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40432 return (void *)((wxObject *) ((wxImageHandler *) x));
40433}
40434static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40435 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40436}
40437static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40438 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40439}
40440static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40441 return (void *)((wxObject *) ((wxEvtHandler *) x));
40442}
34e0a3bb
RD
40443static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40444 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40445}
0085ce49
RD
40446static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40447 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40448}
40449static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40450 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40451}
40452static void *_p_wxImageTo_p_wxObject(void *x) {
40453 return (void *)((wxObject *) ((wxImage *) x));
40454}
40455static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40456 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40457}
40458static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
40459 return (void *)((wxObject *) ((wxSystemOptions *) x));
40460}
40461static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
40462 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
40463}
40464static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40466}
40467static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40468 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40469}
40470static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40471 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40472}
40473static void *_p_wxWindowTo_p_wxObject(void *x) {
40474 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40475}
40476static void *_p_wxMenuTo_p_wxObject(void *x) {
40477 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40478}
40479static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40480 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40481}
40482static void *_p_wxPyProcessTo_p_wxObject(void *x) {
40483 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
40484}
40485static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40486 return (void *)((wxObject *) ((wxFileSystem *) x));
40487}
40488static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40489 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40490}
40491static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40492 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40493}
40494static void *_p_wxPyAppTo_p_wxObject(void *x) {
40495 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40496}
40497static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40498 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40499}
40500static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40501 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40502}
40503static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40504 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40505}
40506static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
40507 return (void *)((wxObject *) ((wxBusyInfo *) x));
40508}
40509static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40510 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40511}
40512static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40513 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40514}
40515static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40516 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40517}
40518static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40519 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40520}
40521static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40522 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40523}
40524static void *_p_wxProcessEventTo_p_wxObject(void *x) {
40525 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
40526}
40527static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40529}
40530static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40531 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40532}
40533static void *_p_wxValidatorTo_p_wxObject(void *x) {
40534 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40535}
40536static void *_p_wxPyTimerTo_p_wxObject(void *x) {
40537 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
40538}
40539static void *_p_wxLogBufferTo_p_wxLog(void *x) {
40540 return (void *)((wxLog *) ((wxLogBuffer *) x));
40541}
40542static void *_p_wxLogStderrTo_p_wxLog(void *x) {
40543 return (void *)((wxLog *) ((wxLogStderr *) x));
40544}
40545static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
40546 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
40547}
40548static void *_p_wxLogWindowTo_p_wxLog(void *x) {
40549 return (void *)((wxLog *) ((wxLogWindow *) x));
40550}
40551static void *_p_wxLogChainTo_p_wxLog(void *x) {
40552 return (void *)((wxLog *) ((wxLogChain *) x));
40553}
40554static void *_p_wxLogGuiTo_p_wxLog(void *x) {
40555 return (void *)((wxLog *) ((wxLogGui *) x));
40556}
40557static void *_p_wxPyLogTo_p_wxLog(void *x) {
40558 return (void *)((wxLog *) ((wxPyLog *) x));
40559}
40560static void *_p_wxControlTo_p_wxWindow(void *x) {
40561 return (void *)((wxWindow *) ((wxControl *) x));
40562}
40563static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40564 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40565}
40566static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40567 return (void *)((wxWindow *) ((wxMenuBar *) x));
40568}
40569static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
40570 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
40571}
40572static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
40573 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
40574}
40575static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40576static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40577static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40578static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40579static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40580static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, (void*)0, 0};
40581static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
b39fe951 40582static swig_type_info _swigt__p_wxAboutDialogInfo = {"_p_wxAboutDialogInfo", "wxAboutDialogInfo *", 0, 0, (void*)0, 0};
0085ce49
RD
40583static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
40584static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40585static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, (void*)0, 0};
40586static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, (void*)0, 0};
40587static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, (void*)0, 0};
40588static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, (void*)0, 0};
40589static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40590static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, (void*)0, 0};
40591static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, (void*)0, 0};
40592static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40593static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, (void*)0, 0};
40594static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, (void*)0, 0};
40595static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, (void*)0, 0};
40596static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40597static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, (void*)0, 0};
40598static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40599static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, (void*)0, 0};
40600static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, (void*)0, 0};
40601static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, (void*)0, 0};
40602static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, (void*)0, 0};
40603static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, (void*)0, 0};
40604static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
40605static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, (void*)0, 0};
40606static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, (void*)0, 0};
40607static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40608static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
40609static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40610static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40611static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40612static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40613static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40614static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40615static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40616static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
0085ce49 40617static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
2131d850 40618static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 40619static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
40620static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40621static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40622static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40623static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40624static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40625static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40626static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40627static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40628static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40629static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40630static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
34e0a3bb 40631static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
40632static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40633static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40634static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40635static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40636static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40637static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40638static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40639static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40640static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40641static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40642static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40643static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40644static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40645static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40646static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40647static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
40648static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40649static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40650static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40651static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40652static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40653static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40654static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, (void*)0, 0};
40655static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, (void*)0, 0};
40656static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, (void*)0, 0};
40657static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, (void*)0, 0};
40658static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, (void*)0, 0};
40659static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40660static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
40661static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40662static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, (void*)0, 0};
40663static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, (void*)0, 0};
40664static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, (void*)0, 0};
40665static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, (void*)0, 0};
40666static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, (void*)0, 0};
40667static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, (void*)0, 0};
40668static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, (void*)0, 0};
40669static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, (void*)0, 0};
40670static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, (void*)0, 0};
40671static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, (void*)0, 0};
40672static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, (void*)0, 0};
0085ce49
RD
40673static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
40674static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, (void*)0, 0};
40675static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, (void*)0, 0};
40676static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, (void*)0, 0};
40677static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, (void*)0, 0};
40678static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40679static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 40680static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40681static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
40682static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40683static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40684static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40685static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40686static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40687static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40688static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40689static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40690static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40691static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
40692static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40693static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40694static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
34e0a3bb 40695static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
704eda0c 40696static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
2131d850 40697static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
0085ce49
RD
40698static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40699static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40700static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40701static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40702static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40703static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40704static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40705static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40706static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40707static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
40708static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40709static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
40710static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
fc46b7f3 40711static swig_type_info _swigt__p_wxPlatformInfo = {"_p_wxPlatformInfo", "wxPlatformInfo *", 0, 0, (void*)0, 0};
0085ce49 40712static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
704eda0c 40713static swig_type_info _swigt__p_wxPowerEvent = {"_p_wxPowerEvent", "wxPowerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
40714static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, (void*)0, 0};
40715static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, (void*)0, 0};
40716static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, (void*)0, 0};
40717static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, (void*)0, 0};
40718static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, (void*)0, 0};
40719static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, (void*)0, 0};
40720static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, (void*)0, 0};
40721static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, (void*)0, 0};
40722static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, (void*)0, 0};
40723static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, (void*)0, 0};
40724static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, (void*)0, 0};
40725static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, (void*)0, 0};
40726static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, (void*)0, 0};
40727static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40728static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, (void*)0, 0};
40729static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40730static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, (void*)0, 0};
40731static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, (void*)0, 0};
40732static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, (void*)0, 0};
40733static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40734static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, (void*)0, 0};
40735static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, (void*)0, 0};
40736static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
40737static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, (void*)0, 0};
40738static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, (void*)0, 0};
40739static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, (void*)0, 0};
40740static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, (void*)0, 0};
40741static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, (void*)0, 0};
40742static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, (void*)0, 0};
40743static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, (void*)0, 0};
40744static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, (void*)0, 0};
40745static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, (void*)0, 0};
40746static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40747static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, (void*)0, 0};
40748
40749static swig_type_info *swig_type_initial[] = {
40750 &_swigt__p_char,
40751 &_swigt__p_form_ops_t,
40752 &_swigt__p_int,
40753 &_swigt__p_unsigned_char,
40754 &_swigt__p_unsigned_int,
40755 &_swigt__p_unsigned_long,
40756 &_swigt__p_void,
40757 &_swigt__p_wxANIHandler,
b39fe951 40758 &_swigt__p_wxAboutDialogInfo,
0085ce49
RD
40759 &_swigt__p_wxAcceleratorTable,
40760 &_swigt__p_wxActivateEvent,
40761 &_swigt__p_wxArrayString,
40762 &_swigt__p_wxBMPHandler,
40763 &_swigt__p_wxBitmap,
40764 &_swigt__p_wxBitmapDataObject,
40765 &_swigt__p_wxBoxSizer,
40766 &_swigt__p_wxBusyCursor,
40767 &_swigt__p_wxBusyInfo,
40768 &_swigt__p_wxCURHandler,
40769 &_swigt__p_wxCaret,
40770 &_swigt__p_wxChar,
40771 &_swigt__p_wxChildFocusEvent,
40772 &_swigt__p_wxClipboard,
40773 &_swigt__p_wxClipboardLocker,
2131d850 40774 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
40775 &_swigt__p_wxCloseEvent,
40776 &_swigt__p_wxColour,
40777 &_swigt__p_wxCommandEvent,
40778 &_swigt__p_wxConfig,
40779 &_swigt__p_wxConfigBase,
40780 &_swigt__p_wxConfigPathChanger,
40781 &_swigt__p_wxContextMenuEvent,
40782 &_swigt__p_wxControl,
40783 &_swigt__p_wxControlWithItems,
40784 &_swigt__p_wxCursor,
40785 &_swigt__p_wxCustomDataObject,
40786 &_swigt__p_wxDC,
40787 &_swigt__p_wxDataFormat,
40788 &_swigt__p_wxDataObject,
40789 &_swigt__p_wxDataObjectComposite,
40790 &_swigt__p_wxDataObjectSimple,
40791 &_swigt__p_wxDateEvent,
40792 &_swigt__p_wxDateSpan,
40793 &_swigt__p_wxDateTime,
40794 &_swigt__p_wxDateTime__TimeZone,
40795 &_swigt__p_wxDisplay,
40796 &_swigt__p_wxDisplayChangedEvent,
40797 &_swigt__p_wxDropFilesEvent,
40798 &_swigt__p_wxDuplexMode,
40799 &_swigt__p_wxEraseEvent,
40800 &_swigt__p_wxEvent,
40801 &_swigt__p_wxEvtHandler,
40802 &_swigt__p_wxFSFile,
40803 &_swigt__p_wxFileConfig,
40804 &_swigt__p_wxFileDataObject,
40805 &_swigt__p_wxFileHistory,
40806 &_swigt__p_wxFileSystem,
40807 &_swigt__p_wxFileType,
40808 &_swigt__p_wxFileTypeInfo,
40809 &_swigt__p_wxFlexGridSizer,
40810 &_swigt__p_wxFocusEvent,
40811 &_swigt__p_wxFont,
40812 &_swigt__p_wxFrame,
40813 &_swigt__p_wxGBSizerItem,
40814 &_swigt__p_wxGIFHandler,
40815 &_swigt__p_wxGridBagSizer,
40816 &_swigt__p_wxGridSizer,
40817 &_swigt__p_wxICOHandler,
40818 &_swigt__p_wxIcon,
40819 &_swigt__p_wxIconizeEvent,
40820 &_swigt__p_wxIdleEvent,
40821 &_swigt__p_wxImage,
40822 &_swigt__p_wxImageHandler,
40823 &_swigt__p_wxIndividualLayoutConstraint,
40824 &_swigt__p_wxInitDialogEvent,
40825 &_swigt__p_wxJPEGHandler,
40826 &_swigt__p_wxJoystick,
40827 &_swigt__p_wxJoystickEvent,
40828 &_swigt__p_wxKeyEvent,
40829 &_swigt__p_wxKillError,
40830 &_swigt__p_wxLayoutConstraints,
40831 &_swigt__p_wxLog,
40832 &_swigt__p_wxLogBuffer,
40833 &_swigt__p_wxLogChain,
40834 &_swigt__p_wxLogGui,
40835 &_swigt__p_wxLogNull,
40836 &_swigt__p_wxLogStderr,
40837 &_swigt__p_wxLogTextCtrl,
40838 &_swigt__p_wxLogWindow,
40839 &_swigt__p_wxMaximizeEvent,
0085ce49
RD
40840 &_swigt__p_wxMenu,
40841 &_swigt__p_wxMenuBar,
40842 &_swigt__p_wxMenuEvent,
40843 &_swigt__p_wxMenuItem,
40844 &_swigt__p_wxMetafileDataObject,
40845 &_swigt__p_wxMimeTypesManager,
40846 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40847 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
40848 &_swigt__p_wxMouseEvent,
40849 &_swigt__p_wxMouseState,
40850 &_swigt__p_wxMoveEvent,
40851 &_swigt__p_wxMutexGuiLocker,
40852 &_swigt__p_wxNavigationKeyEvent,
40853 &_swigt__p_wxNcPaintEvent,
40854 &_swigt__p_wxNotifyEvent,
40855 &_swigt__p_wxObject,
40856 &_swigt__p_wxOutputStream,
40857 &_swigt__p_wxPCXHandler,
40858 &_swigt__p_wxPNGHandler,
40859 &_swigt__p_wxPNMHandler,
40860 &_swigt__p_wxPaintEvent,
40861 &_swigt__p_wxPaletteChangedEvent,
40862 &_swigt__p_wxPaperSize,
fc46b7f3 40863 &_swigt__p_wxPlatformInfo,
0085ce49 40864 &_swigt__p_wxPoint,
704eda0c 40865 &_swigt__p_wxPowerEvent,
0085ce49
RD
40866 &_swigt__p_wxProcessEvent,
40867 &_swigt__p_wxPyApp,
40868 &_swigt__p_wxPyArtProvider,
40869 &_swigt__p_wxPyBitmapDataObject,
40870 &_swigt__p_wxPyCommandEvent,
40871 &_swigt__p_wxPyDataObjectSimple,
40872 &_swigt__p_wxPyDropSource,
40873 &_swigt__p_wxPyDropTarget,
40874 &_swigt__p_wxPyEvent,
40875 &_swigt__p_wxPyFileDropTarget,
40876 &_swigt__p_wxPyImageHandler,
40877 &_swigt__p_wxPyLog,
40878 &_swigt__p_wxPyProcess,
40879 &_swigt__p_wxPySizer,
40880 &_swigt__p_wxPyTextDataObject,
40881 &_swigt__p_wxPyTextDropTarget,
40882 &_swigt__p_wxPyTimer,
40883 &_swigt__p_wxPyTipProvider,
40884 &_swigt__p_wxPyValidator,
40885 &_swigt__p_wxQueryNewPaletteEvent,
40886 &_swigt__p_wxRect,
40887 &_swigt__p_wxScrollEvent,
40888 &_swigt__p_wxScrollWinEvent,
40889 &_swigt__p_wxSetCursorEvent,
40890 &_swigt__p_wxShowEvent,
40891 &_swigt__p_wxSingleInstanceChecker,
40892 &_swigt__p_wxSize,
40893 &_swigt__p_wxSizeEvent,
40894 &_swigt__p_wxSizer,
40895 &_swigt__p_wxSizerItem,
40896 &_swigt__p_wxSound,
40897 &_swigt__p_wxStandardPaths,
40898 &_swigt__p_wxStaticBoxSizer,
40899 &_swigt__p_wxStdDialogButtonSizer,
40900 &_swigt__p_wxStopWatch,
40901 &_swigt__p_wxString,
40902 &_swigt__p_wxSysColourChangedEvent,
40903 &_swigt__p_wxSystemOptions,
40904 &_swigt__p_wxSystemSettings,
40905 &_swigt__p_wxTIFFHandler,
40906 &_swigt__p_wxTextCtrl,
40907 &_swigt__p_wxTextDataObject,
40908 &_swigt__p_wxTimeSpan,
40909 &_swigt__p_wxTimer,
40910 &_swigt__p_wxTimerEvent,
40911 &_swigt__p_wxTimerRunner,
40912 &_swigt__p_wxTipProvider,
40913 &_swigt__p_wxToolTip,
40914 &_swigt__p_wxURLDataObject,
40915 &_swigt__p_wxUpdateUIEvent,
40916 &_swigt__p_wxValidator,
40917 &_swigt__p_wxVideoMode,
40918 &_swigt__p_wxWindow,
40919 &_swigt__p_wxWindowCreateEvent,
40920 &_swigt__p_wxWindowDestroyEvent,
40921 &_swigt__p_wxWindowDisabler,
40922 &_swigt__p_wxXPMHandler,
40923};
40924
40925static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40926static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40927static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40928static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40929static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40930static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40931static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40932static swig_cast_info _swigc__p_wxAboutDialogInfo[] = { {&_swigt__p_wxAboutDialogInfo, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40933static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
40934static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40935static swig_cast_info _swigc__p_wxBitmapDataObject[] = { {&_swigt__p_wxBitmapDataObject, 0, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0},{0, 0, 0, 0}};
40936static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}};
40937static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
40938static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
40939static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40940static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
40941static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}};
40942static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40943static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}};
40944static swig_cast_info _swigc__p_wxConfigBase[] = { {&_swigt__p_wxFileConfig, _p_wxFileConfigTo_p_wxConfigBase, 0, 0}, {&_swigt__p_wxConfigBase, 0, 0, 0}, {&_swigt__p_wxConfig, _p_wxConfigTo_p_wxConfigBase, 0, 0},{0, 0, 0, 0}};
40945static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}};
40946static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40947static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}};
40948static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
40949static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}};
40950static swig_cast_info _swigc__p_wxDataObject[] = { {&_swigt__p_wxDataObjectSimple, _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObjectComposite, _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxDataObject, 0, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0}, {&_swigt__p_wxURLDataObject, _p_wxURLDataObjectTo_p_wxDataObject, 0, 0},{0, 0, 0, 0}};
40951static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}};
40952static swig_cast_info _swigc__p_wxDataObjectSimple[] = { {&_swigt__p_wxDataObjectSimple, 0, 0, 0}, {&_swigt__p_wxPyDataObjectSimple, _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxTextDataObject, _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxBitmapDataObject, _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxPyBitmapDataObject, _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxFileDataObject, _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxCustomDataObject, _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0}, {&_swigt__p_wxMetafileDataObject, _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0},{0, 0, 0, 0}};
40953static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}};
40954static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
40955static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}};
40956static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}};
40957static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40958static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40959static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40960static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40961static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40962static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40963static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40964static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40965static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40966static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40967static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40968static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40969static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40970static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40971static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40972static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40973static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40974static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40975static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40976static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40977static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40978static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40979static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40980static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40981static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40982static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40983static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40984static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40985static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40986static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40987static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40988static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40989static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40990static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40991static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40992static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40993static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40994static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40995static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40996static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPowerEvent, _p_wxPowerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40997static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40998static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40999static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41000static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41001static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41002static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41003static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
41004static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}};
41005static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}};
41006static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
41007static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}};
41008static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
41009static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41010static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
41011static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41012static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}};
41013static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
41014static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}};
41015static swig_cast_info _swigc__p_wxLog[] = { {&_swigt__p_wxLogBuffer, _p_wxLogBufferTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogStderr, _p_wxLogStderrTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogTextCtrl, _p_wxLogTextCtrlTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogWindow, _p_wxLogWindowTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogChain, _p_wxLogChainTo_p_wxLog, 0, 0}, {&_swigt__p_wxLogGui, _p_wxLogGuiTo_p_wxLog, 0, 0}, {&_swigt__p_wxPyLog, _p_wxPyLogTo_p_wxLog, 0, 0}, {&_swigt__p_wxLog, 0, 0, 0},{0, 0, 0, 0}};
41016static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}};
41017static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}};
41018static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}};
41019static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}};
41020static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}};
41021static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
41022static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41023static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41024static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}};
41025static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}};
41026static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}};
41027static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}};
41028static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 41029static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 41030static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41031static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41032static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41033static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41034static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41035static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41036static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41037static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41038static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41039static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41040static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41041static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41042static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41043static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 41044static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 41045static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41046static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41047static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41048static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41049static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41050static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41051static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41052static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41053static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41054static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41055static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41056static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41057static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 41058static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileHistory, _p_wxFileHistoryTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPowerEvent, _p_wxPowerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboard, _p_wxClipboardTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolTip, _p_wxToolTipTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSystemOptions, _p_wxSystemOptionsTo_p_wxObject, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBusyInfo, _p_wxBusyInfoTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41059static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
41060static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41061static swig_cast_info _swigc__p_wxPlatformInfo[] = { {&_swigt__p_wxPlatformInfo, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 41062static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 41063static swig_cast_info _swigc__p_wxPowerEvent[] = { {&_swigt__p_wxPowerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
41064static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
41065static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}};
41066static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}};
41067static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}};
41068static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}};
41069static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0}, {&_swigt__p_wxPyTextDropTarget, _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0}, {&_swigt__p_wxPyFileDropTarget, _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0},{0, 0, 0, 0}};
41070static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}};
41071static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}};
41072static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
41073static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}};
41074static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}};
41075static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
41076static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}};
41077static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41078static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}};
41079static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41080static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}};
41081static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}};
41082static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}};
41083static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41084static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
41085static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}};
41086static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
41087static swig_cast_info _swigc__p_wxTextDataObject[] = { {&_swigt__p_wxTextDataObject, 0, 0, 0}, {&_swigt__p_wxPyTextDataObject, _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0},{0, 0, 0, 0}};
41088static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}};
41089static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}};
41090static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
41091static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}};
41092static swig_cast_info _swigc__p_wxTipProvider[] = { {&_swigt__p_wxTipProvider, 0, 0, 0}, {&_swigt__p_wxPyTipProvider, _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0},{0, 0, 0, 0}};
41093static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
41094static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}};
41095static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}};
41096static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
41097static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}};
41098
41099static swig_cast_info *swig_cast_initial[] = {
41100 _swigc__p_char,
41101 _swigc__p_form_ops_t,
41102 _swigc__p_int,
41103 _swigc__p_unsigned_char,
41104 _swigc__p_unsigned_int,
41105 _swigc__p_unsigned_long,
41106 _swigc__p_void,
41107 _swigc__p_wxANIHandler,
b39fe951 41108 _swigc__p_wxAboutDialogInfo,
0085ce49
RD
41109 _swigc__p_wxAcceleratorTable,
41110 _swigc__p_wxActivateEvent,
41111 _swigc__p_wxArrayString,
41112 _swigc__p_wxBMPHandler,
41113 _swigc__p_wxBitmap,
41114 _swigc__p_wxBitmapDataObject,
41115 _swigc__p_wxBoxSizer,
41116 _swigc__p_wxBusyCursor,
41117 _swigc__p_wxBusyInfo,
41118 _swigc__p_wxCURHandler,
41119 _swigc__p_wxCaret,
41120 _swigc__p_wxChar,
41121 _swigc__p_wxChildFocusEvent,
41122 _swigc__p_wxClipboard,
41123 _swigc__p_wxClipboardLocker,
2131d850 41124 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
41125 _swigc__p_wxCloseEvent,
41126 _swigc__p_wxColour,
41127 _swigc__p_wxCommandEvent,
41128 _swigc__p_wxConfig,
41129 _swigc__p_wxConfigBase,
41130 _swigc__p_wxConfigPathChanger,
41131 _swigc__p_wxContextMenuEvent,
41132 _swigc__p_wxControl,
41133 _swigc__p_wxControlWithItems,
41134 _swigc__p_wxCursor,
41135 _swigc__p_wxCustomDataObject,
41136 _swigc__p_wxDC,
41137 _swigc__p_wxDataFormat,
41138 _swigc__p_wxDataObject,
41139 _swigc__p_wxDataObjectComposite,
41140 _swigc__p_wxDataObjectSimple,
41141 _swigc__p_wxDateEvent,
41142 _swigc__p_wxDateSpan,
41143 _swigc__p_wxDateTime,
41144 _swigc__p_wxDateTime__TimeZone,
41145 _swigc__p_wxDisplay,
41146 _swigc__p_wxDisplayChangedEvent,
41147 _swigc__p_wxDropFilesEvent,
41148 _swigc__p_wxDuplexMode,
41149 _swigc__p_wxEraseEvent,
41150 _swigc__p_wxEvent,
41151 _swigc__p_wxEvtHandler,
41152 _swigc__p_wxFSFile,
41153 _swigc__p_wxFileConfig,
41154 _swigc__p_wxFileDataObject,
41155 _swigc__p_wxFileHistory,
41156 _swigc__p_wxFileSystem,
41157 _swigc__p_wxFileType,
41158 _swigc__p_wxFileTypeInfo,
41159 _swigc__p_wxFlexGridSizer,
41160 _swigc__p_wxFocusEvent,
41161 _swigc__p_wxFont,
41162 _swigc__p_wxFrame,
41163 _swigc__p_wxGBSizerItem,
41164 _swigc__p_wxGIFHandler,
41165 _swigc__p_wxGridBagSizer,
41166 _swigc__p_wxGridSizer,
41167 _swigc__p_wxICOHandler,
41168 _swigc__p_wxIcon,
41169 _swigc__p_wxIconizeEvent,
41170 _swigc__p_wxIdleEvent,
41171 _swigc__p_wxImage,
41172 _swigc__p_wxImageHandler,
41173 _swigc__p_wxIndividualLayoutConstraint,
41174 _swigc__p_wxInitDialogEvent,
41175 _swigc__p_wxJPEGHandler,
41176 _swigc__p_wxJoystick,
41177 _swigc__p_wxJoystickEvent,
41178 _swigc__p_wxKeyEvent,
41179 _swigc__p_wxKillError,
41180 _swigc__p_wxLayoutConstraints,
41181 _swigc__p_wxLog,
41182 _swigc__p_wxLogBuffer,
41183 _swigc__p_wxLogChain,
41184 _swigc__p_wxLogGui,
41185 _swigc__p_wxLogNull,
41186 _swigc__p_wxLogStderr,
41187 _swigc__p_wxLogTextCtrl,
41188 _swigc__p_wxLogWindow,
41189 _swigc__p_wxMaximizeEvent,
0085ce49
RD
41190 _swigc__p_wxMenu,
41191 _swigc__p_wxMenuBar,
41192 _swigc__p_wxMenuEvent,
41193 _swigc__p_wxMenuItem,
41194 _swigc__p_wxMetafileDataObject,
41195 _swigc__p_wxMimeTypesManager,
41196 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 41197 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
41198 _swigc__p_wxMouseEvent,
41199 _swigc__p_wxMouseState,
41200 _swigc__p_wxMoveEvent,
41201 _swigc__p_wxMutexGuiLocker,
41202 _swigc__p_wxNavigationKeyEvent,
41203 _swigc__p_wxNcPaintEvent,
41204 _swigc__p_wxNotifyEvent,
41205 _swigc__p_wxObject,
41206 _swigc__p_wxOutputStream,
41207 _swigc__p_wxPCXHandler,
41208 _swigc__p_wxPNGHandler,
41209 _swigc__p_wxPNMHandler,
41210 _swigc__p_wxPaintEvent,
41211 _swigc__p_wxPaletteChangedEvent,
41212 _swigc__p_wxPaperSize,
fc46b7f3 41213 _swigc__p_wxPlatformInfo,
0085ce49 41214 _swigc__p_wxPoint,
704eda0c 41215 _swigc__p_wxPowerEvent,
0085ce49
RD
41216 _swigc__p_wxProcessEvent,
41217 _swigc__p_wxPyApp,
41218 _swigc__p_wxPyArtProvider,
41219 _swigc__p_wxPyBitmapDataObject,
41220 _swigc__p_wxPyCommandEvent,
41221 _swigc__p_wxPyDataObjectSimple,
41222 _swigc__p_wxPyDropSource,
41223 _swigc__p_wxPyDropTarget,
41224 _swigc__p_wxPyEvent,
41225 _swigc__p_wxPyFileDropTarget,
41226 _swigc__p_wxPyImageHandler,
41227 _swigc__p_wxPyLog,
41228 _swigc__p_wxPyProcess,
41229 _swigc__p_wxPySizer,
41230 _swigc__p_wxPyTextDataObject,
41231 _swigc__p_wxPyTextDropTarget,
41232 _swigc__p_wxPyTimer,
41233 _swigc__p_wxPyTipProvider,
41234 _swigc__p_wxPyValidator,
41235 _swigc__p_wxQueryNewPaletteEvent,
41236 _swigc__p_wxRect,
41237 _swigc__p_wxScrollEvent,
41238 _swigc__p_wxScrollWinEvent,
41239 _swigc__p_wxSetCursorEvent,
41240 _swigc__p_wxShowEvent,
41241 _swigc__p_wxSingleInstanceChecker,
41242 _swigc__p_wxSize,
41243 _swigc__p_wxSizeEvent,
41244 _swigc__p_wxSizer,
41245 _swigc__p_wxSizerItem,
41246 _swigc__p_wxSound,
41247 _swigc__p_wxStandardPaths,
41248 _swigc__p_wxStaticBoxSizer,
41249 _swigc__p_wxStdDialogButtonSizer,
41250 _swigc__p_wxStopWatch,
41251 _swigc__p_wxString,
41252 _swigc__p_wxSysColourChangedEvent,
41253 _swigc__p_wxSystemOptions,
41254 _swigc__p_wxSystemSettings,
41255 _swigc__p_wxTIFFHandler,
41256 _swigc__p_wxTextCtrl,
41257 _swigc__p_wxTextDataObject,
41258 _swigc__p_wxTimeSpan,
41259 _swigc__p_wxTimer,
41260 _swigc__p_wxTimerEvent,
41261 _swigc__p_wxTimerRunner,
41262 _swigc__p_wxTipProvider,
41263 _swigc__p_wxToolTip,
41264 _swigc__p_wxURLDataObject,
41265 _swigc__p_wxUpdateUIEvent,
41266 _swigc__p_wxValidator,
41267 _swigc__p_wxVideoMode,
41268 _swigc__p_wxWindow,
41269 _swigc__p_wxWindowCreateEvent,
41270 _swigc__p_wxWindowDestroyEvent,
41271 _swigc__p_wxWindowDisabler,
41272 _swigc__p_wxXPMHandler,
41273};
41274
41275
41276/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41277
41278static swig_const_info swig_const_table[] = {
41279{0, 0, 0, 0.0, 0, 0}};
41280
41281#ifdef __cplusplus
41282}
41283#endif
41284/* -----------------------------------------------------------------------------
41285 * Type initialization:
41286 * This problem is tough by the requirement that no dynamic
41287 * memory is used. Also, since swig_type_info structures store pointers to
41288 * swig_cast_info structures and swig_cast_info structures store pointers back
41289 * to swig_type_info structures, we need some lookup code at initialization.
41290 * The idea is that swig generates all the structures that are needed.
41291 * The runtime then collects these partially filled structures.
41292 * The SWIG_InitializeModule function takes these initial arrays out of
41293 * swig_module, and does all the lookup, filling in the swig_module.types
41294 * array with the correct data and linking the correct swig_cast_info
41295 * structures together.
41296 *
41297 * The generated swig_type_info structures are assigned staticly to an initial
41298 * array. We just loop though that array, and handle each type individually.
41299 * First we lookup if this type has been already loaded, and if so, use the
41300 * loaded structure instead of the generated one. Then we have to fill in the
41301 * cast linked list. The cast data is initially stored in something like a
41302 * two-dimensional array. Each row corresponds to a type (there are the same
41303 * number of rows as there are in the swig_type_initial array). Each entry in
41304 * a column is one of the swig_cast_info structures for that type.
41305 * The cast_initial array is actually an array of arrays, because each row has
41306 * a variable number of columns. So to actually build the cast linked list,
41307 * we find the array of casts associated with the type, and loop through it
41308 * adding the casts to the list. The one last trick we need to do is making
41309 * sure the type pointer in the swig_cast_info struct is correct.
41310 *
41311 * First off, we lookup the cast->type name to see if it is already loaded.
41312 * There are three cases to handle:
41313 * 1) If the cast->type has already been loaded AND the type we are adding
41314 * casting info to has not been loaded (it is in this module), THEN we
41315 * replace the cast->type pointer with the type pointer that has already
41316 * been loaded.
41317 * 2) If BOTH types (the one we are adding casting info to, and the
41318 * cast->type) are loaded, THEN the cast info has already been loaded by
41319 * the previous module so we just ignore it.
41320 * 3) Finally, if cast->type has not already been loaded, then we add that
41321 * swig_cast_info to the linked list (because the cast->type) pointer will
41322 * be correct.
41323 * ----------------------------------------------------------------------------- */
41324
41325#ifdef __cplusplus
41326extern "C" {
41327#if 0
41328} /* c-mode */
41329#endif
41330#endif
41331
41332#if 0
41333#define SWIGRUNTIME_DEBUG
41334#endif
41335
41336SWIGRUNTIME void
41337SWIG_InitializeModule(void *clientdata) {
41338 size_t i;
41339 swig_module_info *module_head;
41340 static int init_run = 0;
41341
41342 clientdata = clientdata;
41343
41344 if (init_run) return;
41345 init_run = 1;
41346
41347 /* Initialize the swig_module */
41348 swig_module.type_initial = swig_type_initial;
41349 swig_module.cast_initial = swig_cast_initial;
41350
41351 /* Try and load any already created modules */
41352 module_head = SWIG_GetModule(clientdata);
41353 if (module_head) {
41354 swig_module.next = module_head->next;
41355 module_head->next = &swig_module;
41356 } else {
41357 /* This is the first module loaded */
41358 swig_module.next = &swig_module;
41359 SWIG_SetModule(clientdata, &swig_module);
41360 }
41361
41362 /* Now work on filling in swig_module.types */
41363#ifdef SWIGRUNTIME_DEBUG
41364 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41365#endif
41366 for (i = 0; i < swig_module.size; ++i) {
41367 swig_type_info *type = 0;
41368 swig_type_info *ret;
41369 swig_cast_info *cast;
41370
41371#ifdef SWIGRUNTIME_DEBUG
41372 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41373#endif
41374
41375 /* if there is another module already loaded */
41376 if (swig_module.next != &swig_module) {
41377 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 41378 }
0085ce49
RD
41379 if (type) {
41380 /* Overwrite clientdata field */
41381#ifdef SWIGRUNTIME_DEBUG
41382 printf("SWIG_InitializeModule: found type %s\n", type->name);
41383#endif
41384 if (swig_module.type_initial[i]->clientdata) {
41385 type->clientdata = swig_module.type_initial[i]->clientdata;
41386#ifdef SWIGRUNTIME_DEBUG
41387 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41388#endif
41389 }
41390 } else {
41391 type = swig_module.type_initial[i];
093d3ff1 41392 }
0085ce49
RD
41393
41394 /* Insert casting types */
41395 cast = swig_module.cast_initial[i];
41396 while (cast->type) {
41397 /* Don't need to add information already in the list */
41398 ret = 0;
41399#ifdef SWIGRUNTIME_DEBUG
41400 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41401#endif
41402 if (swig_module.next != &swig_module) {
41403 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41404#ifdef SWIGRUNTIME_DEBUG
41405 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41406#endif
41407 }
41408 if (ret) {
41409 if (type == swig_module.type_initial[i]) {
41410#ifdef SWIGRUNTIME_DEBUG
41411 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41412#endif
41413 cast->type = ret;
41414 ret = 0;
41415 } else {
41416 /* Check for casting already in the list */
41417 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41418#ifdef SWIGRUNTIME_DEBUG
41419 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41420#endif
41421 if (!ocast) ret = 0;
41422 }
41423 }
41424
41425 if (!ret) {
41426#ifdef SWIGRUNTIME_DEBUG
41427 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41428#endif
41429 if (type->cast) {
41430 type->cast->prev = cast;
41431 cast->next = type->cast;
41432 }
41433 type->cast = cast;
41434 }
41435 cast++;
093d3ff1 41436 }
0085ce49
RD
41437 /* Set entry in modules->types array equal to the type */
41438 swig_module.types[i] = type;
41439 }
41440 swig_module.types[i] = 0;
41441
41442#ifdef SWIGRUNTIME_DEBUG
41443 printf("**** SWIG_InitializeModule: Cast List ******\n");
41444 for (i = 0; i < swig_module.size; ++i) {
41445 int j = 0;
41446 swig_cast_info *cast = swig_module.cast_initial[i];
41447 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41448 while (cast->type) {
41449 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41450 cast++;
41451 ++j;
41452 }
41453 printf("---- Total casts: %d\n",j);
41454 }
41455 printf("**** SWIG_InitializeModule: Cast List ******\n");
41456#endif
41457}
41458
41459/* This function will propagate the clientdata field of type to
41460* any new swig_type_info structures that have been added into the list
41461* of equivalent types. It is like calling
41462* SWIG_TypeClientData(type, clientdata) a second time.
41463*/
41464SWIGRUNTIME void
41465SWIG_PropagateClientData(void) {
41466 size_t i;
41467 swig_cast_info *equiv;
41468 static int init_run = 0;
41469
41470 if (init_run) return;
41471 init_run = 1;
41472
41473 for (i = 0; i < swig_module.size; i++) {
41474 if (swig_module.types[i]->clientdata) {
41475 equiv = swig_module.types[i]->cast;
41476 while (equiv) {
41477 if (!equiv->converter) {
41478 if (equiv->type && !equiv->type->clientdata)
41479 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41480 }
41481 equiv = equiv->next;
41482 }
093d3ff1 41483 }
0085ce49
RD
41484 }
41485}
41486
41487#ifdef __cplusplus
41488#if 0
41489{
41490 /* c-mode */
41491#endif
41492}
41493#endif
41494
41495
41496
41497#ifdef __cplusplus
41498extern "C" {
41499#endif
41500
41501 /* Python-specific SWIG API */
41502#define SWIG_newvarlink() SWIG_Python_newvarlink()
41503#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41504#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41505
41506 /* -----------------------------------------------------------------------------
41507 * global variable support code.
41508 * ----------------------------------------------------------------------------- */
41509
41510 typedef struct swig_globalvar {
41511 char *name; /* Name of global variable */
41512 PyObject *(*get_attr)(void); /* Return the current value */
41513 int (*set_attr)(PyObject *); /* Set the value */
41514 struct swig_globalvar *next;
41515 } swig_globalvar;
41516
41517 typedef struct swig_varlinkobject {
41518 PyObject_HEAD
41519 swig_globalvar *vars;
41520 } swig_varlinkobject;
41521
41522 SWIGINTERN PyObject *
41523 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41524 return PyString_FromString("<Swig global variables>");
41525 }
41526
41527 SWIGINTERN PyObject *
41528 swig_varlink_str(swig_varlinkobject *v) {
41529 PyObject *str = PyString_FromString("(");
41530 swig_globalvar *var;
41531 for (var = v->vars; var; var=var->next) {
41532 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41533 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41534 }
41535 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41536 return str;
41537 }
41538
41539 SWIGINTERN int
41540 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41541 PyObject *str = swig_varlink_str(v);
41542 fprintf(fp,"Swig global variables ");
41543 fprintf(fp,"%s\n", PyString_AsString(str));
41544 Py_DECREF(str);
41545 return 0;
41546 }
41547
41548 SWIGINTERN void
41549 swig_varlink_dealloc(swig_varlinkobject *v) {
41550 swig_globalvar *var = v->vars;
41551 while (var) {
41552 swig_globalvar *n = var->next;
41553 free(var->name);
41554 free(var);
41555 var = n;
093d3ff1 41556 }
0085ce49
RD
41557 }
41558
41559 SWIGINTERN PyObject *
41560 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41561 PyObject *res = NULL;
41562 swig_globalvar *var = v->vars;
41563 while (var) {
41564 if (strcmp(var->name,n) == 0) {
41565 res = (*var->get_attr)();
41566 break;
41567 }
41568 var = var->next;
093d3ff1 41569 }
0085ce49
RD
41570 if (res == NULL && !PyErr_Occurred()) {
41571 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 41572 }
0085ce49
RD
41573 return res;
41574 }
41575
41576 SWIGINTERN int
41577 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41578 int res = 1;
41579 swig_globalvar *var = v->vars;
41580 while (var) {
41581 if (strcmp(var->name,n) == 0) {
41582 res = (*var->set_attr)(p);
41583 break;
41584 }
41585 var = var->next;
093d3ff1 41586 }
0085ce49
RD
41587 if (res == 1 && !PyErr_Occurred()) {
41588 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 41589 }
0085ce49
RD
41590 return res;
41591 }
41592
41593 SWIGINTERN PyTypeObject*
41594 swig_varlink_type(void) {
41595 static char varlink__doc__[] = "Swig var link object";
41596 static PyTypeObject varlink_type;
41597 static int type_init = 0;
41598 if (!type_init) {
41599 const PyTypeObject tmp
41600 = {
41601 PyObject_HEAD_INIT(NULL)
41602 0, /* Number of items in variable part (ob_size) */
41603 (char *)"swigvarlink", /* Type name (tp_name) */
41604 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41605 0, /* Itemsize (tp_itemsize) */
41606 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41607 (printfunc) swig_varlink_print, /* Print (tp_print) */
41608 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41609 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41610 0, /* tp_compare */
41611 (reprfunc) swig_varlink_repr, /* tp_repr */
41612 0, /* tp_as_number */
41613 0, /* tp_as_sequence */
41614 0, /* tp_as_mapping */
41615 0, /* tp_hash */
41616 0, /* tp_call */
41617 (reprfunc)swig_varlink_str, /* tp_str */
41618 0, /* tp_getattro */
41619 0, /* tp_setattro */
41620 0, /* tp_as_buffer */
41621 0, /* tp_flags */
41622 varlink__doc__, /* tp_doc */
41623 0, /* tp_traverse */
41624 0, /* tp_clear */
41625 0, /* tp_richcompare */
41626 0, /* tp_weaklistoffset */
41627#if PY_VERSION_HEX >= 0x02020000
41628 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41629#endif
41630#if PY_VERSION_HEX >= 0x02030000
41631 0, /* tp_del */
41632#endif
41633#ifdef COUNT_ALLOCS
41634 0,0,0,0 /* tp_alloc -> tp_next */
41635#endif
41636 };
41637 varlink_type = tmp;
41638 varlink_type.ob_type = &PyType_Type;
41639 type_init = 1;
093d3ff1 41640 }
0085ce49
RD
41641 return &varlink_type;
41642 }
41643
41644 /* Create a variable linking object for use later */
41645 SWIGINTERN PyObject *
41646 SWIG_Python_newvarlink(void) {
41647 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41648 if (result) {
41649 result->vars = 0;
41650 }
41651 return ((PyObject*) result);
41652 }
41653
41654 SWIGINTERN void
41655 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41656 swig_varlinkobject *v = (swig_varlinkobject *) p;
41657 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41658 if (gv) {
41659 size_t size = strlen(name)+1;
41660 gv->name = (char *)malloc(size);
41661 if (gv->name) {
41662 strncpy(gv->name,name,size);
41663 gv->get_attr = get_attr;
41664 gv->set_attr = set_attr;
41665 gv->next = v->vars;
41666 }
093d3ff1 41667 }
0085ce49
RD
41668 v->vars = gv;
41669 }
41670
41671 SWIGINTERN PyObject *
41672 SWIG_globals() {
41673 static PyObject *_SWIG_globals = 0;
41674 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41675 return _SWIG_globals;
41676 }
41677
41678 /* -----------------------------------------------------------------------------
41679 * constants/methods manipulation
41680 * ----------------------------------------------------------------------------- */
41681
41682 /* Install Constants */
41683 SWIGINTERN void
41684 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41685 PyObject *obj = 0;
41686 size_t i;
41687 for (i = 0; constants[i].type; ++i) {
41688 switch(constants[i].type) {
41689 case SWIG_PY_POINTER:
41690 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41691 break;
41692 case SWIG_PY_BINARY:
41693 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41694 break;
41695 default:
41696 obj = 0;
41697 break;
41698 }
41699 if (obj) {
41700 PyDict_SetItemString(d, constants[i].name, obj);
41701 Py_DECREF(obj);
41702 }
093d3ff1 41703 }
0085ce49
RD
41704 }
41705
41706 /* -----------------------------------------------------------------------------*/
41707 /* Fix SwigMethods to carry the callback ptrs when needed */
41708 /* -----------------------------------------------------------------------------*/
41709
41710 SWIGINTERN void
41711 SWIG_Python_FixMethods(PyMethodDef *methods,
41712 swig_const_info *const_table,
41713 swig_type_info **types,
41714 swig_type_info **types_initial) {
41715 size_t i;
41716 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41717 const char *c = methods[i].ml_doc;
0085ce49
RD
41718 if (c && (c = strstr(c, "swig_ptr: "))) {
41719 int j;
41720 swig_const_info *ci = 0;
453fb36b 41721 const char *name = c + 10;
0085ce49
RD
41722 for (j = 0; const_table[j].type; ++j) {
41723 if (strncmp(const_table[j].name, name,
41724 strlen(const_table[j].name)) == 0) {
41725 ci = &(const_table[j]);
41726 break;
41727 }
41728 }
41729 if (ci) {
41730 size_t shift = (ci->ptype) - types;
41731 swig_type_info *ty = types_initial[shift];
41732 size_t ldoc = (c - methods[i].ml_doc);
41733 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41734 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41735 if (ndoc) {
41736 char *buff = ndoc;
41737 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41738 if (ptr) {
41739 strncpy(buff, methods[i].ml_doc, ldoc);
41740 buff += ldoc;
41741 strncpy(buff, "swig_ptr: ", 10);
41742 buff += 10;
41743 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41744 methods[i].ml_doc = ndoc;
41745 }
41746 }
41747 }
41748 }
093d3ff1 41749 }
0085ce49
RD
41750 }
41751
41752#ifdef __cplusplus
41753}
41754#endif
41755
41756/* -----------------------------------------------------------------------------*
41757 * Partial Init method
41758 * -----------------------------------------------------------------------------*/
41759
41760#ifdef __cplusplus
41761extern "C"
41762#endif
41763SWIGEXPORT void SWIG_init(void) {
41764 PyObject *m, *d;
41765
41766 /* Fix SwigMethods to carry the callback ptrs when needed */
41767 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41768
41769 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41770 d = PyModule_GetDict(m);
41771
41772 SWIG_InitializeModule(0);
41773 SWIG_InstallConstants(d,swig_const_table);
41774
41775
41776 SWIG_Python_SetConstant(d, "SYS_OEM_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_OEM_FIXED_FONT)));
41777 SWIG_Python_SetConstant(d, "SYS_ANSI_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_ANSI_FIXED_FONT)));
41778 SWIG_Python_SetConstant(d, "SYS_ANSI_VAR_FONT",SWIG_From_int(static_cast< int >(wxSYS_ANSI_VAR_FONT)));
41779 SWIG_Python_SetConstant(d, "SYS_SYSTEM_FONT",SWIG_From_int(static_cast< int >(wxSYS_SYSTEM_FONT)));
41780 SWIG_Python_SetConstant(d, "SYS_DEVICE_DEFAULT_FONT",SWIG_From_int(static_cast< int >(wxSYS_DEVICE_DEFAULT_FONT)));
41781 SWIG_Python_SetConstant(d, "SYS_DEFAULT_PALETTE",SWIG_From_int(static_cast< int >(wxSYS_DEFAULT_PALETTE)));
41782 SWIG_Python_SetConstant(d, "SYS_SYSTEM_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_SYSTEM_FIXED_FONT)));
41783 SWIG_Python_SetConstant(d, "SYS_DEFAULT_GUI_FONT",SWIG_From_int(static_cast< int >(wxSYS_DEFAULT_GUI_FONT)));
41784 SWIG_Python_SetConstant(d, "SYS_ICONTITLE_FONT",SWIG_From_int(static_cast< int >(wxSYS_ICONTITLE_FONT)));
41785 SWIG_Python_SetConstant(d, "SYS_COLOUR_SCROLLBAR",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_SCROLLBAR)));
41786 SWIG_Python_SetConstant(d, "SYS_COLOUR_BACKGROUND",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BACKGROUND)));
41787 SWIG_Python_SetConstant(d, "SYS_COLOUR_DESKTOP",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_DESKTOP)));
41788 SWIG_Python_SetConstant(d, "SYS_COLOUR_ACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_ACTIVECAPTION)));
41789 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVECAPTION)));
41790 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENU",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENU)));
41791 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOW)));
41792 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOWFRAME",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOWFRAME)));
41793 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUTEXT)));
41794 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOWTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOWTEXT)));
41795 SWIG_Python_SetConstant(d, "SYS_COLOUR_CAPTIONTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_CAPTIONTEXT)));
41796 SWIG_Python_SetConstant(d, "SYS_COLOUR_ACTIVEBORDER",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_ACTIVEBORDER)));
41797 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVEBORDER",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVEBORDER)));
41798 SWIG_Python_SetConstant(d, "SYS_COLOUR_APPWORKSPACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_APPWORKSPACE)));
41799 SWIG_Python_SetConstant(d, "SYS_COLOUR_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HIGHLIGHT)));
41800 SWIG_Python_SetConstant(d, "SYS_COLOUR_HIGHLIGHTTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HIGHLIGHTTEXT)));
41801 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNFACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNFACE)));
41802 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DFACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DFACE)));
41803 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNSHADOW)));
41804 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DSHADOW)));
41805 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRAYTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRAYTEXT)));
41806 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNTEXT)));
41807 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVECAPTIONTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT)));
41808 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNHIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNHIGHLIGHT)));
41809 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNHILIGHT)));
41810 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DHIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DHIGHLIGHT)));
41811 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DHILIGHT)));
41812 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DDKSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DDKSHADOW)));
41813 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DLIGHT)));
41814 SWIG_Python_SetConstant(d, "SYS_COLOUR_INFOTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INFOTEXT)));
41815 SWIG_Python_SetConstant(d, "SYS_COLOUR_INFOBK",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INFOBK)));
41816 SWIG_Python_SetConstant(d, "SYS_COLOUR_LISTBOX",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_LISTBOX)));
41817 SWIG_Python_SetConstant(d, "SYS_COLOUR_HOTLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HOTLIGHT)));
41818 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRADIENTACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION)));
41819 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRADIENTINACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION)));
41820 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUHILIGHT)));
41821 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUBAR",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUBAR)));
41822 SWIG_Python_SetConstant(d, "SYS_COLOUR_MAX",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MAX)));
41823 SWIG_Python_SetConstant(d, "SYS_MOUSE_BUTTONS",SWIG_From_int(static_cast< int >(wxSYS_MOUSE_BUTTONS)));
41824 SWIG_Python_SetConstant(d, "SYS_BORDER_X",SWIG_From_int(static_cast< int >(wxSYS_BORDER_X)));
41825 SWIG_Python_SetConstant(d, "SYS_BORDER_Y",SWIG_From_int(static_cast< int >(wxSYS_BORDER_Y)));
41826 SWIG_Python_SetConstant(d, "SYS_CURSOR_X",SWIG_From_int(static_cast< int >(wxSYS_CURSOR_X)));
41827 SWIG_Python_SetConstant(d, "SYS_CURSOR_Y",SWIG_From_int(static_cast< int >(wxSYS_CURSOR_Y)));
41828 SWIG_Python_SetConstant(d, "SYS_DCLICK_X",SWIG_From_int(static_cast< int >(wxSYS_DCLICK_X)));
41829 SWIG_Python_SetConstant(d, "SYS_DCLICK_Y",SWIG_From_int(static_cast< int >(wxSYS_DCLICK_Y)));
41830 SWIG_Python_SetConstant(d, "SYS_DRAG_X",SWIG_From_int(static_cast< int >(wxSYS_DRAG_X)));
41831 SWIG_Python_SetConstant(d, "SYS_DRAG_Y",SWIG_From_int(static_cast< int >(wxSYS_DRAG_Y)));
41832 SWIG_Python_SetConstant(d, "SYS_EDGE_X",SWIG_From_int(static_cast< int >(wxSYS_EDGE_X)));
41833 SWIG_Python_SetConstant(d, "SYS_EDGE_Y",SWIG_From_int(static_cast< int >(wxSYS_EDGE_Y)));
41834 SWIG_Python_SetConstant(d, "SYS_HSCROLL_ARROW_X",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_ARROW_X)));
41835 SWIG_Python_SetConstant(d, "SYS_HSCROLL_ARROW_Y",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_ARROW_Y)));
41836 SWIG_Python_SetConstant(d, "SYS_HTHUMB_X",SWIG_From_int(static_cast< int >(wxSYS_HTHUMB_X)));
41837 SWIG_Python_SetConstant(d, "SYS_ICON_X",SWIG_From_int(static_cast< int >(wxSYS_ICON_X)));
41838 SWIG_Python_SetConstant(d, "SYS_ICON_Y",SWIG_From_int(static_cast< int >(wxSYS_ICON_Y)));
41839 SWIG_Python_SetConstant(d, "SYS_ICONSPACING_X",SWIG_From_int(static_cast< int >(wxSYS_ICONSPACING_X)));
41840 SWIG_Python_SetConstant(d, "SYS_ICONSPACING_Y",SWIG_From_int(static_cast< int >(wxSYS_ICONSPACING_Y)));
41841 SWIG_Python_SetConstant(d, "SYS_WINDOWMIN_X",SWIG_From_int(static_cast< int >(wxSYS_WINDOWMIN_X)));
41842 SWIG_Python_SetConstant(d, "SYS_WINDOWMIN_Y",SWIG_From_int(static_cast< int >(wxSYS_WINDOWMIN_Y)));
41843 SWIG_Python_SetConstant(d, "SYS_SCREEN_X",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_X)));
41844 SWIG_Python_SetConstant(d, "SYS_SCREEN_Y",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_Y)));
41845 SWIG_Python_SetConstant(d, "SYS_FRAMESIZE_X",SWIG_From_int(static_cast< int >(wxSYS_FRAMESIZE_X)));
41846 SWIG_Python_SetConstant(d, "SYS_FRAMESIZE_Y",SWIG_From_int(static_cast< int >(wxSYS_FRAMESIZE_Y)));
41847 SWIG_Python_SetConstant(d, "SYS_SMALLICON_X",SWIG_From_int(static_cast< int >(wxSYS_SMALLICON_X)));
41848 SWIG_Python_SetConstant(d, "SYS_SMALLICON_Y",SWIG_From_int(static_cast< int >(wxSYS_SMALLICON_Y)));
41849 SWIG_Python_SetConstant(d, "SYS_HSCROLL_Y",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_Y)));
41850 SWIG_Python_SetConstant(d, "SYS_VSCROLL_X",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_X)));
41851 SWIG_Python_SetConstant(d, "SYS_VSCROLL_ARROW_X",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_ARROW_X)));
41852 SWIG_Python_SetConstant(d, "SYS_VSCROLL_ARROW_Y",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_ARROW_Y)));
41853 SWIG_Python_SetConstant(d, "SYS_VTHUMB_Y",SWIG_From_int(static_cast< int >(wxSYS_VTHUMB_Y)));
41854 SWIG_Python_SetConstant(d, "SYS_CAPTION_Y",SWIG_From_int(static_cast< int >(wxSYS_CAPTION_Y)));
41855 SWIG_Python_SetConstant(d, "SYS_MENU_Y",SWIG_From_int(static_cast< int >(wxSYS_MENU_Y)));
41856 SWIG_Python_SetConstant(d, "SYS_NETWORK_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_NETWORK_PRESENT)));
41857 SWIG_Python_SetConstant(d, "SYS_PENWINDOWS_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_PENWINDOWS_PRESENT)));
41858 SWIG_Python_SetConstant(d, "SYS_SHOW_SOUNDS",SWIG_From_int(static_cast< int >(wxSYS_SHOW_SOUNDS)));
41859 SWIG_Python_SetConstant(d, "SYS_SWAP_BUTTONS",SWIG_From_int(static_cast< int >(wxSYS_SWAP_BUTTONS)));
41860 SWIG_Python_SetConstant(d, "SYS_CAN_DRAW_FRAME_DECORATIONS",SWIG_From_int(static_cast< int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS)));
41861 SWIG_Python_SetConstant(d, "SYS_CAN_ICONIZE_FRAME",SWIG_From_int(static_cast< int >(wxSYS_CAN_ICONIZE_FRAME)));
41862 SWIG_Python_SetConstant(d, "SYS_TABLET_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_TABLET_PRESENT)));
41863 SWIG_Python_SetConstant(d, "SYS_SCREEN_NONE",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_NONE)));
41864 SWIG_Python_SetConstant(d, "SYS_SCREEN_TINY",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_TINY)));
41865 SWIG_Python_SetConstant(d, "SYS_SCREEN_PDA",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_PDA)));
41866 SWIG_Python_SetConstant(d, "SYS_SCREEN_SMALL",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_SMALL)));
41867 SWIG_Python_SetConstant(d, "SYS_SCREEN_DESKTOP",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_DESKTOP)));
41868 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41869 SWIG_addvarlink(SWIG_globals(),(char*)"WINDOW_DEFAULT_VARIANT",WINDOW_DEFAULT_VARIANT_get, WINDOW_DEFAULT_VARIANT_set);
41870 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
41871 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
41872 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
97ab0f6a
RD
41873 SWIG_Python_SetConstant(d, "STOCK_NOFLAGS",SWIG_From_int(static_cast< int >(wxSTOCK_NOFLAGS)));
41874 SWIG_Python_SetConstant(d, "STOCK_WITH_MNEMONIC",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_MNEMONIC)));
41875 SWIG_Python_SetConstant(d, "STOCK_WITH_ACCELERATOR",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_ACCELERATOR)));
41876 SWIG_Python_SetConstant(d, "STOCK_MENU",SWIG_From_int(static_cast< int >(wxSTOCK_MENU)));
0085ce49
RD
41877 SWIG_Python_SetConstant(d, "SHUTDOWN_POWEROFF",SWIG_From_int(static_cast< int >(wxSHUTDOWN_POWEROFF)));
41878 SWIG_Python_SetConstant(d, "SHUTDOWN_REBOOT",SWIG_From_int(static_cast< int >(wxSHUTDOWN_REBOOT)));
fc46b7f3
RD
41879 SWIG_Python_SetConstant(d, "OS_UNKNOWN",SWIG_From_int(static_cast< int >(wxOS_UNKNOWN)));
41880 SWIG_Python_SetConstant(d, "OS_MAC_OS",SWIG_From_int(static_cast< int >(wxOS_MAC_OS)));
41881 SWIG_Python_SetConstant(d, "OS_MAC_OSX_DARWIN",SWIG_From_int(static_cast< int >(wxOS_MAC_OSX_DARWIN)));
41882 SWIG_Python_SetConstant(d, "OS_MAC",SWIG_From_int(static_cast< int >(wxOS_MAC)));
41883 SWIG_Python_SetConstant(d, "OS_WINDOWS_9X",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_9X)));
41884 SWIG_Python_SetConstant(d, "OS_WINDOWS_NT",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_NT)));
41885 SWIG_Python_SetConstant(d, "OS_WINDOWS_MICRO",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_MICRO)));
41886 SWIG_Python_SetConstant(d, "OS_WINDOWS_CE",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_CE)));
41887 SWIG_Python_SetConstant(d, "OS_WINDOWS",SWIG_From_int(static_cast< int >(wxOS_WINDOWS)));
41888 SWIG_Python_SetConstant(d, "OS_UNIX_LINUX",SWIG_From_int(static_cast< int >(wxOS_UNIX_LINUX)));
41889 SWIG_Python_SetConstant(d, "OS_UNIX_FREEBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_FREEBSD)));
41890 SWIG_Python_SetConstant(d, "OS_UNIX_OPENBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_OPENBSD)));
41891 SWIG_Python_SetConstant(d, "OS_UNIX_NETBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_NETBSD)));
41892 SWIG_Python_SetConstant(d, "OS_UNIX_SOLARIS",SWIG_From_int(static_cast< int >(wxOS_UNIX_SOLARIS)));
41893 SWIG_Python_SetConstant(d, "OS_UNIX_AIX",SWIG_From_int(static_cast< int >(wxOS_UNIX_AIX)));
41894 SWIG_Python_SetConstant(d, "OS_UNIX_HPUX",SWIG_From_int(static_cast< int >(wxOS_UNIX_HPUX)));
41895 SWIG_Python_SetConstant(d, "OS_UNIX",SWIG_From_int(static_cast< int >(wxOS_UNIX)));
41896 SWIG_Python_SetConstant(d, "OS_DOS",SWIG_From_int(static_cast< int >(wxOS_DOS)));
41897 SWIG_Python_SetConstant(d, "OS_OS2",SWIG_From_int(static_cast< int >(wxOS_OS2)));
41898 SWIG_Python_SetConstant(d, "PORT_UNKNOWN",SWIG_From_int(static_cast< int >(wxPORT_UNKNOWN)));
41899 SWIG_Python_SetConstant(d, "PORT_BASE",SWIG_From_int(static_cast< int >(wxPORT_BASE)));
41900 SWIG_Python_SetConstant(d, "PORT_MSW",SWIG_From_int(static_cast< int >(wxPORT_MSW)));
41901 SWIG_Python_SetConstant(d, "PORT_MOTIF",SWIG_From_int(static_cast< int >(wxPORT_MOTIF)));
41902 SWIG_Python_SetConstant(d, "PORT_GTK",SWIG_From_int(static_cast< int >(wxPORT_GTK)));
41903 SWIG_Python_SetConstant(d, "PORT_MGL",SWIG_From_int(static_cast< int >(wxPORT_MGL)));
41904 SWIG_Python_SetConstant(d, "PORT_X11",SWIG_From_int(static_cast< int >(wxPORT_X11)));
41905 SWIG_Python_SetConstant(d, "PORT_PM",SWIG_From_int(static_cast< int >(wxPORT_PM)));
41906 SWIG_Python_SetConstant(d, "PORT_OS2",SWIG_From_int(static_cast< int >(wxPORT_OS2)));
41907 SWIG_Python_SetConstant(d, "PORT_MAC",SWIG_From_int(static_cast< int >(wxPORT_MAC)));
41908 SWIG_Python_SetConstant(d, "PORT_COCOA",SWIG_From_int(static_cast< int >(wxPORT_COCOA)));
41909 SWIG_Python_SetConstant(d, "PORT_WINCE",SWIG_From_int(static_cast< int >(wxPORT_WINCE)));
41910 SWIG_Python_SetConstant(d, "PORT_PALMOS",SWIG_From_int(static_cast< int >(wxPORT_PALMOS)));
41911 SWIG_Python_SetConstant(d, "PORT_DFB",SWIG_From_int(static_cast< int >(wxPORT_DFB)));
41912 SWIG_Python_SetConstant(d, "ARCH_INVALID",SWIG_From_int(static_cast< int >(wxARCH_INVALID)));
41913 SWIG_Python_SetConstant(d, "ARCH_32",SWIG_From_int(static_cast< int >(wxARCH_32)));
41914 SWIG_Python_SetConstant(d, "ARCH_64",SWIG_From_int(static_cast< int >(wxARCH_64)));
41915 SWIG_Python_SetConstant(d, "ARCH_MAX",SWIG_From_int(static_cast< int >(wxARCH_MAX)));
41916 SWIG_Python_SetConstant(d, "ENDIAN_INVALID",SWIG_From_int(static_cast< int >(wxENDIAN_INVALID)));
41917 SWIG_Python_SetConstant(d, "ENDIAN_BIG",SWIG_From_int(static_cast< int >(wxENDIAN_BIG)));
41918 SWIG_Python_SetConstant(d, "ENDIAN_LITTLE",SWIG_From_int(static_cast< int >(wxENDIAN_LITTLE)));
41919 SWIG_Python_SetConstant(d, "ENDIAN_PDP",SWIG_From_int(static_cast< int >(wxENDIAN_PDP)));
41920 SWIG_Python_SetConstant(d, "ENDIAN_MAX",SWIG_From_int(static_cast< int >(wxENDIAN_MAX)));
0085ce49
RD
41921 SWIG_Python_SetConstant(d, "TIMER_CONTINUOUS",SWIG_From_int(static_cast< int >(wxTIMER_CONTINUOUS)));
41922 SWIG_Python_SetConstant(d, "TIMER_ONE_SHOT",SWIG_From_int(static_cast< int >(wxTIMER_ONE_SHOT)));
41923 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
41924
41925 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
41926
41927 SWIG_Python_SetConstant(d, "LOG_FatalError",SWIG_From_int(static_cast< int >(wxLOG_FatalError)));
41928 SWIG_Python_SetConstant(d, "LOG_Error",SWIG_From_int(static_cast< int >(wxLOG_Error)));
41929 SWIG_Python_SetConstant(d, "LOG_Warning",SWIG_From_int(static_cast< int >(wxLOG_Warning)));
41930 SWIG_Python_SetConstant(d, "LOG_Message",SWIG_From_int(static_cast< int >(wxLOG_Message)));
41931 SWIG_Python_SetConstant(d, "LOG_Status",SWIG_From_int(static_cast< int >(wxLOG_Status)));
41932 SWIG_Python_SetConstant(d, "LOG_Info",SWIG_From_int(static_cast< int >(wxLOG_Info)));
41933 SWIG_Python_SetConstant(d, "LOG_Debug",SWIG_From_int(static_cast< int >(wxLOG_Debug)));
41934 SWIG_Python_SetConstant(d, "LOG_Trace",SWIG_From_int(static_cast< int >(wxLOG_Trace)));
41935 SWIG_Python_SetConstant(d, "LOG_Progress",SWIG_From_int(static_cast< int >(wxLOG_Progress)));
41936 SWIG_Python_SetConstant(d, "LOG_User",SWIG_From_int(static_cast< int >(wxLOG_User)));
41937 SWIG_Python_SetConstant(d, "LOG_Max",SWIG_From_int(static_cast< int >(wxLOG_Max)));
41938 SWIG_Python_SetConstant(d, "TRACE_MemAlloc",SWIG_FromCharPtr("memalloc"));
41939 SWIG_Python_SetConstant(d, "TRACE_Messages",SWIG_FromCharPtr("messages"));
41940 SWIG_Python_SetConstant(d, "TRACE_ResAlloc",SWIG_FromCharPtr("resalloc"));
41941 SWIG_Python_SetConstant(d, "TRACE_RefCount",SWIG_FromCharPtr("refcount"));
41942 SWIG_Python_SetConstant(d, "TRACE_OleCalls",SWIG_FromCharPtr("ole"));
41943 SWIG_Python_SetConstant(d, "TraceMemAlloc",SWIG_From_int(static_cast< int >(0x0001)));
41944 SWIG_Python_SetConstant(d, "TraceMessages",SWIG_From_int(static_cast< int >(0x0002)));
41945 SWIG_Python_SetConstant(d, "TraceResAlloc",SWIG_From_int(static_cast< int >(0x0004)));
41946 SWIG_Python_SetConstant(d, "TraceRefCount",SWIG_From_int(static_cast< int >(0x0008)));
41947 SWIG_Python_SetConstant(d, "TraceOleCalls",SWIG_From_int(static_cast< int >(0x0100)));
41948 SWIG_Python_SetConstant(d, "PROCESS_DEFAULT",SWIG_From_int(static_cast< int >(wxPROCESS_DEFAULT)));
41949 SWIG_Python_SetConstant(d, "PROCESS_REDIRECT",SWIG_From_int(static_cast< int >(wxPROCESS_REDIRECT)));
41950 SWIG_Python_SetConstant(d, "KILL_OK",SWIG_From_int(static_cast< int >(wxKILL_OK)));
41951 SWIG_Python_SetConstant(d, "KILL_BAD_SIGNAL",SWIG_From_int(static_cast< int >(wxKILL_BAD_SIGNAL)));
41952 SWIG_Python_SetConstant(d, "KILL_ACCESS_DENIED",SWIG_From_int(static_cast< int >(wxKILL_ACCESS_DENIED)));
41953 SWIG_Python_SetConstant(d, "KILL_NO_PROCESS",SWIG_From_int(static_cast< int >(wxKILL_NO_PROCESS)));
41954 SWIG_Python_SetConstant(d, "KILL_ERROR",SWIG_From_int(static_cast< int >(wxKILL_ERROR)));
41955 SWIG_Python_SetConstant(d, "KILL_NOCHILDREN",SWIG_From_int(static_cast< int >(wxKILL_NOCHILDREN)));
41956 SWIG_Python_SetConstant(d, "KILL_CHILDREN",SWIG_From_int(static_cast< int >(wxKILL_CHILDREN)));
41957 SWIG_Python_SetConstant(d, "SIGNONE",SWIG_From_int(static_cast< int >(wxSIGNONE)));
41958 SWIG_Python_SetConstant(d, "SIGHUP",SWIG_From_int(static_cast< int >(wxSIGHUP)));
41959 SWIG_Python_SetConstant(d, "SIGINT",SWIG_From_int(static_cast< int >(wxSIGINT)));
41960 SWIG_Python_SetConstant(d, "SIGQUIT",SWIG_From_int(static_cast< int >(wxSIGQUIT)));
41961 SWIG_Python_SetConstant(d, "SIGILL",SWIG_From_int(static_cast< int >(wxSIGILL)));
41962 SWIG_Python_SetConstant(d, "SIGTRAP",SWIG_From_int(static_cast< int >(wxSIGTRAP)));
41963 SWIG_Python_SetConstant(d, "SIGABRT",SWIG_From_int(static_cast< int >(wxSIGABRT)));
41964 SWIG_Python_SetConstant(d, "SIGIOT",SWIG_From_int(static_cast< int >(wxSIGIOT)));
41965 SWIG_Python_SetConstant(d, "SIGEMT",SWIG_From_int(static_cast< int >(wxSIGEMT)));
41966 SWIG_Python_SetConstant(d, "SIGFPE",SWIG_From_int(static_cast< int >(wxSIGFPE)));
41967 SWIG_Python_SetConstant(d, "SIGKILL",SWIG_From_int(static_cast< int >(wxSIGKILL)));
41968 SWIG_Python_SetConstant(d, "SIGBUS",SWIG_From_int(static_cast< int >(wxSIGBUS)));
41969 SWIG_Python_SetConstant(d, "SIGSEGV",SWIG_From_int(static_cast< int >(wxSIGSEGV)));
41970 SWIG_Python_SetConstant(d, "SIGSYS",SWIG_From_int(static_cast< int >(wxSIGSYS)));
41971 SWIG_Python_SetConstant(d, "SIGPIPE",SWIG_From_int(static_cast< int >(wxSIGPIPE)));
41972 SWIG_Python_SetConstant(d, "SIGALRM",SWIG_From_int(static_cast< int >(wxSIGALRM)));
41973 SWIG_Python_SetConstant(d, "SIGTERM",SWIG_From_int(static_cast< int >(wxSIGTERM)));
41974 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
41975 SWIG_Python_SetConstant(d, "EXEC_ASYNC",SWIG_From_int(static_cast< int >(wxEXEC_ASYNC)));
41976 SWIG_Python_SetConstant(d, "EXEC_SYNC",SWIG_From_int(static_cast< int >(wxEXEC_SYNC)));
41977 SWIG_Python_SetConstant(d, "EXEC_NOHIDE",SWIG_From_int(static_cast< int >(wxEXEC_NOHIDE)));
41978 SWIG_Python_SetConstant(d, "EXEC_MAKE_GROUP_LEADER",SWIG_From_int(static_cast< int >(wxEXEC_MAKE_GROUP_LEADER)));
41979 SWIG_Python_SetConstant(d, "EXEC_NODISABLE",SWIG_From_int(static_cast< int >(wxEXEC_NODISABLE)));
41980
41981 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
41982
41983 SWIG_Python_SetConstant(d, "JOYSTICK1",SWIG_From_int(static_cast< int >(wxJOYSTICK1)));
41984 SWIG_Python_SetConstant(d, "JOYSTICK2",SWIG_From_int(static_cast< int >(wxJOYSTICK2)));
41985 SWIG_Python_SetConstant(d, "JOY_BUTTON_ANY",SWIG_From_int(static_cast< int >(wxJOY_BUTTON_ANY)));
41986 SWIG_Python_SetConstant(d, "JOY_BUTTON1",SWIG_From_int(static_cast< int >(wxJOY_BUTTON1)));
41987 SWIG_Python_SetConstant(d, "JOY_BUTTON2",SWIG_From_int(static_cast< int >(wxJOY_BUTTON2)));
41988 SWIG_Python_SetConstant(d, "JOY_BUTTON3",SWIG_From_int(static_cast< int >(wxJOY_BUTTON3)));
41989 SWIG_Python_SetConstant(d, "JOY_BUTTON4",SWIG_From_int(static_cast< int >(wxJOY_BUTTON4)));
41990 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
41991 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
41992 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
41993 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
41994 SWIG_Python_SetConstant(d, "SOUND_SYNC",SWIG_From_int(static_cast< int >(wxSOUND_SYNC)));
41995 SWIG_Python_SetConstant(d, "SOUND_ASYNC",SWIG_From_int(static_cast< int >(wxSOUND_ASYNC)));
41996 SWIG_Python_SetConstant(d, "SOUND_LOOP",SWIG_From_int(static_cast< int >(wxSOUND_LOOP)));
41997 SWIG_Python_SetConstant(d, "MAILCAP_STANDARD",SWIG_From_int(static_cast< int >(wxMAILCAP_STANDARD)));
41998 SWIG_Python_SetConstant(d, "MAILCAP_NETSCAPE",SWIG_From_int(static_cast< int >(wxMAILCAP_NETSCAPE)));
41999 SWIG_Python_SetConstant(d, "MAILCAP_KDE",SWIG_From_int(static_cast< int >(wxMAILCAP_KDE)));
42000 SWIG_Python_SetConstant(d, "MAILCAP_GNOME",SWIG_From_int(static_cast< int >(wxMAILCAP_GNOME)));
42001 SWIG_Python_SetConstant(d, "MAILCAP_ALL",SWIG_From_int(static_cast< int >(wxMAILCAP_ALL)));
42002 SWIG_addvarlink(SWIG_globals(),(char*)"TheMimeTypesManager",TheMimeTypesManager_get, TheMimeTypesManager_set);
42003 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TOOLBAR",ART_TOOLBAR_get, ART_TOOLBAR_set);
42004 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MENU",ART_MENU_get, ART_MENU_set);
42005 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FRAME_ICON",ART_FRAME_ICON_get, ART_FRAME_ICON_set);
42006 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CMN_DIALOG",ART_CMN_DIALOG_get, ART_CMN_DIALOG_set);
42007 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_BROWSER",ART_HELP_BROWSER_get, ART_HELP_BROWSER_set);
42008 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MESSAGE_BOX",ART_MESSAGE_BOX_get, ART_MESSAGE_BOX_set);
42009 SWIG_addvarlink(SWIG_globals(),(char*)"ART_BUTTON",ART_BUTTON_get, ART_BUTTON_set);
42010 SWIG_addvarlink(SWIG_globals(),(char*)"ART_OTHER",ART_OTHER_get, ART_OTHER_set);
42011 SWIG_addvarlink(SWIG_globals(),(char*)"ART_ADD_BOOKMARK",ART_ADD_BOOKMARK_get, ART_ADD_BOOKMARK_set);
42012 SWIG_addvarlink(SWIG_globals(),(char*)"ART_DEL_BOOKMARK",ART_DEL_BOOKMARK_get, ART_DEL_BOOKMARK_set);
42013 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_SIDE_PANEL",ART_HELP_SIDE_PANEL_get, ART_HELP_SIDE_PANEL_set);
42014 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_SETTINGS",ART_HELP_SETTINGS_get, ART_HELP_SETTINGS_set);
42015 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_BOOK",ART_HELP_BOOK_get, ART_HELP_BOOK_set);
42016 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_FOLDER",ART_HELP_FOLDER_get, ART_HELP_FOLDER_set);
42017 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_PAGE",ART_HELP_PAGE_get, ART_HELP_PAGE_set);
42018 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_BACK",ART_GO_BACK_get, ART_GO_BACK_set);
42019 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_FORWARD",ART_GO_FORWARD_get, ART_GO_FORWARD_set);
42020 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_UP",ART_GO_UP_get, ART_GO_UP_set);
42021 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_DOWN",ART_GO_DOWN_get, ART_GO_DOWN_set);
42022 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_TO_PARENT",ART_GO_TO_PARENT_get, ART_GO_TO_PARENT_set);
42023 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_HOME",ART_GO_HOME_get, ART_GO_HOME_set);
42024 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_OPEN",ART_FILE_OPEN_get, ART_FILE_OPEN_set);
42025 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_SAVE",ART_FILE_SAVE_get, ART_FILE_SAVE_set);
42026 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_SAVE_AS",ART_FILE_SAVE_AS_get, ART_FILE_SAVE_AS_set);
42027 SWIG_addvarlink(SWIG_globals(),(char*)"ART_PRINT",ART_PRINT_get, ART_PRINT_set);
42028 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP",ART_HELP_get, ART_HELP_set);
42029 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TIP",ART_TIP_get, ART_TIP_set);
42030 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REPORT_VIEW",ART_REPORT_VIEW_get, ART_REPORT_VIEW_set);
42031 SWIG_addvarlink(SWIG_globals(),(char*)"ART_LIST_VIEW",ART_LIST_VIEW_get, ART_LIST_VIEW_set);
42032 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NEW_DIR",ART_NEW_DIR_get, ART_NEW_DIR_set);
42033 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HARDDISK",ART_HARDDISK_get, ART_HARDDISK_set);
42034 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FLOPPY",ART_FLOPPY_get, ART_FLOPPY_set);
42035 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CDROM",ART_CDROM_get, ART_CDROM_set);
42036 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REMOVABLE",ART_REMOVABLE_get, ART_REMOVABLE_set);
42037 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FOLDER",ART_FOLDER_get, ART_FOLDER_set);
42038 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FOLDER_OPEN",ART_FOLDER_OPEN_get, ART_FOLDER_OPEN_set);
42039 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_DIR_UP",ART_GO_DIR_UP_get, ART_GO_DIR_UP_set);
42040 SWIG_addvarlink(SWIG_globals(),(char*)"ART_EXECUTABLE_FILE",ART_EXECUTABLE_FILE_get, ART_EXECUTABLE_FILE_set);
42041 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NORMAL_FILE",ART_NORMAL_FILE_get, ART_NORMAL_FILE_set);
42042 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TICK_MARK",ART_TICK_MARK_get, ART_TICK_MARK_set);
42043 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CROSS_MARK",ART_CROSS_MARK_get, ART_CROSS_MARK_set);
42044 SWIG_addvarlink(SWIG_globals(),(char*)"ART_ERROR",ART_ERROR_get, ART_ERROR_set);
42045 SWIG_addvarlink(SWIG_globals(),(char*)"ART_QUESTION",ART_QUESTION_get, ART_QUESTION_set);
42046 SWIG_addvarlink(SWIG_globals(),(char*)"ART_WARNING",ART_WARNING_get, ART_WARNING_set);
42047 SWIG_addvarlink(SWIG_globals(),(char*)"ART_INFORMATION",ART_INFORMATION_get, ART_INFORMATION_set);
42048 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MISSING_IMAGE",ART_MISSING_IMAGE_get, ART_MISSING_IMAGE_set);
42049 SWIG_addvarlink(SWIG_globals(),(char*)"ART_COPY",ART_COPY_get, ART_COPY_set);
42050 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CUT",ART_CUT_get, ART_CUT_set);
42051 SWIG_addvarlink(SWIG_globals(),(char*)"ART_PASTE",ART_PASTE_get, ART_PASTE_set);
42052 SWIG_addvarlink(SWIG_globals(),(char*)"ART_DELETE",ART_DELETE_get, ART_DELETE_set);
42053 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NEW",ART_NEW_get, ART_NEW_set);
42054 SWIG_addvarlink(SWIG_globals(),(char*)"ART_UNDO",ART_UNDO_get, ART_UNDO_set);
42055 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REDO",ART_REDO_get, ART_REDO_set);
42056 SWIG_addvarlink(SWIG_globals(),(char*)"ART_QUIT",ART_QUIT_get, ART_QUIT_set);
42057 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FIND",ART_FIND_get, ART_FIND_set);
42058 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FIND_AND_REPLACE",ART_FIND_AND_REPLACE_get, ART_FIND_AND_REPLACE_set);
42059
42060 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
42061
42062 SWIG_Python_SetConstant(d, "CONFIG_USE_LOCAL_FILE",SWIG_From_int(static_cast< int >(wxCONFIG_USE_LOCAL_FILE)));
42063 SWIG_Python_SetConstant(d, "CONFIG_USE_GLOBAL_FILE",SWIG_From_int(static_cast< int >(wxCONFIG_USE_GLOBAL_FILE)));
42064 SWIG_Python_SetConstant(d, "CONFIG_USE_RELATIVE_PATH",SWIG_From_int(static_cast< int >(wxCONFIG_USE_RELATIVE_PATH)));
42065 SWIG_Python_SetConstant(d, "CONFIG_USE_NO_ESCAPE_CHARACTERS",SWIG_From_int(static_cast< int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS)));
42066 SWIG_Python_SetConstant(d, "ConfigBase_Type_Unknown",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Unknown)));
42067 SWIG_Python_SetConstant(d, "ConfigBase_Type_String",SWIG_From_int(static_cast< int >(wxConfigBase::Type_String)));
42068 SWIG_Python_SetConstant(d, "ConfigBase_Type_Boolean",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Boolean)));
42069 SWIG_Python_SetConstant(d, "ConfigBase_Type_Integer",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Integer)));
42070 SWIG_Python_SetConstant(d, "ConfigBase_Type_Float",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Float)));
42071 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultDateTimeFormat",DefaultDateTimeFormat_get, DefaultDateTimeFormat_set);
42072 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultTimeSpanFormat",DefaultTimeSpanFormat_get, DefaultTimeSpanFormat_set);
42073 SWIG_Python_SetConstant(d, "DateTime_Local",SWIG_From_int(static_cast< int >(wxDateTime::Local)));
42074 SWIG_Python_SetConstant(d, "DateTime_GMT_12",SWIG_From_int(static_cast< int >(wxDateTime::GMT_12)));
42075 SWIG_Python_SetConstant(d, "DateTime_GMT_11",SWIG_From_int(static_cast< int >(wxDateTime::GMT_11)));
42076 SWIG_Python_SetConstant(d, "DateTime_GMT_10",SWIG_From_int(static_cast< int >(wxDateTime::GMT_10)));
42077 SWIG_Python_SetConstant(d, "DateTime_GMT_9",SWIG_From_int(static_cast< int >(wxDateTime::GMT_9)));
42078 SWIG_Python_SetConstant(d, "DateTime_GMT_8",SWIG_From_int(static_cast< int >(wxDateTime::GMT_8)));
42079 SWIG_Python_SetConstant(d, "DateTime_GMT_7",SWIG_From_int(static_cast< int >(wxDateTime::GMT_7)));
42080 SWIG_Python_SetConstant(d, "DateTime_GMT_6",SWIG_From_int(static_cast< int >(wxDateTime::GMT_6)));
42081 SWIG_Python_SetConstant(d, "DateTime_GMT_5",SWIG_From_int(static_cast< int >(wxDateTime::GMT_5)));
42082 SWIG_Python_SetConstant(d, "DateTime_GMT_4",SWIG_From_int(static_cast< int >(wxDateTime::GMT_4)));
42083 SWIG_Python_SetConstant(d, "DateTime_GMT_3",SWIG_From_int(static_cast< int >(wxDateTime::GMT_3)));
42084 SWIG_Python_SetConstant(d, "DateTime_GMT_2",SWIG_From_int(static_cast< int >(wxDateTime::GMT_2)));
42085 SWIG_Python_SetConstant(d, "DateTime_GMT_1",SWIG_From_int(static_cast< int >(wxDateTime::GMT_1)));
42086 SWIG_Python_SetConstant(d, "DateTime_GMT0",SWIG_From_int(static_cast< int >(wxDateTime::GMT0)));
42087 SWIG_Python_SetConstant(d, "DateTime_GMT1",SWIG_From_int(static_cast< int >(wxDateTime::GMT1)));
42088 SWIG_Python_SetConstant(d, "DateTime_GMT2",SWIG_From_int(static_cast< int >(wxDateTime::GMT2)));
42089 SWIG_Python_SetConstant(d, "DateTime_GMT3",SWIG_From_int(static_cast< int >(wxDateTime::GMT3)));
42090 SWIG_Python_SetConstant(d, "DateTime_GMT4",SWIG_From_int(static_cast< int >(wxDateTime::GMT4)));
42091 SWIG_Python_SetConstant(d, "DateTime_GMT5",SWIG_From_int(static_cast< int >(wxDateTime::GMT5)));
42092 SWIG_Python_SetConstant(d, "DateTime_GMT6",SWIG_From_int(static_cast< int >(wxDateTime::GMT6)));
42093 SWIG_Python_SetConstant(d, "DateTime_GMT7",SWIG_From_int(static_cast< int >(wxDateTime::GMT7)));
42094 SWIG_Python_SetConstant(d, "DateTime_GMT8",SWIG_From_int(static_cast< int >(wxDateTime::GMT8)));
42095 SWIG_Python_SetConstant(d, "DateTime_GMT9",SWIG_From_int(static_cast< int >(wxDateTime::GMT9)));
42096 SWIG_Python_SetConstant(d, "DateTime_GMT10",SWIG_From_int(static_cast< int >(wxDateTime::GMT10)));
42097 SWIG_Python_SetConstant(d, "DateTime_GMT11",SWIG_From_int(static_cast< int >(wxDateTime::GMT11)));
42098 SWIG_Python_SetConstant(d, "DateTime_GMT12",SWIG_From_int(static_cast< int >(wxDateTime::GMT12)));
42099 SWIG_Python_SetConstant(d, "DateTime_WET",SWIG_From_int(static_cast< int >(wxDateTime::WET)));
42100 SWIG_Python_SetConstant(d, "DateTime_WEST",SWIG_From_int(static_cast< int >(wxDateTime::WEST)));
42101 SWIG_Python_SetConstant(d, "DateTime_CET",SWIG_From_int(static_cast< int >(wxDateTime::CET)));
42102 SWIG_Python_SetConstant(d, "DateTime_CEST",SWIG_From_int(static_cast< int >(wxDateTime::CEST)));
42103 SWIG_Python_SetConstant(d, "DateTime_EET",SWIG_From_int(static_cast< int >(wxDateTime::EET)));
42104 SWIG_Python_SetConstant(d, "DateTime_EEST",SWIG_From_int(static_cast< int >(wxDateTime::EEST)));
42105 SWIG_Python_SetConstant(d, "DateTime_MSK",SWIG_From_int(static_cast< int >(wxDateTime::MSK)));
42106 SWIG_Python_SetConstant(d, "DateTime_MSD",SWIG_From_int(static_cast< int >(wxDateTime::MSD)));
42107 SWIG_Python_SetConstant(d, "DateTime_AST",SWIG_From_int(static_cast< int >(wxDateTime::AST)));
42108 SWIG_Python_SetConstant(d, "DateTime_ADT",SWIG_From_int(static_cast< int >(wxDateTime::ADT)));
42109 SWIG_Python_SetConstant(d, "DateTime_EST",SWIG_From_int(static_cast< int >(wxDateTime::EST)));
42110 SWIG_Python_SetConstant(d, "DateTime_EDT",SWIG_From_int(static_cast< int >(wxDateTime::EDT)));
42111 SWIG_Python_SetConstant(d, "DateTime_CST",SWIG_From_int(static_cast< int >(wxDateTime::CST)));
42112 SWIG_Python_SetConstant(d, "DateTime_CDT",SWIG_From_int(static_cast< int >(wxDateTime::CDT)));
42113 SWIG_Python_SetConstant(d, "DateTime_MST",SWIG_From_int(static_cast< int >(wxDateTime::MST)));
42114 SWIG_Python_SetConstant(d, "DateTime_MDT",SWIG_From_int(static_cast< int >(wxDateTime::MDT)));
42115 SWIG_Python_SetConstant(d, "DateTime_PST",SWIG_From_int(static_cast< int >(wxDateTime::PST)));
42116 SWIG_Python_SetConstant(d, "DateTime_PDT",SWIG_From_int(static_cast< int >(wxDateTime::PDT)));
42117 SWIG_Python_SetConstant(d, "DateTime_HST",SWIG_From_int(static_cast< int >(wxDateTime::HST)));
42118 SWIG_Python_SetConstant(d, "DateTime_AKST",SWIG_From_int(static_cast< int >(wxDateTime::AKST)));
42119 SWIG_Python_SetConstant(d, "DateTime_AKDT",SWIG_From_int(static_cast< int >(wxDateTime::AKDT)));
42120 SWIG_Python_SetConstant(d, "DateTime_A_WST",SWIG_From_int(static_cast< int >(wxDateTime::A_WST)));
42121 SWIG_Python_SetConstant(d, "DateTime_A_CST",SWIG_From_int(static_cast< int >(wxDateTime::A_CST)));
42122 SWIG_Python_SetConstant(d, "DateTime_A_EST",SWIG_From_int(static_cast< int >(wxDateTime::A_EST)));
42123 SWIG_Python_SetConstant(d, "DateTime_A_ESST",SWIG_From_int(static_cast< int >(wxDateTime::A_ESST)));
42124 SWIG_Python_SetConstant(d, "DateTime_UTC",SWIG_From_int(static_cast< int >(wxDateTime::UTC)));
42125 SWIG_Python_SetConstant(d, "DateTime_Gregorian",SWIG_From_int(static_cast< int >(wxDateTime::Gregorian)));
42126 SWIG_Python_SetConstant(d, "DateTime_Julian",SWIG_From_int(static_cast< int >(wxDateTime::Julian)));
42127 SWIG_Python_SetConstant(d, "DateTime_Gr_Unknown",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Unknown)));
42128 SWIG_Python_SetConstant(d, "DateTime_Gr_Standard",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Standard)));
42129 SWIG_Python_SetConstant(d, "DateTime_Gr_Alaska",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Alaska)));
42130 SWIG_Python_SetConstant(d, "DateTime_Gr_Albania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Albania)));
42131 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria)));
42132 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Brixen",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Brixen)));
42133 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Salzburg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Salzburg)));
42134 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Tyrol",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Tyrol)));
42135 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Carinthia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Carinthia)));
42136 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Styria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Styria)));
42137 SWIG_Python_SetConstant(d, "DateTime_Gr_Belgium",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Belgium)));
42138 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria)));
42139 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_1)));
42140 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_2)));
42141 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_3",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_3)));
42142 SWIG_Python_SetConstant(d, "DateTime_Gr_Canada",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Canada)));
42143 SWIG_Python_SetConstant(d, "DateTime_Gr_China",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China)));
42144 SWIG_Python_SetConstant(d, "DateTime_Gr_China_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China_1)));
42145 SWIG_Python_SetConstant(d, "DateTime_Gr_China_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China_2)));
42146 SWIG_Python_SetConstant(d, "DateTime_Gr_Czechoslovakia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Czechoslovakia)));
42147 SWIG_Python_SetConstant(d, "DateTime_Gr_Denmark",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Denmark)));
42148 SWIG_Python_SetConstant(d, "DateTime_Gr_Egypt",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Egypt)));
42149 SWIG_Python_SetConstant(d, "DateTime_Gr_Estonia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Estonia)));
42150 SWIG_Python_SetConstant(d, "DateTime_Gr_Finland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Finland)));
42151 SWIG_Python_SetConstant(d, "DateTime_Gr_France",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France)));
42152 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Alsace",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Alsace)));
42153 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Lorraine",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Lorraine)));
42154 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Strasbourg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Strasbourg)));
42155 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany)));
42156 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Catholic",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Catholic)));
42157 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Prussia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Prussia)));
42158 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Protestant",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Protestant)));
42159 SWIG_Python_SetConstant(d, "DateTime_Gr_GreatBritain",SWIG_From_int(static_cast< int >(wxDateTime::Gr_GreatBritain)));
42160 SWIG_Python_SetConstant(d, "DateTime_Gr_Greece",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Greece)));
42161 SWIG_Python_SetConstant(d, "DateTime_Gr_Hungary",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Hungary)));
42162 SWIG_Python_SetConstant(d, "DateTime_Gr_Ireland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Ireland)));
42163 SWIG_Python_SetConstant(d, "DateTime_Gr_Italy",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Italy)));
42164 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan)));
42165 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_1)));
42166 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_2)));
42167 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_3",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_3)));
42168 SWIG_Python_SetConstant(d, "DateTime_Gr_Latvia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Latvia)));
42169 SWIG_Python_SetConstant(d, "DateTime_Gr_Lithuania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Lithuania)));
42170 SWIG_Python_SetConstant(d, "DateTime_Gr_Luxemburg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Luxemburg)));
42171 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands)));
42172 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Groningen",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Groningen)));
42173 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Gelderland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Gelderland)));
42174 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Utrecht",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Utrecht)));
42175 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Friesland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Friesland)));
42176 SWIG_Python_SetConstant(d, "DateTime_Gr_Norway",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Norway)));
42177 SWIG_Python_SetConstant(d, "DateTime_Gr_Poland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Poland)));
42178 SWIG_Python_SetConstant(d, "DateTime_Gr_Portugal",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Portugal)));
42179 SWIG_Python_SetConstant(d, "DateTime_Gr_Romania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Romania)));
42180 SWIG_Python_SetConstant(d, "DateTime_Gr_Russia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Russia)));
42181 SWIG_Python_SetConstant(d, "DateTime_Gr_Scotland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Scotland)));
42182 SWIG_Python_SetConstant(d, "DateTime_Gr_Spain",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Spain)));
42183 SWIG_Python_SetConstant(d, "DateTime_Gr_Sweden",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Sweden)));
42184 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland)));
42185 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland_Catholic",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland_Catholic)));
42186 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland_Protestant",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland_Protestant)));
42187 SWIG_Python_SetConstant(d, "DateTime_Gr_Turkey",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Turkey)));
42188 SWIG_Python_SetConstant(d, "DateTime_Gr_USA",SWIG_From_int(static_cast< int >(wxDateTime::Gr_USA)));
42189 SWIG_Python_SetConstant(d, "DateTime_Gr_Wales",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Wales)));
42190 SWIG_Python_SetConstant(d, "DateTime_Gr_Yugoslavia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Yugoslavia)));
42191 SWIG_Python_SetConstant(d, "DateTime_Country_Unknown",SWIG_From_int(static_cast< int >(wxDateTime::Country_Unknown)));
42192 SWIG_Python_SetConstant(d, "DateTime_Country_Default",SWIG_From_int(static_cast< int >(wxDateTime::Country_Default)));
42193 SWIG_Python_SetConstant(d, "DateTime_Country_WesternEurope_Start",SWIG_From_int(static_cast< int >(wxDateTime::Country_WesternEurope_Start)));
42194 SWIG_Python_SetConstant(d, "DateTime_Country_EEC",SWIG_From_int(static_cast< int >(wxDateTime::Country_EEC)));
42195 SWIG_Python_SetConstant(d, "DateTime_France",SWIG_From_int(static_cast< int >(wxDateTime::France)));
42196 SWIG_Python_SetConstant(d, "DateTime_Germany",SWIG_From_int(static_cast< int >(wxDateTime::Germany)));
42197 SWIG_Python_SetConstant(d, "DateTime_UK",SWIG_From_int(static_cast< int >(wxDateTime::UK)));
42198 SWIG_Python_SetConstant(d, "DateTime_Country_WesternEurope_End",SWIG_From_int(static_cast< int >(wxDateTime::Country_WesternEurope_End)));
42199 SWIG_Python_SetConstant(d, "DateTime_Russia",SWIG_From_int(static_cast< int >(wxDateTime::Russia)));
42200 SWIG_Python_SetConstant(d, "DateTime_USA",SWIG_From_int(static_cast< int >(wxDateTime::USA)));
42201 SWIG_Python_SetConstant(d, "DateTime_Jan",SWIG_From_int(static_cast< int >(wxDateTime::Jan)));
42202 SWIG_Python_SetConstant(d, "DateTime_Feb",SWIG_From_int(static_cast< int >(wxDateTime::Feb)));
42203 SWIG_Python_SetConstant(d, "DateTime_Mar",SWIG_From_int(static_cast< int >(wxDateTime::Mar)));
42204 SWIG_Python_SetConstant(d, "DateTime_Apr",SWIG_From_int(static_cast< int >(wxDateTime::Apr)));
42205 SWIG_Python_SetConstant(d, "DateTime_May",SWIG_From_int(static_cast< int >(wxDateTime::May)));
42206 SWIG_Python_SetConstant(d, "DateTime_Jun",SWIG_From_int(static_cast< int >(wxDateTime::Jun)));
42207 SWIG_Python_SetConstant(d, "DateTime_Jul",SWIG_From_int(static_cast< int >(wxDateTime::Jul)));
42208 SWIG_Python_SetConstant(d, "DateTime_Aug",SWIG_From_int(static_cast< int >(wxDateTime::Aug)));
42209 SWIG_Python_SetConstant(d, "DateTime_Sep",SWIG_From_int(static_cast< int >(wxDateTime::Sep)));
42210 SWIG_Python_SetConstant(d, "DateTime_Oct",SWIG_From_int(static_cast< int >(wxDateTime::Oct)));
42211 SWIG_Python_SetConstant(d, "DateTime_Nov",SWIG_From_int(static_cast< int >(wxDateTime::Nov)));
42212 SWIG_Python_SetConstant(d, "DateTime_Dec",SWIG_From_int(static_cast< int >(wxDateTime::Dec)));
42213 SWIG_Python_SetConstant(d, "DateTime_Inv_Month",SWIG_From_int(static_cast< int >(wxDateTime::Inv_Month)));
42214 SWIG_Python_SetConstant(d, "DateTime_Sun",SWIG_From_int(static_cast< int >(wxDateTime::Sun)));
42215 SWIG_Python_SetConstant(d, "DateTime_Mon",SWIG_From_int(static_cast< int >(wxDateTime::Mon)));
42216 SWIG_Python_SetConstant(d, "DateTime_Tue",SWIG_From_int(static_cast< int >(wxDateTime::Tue)));
42217 SWIG_Python_SetConstant(d, "DateTime_Wed",SWIG_From_int(static_cast< int >(wxDateTime::Wed)));
42218 SWIG_Python_SetConstant(d, "DateTime_Thu",SWIG_From_int(static_cast< int >(wxDateTime::Thu)));
42219 SWIG_Python_SetConstant(d, "DateTime_Fri",SWIG_From_int(static_cast< int >(wxDateTime::Fri)));
42220 SWIG_Python_SetConstant(d, "DateTime_Sat",SWIG_From_int(static_cast< int >(wxDateTime::Sat)));
42221 SWIG_Python_SetConstant(d, "DateTime_Inv_WeekDay",SWIG_From_int(static_cast< int >(wxDateTime::Inv_WeekDay)));
42222 SWIG_Python_SetConstant(d, "DateTime_Inv_Year",SWIG_From_int(static_cast< int >(wxDateTime::Inv_Year)));
42223 SWIG_Python_SetConstant(d, "DateTime_Name_Full",SWIG_From_int(static_cast< int >(wxDateTime::Name_Full)));
42224 SWIG_Python_SetConstant(d, "DateTime_Name_Abbr",SWIG_From_int(static_cast< int >(wxDateTime::Name_Abbr)));
42225 SWIG_Python_SetConstant(d, "DateTime_Default_First",SWIG_From_int(static_cast< int >(wxDateTime::Default_First)));
42226 SWIG_Python_SetConstant(d, "DateTime_Monday_First",SWIG_From_int(static_cast< int >(wxDateTime::Monday_First)));
42227 SWIG_Python_SetConstant(d, "DateTime_Sunday_First",SWIG_From_int(static_cast< int >(wxDateTime::Sunday_First)));
42228 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultDateTime",DefaultDateTime_get, DefaultDateTime_set);
42229 SWIG_Python_SetConstant(d, "DF_INVALID",SWIG_From_int(static_cast< int >(wxDF_INVALID)));
42230 SWIG_Python_SetConstant(d, "DF_TEXT",SWIG_From_int(static_cast< int >(wxDF_TEXT)));
42231 SWIG_Python_SetConstant(d, "DF_BITMAP",SWIG_From_int(static_cast< int >(wxDF_BITMAP)));
42232 SWIG_Python_SetConstant(d, "DF_METAFILE",SWIG_From_int(static_cast< int >(wxDF_METAFILE)));
42233 SWIG_Python_SetConstant(d, "DF_SYLK",SWIG_From_int(static_cast< int >(wxDF_SYLK)));
42234 SWIG_Python_SetConstant(d, "DF_DIF",SWIG_From_int(static_cast< int >(wxDF_DIF)));
42235 SWIG_Python_SetConstant(d, "DF_TIFF",SWIG_From_int(static_cast< int >(wxDF_TIFF)));
42236 SWIG_Python_SetConstant(d, "DF_OEMTEXT",SWIG_From_int(static_cast< int >(wxDF_OEMTEXT)));
42237 SWIG_Python_SetConstant(d, "DF_DIB",SWIG_From_int(static_cast< int >(wxDF_DIB)));
42238 SWIG_Python_SetConstant(d, "DF_PALETTE",SWIG_From_int(static_cast< int >(wxDF_PALETTE)));
42239 SWIG_Python_SetConstant(d, "DF_PENDATA",SWIG_From_int(static_cast< int >(wxDF_PENDATA)));
42240 SWIG_Python_SetConstant(d, "DF_RIFF",SWIG_From_int(static_cast< int >(wxDF_RIFF)));
42241 SWIG_Python_SetConstant(d, "DF_WAVE",SWIG_From_int(static_cast< int >(wxDF_WAVE)));
42242 SWIG_Python_SetConstant(d, "DF_UNICODETEXT",SWIG_From_int(static_cast< int >(wxDF_UNICODETEXT)));
42243 SWIG_Python_SetConstant(d, "DF_ENHMETAFILE",SWIG_From_int(static_cast< int >(wxDF_ENHMETAFILE)));
42244 SWIG_Python_SetConstant(d, "DF_FILENAME",SWIG_From_int(static_cast< int >(wxDF_FILENAME)));
42245 SWIG_Python_SetConstant(d, "DF_LOCALE",SWIG_From_int(static_cast< int >(wxDF_LOCALE)));
42246 SWIG_Python_SetConstant(d, "DF_PRIVATE",SWIG_From_int(static_cast< int >(wxDF_PRIVATE)));
42247 SWIG_Python_SetConstant(d, "DF_HTML",SWIG_From_int(static_cast< int >(wxDF_HTML)));
42248 SWIG_Python_SetConstant(d, "DF_MAX",SWIG_From_int(static_cast< int >(wxDF_MAX)));
42249 SWIG_addvarlink(SWIG_globals(),(char*)"FormatInvalid",FormatInvalid_get, FormatInvalid_set);
42250 SWIG_Python_SetConstant(d, "DataObject_Get",SWIG_From_int(static_cast< int >(wxDataObject::Get)));
42251 SWIG_Python_SetConstant(d, "DataObject_Set",SWIG_From_int(static_cast< int >(wxDataObject::Set)));
42252 SWIG_Python_SetConstant(d, "DataObject_Both",SWIG_From_int(static_cast< int >(wxDataObject::Both)));
42253 SWIG_Python_SetConstant(d, "Drag_CopyOnly",SWIG_From_int(static_cast< int >(wxDrag_CopyOnly)));
42254 SWIG_Python_SetConstant(d, "Drag_AllowMove",SWIG_From_int(static_cast< int >(wxDrag_AllowMove)));
42255 SWIG_Python_SetConstant(d, "Drag_DefaultMove",SWIG_From_int(static_cast< int >(wxDrag_DefaultMove)));
42256 SWIG_Python_SetConstant(d, "DragError",SWIG_From_int(static_cast< int >(wxDragError)));
42257 SWIG_Python_SetConstant(d, "DragNone",SWIG_From_int(static_cast< int >(wxDragNone)));
42258 SWIG_Python_SetConstant(d, "DragCopy",SWIG_From_int(static_cast< int >(wxDragCopy)));
42259 SWIG_Python_SetConstant(d, "DragMove",SWIG_From_int(static_cast< int >(wxDragMove)));
42260 SWIG_Python_SetConstant(d, "DragLink",SWIG_From_int(static_cast< int >(wxDragLink)));
42261 SWIG_Python_SetConstant(d, "DragCancel",SWIG_From_int(static_cast< int >(wxDragCancel)));
42262
42263 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
42264 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
42265 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
42266 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
42267
42268 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultVideoMode",DefaultVideoMode_get, DefaultVideoMode_set);
e9d6f3a4
RD
42269 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_None",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_None)));
42270 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_Messages",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_Messages)));
42271 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_Max",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_Max)));
704eda0c
RD
42272 SWIG_Python_SetConstant(d, "POWER_SOCKET",SWIG_From_int(static_cast< int >(wxPOWER_SOCKET)));
42273 SWIG_Python_SetConstant(d, "POWER_BATTERY",SWIG_From_int(static_cast< int >(wxPOWER_BATTERY)));
42274 SWIG_Python_SetConstant(d, "POWER_UNKNOWN",SWIG_From_int(static_cast< int >(wxPOWER_UNKNOWN)));
42275 SWIG_Python_SetConstant(d, "BATTERY_NORMAL_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_NORMAL_STATE)));
42276 SWIG_Python_SetConstant(d, "BATTERY_LOW_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_LOW_STATE)));
42277 SWIG_Python_SetConstant(d, "BATTERY_CRITICAL_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_CRITICAL_STATE)));
42278 SWIG_Python_SetConstant(d, "BATTERY_SHUTDOWN_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_SHUTDOWN_STATE)));
42279 SWIG_Python_SetConstant(d, "BATTERY_UNKNOWN_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_UNKNOWN_STATE)));
42280 PyDict_SetItemString(d, "wxEVT_POWER_SUSPENDING", PyInt_FromLong(wxEVT_POWER_SUSPENDING));
42281 PyDict_SetItemString(d, "wxEVT_POWER_SUSPENDED", PyInt_FromLong(wxEVT_POWER_SUSPENDED));
42282 PyDict_SetItemString(d, "wxEVT_POWER_SUSPEND_CANCEL", PyInt_FromLong(wxEVT_POWER_SUSPEND_CANCEL));
42283 PyDict_SetItemString(d, "wxEVT_POWER_RESUME", PyInt_FromLong(wxEVT_POWER_RESUME));
d14a1e28
RD
42284}
42285