]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_misc_wrap.cpp
Add missing platform guard.
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
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};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
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)
d55e5bfc 147#else
7449af73 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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
RD
309#include <string.h>
310
d55e5bfc
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
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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;
554f62e9 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>|...
7449af73 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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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*/
7449af73
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 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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 *
7449af73 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. */
554f62e9 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
7449af73
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;
7449af73
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 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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 }
7449af73
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 }
7449af73
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) {
7449af73
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) {
7449af73 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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 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}
d55e5bfc 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}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
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
d55e5bfc 714
554f62e9
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
554f62e9
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/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
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}
d55e5bfc 846
554f62e9
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
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 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 {
554f62e9
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;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
554f62e9
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 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
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
d55e5bfc 1000
554f62e9
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)
d55e5bfc 1004
554f62e9
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)
d55e5bfc 1008
554f62e9
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)
d55e5bfc 1012
554f62e9
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)
7449af73 1016
d55e5bfc 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
093d3ff1 1032
554f62e9 1033/* Error manipulation */
093d3ff1 1034
554f62e9
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;
d55e5bfc
RD
1041}
1042
554f62e9
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}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
093d3ff1 1053
554f62e9
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}
d55e5bfc 1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
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 {
554f62e9
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);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
c32bde28
RD
1103}
1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
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*/
7449af73 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 */
7449af73
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
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
c32bde28
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
d55e5bfc 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
d55e5bfc 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;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
d55e5bfc 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 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
d55e5bfc 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
d55e5bfc 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
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))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
d55e5bfc 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
554f62e9
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}
d55e5bfc 1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
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
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1 1845 type_init = 1;
7e63a440 1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1 1848}
d55e5bfc 1849
093d3ff1 1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
093d3ff1 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
c32bde28 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
554f62e9
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 1880}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
d55e5bfc 1903{
554f62e9
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 {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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;
d55e5bfc 1947 }
c32bde28
RD
1948}
1949
554f62e9
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 }
554f62e9 1962 return 0;
d55e5bfc
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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}
d55e5bfc 2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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 }
d55e5bfc
RD
2070}
2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
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 }
554f62e9
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
554f62e9
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 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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}
d55e5bfc 2159
554f62e9
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
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
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 {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1 2217}
d55e5bfc 2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
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
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
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}
554f62e9
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) -------- */
d55e5bfc 2465
7449af73
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_wxMetafile swig_types[94]
2561#define SWIGTYPE_p_wxMetafileDataObject swig_types[95]
2562#define SWIGTYPE_p_wxMimeTypesManager swig_types[96]
2563#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[97]
2564#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[98]
2565#define SWIGTYPE_p_wxMouseEvent swig_types[99]
2566#define SWIGTYPE_p_wxMouseState swig_types[100]
2567#define SWIGTYPE_p_wxMoveEvent swig_types[101]
2568#define SWIGTYPE_p_wxMutexGuiLocker swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotifyEvent swig_types[105]
2572#define SWIGTYPE_p_wxObject swig_types[106]
2573#define SWIGTYPE_p_wxOutputStream swig_types[107]
2574#define SWIGTYPE_p_wxPCXHandler swig_types[108]
2575#define SWIGTYPE_p_wxPNGHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNMHandler swig_types[110]
2577#define SWIGTYPE_p_wxPaintEvent swig_types[111]
2578#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaperSize swig_types[113]
2580#define SWIGTYPE_p_wxPlatformInfo swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPowerEvent swig_types[116]
2583#define SWIGTYPE_p_wxProcessEvent swig_types[117]
2584#define SWIGTYPE_p_wxPyApp swig_types[118]
2585#define SWIGTYPE_p_wxPyArtProvider swig_types[119]
2586#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[120]
2587#define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[122]
2589#define SWIGTYPE_p_wxPyDropSource swig_types[123]
2590#define SWIGTYPE_p_wxPyDropTarget swig_types[124]
2591#define SWIGTYPE_p_wxPyEvent swig_types[125]
2592#define SWIGTYPE_p_wxPyFileDropTarget swig_types[126]
2593#define SWIGTYPE_p_wxPyImageHandler swig_types[127]
2594#define SWIGTYPE_p_wxPyLog swig_types[128]
2595#define SWIGTYPE_p_wxPyProcess swig_types[129]
2596#define SWIGTYPE_p_wxPySizer swig_types[130]
2597#define SWIGTYPE_p_wxPyTextDataObject swig_types[131]
2598#define SWIGTYPE_p_wxPyTextDropTarget swig_types[132]
2599#define SWIGTYPE_p_wxPyTimer swig_types[133]
2600#define SWIGTYPE_p_wxPyTipProvider swig_types[134]
2601#define SWIGTYPE_p_wxPyValidator swig_types[135]
2602#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[136]
2603#define SWIGTYPE_p_wxRect swig_types[137]
2604#define SWIGTYPE_p_wxScrollEvent swig_types[138]
2605#define SWIGTYPE_p_wxScrollWinEvent swig_types[139]
2606#define SWIGTYPE_p_wxSetCursorEvent swig_types[140]
2607#define SWIGTYPE_p_wxShowEvent swig_types[141]
2608#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[142]
2609#define SWIGTYPE_p_wxSize swig_types[143]
2610#define SWIGTYPE_p_wxSizeEvent swig_types[144]
2611#define SWIGTYPE_p_wxSizer swig_types[145]
2612#define SWIGTYPE_p_wxSizerItem swig_types[146]
2613#define SWIGTYPE_p_wxSound swig_types[147]
2614#define SWIGTYPE_p_wxStandardPaths swig_types[148]
2615#define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxStopWatch swig_types[151]
2618#define SWIGTYPE_p_wxString swig_types[152]
2619#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[153]
2620#define SWIGTYPE_p_wxSystemOptions swig_types[154]
2621#define SWIGTYPE_p_wxSystemSettings swig_types[155]
580080c5
RD
2622#define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623#define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624#define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625#define SWIGTYPE_p_wxTextDataObject swig_types[159]
2626#define SWIGTYPE_p_wxTimeSpan swig_types[160]
2627#define SWIGTYPE_p_wxTimer swig_types[161]
2628#define SWIGTYPE_p_wxTimerEvent swig_types[162]
2629#define SWIGTYPE_p_wxTimerRunner swig_types[163]
2630#define SWIGTYPE_p_wxTipProvider swig_types[164]
2631#define SWIGTYPE_p_wxToolTip swig_types[165]
2632#define SWIGTYPE_p_wxURLDataObject swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVideoMode swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowCreateEvent swig_types[171]
2638#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDisabler swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
7449af73
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2645
093d3ff1 2646/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2647
554f62e9
RD
2648#if (PY_VERSION_HEX <= 0x02000000)
2649# if !defined(SWIG_PYTHON_CLASSIC)
2650# error "This python version requires to use swig with the '-classic' option"
2651# endif
2652#endif
2653#if (PY_VERSION_HEX <= 0x02020000)
2654# error "This python version requires to use swig with the '-nomodern' option"
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodernargs' option"
2658#endif
2659#ifndef METH_O
2660# error "This python version requires to use swig with the '-nofastunpack' option"
2661#endif
d55e5bfc 2662
093d3ff1
RD
2663/*-----------------------------------------------
2664 @(target):= _misc_.so
2665 ------------------------------------------------*/
2666#define SWIG_init init_misc_
d55e5bfc 2667
093d3ff1 2668#define SWIG_name "_misc_"
d55e5bfc 2669
554f62e9
RD
2670#define SWIGVERSION 0x010329
2671
2672
2673#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677#include <stdexcept>
2678
2679
2680namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723}
2724
2725
2726namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737}
2738
2739
093d3ff1
RD
2740#include "wx/wxPython/wxPython.h"
2741#include "wx/wxPython/pyclasses.h"
2742#include "wx/wxPython/pyistream.h"
d55e5bfc 2743
093d3ff1 2744 static const wxString wxPyEmptyString(wxEmptyString);
d55e5bfc 2745
d55e5bfc 2746
d55e5bfc 2747
554f62e9 2748 #define SWIG_From_long PyInt_FromLong
d55e5bfc
RD
2749
2750
554f62e9
RD
2751SWIGINTERNINLINE PyObject *
2752SWIG_From_int (int value)
2753{
2754 return SWIG_From_long (value);
2755}
d55e5bfc
RD
2756
2757
554f62e9
RD
2758#include <limits.h>
2759#ifndef LLONG_MIN
2760# define LLONG_MIN LONG_LONG_MIN
2761#endif
2762#ifndef LLONG_MAX
2763# define LLONG_MAX LONG_LONG_MAX
2764#endif
2765#ifndef ULLONG_MAX
2766# define ULLONG_MAX ULONG_LONG_MAX
2767#endif
d55e5bfc
RD
2768
2769
093d3ff1 2770SWIGINTERN int
554f62e9 2771SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2772{
2773 if (PyNumber_Check(obj)) {
2774 if (val) *val = PyInt_AsLong(obj);
554f62e9 2775 return SWIG_OK;
093d3ff1 2776 }
554f62e9 2777 return SWIG_TypeError;
093d3ff1
RD
2778}
2779
2780
093d3ff1 2781SWIGINTERN int
554f62e9
RD
2782SWIG_AsVal_int (PyObject * obj, int *val)
2783{
093d3ff1 2784 long v;
554f62e9
RD
2785 int res = SWIG_AsVal_long (obj, &v);
2786 if (SWIG_IsOK(res)) {
2787 if ((v < INT_MIN || v > INT_MAX)) {
2788 return SWIG_OverflowError;
093d3ff1 2789 } else {
554f62e9 2790 if (val) *val = static_cast< int >(v);
c32bde28 2791 }
554f62e9
RD
2792 }
2793 return res;
d55e5bfc
RD
2794}
2795
093d3ff1 2796 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
f78cc896 2797
093d3ff1 2798#include <wx/stockitem.h>
f78cc896 2799
093d3ff1
RD
2800 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
2801 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
2802 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
f78cc896 2803
093d3ff1 2804SWIGINTERN int
554f62e9 2805SWIG_AsVal_bool (PyObject *obj, bool *val)
093d3ff1
RD
2806{
2807 if (obj == Py_True) {
2808 if (val) *val = true;
554f62e9
RD
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
093d3ff1 2811 if (val) *val = false;
554f62e9 2812 return SWIG_OK;
093d3ff1 2813 } else {
554f62e9
RD
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
093d3ff1 2818 }
093d3ff1 2819}
d55e5bfc 2820
d55e5bfc 2821
093d3ff1 2822SWIGINTERN int
554f62e9 2823SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2824{
2825 long v = 0;
2826 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2827 return SWIG_TypeError;
d55e5bfc 2828 }
093d3ff1
RD
2829 else if (val)
2830 *val = (unsigned long)v;
554f62e9 2831 return SWIG_OK;
093d3ff1 2832}
d55e5bfc 2833
d55e5bfc 2834
554f62e9
RD
2835SWIGINTERNINLINE PyObject*
2836SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2837{
554f62e9
RD
2838 return (value > LONG_MAX) ?
2839 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2840}
d55e5bfc
RD
2841
2842
a97cefba
RD
2843 void* wxGetXDisplay()
2844 {
2845#ifdef __WXGTK__
2846 return wxGetDisplay();
2847#else
2848 return NULL;
2849#endif
2850 }
2851
2852
7449af73
RD
2853 wxWindow* FindWindowAtPointer() {
2854 wxPoint unused;
2855 return wxFindWindowAtPointer(unused);
2856 }
2857
2858
093d3ff1
RD
2859 bool wxThread_IsMain() {
2860#ifdef WXP_WITH_THREAD
2861 return wxThread::IsMain();
2862#else
2863 return true;
2864#endif
d55e5bfc 2865 }
093d3ff1 2866
554f62e9 2867SWIGINTERN void wxCaret_Destroy(wxCaret *self){
091fdbfa
RD
2868 delete self;
2869 }
d55e5bfc 2870
093d3ff1
RD
2871#include <wx/snglinst.h>
2872
2873
68350608
RD
2874#ifdef __WXMSW__
2875#include <wx/msw/private.h>
2876#include <wx/dynload.h>
2877#endif
2878
2879
2880
2881bool wxDrawWindowOnDC(wxWindow* window, const wxDC& dc
2882#if 0
2883 , int method
2884#endif
2885 )
2886{
2887#ifdef __WXMSW__
2888#if 0
2889 switch (method)
2890 {
2891 case 1:
2892 // This one only partially works. Appears to be an undocumented
2893 // "standard" convention that not all widgets adhear to. For
2894 // example, for some widgets backgrounds or non-client areas may
2895 // not be painted.
2896 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
2897 break;
2898
2899 case 2:
2900#endif
2901 // This one works much better, nearly all widgets and their
2902 // children are captured correctly[**]. Prior to the big
2903 // background erase changes that Vadim did in 2004-2005 this
2904 // method failed badly on XP with Themes activated, most native
2905 // widgets draw only partially, if at all. Without themes it
2906 // worked just like on Win2k. After those changes this method
2907 // works very well.
2908 //
2909 // ** For example the radio buttons in a wxRadioBox are not its
2910 // children by default, but you can capture it via the panel
2911 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
2912 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
2913 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
2914 PRF_ERASEBKGND | PRF_OWNED );
2915 return true;
2916#if 0
2917 break;
2918
2919 case 3:
2920 // This one is only defined in the latest SDK and is only
2921 // available on XP. MSDN says it is similar to sending WM_PRINT
2922 // so I expect that it will work similar to the above. Since it
2923 // is avaialble only on XP, it can't be compiled like this and
2924 // will have to be loaded dynamically.
2925 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
2926
2927 // fall through
2928
2929 case 4:
2930 // Use PrintWindow if available, or fallback to WM_PRINT
2931 // otherwise. Unfortunately using PrintWindow is even worse than
2932 // WM_PRINT. For most native widgets nothing is drawn to the dc
2933 // at all, with or without Themes.
2934 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
2935 static bool s_triedToLoad = false;
2936 static PrintWindow_t pfnPrintWindow = NULL;
2937 if ( !s_triedToLoad )
2938 {
2939
2940 s_triedToLoad = true;
2941 wxDynamicLibrary dllUser32(_T("user32.dll"));
2942 if ( dllUser32.IsLoaded() )
2943 {
2944 wxLogNull nolog; // Don't report errors here
2945 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
2946 }
2947 }
2948 if (pfnPrintWindow)
2949 {
2950 //printf("Using PrintWindow\n");
2951 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
2952 }
2953 else
2954 {
2955 //printf("Using WM_PRINT\n");
2956 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
2957 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
2958 PRF_ERASEBKGND | PRF_OWNED );
2959 }
2960 }
2961#endif // 0
2962#else
2963 return false;
2964#endif // __WXMSW__
2965}
2966
2967
2968
093d3ff1
RD
2969#include <wx/tipdlg.h>
2970
d55e5bfc 2971
554f62e9
RD
2972SWIGINTERNINLINE PyObject *
2973SWIG_From_size_t (size_t value)
2974{
2975 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2976}
2977
2978
093d3ff1
RD
2979class wxPyTipProvider : public wxTipProvider {
2980public:
2981 wxPyTipProvider(size_t currentTip)
2982 : wxTipProvider(currentTip) {}
2983
2984 DEC_PYCALLBACK_STRING__pure(GetTip);
2985 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
d55e5bfc
RD
2986 PYPRIVATE;
2987};
2988
093d3ff1
RD
2989IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
2990IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
d55e5bfc
RD
2991
2992
554f62e9
RD
2993SWIGINTERNINLINE int
2994SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2995{
2996 unsigned long v;
2997 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2998 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2999 return res;
3000}
3001
3002
b06b3e70 3003IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
d55e5bfc 3004
093d3ff1 3005IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
d55e5bfc 3006
093d3ff1
RD
3007wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id)
3008 : wxTimer(owner, id)
3009{
554f62e9
RD
3010 if (owner == NULL)
3011 SetOwner(this);
093d3ff1 3012}
d55e5bfc 3013
d55e5bfc 3014
554f62e9
RD
3015SWIGINTERN swig_type_info*
3016SWIG_pchar_descriptor()
3017{
3018 static int init = 0;
3019 static swig_type_info* info = 0;
3020 if (!init) {
3021 info = SWIG_TypeQuery("_p_char");
3022 init = 1;
093d3ff1 3023 }
554f62e9 3024 return info;
093d3ff1
RD
3025}
3026
3027
554f62e9
RD
3028SWIGINTERNINLINE PyObject *
3029SWIG_FromCharPtrAndSize(const char* carray, size_t size)
093d3ff1 3030{
554f62e9
RD
3031 if (carray) {
3032 if (size > INT_MAX) {
3033 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3034 return pchar_descriptor ?
3035 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3036 } else {
3037 return PyString_FromStringAndSize(carray, static_cast< int >(size));
093d3ff1
RD
3038 }
3039 } else {
554f62e9 3040 return SWIG_Py_Void();
093d3ff1 3041 }
d55e5bfc
RD
3042}
3043
3044
554f62e9
RD
3045SWIGINTERNINLINE PyObject *
3046SWIG_FromCharPtr(const char *cptr)
3047{
3048 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
c32bde28
RD
3049}
3050
554f62e9
RD
3051
3052SWIGINTERN int
3053SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
c32bde28 3054{
554f62e9
RD
3055 unsigned long v;
3056 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3057 if (SWIG_IsOK(res)) {
3058 if ((v > UINT_MAX)) {
3059 return SWIG_OverflowError;
3060 } else {
3061 if (val) *val = static_cast< unsigned int >(v);
3062 }
3063 }
3064 return res;
d55e5bfc
RD
3065}
3066
554f62e9 3067SWIGINTERN wxString wxLog_TimeStamp(){
093d3ff1
RD
3068 wxString msg;
3069 wxLog::TimeStamp(&msg);
3070 return msg;
d55e5bfc 3071 }
554f62e9 3072SWIGINTERN void wxLog_Destroy(wxLog *self){ delete self; }
7e08d4ef 3073// Make some wrappers that double any % signs so they are 'escaped'
093d3ff1
RD
3074 void wxPyLogFatalError(const wxString& msg)
3075 {
3076 wxString m(msg);
3077 m.Replace(wxT("%"), wxT("%%"));
3078 wxLogFatalError(m);
3079 }
3080
3081 void wxPyLogError(const wxString& msg)
3082 {
3083 wxString m(msg);
3084 m.Replace(wxT("%"), wxT("%%"));
3085 wxLogError(m);
3086 }
d55e5bfc 3087
093d3ff1
RD
3088 void wxPyLogWarning(const wxString& msg)
3089 {
3090 wxString m(msg);
3091 m.Replace(wxT("%"), wxT("%%"));
3092 wxLogWarning(m);
3093 }
d55e5bfc 3094
093d3ff1
RD
3095 void wxPyLogMessage(const wxString& msg)
3096 {
3097 wxString m(msg);
3098 m.Replace(wxT("%"), wxT("%%"));
3099 wxLogMessage(m);
3100 }
d55e5bfc 3101
093d3ff1
RD
3102 void wxPyLogInfo(const wxString& msg)
3103 {
3104 wxString m(msg);
3105 m.Replace(wxT("%"), wxT("%%"));
3106 wxLogInfo(m);
3107 }
d55e5bfc 3108
093d3ff1
RD
3109 void wxPyLogDebug(const wxString& msg)
3110 {
3111 wxString m(msg);
3112 m.Replace(wxT("%"), wxT("%%"));
3113 wxLogDebug(m);
3114 }
d55e5bfc 3115
093d3ff1
RD
3116 void wxPyLogVerbose(const wxString& msg)
3117 {
3118 wxString m(msg);
3119 m.Replace(wxT("%"), wxT("%%"));
3120 wxLogVerbose(m);
3121 }
d55e5bfc 3122
093d3ff1
RD
3123 void wxPyLogStatus(const wxString& msg)
3124 {
3125 wxString m(msg);
3126 m.Replace(wxT("%"), wxT("%%"));
3127 wxLogStatus(m);
3128 }
d55e5bfc 3129
093d3ff1
RD
3130 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
3131 {
3132 wxString m(msg);
3133 m.Replace(wxT("%"), wxT("%%"));
3134 wxLogStatus(pFrame, m);
3135 }
d55e5bfc 3136
093d3ff1
RD
3137 void wxPyLogSysError(const wxString& msg)
3138 {
3139 wxString m(msg);
3140 m.Replace(wxT("%"), wxT("%%"));
3141 wxLogSysError(m);
3142 }
d55e5bfc 3143
093d3ff1
RD
3144 void wxPyLogGeneric(unsigned long level, const wxString& msg)
3145 {
3146 wxString m(msg);
3147 m.Replace(wxT("%"), wxT("%%"));
3148 wxLogGeneric(level, m);
3149 }
a07a67e6 3150
093d3ff1
RD
3151 void wxPyLogTrace(unsigned long mask, const wxString& msg)
3152 {
3153 wxString m(msg);
3154 m.Replace(wxT("%"), wxT("%%"));
3155 wxLogTrace(mask, m);
d55e5bfc 3156 }
093d3ff1
RD
3157
3158 void wxPyLogTrace(const wxString& mask, const wxString& msg)
3159 {
3160 wxString m(msg);
3161 m.Replace(wxT("%"), wxT("%%"));
3162 wxLogTrace(mask, m);
d55e5bfc 3163 }
093d3ff1 3164
d55e5bfc
RD
3165
3166
093d3ff1
RD
3167// A wxLog class that can be derived from in wxPython
3168class wxPyLog : public wxLog {
d55e5bfc 3169public:
093d3ff1 3170 wxPyLog() : wxLog() {}
d55e5bfc 3171
093d3ff1
RD
3172 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
3173 bool found;
5a446332 3174 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3175 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
3176 PyObject* s = wx2PyString(szString);
3177 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
3178 Py_DECREF(s);
d55e5bfc 3179 }
093d3ff1
RD
3180 wxPyEndBlockThreads(blocked);
3181 if (! found)
3182 wxLog::DoLog(level, szString, t);
d55e5bfc 3183 }
d55e5bfc 3184
093d3ff1
RD
3185 virtual void DoLogString(const wxChar *szString, time_t t) {
3186 bool found;
5a446332 3187 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3188 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
3189 PyObject* s = wx2PyString(szString);
3190 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
3191 Py_DECREF(s);
d55e5bfc 3192 }
093d3ff1
RD
3193 wxPyEndBlockThreads(blocked);
3194 if (! found)
3195 wxLog::DoLogString(szString, t);
3196 }
d55e5bfc 3197
b06b3e70 3198 DEC_PYCALLBACK_VOID_(Flush);
d55e5bfc
RD
3199 PYPRIVATE;
3200};
b06b3e70 3201IMP_PYCALLBACK_VOID_(wxPyLog, wxLog, Flush);
d55e5bfc 3202
d55e5bfc
RD
3203
3204
093d3ff1
RD
3205
3206IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
d55e5bfc 3207
d55e5bfc 3208
093d3ff1 3209#include <wx/joystick.h>
d55e5bfc 3210
d55e5bfc 3211
093d3ff1
RD
3212#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
3213// A C++ stub class for wxJoystick for platforms that don't have it.
3214class wxJoystick : public wxObject {
3215public:
3216 wxJoystick(int joystick = wxJOYSTICK1) {
5a446332 3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3218 PyErr_SetString(PyExc_NotImplementedError,
3219 "wxJoystick is not available on this platform.");
3220 wxPyEndBlockThreads(blocked);
d55e5bfc 3221 }
093d3ff1
RD
3222 wxPoint GetPosition() { return wxPoint(-1,-1); }
3223 int GetZPosition() { return -1; }
3224 int GetButtonState() { return -1; }
3225 int GetPOVPosition() { return -1; }
3226 int GetPOVCTSPosition() { return -1; }
3227 int GetRudderPosition() { return -1; }
3228 int GetUPosition() { return -1; }
3229 int GetVPosition() { return -1; }
3230 int GetMovementThreshold() { return -1; }
3231 void SetMovementThreshold(int threshold) {}
d55e5bfc 3232
093d3ff1
RD
3233 bool IsOk(void) { return false; }
3234 int GetNumberJoysticks() { return -1; }
3235 int GetManufacturerId() { return -1; }
3236 int GetProductId() { return -1; }
3237 wxString GetProductName() { return wxEmptyString; }
3238 int GetXMin() { return -1; }
3239 int GetYMin() { return -1; }
3240 int GetZMin() { return -1; }
3241 int GetXMax() { return -1; }
3242 int GetYMax() { return -1; }
3243 int GetZMax() { return -1; }
3244 int GetNumberButtons() { return -1; }
3245 int GetNumberAxes() { return -1; }
3246 int GetMaxButtons() { return -1; }
3247 int GetMaxAxes() { return -1; }
3248 int GetPollingMin() { return -1; }
3249 int GetPollingMax() { return -1; }
3250 int GetRudderMin() { return -1; }
3251 int GetRudderMax() { return -1; }
3252 int GetUMin() { return -1; }
3253 int GetUMax() { return -1; }
3254 int GetVMin() { return -1; }
3255 int GetVMax() { return -1; }
d55e5bfc 3256
093d3ff1
RD
3257 bool HasRudder() { return false; }
3258 bool HasZ() { return false; }
3259 bool HasU() { return false; }
3260 bool HasV() { return false; }
3261 bool HasPOV() { return false; }
3262 bool HasPOV4Dir() { return false; }
3263 bool HasPOVCTS() { return false; }
d55e5bfc 3264
093d3ff1
RD
3265 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
3266 bool ReleaseCapture() { return false; }
3267};
3268#endif
d55e5bfc 3269
6923d0a9 3270
093d3ff1 3271#include <wx/sound.h>
6923d0a9 3272
6923d0a9 3273
093d3ff1
RD
3274#if !wxUSE_SOUND
3275// A C++ stub class for wxWave for platforms that don't have it.
3276class wxSound : public wxObject
6923d0a9
RD
3277{
3278public:
093d3ff1 3279 wxSound() {
5a446332 3280 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3281 PyErr_SetString(PyExc_NotImplementedError,
3282 "wxSound is not available on this platform.");
3283 wxPyEndBlockThreads(blocked);
3284 }
3285 wxSound(const wxString&/*, bool*/) {
5a446332 3286 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3287 PyErr_SetString(PyExc_NotImplementedError,
3288 "wxSound is not available on this platform.");
3289 wxPyEndBlockThreads(blocked);
3290 }
3291 wxSound(int, const wxByte*) {
5a446332 3292 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3293 PyErr_SetString(PyExc_NotImplementedError,
3294 "wxSound is not available on this platform.");
3295 wxPyEndBlockThreads(blocked);
3296 }
6923d0a9 3297
093d3ff1 3298 ~wxSound() {};
6923d0a9 3299
093d3ff1
RD
3300 bool Create(const wxString&/*, bool*/) { return false; }
3301 bool Create(int, const wxByte*) { return false; };
3302 bool IsOk() { return false; };
3303 bool Play(unsigned) const { return false; }
3304 static bool Play(const wxString&, unsigned) { return false; }
3305 static void Stop() {}
6923d0a9 3306};
093d3ff1 3307
6923d0a9
RD
3308#endif
3309
554f62e9 3310SWIGINTERN wxSound *new_wxSound(wxString const &fileName=wxPyEmptyString){
093d3ff1
RD
3311 if (fileName.Length() == 0)
3312 return new wxSound;
3313 else
3314 return new wxSound(fileName);
3315 }
554f62e9 3316SWIGINTERN wxSound *new_wxSound(PyObject *data){
093d3ff1
RD
3317 unsigned char* buffer; int size;
3318 wxSound *sound = NULL;
3319
5a446332 3320 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3321 if (!PyArg_Parse(data, "t#", &buffer, &size))
3322 goto done;
3323 sound = new wxSound(size, buffer);
3324 done:
d55e5bfc 3325 wxPyEndBlockThreads(blocked);
093d3ff1 3326 return sound;
d55e5bfc 3327 }
554f62e9 3328SWIGINTERN bool wxSound_CreateFromData(wxSound *self,PyObject *data){
093d3ff1
RD
3329 #ifndef __WXMAC__
3330 unsigned char* buffer;
3331 int size;
3332 bool rv = false;
c1cb24a4 3333
5a446332 3334 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3335 if (!PyArg_Parse(data, "t#", &buffer, &size))
3336 goto done;
3337 rv = self->Create(size, buffer);
3338 done:
3339 wxPyEndBlockThreads(blocked);
3340 return rv;
3341 #else
5a446332 3342 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3343 PyErr_SetString(PyExc_NotImplementedError,
3344 "Create from data is not available on this platform.");
3345 wxPyEndBlockThreads(blocked);
3346 return false;
3347 #endif
3348 }
c1cb24a4 3349
093d3ff1
RD
3350#include <wx/mimetype.h>
3351
554f62e9 3352SWIGINTERN PyObject *wxFileType_GetMimeType(wxFileType *self){
093d3ff1
RD
3353 wxString str;
3354 if (self->GetMimeType(&str))
3355 return wx2PyString(str);
3356 else
3357 RETURN_NONE();
8fb0e70a 3358 }
554f62e9 3359SWIGINTERN PyObject *wxFileType_GetMimeTypes(wxFileType *self){
093d3ff1
RD
3360 wxArrayString arr;
3361 if (self->GetMimeTypes(arr))
3362 return wxArrayString2PyList_helper(arr);
3363 else
3364 RETURN_NONE();
3365 }
554f62e9 3366SWIGINTERN PyObject *wxFileType_GetExtensions(wxFileType *self){
093d3ff1
RD
3367 wxArrayString arr;
3368 if (self->GetExtensions(arr))
3369 return wxArrayString2PyList_helper(arr);
3370 else
3371 RETURN_NONE();
3372 }
554f62e9 3373SWIGINTERN wxIcon *wxFileType_GetIcon(wxFileType *self){
093d3ff1
RD
3374 wxIconLocation loc;
3375 if (self->GetIcon(&loc))
3376 return new wxIcon(loc);
3377 else
3378 return NULL;
3379 }
554f62e9 3380SWIGINTERN PyObject *wxFileType_GetIconInfo(wxFileType *self){
093d3ff1
RD
3381 wxIconLocation loc;
3382 if (self->GetIcon(&loc)) {
3383 wxString iconFile = loc.GetFileName();
3384 int iconIndex = -1;
d55e5bfc 3385
093d3ff1 3386 iconIndex = loc.GetIndex();
d55e5bfc 3387
093d3ff1 3388 // Make a tuple and put the values in it
5a446332 3389 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3390 PyObject* tuple = PyTuple_New(3);
3391 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
3392 wxT("wxIcon"), true));
3393 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
3394 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
3395 wxPyEndBlockThreads(blocked);
3396 return tuple;
3397 }
3398 else
3399 RETURN_NONE();
3400 }
554f62e9 3401SWIGINTERN PyObject *wxFileType_GetDescription(wxFileType *self){
093d3ff1
RD
3402 wxString str;
3403 if (self->GetDescription(&str))
3404 return wx2PyString(str);
3405 else
3406 RETURN_NONE();
3407 }
554f62e9 3408SWIGINTERN PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3409 wxString str;
3410 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
3411 return wx2PyString(str);
3412 else
3413 RETURN_NONE();
3414 }
554f62e9 3415SWIGINTERN PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3416 wxString str;
3417 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
3418 return wx2PyString(str);
3419 else
3420 RETURN_NONE();
3421 }
554f62e9 3422SWIGINTERN PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3423 wxArrayString verbs;
3424 wxArrayString commands;
3425 if (self->GetAllCommands(&verbs, &commands,
3426 wxFileType::MessageParameters(filename, mimetype))) {
5a446332 3427 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3428 PyObject* tuple = PyTuple_New(2);
3429 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
3430 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
3431 wxPyEndBlockThreads(blocked);
3432 return tuple;
3433 }
3434 else
3435 RETURN_NONE();
3436 }
554f62e9 3437SWIGINTERN wxString wxFileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype=wxPyEmptyString){
093d3ff1
RD
3438 return wxFileType::ExpandCommand(command,
3439 wxFileType::MessageParameters(filename, mimetype));
3440 }
554f62e9 3441SWIGINTERN PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
093d3ff1
RD
3442 wxArrayString arr;
3443 self->EnumAllFileTypes(arr);
3444 return wxArrayString2PyList_helper(arr);
3445 }
d55e5bfc 3446
093d3ff1 3447#include <wx/artprov.h>
d55e5bfc 3448
093d3ff1
RD
3449 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
3450 static const wxString wxPyART_MENU(wxART_MENU);
3451 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
3452 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
3453 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
3454 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
3455 static const wxString wxPyART_BUTTON(wxART_BUTTON);
3456 static const wxString wxPyART_OTHER(wxART_OTHER);
3457 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
3458 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
3459 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
3460 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
3461 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
3462 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
3463 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
3464 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
3465 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
3466 static const wxString wxPyART_GO_UP(wxART_GO_UP);
3467 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
3468 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
3469 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
3470 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
68350608
RD
3471 static const wxString wxPyART_FILE_SAVE(wxART_FILE_SAVE);
3472 static const wxString wxPyART_FILE_SAVE_AS(wxART_FILE_SAVE_AS);
093d3ff1
RD
3473 static const wxString wxPyART_PRINT(wxART_PRINT);
3474 static const wxString wxPyART_HELP(wxART_HELP);
3475 static const wxString wxPyART_TIP(wxART_TIP);
3476 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
3477 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
3478 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
3479 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
3480 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
3481 static const wxString wxPyART_CDROM(wxART_CDROM);
3482 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
3483 static const wxString wxPyART_FOLDER(wxART_FOLDER);
3484 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
3485 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
3486 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
3487 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
3488 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
3489 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
3490 static const wxString wxPyART_ERROR(wxART_ERROR);
3491 static const wxString wxPyART_QUESTION(wxART_QUESTION);
3492 static const wxString wxPyART_WARNING(wxART_WARNING);
3493 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
3494 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
68350608
RD
3495 static const wxString wxPyART_COPY(wxART_COPY);
3496 static const wxString wxPyART_CUT(wxART_CUT);
3497 static const wxString wxPyART_PASTE(wxART_PASTE);
3498 static const wxString wxPyART_DELETE(wxART_DELETE);
a187dc0b 3499 static const wxString wxPyART_NEW(wxART_NEW);
68350608
RD
3500 static const wxString wxPyART_UNDO(wxART_UNDO);
3501 static const wxString wxPyART_REDO(wxART_REDO);
3502 static const wxString wxPyART_QUIT(wxART_QUIT);
3503 static const wxString wxPyART_FIND(wxART_FIND);
3504 static const wxString wxPyART_FIND_AND_REPLACE(wxART_FIND_AND_REPLACE);
093d3ff1
RD
3505 // Python aware wxArtProvider
3506class wxPyArtProvider : public wxArtProvider {
3507public:
d55e5bfc 3508
093d3ff1
RD
3509 virtual wxBitmap CreateBitmap(const wxArtID& id,
3510 const wxArtClient& client,
3511 const wxSize& size) {
3512 wxBitmap rval = wxNullBitmap;
5a446332 3513 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3514 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
3515 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
3516 PyObject* ro;
3517 wxBitmap* ptr;
3518 PyObject* s1, *s2;
3519 s1 = wx2PyString(id);
3520 s2 = wx2PyString(client);
3521 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
3522 Py_DECREF(so);
3523 Py_DECREF(s1);
3524 Py_DECREF(s2);
3525 if (ro) {
3526 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
3527 rval = *ptr;
3528 Py_DECREF(ro);
3529 }
3530 }
3531 wxPyEndBlockThreads(blocked);
3532 return rval;
d55e5bfc 3533 }
d55e5bfc 3534
093d3ff1
RD
3535 PYPRIVATE;
3536};
d55e5bfc 3537
554f62e9 3538SWIGINTERN void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d55e5bfc
RD
3539
3540
d55e5bfc 3541
093d3ff1 3542 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
e9d6f3a4 3543 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3544 PyObject* ret = PyTuple_New(3);
3545 if (ret) {
3546 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
3547 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
3548 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
3549 }
e9d6f3a4 3550 wxPyEndBlockThreads(blocked);
093d3ff1
RD
3551 return ret;
3552 }
d55e5bfc 3553
554f62e9 3554SWIGINTERN PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
093d3ff1
RD
3555 bool cont;
3556 long index = 0;
3557 wxString value;
7e63a440 3558
093d3ff1
RD
3559 cont = self->GetFirstGroup(value, index);
3560 return __EnumerationHelper(cont, value, index);
3561 }
554f62e9 3562SWIGINTERN PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
093d3ff1
RD
3563 bool cont;
3564 wxString value;
7e63a440 3565
093d3ff1
RD
3566 cont = self->GetNextGroup(value, index);
3567 return __EnumerationHelper(cont, value, index);
3568 }
554f62e9 3569SWIGINTERN PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
093d3ff1
RD
3570 bool cont;
3571 long index = 0;
3572 wxString value;
7e63a440 3573
093d3ff1
RD
3574 cont = self->GetFirstEntry(value, index);
3575 return __EnumerationHelper(cont, value, index);
3576 }
554f62e9 3577SWIGINTERN PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
093d3ff1
RD
3578 bool cont;
3579 wxString value;
d55e5bfc 3580
093d3ff1
RD
3581 cont = self->GetNextEntry(value, index);
3582 return __EnumerationHelper(cont, value, index);
3583 }
554f62e9 3584SWIGINTERN long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal=0){
093d3ff1
RD
3585 long rv;
3586 self->Read(key, &rv, defaultVal);
3587 return rv;
3588 }
d55e5bfc 3589
093d3ff1 3590SWIGINTERN int
554f62e9 3591SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3592{
3593 if (PyNumber_Check(obj)) {
3594 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3595 return SWIG_OK;
d55e5bfc 3596 }
554f62e9 3597 return SWIG_TypeError;
d55e5bfc
RD
3598}
3599
554f62e9 3600SWIGINTERN double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal=0.0){
093d3ff1
RD
3601 double rv;
3602 self->Read(key, &rv, defaultVal);
3603 return rv;
3604 }
d55e5bfc 3605
554f62e9 3606 #define SWIG_From_double PyFloat_FromDouble
d55e5bfc 3607
554f62e9 3608SWIGINTERN bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal=false){
093d3ff1
RD
3609 bool rv;
3610 self->Read(key, &rv, defaultVal);
3611 return rv;
3612 }
d55e5bfc 3613
093d3ff1 3614#include <wx/datetime.h>
d55e5bfc 3615
fef4c27a
RD
3616 static const wxString wxPyDefaultDateTimeFormat(wxDefaultDateTimeFormat);
3617 static const wxString wxPyDefaultTimeSpanFormat(wxDefaultTimeSpanFormat);
d55e5bfc 3618
093d3ff1 3619#define LOCAL_TZ wxDateTime::Local
d55e5bfc 3620
554f62e9 3621SWIGINTERN PyObject *wxDateTime_GetAmPmStrings(){
b9d6a5f3
RD
3622 wxString am;
3623 wxString pm;
3624 wxDateTime::GetAmPmStrings(&am, &pm);
5a446332 3625 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b9d6a5f3
RD
3626 PyObject* tup = PyTuple_New(2);
3627 PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
3628 PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
3629 wxPyEndBlockThreads(blocked);
3630 return tup;
3631 }
093d3ff1 3632
554f62e9
RD
3633SWIGINTERNINLINE PyObject *
3634SWIG_From_unsigned_SS_int (unsigned int value)
3635{
3636 return SWIG_From_unsigned_SS_long (value);
3637}
d55e5bfc 3638
554f62e9
RD
3639SWIGINTERN wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
3640SWIGINTERN wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
3641SWIGINTERN wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
3642SWIGINTERN wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
3643SWIGINTERN wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
3644SWIGINTERN bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3645 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
3646 return (*self < *other);
3647 }
554f62e9 3648SWIGINTERN bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3649 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
3650 return (*self <= *other);
3651 }
554f62e9 3652SWIGINTERN bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3653 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
3654 return (*self > *other);
3655 }
554f62e9 3656SWIGINTERN bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3657 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
3658 return (*self >= *other);
3659 }
554f62e9 3660SWIGINTERN bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3661 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
3662 return (*self == *other);
3663 }
554f62e9 3664SWIGINTERN bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
093d3ff1
RD
3665 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
3666 return (*self != *other);
3667 }
554f62e9 3668SWIGINTERN int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
093d3ff1
RD
3669 const wxChar* rv;
3670 const wxChar* _date = date;
3671 rv = self->ParseRfc822Date(_date);
3672 if (rv == NULL) return -1;
3673 return rv - _date;
3674 }
554f62e9 3675SWIGINTERN int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format=wxPyDefaultDateTimeFormat,wxDateTime const &dateDef=wxDefaultDateTime){
093d3ff1
RD
3676 const wxChar* rv;
3677 const wxChar* _date = date;
3678 rv = self->ParseFormat(_date, format, dateDef);
3679 if (rv == NULL) return -1;
3680 return rv - _date;
3681 }
554f62e9 3682SWIGINTERN int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
093d3ff1
RD
3683 const wxChar* rv;
3684 const wxChar* _datetime = datetime;
3685 rv = self->ParseDateTime(_datetime);
3686 if (rv == NULL) return -1;
3687 return rv - _datetime;
3688 }
554f62e9 3689SWIGINTERN int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
093d3ff1
RD
3690 const wxChar* rv;
3691 const wxChar* _date = date;
3692 rv = self->ParseDate(_date);
3693 if (rv == NULL) return -1;
3694 return rv - _date;
3695 }
554f62e9 3696SWIGINTERN int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
093d3ff1
RD
3697 const wxChar* rv;
3698 const wxChar* _time = time;
3699 rv = self->ParseTime(_time);
3700 if (rv == NULL) return -1;
3701 return rv - _time;
3702 }
554f62e9
RD
3703SWIGINTERN wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
3704SWIGINTERN wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
3705SWIGINTERN wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
3706SWIGINTERN wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
3707SWIGINTERN bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
3708SWIGINTERN bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
3709SWIGINTERN bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
3710SWIGINTERN bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
3711SWIGINTERN bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
3712SWIGINTERN bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
3713SWIGINTERN wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
3714SWIGINTERN wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
3715SWIGINTERN wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
3716SWIGINTERN wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
3717SWIGINTERN bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
3718SWIGINTERN bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3719
093d3ff1 3720#include <wx/dataobj.h>
d55e5bfc 3721
554f62e9 3722SWIGINTERN PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir=wxDataObject::Get){
093d3ff1
RD
3723 size_t count = self->GetFormatCount(dir);
3724 wxDataFormat* formats = new wxDataFormat[count];
3725 self->GetAllFormats(formats, dir);
d55e5bfc 3726
5a446332 3727 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3728 PyObject* list = PyList_New(count);
3729 for (size_t i=0; i<count; i++) {
3730 wxDataFormat* format = new wxDataFormat(formats[i]);
3731 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
9d7dfdff 3732 PyList_SET_ITEM(list, i, obj); // PyList_SET_ITEM steals a reference
093d3ff1
RD
3733 }
3734 wxPyEndBlockThreads(blocked);
3735 delete [] formats;
3736 return list;
3737 }
554f62e9 3738SWIGINTERN PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
093d3ff1
RD
3739 PyObject* rval = NULL;
3740 size_t size = self->GetDataSize(format);
5a446332 3741 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3742 if (size) {
3743 char* buf = new char[size];
3744 if (self->GetDataHere(format, buf))
3745 rval = PyString_FromStringAndSize(buf, size);
3746 delete [] buf;
3747 }
3748 if (! rval) {
3749 rval = Py_None;
3750 Py_INCREF(rval);
3751 }
3752 wxPyEndBlockThreads(blocked);
3753 return rval;
3754 }
554f62e9 3755SWIGINTERN bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
093d3ff1 3756 bool rval;
5a446332 3757 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3758 if (PyString_Check(data)) {
3759 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
3760 }
3761 else {
3762 // raise a TypeError if not a string
3763 PyErr_SetString(PyExc_TypeError, "String expected.");
3764 rval = false;
3765 }
3766 wxPyEndBlockThreads(blocked);
3767 return rval;
3768 }
554f62e9 3769SWIGINTERN PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
093d3ff1
RD
3770 PyObject* rval = NULL;
3771 size_t size = self->GetDataSize();
5a446332 3772 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3773 if (size) {
3774 char* buf = new char[size];
3775 if (self->GetDataHere(buf))
3776 rval = PyString_FromStringAndSize(buf, size);
3777 delete [] buf;
3778 }
3779 if (! rval) {
3780 rval = Py_None;
3781 Py_INCREF(rval);
3782 }
3783 wxPyEndBlockThreads(blocked);
3784 return rval;
3785 }
554f62e9 3786SWIGINTERN bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
093d3ff1 3787 bool rval;
5a446332 3788 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3789 if (PyString_Check(data)) {
3790 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
3791 }
3792 else {
3793 // raise a TypeError if not a string
3794 PyErr_SetString(PyExc_TypeError, "String expected.");
3795 rval = false;
3796 }
3797 wxPyEndBlockThreads(blocked);
3798 return rval;
3799 }
3800 // Create a new class for wxPython to use
3801class wxPyDataObjectSimple : public wxDataObjectSimple {
3802public:
3803 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
3804 : wxDataObjectSimple(format) {}
d55e5bfc 3805
093d3ff1
RD
3806 DEC_PYCALLBACK_SIZET__const(GetDataSize);
3807 bool GetDataHere(void *buf) const;
5d9dedfe 3808 bool SetData(size_t len, const void *buf);
093d3ff1
RD
3809 PYPRIVATE;
3810};
d55e5bfc 3811
093d3ff1 3812IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
d55e5bfc 3813
093d3ff1
RD
3814bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
3815 // We need to get the data for this object and write it to buf. I think
3816 // the best way to do this for wxPython is to have the Python method
3817 // return either a string or None and then act appropriately with the
3818 // C++ version.
d55e5bfc 3819
093d3ff1 3820 bool rval = false;
5a446332 3821 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3822 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
3823 PyObject* ro;
3824 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
3825 if (ro) {
3826 rval = (ro != Py_None && PyString_Check(ro));
3827 if (rval)
3828 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
3829 Py_DECREF(ro);
3830 }
d55e5bfc 3831 }
093d3ff1
RD
3832 wxPyEndBlockThreads(blocked);
3833 return rval;
d55e5bfc
RD
3834}
3835
5d9dedfe 3836bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) {
093d3ff1
RD
3837 // For this one we simply need to make a string from buf and len
3838 // and send it to the Python method.
3839 bool rval = false;
5a446332 3840 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3841 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
3842 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
3843 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
3844 Py_DECREF(data);
d55e5bfc 3845 }
093d3ff1
RD
3846 wxPyEndBlockThreads(blocked);
3847 return rval;
d55e5bfc
RD
3848}
3849
093d3ff1
RD
3850 // Create a new class for wxPython to use
3851class wxPyTextDataObject : public wxTextDataObject {
3852public:
3853 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
3854 : wxTextDataObject(text) {}
3855
3856 DEC_PYCALLBACK_SIZET__const(GetTextLength);
3857 DEC_PYCALLBACK_STRING__const(GetText);
3858 DEC_PYCALLBACK__STRING(SetText);
3859 PYPRIVATE;
3860};
d55e5bfc 3861
093d3ff1
RD
3862IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
3863IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
3864IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
3865
3866
3867 // Create a new class for wxPython to use
3868class wxPyBitmapDataObject : public wxBitmapDataObject {
3869public:
3870 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
3871 : wxBitmapDataObject(bitmap) {}
3872
3873 wxBitmap GetBitmap() const;
3874 void SetBitmap(const wxBitmap& bitmap);
3875 PYPRIVATE;
3876};
3877
3878wxBitmap wxPyBitmapDataObject::GetBitmap() const {
3879 wxBitmap* rval = &wxNullBitmap;
5a446332 3880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3881 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
3882 PyObject* ro;
3883 wxBitmap* ptr;
3884 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
3885 if (ro) {
3886 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
3887 rval = ptr;
3888 Py_DECREF(ro);
3889 }
3890 }
3891 wxPyEndBlockThreads(blocked);
3892 return *rval;
3893}
3894
3895void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
5a446332 3896 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3897 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
3898 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
3899 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
3900 Py_DECREF(bo);
3901 }
3902 wxPyEndBlockThreads(blocked);
3903}
3904
554f62e9 3905SWIGINTERN wxCustomDataObject *new_wxCustomDataObject__SWIG_1(wxString const &formatName){
fef4c27a
RD
3906 return new wxCustomDataObject(wxDataFormat(formatName));
3907 }
554f62e9 3908SWIGINTERN bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
093d3ff1 3909 bool rval;
5a446332 3910 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3911 if (PyString_Check(data)) {
3912 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
3913 }
3914 else {
3915 // raise a TypeError if not a string
3916 PyErr_SetString(PyExc_TypeError, "String expected.");
3917 rval = false;
3918 }
3919 wxPyEndBlockThreads(blocked);
3920 return rval;
3921 }
554f62e9 3922SWIGINTERN PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
093d3ff1 3923 PyObject* obj;
5a446332 3924 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3925 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
3926 wxPyEndBlockThreads(blocked);
3927 return obj;
3928 }
3929
3930#include <wx/metafile.h>
3931
3932
3933IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
3934
3935
3936IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
3937IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
3938IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
3939IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
3940IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
3941
3942
3943class wxPyTextDropTarget : public wxTextDropTarget {
3944public:
3945 wxPyTextDropTarget() {}
3946
3947 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
3948
3949 DEC_PYCALLBACK__(OnLeave);
3950 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3951 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3952 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3953 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3954
3955 PYPRIVATE;
3956};
3957
3958IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
3959IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
3960IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
3961IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
3962IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
3963IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
3964
3965
3966
3967class wxPyFileDropTarget : public wxFileDropTarget {
3968public:
3969 wxPyFileDropTarget() {}
3970
3971 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
3972
3973 DEC_PYCALLBACK__(OnLeave);
3974 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
3975 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
3976 DEC_PYCALLBACK_DR_2WXCDR(OnData);
3977 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
3978
3979 PYPRIVATE;
3980};
3981
3982bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
3983 const wxArrayString& filenames) {
3984 bool rval = false;
5a446332 3985 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
3986 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
3987 PyObject* list = wxArrayString2PyList_helper(filenames);
3988 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
3989 Py_DECREF(list);
3990 }
3991 wxPyEndBlockThreads(blocked);
3992 return rval;
3993}
3994
3995
3996
3997IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
3998IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
3999IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
4000IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
4001IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
4002
4003
4004
4005
554f62e9 4006SWIGINTERN bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
093d3ff1
RD
4007
4008#include <wx/display.h>
26c4d26f 4009#include <wx/vidmode.h>
093d3ff1 4010
554f62e9
RD
4011SWIGINTERN bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
4012SWIGINTERN bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
093d3ff1 4013
093d3ff1 4014#if !wxUSE_DISPLAY
f52cbe90 4015const wxVideoMode wxDefaultVideoMode;
093d3ff1
RD
4016#endif
4017
554f62e9 4018SWIGINTERN PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
f52cbe90 4019#if wxUSE_DISPLAY
093d3ff1
RD
4020 PyObject* pyList = NULL;
4021 wxArrayVideoModes arr = self->GetModes(mode);
5a446332 4022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1 4023 pyList = PyList_New(0);
f52cbe90
RD
4024 for (size_t i=0; i < arr.GetCount(); i++)
4025 {
093d3ff1
RD
4026 wxVideoMode* m = new wxVideoMode(arr.Item(i));
4027 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
4028 PyList_Append(pyList, pyObj);
4029 Py_DECREF(pyObj);
4030 }
4031 wxPyEndBlockThreads(blocked);
4032 return pyList;
f52cbe90
RD
4033#else
4034 wxPyRaiseNotImplemented();
4035 return NULL;
4036#endif
4037 }
4038SWIGINTERN wxVideoMode wxDisplay_GetCurrentMode(wxDisplay const *self){
4039#if wxUSE_DISPLAY
4040 return self->GetCurrentMode();
4041#else
4042 wxPyRaiseNotImplemented();
4043 return wxDefaultVideoMode;
4044#endif
4045 }
4046SWIGINTERN bool wxDisplay_ChangeMode(wxDisplay *self,wxVideoMode const &mode=wxDefaultVideoMode){
4047#if wxUSE_DISPLAY
4048 return self->ChangeMode(mode);
4049#else
4050 wxPyRaiseNotImplemented();
4051 return false;
4052#endif
4053 }
4054SWIGINTERN void wxDisplay_ResetMode(wxDisplay *self){
4055#if wxUSE_DISPLAY
4056 self->ResetMode();
4057#else
4058 wxPyRaiseNotImplemented();
4059#endif
093d3ff1
RD
4060 }
4061
4062#include <wx/stdpaths.h>
4063
554f62e9 4064SWIGINTERN wxStandardPaths *wxStandardPaths_Get(){
093d3ff1
RD
4065 return (wxStandardPaths*) &wxStandardPaths::Get();
4066 }
554f62e9
RD
4067SWIGINTERN void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
4068SWIGINTERN wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
704eda0c 4069
704eda0c
RD
4070#ifndef wxHAS_POWER_EVENTS
4071// Dummy class and other definitions for platforms that don't have them
4072
b850e7f3
RD
4073// See wxPython_int.h for wxPowerEvent
4074
704eda0c
RD
4075enum {
4076 wxEVT_POWER_SUSPENDING,
4077 wxEVT_POWER_SUSPENDED,
4078 wxEVT_POWER_SUSPEND_CANCEL,
4079 wxEVT_POWER_RESUME,
4080};
4081
4082wxPowerType wxGetPowerType() { return wxPOWER_UNKNOWN; }
4083wxBatteryState wxGetBatteryState() { return wxBATTERY_UNKNOWN_STATE; }
4084
4085#endif
4086
b39fe951
RD
4087
4088#include <wx/aboutdlg.h>
4089
093d3ff1
RD
4090#ifdef __cplusplus
4091extern "C" {
4092#endif
554f62e9
RD
4093SWIGINTERN PyObject *_wrap_SystemSettings_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj = 0;
4095 wxSystemColour arg1 ;
4096 wxColour result;
4097 int val1 ;
4098 int ecode1 = 0 ;
4099 PyObject * obj0 = 0 ;
4100 char * kwnames[] = {
4101 (char *) "index", NULL
4102 };
4103
4104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) SWIG_fail;
4105 ecode1 = SWIG_AsVal_int(obj0, &val1);
4106 if (!SWIG_IsOK(ecode1)) {
4107 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetColour" "', expected argument " "1"" of type '" "wxSystemColour""'");
4108 }
4109 arg1 = static_cast< wxSystemColour >(val1);
4110 {
4111 if (!wxPyCheckForApp()) SWIG_fail;
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 result = wxSystemSettings::GetColour(arg1);
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4118 return resultobj;
4119fail:
4120 return NULL;
4121}
4122
4123
4124SWIGINTERN PyObject *_wrap_SystemSettings_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj = 0;
4126 wxSystemFont arg1 ;
4127 wxFont result;
4128 int val1 ;
4129 int ecode1 = 0 ;
4130 PyObject * obj0 = 0 ;
4131 char * kwnames[] = {
4132 (char *) "index", NULL
4133 };
4134
4135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) SWIG_fail;
4136 ecode1 = SWIG_AsVal_int(obj0, &val1);
4137 if (!SWIG_IsOK(ecode1)) {
4138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetFont" "', expected argument " "1"" of type '" "wxSystemFont""'");
4139 }
4140 arg1 = static_cast< wxSystemFont >(val1);
4141 {
4142 if (!wxPyCheckForApp()) SWIG_fail;
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = wxSystemSettings::GetFont(arg1);
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
4149 return resultobj;
4150fail:
4151 return NULL;
4152}
4153
4154
4155SWIGINTERN PyObject *_wrap_SystemSettings_GetMetric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj = 0;
4157 wxSystemMetric arg1 ;
4158 wxWindow *arg2 = (wxWindow *) NULL ;
4159 int result;
4160 int val1 ;
4161 int ecode1 = 0 ;
4162 void *argp2 = 0 ;
4163 int res2 = 0 ;
4164 PyObject * obj0 = 0 ;
4165 PyObject * obj1 = 0 ;
4166 char * kwnames[] = {
4167 (char *) "index",(char *) "win", NULL
4168 };
4169
4170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SystemSettings_GetMetric",kwnames,&obj0,&obj1)) SWIG_fail;
4171 ecode1 = SWIG_AsVal_int(obj0, &val1);
4172 if (!SWIG_IsOK(ecode1)) {
4173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_GetMetric" "', expected argument " "1"" of type '" "wxSystemMetric""'");
4174 }
4175 arg1 = static_cast< wxSystemMetric >(val1);
4176 if (obj1) {
4177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4178 if (!SWIG_IsOK(res2)) {
4179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SystemSettings_GetMetric" "', expected argument " "2"" of type '" "wxWindow *""'");
093d3ff1 4180 }
554f62e9
RD
4181 arg2 = reinterpret_cast< wxWindow * >(argp2);
4182 }
4183 {
4184 if (!wxPyCheckForApp()) SWIG_fail;
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (int)wxSystemSettings::GetMetric(arg1,arg2);
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_From_int(static_cast< int >(result));
4191 return resultobj;
4192fail:
4193 return NULL;
4194}
4195
4196
4197SWIGINTERN PyObject *_wrap_SystemSettings_HasFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4198 PyObject *resultobj = 0;
4199 wxSystemFeature arg1 ;
4200 bool result;
4201 int val1 ;
4202 int ecode1 = 0 ;
4203 PyObject * obj0 = 0 ;
4204 char * kwnames[] = {
4205 (char *) "index", NULL
4206 };
4207
4208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) SWIG_fail;
4209 ecode1 = SWIG_AsVal_int(obj0, &val1);
4210 if (!SWIG_IsOK(ecode1)) {
4211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_HasFeature" "', expected argument " "1"" of type '" "wxSystemFeature""'");
4212 }
4213 arg1 = static_cast< wxSystemFeature >(val1);
4214 {
4215 if (!wxPyCheckForApp()) SWIG_fail;
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 result = (bool)wxSystemSettings::HasFeature(arg1);
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) SWIG_fail;
4220 }
4221 {
4222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4223 }
4224 return resultobj;
4225fail:
4226 return NULL;
d55e5bfc
RD
4227}
4228
4229
554f62e9
RD
4230SWIGINTERN PyObject *_wrap_SystemSettings_GetScreenType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4231 PyObject *resultobj = 0;
4232 wxSystemScreenType result;
4233
4234 if (!SWIG_Python_UnpackTuple(args,"SystemSettings_GetScreenType",0,0,0)) SWIG_fail;
4235 {
4236 if (!wxPyCheckForApp()) SWIG_fail;
4237 PyThreadState* __tstate = wxPyBeginAllowThreads();
4238 result = (wxSystemScreenType)wxSystemSettings::GetScreenType();
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 resultobj = SWIG_From_int(static_cast< int >(result));
4243 return resultobj;
4244fail:
4245 return NULL;
d55e5bfc
RD
4246}
4247
4248
554f62e9
RD
4249SWIGINTERN PyObject *_wrap_SystemSettings_SetScreenType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj = 0;
4251 wxSystemScreenType arg1 ;
4252 int val1 ;
4253 int ecode1 = 0 ;
4254 PyObject * obj0 = 0 ;
4255 char * kwnames[] = {
4256 (char *) "screen", NULL
4257 };
4258
4259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) SWIG_fail;
4260 ecode1 = SWIG_AsVal_int(obj0, &val1);
4261 if (!SWIG_IsOK(ecode1)) {
4262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SystemSettings_SetScreenType" "', expected argument " "1"" of type '" "wxSystemScreenType""'");
4263 }
4264 arg1 = static_cast< wxSystemScreenType >(val1);
4265 {
4266 if (!wxPyCheckForApp()) SWIG_fail;
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 wxSystemSettings::SetScreenType(arg1);
4269 wxPyEndAllowThreads(__tstate);
4270 if (PyErr_Occurred()) SWIG_fail;
4271 }
4272 resultobj = SWIG_Py_Void();
4273 return resultobj;
4274fail:
4275 return NULL;
d1f3a348
RD
4276}
4277
4278
554f62e9
RD
4279SWIGINTERN PyObject *SystemSettings_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4280 PyObject *obj;
4281 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4282 SWIG_TypeNewClientData(SWIGTYPE_p_wxSystemSettings, SWIG_NewClientData(obj));
4283 return SWIG_Py_Void();
d1f3a348
RD
4284}
4285
554f62e9
RD
4286SWIGINTERN int WINDOW_DEFAULT_VARIANT_set(PyObject *) {
4287 SWIG_Error(SWIG_AttributeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
4288 return 1;
d1f3a348
RD
4289}
4290
4291
554f62e9
RD
4292SWIGINTERN PyObject *WINDOW_DEFAULT_VARIANT_get(void) {
4293 PyObject *pyobj = 0;
4294
4295 {
4296#if wxUSE_UNICODE
4297 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
4298#else
4299 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
4300#endif
4301 }
4302 return pyobj;
d55e5bfc
RD
4303}
4304
4305
554f62e9
RD
4306SWIGINTERN PyObject *_wrap_new_SystemOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4307 PyObject *resultobj = 0;
4308 wxSystemOptions *result = 0 ;
4309
4310 if (!SWIG_Python_UnpackTuple(args,"new_SystemOptions",0,0,0)) SWIG_fail;
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 result = (wxSystemOptions *)new wxSystemOptions();
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSystemOptions, SWIG_POINTER_NEW | 0 );
4318 return resultobj;
4319fail:
4320 return NULL;
4321}
4322
4323
4324SWIGINTERN PyObject *_wrap_SystemOptions_SetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4325 PyObject *resultobj = 0;
4326 wxString *arg1 = 0 ;
4327 wxString *arg2 = 0 ;
4328 bool temp1 = false ;
4329 bool temp2 = false ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char * kwnames[] = {
4333 (char *) "name",(char *) "value", NULL
4334 };
4335
4336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) SWIG_fail;
4337 {
4338 arg1 = wxString_in_helper(obj0);
4339 if (arg1 == NULL) SWIG_fail;
4340 temp1 = true;
4341 }
4342 {
4343 arg2 = wxString_in_helper(obj1);
4344 if (arg2 == NULL) SWIG_fail;
4345 temp2 = true;
4346 }
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_Py_Void();
4354 {
4355 if (temp1)
4356 delete arg1;
4357 }
4358 {
4359 if (temp2)
4360 delete arg2;
4361 }
4362 return resultobj;
4363fail:
4364 {
4365 if (temp1)
4366 delete arg1;
4367 }
4368 {
4369 if (temp2)
4370 delete arg2;
4371 }
4372 return NULL;
093d3ff1 4373}
554f62e9
RD
4374
4375
4376SWIGINTERN PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj = 0;
4378 wxString *arg1 = 0 ;
4379 int arg2 ;
4380 bool temp1 = false ;
4381 int val2 ;
4382 int ecode2 = 0 ;
4383 PyObject * obj0 = 0 ;
4384 PyObject * obj1 = 0 ;
4385 char * kwnames[] = {
4386 (char *) "name",(char *) "value", NULL
4387 };
4388
4389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) SWIG_fail;
4390 {
4391 arg1 = wxString_in_helper(obj0);
4392 if (arg1 == NULL) SWIG_fail;
4393 temp1 = true;
4394 }
4395 ecode2 = SWIG_AsVal_int(obj1, &val2);
4396 if (!SWIG_IsOK(ecode2)) {
4397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SystemOptions_SetOptionInt" "', expected argument " "2"" of type '" "int""'");
4398 }
4399 arg2 = static_cast< int >(val2);
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_Py_Void();
4407 {
4408 if (temp1)
4409 delete arg1;
4410 }
4411 return resultobj;
4412fail:
4413 {
4414 if (temp1)
4415 delete arg1;
4416 }
4417 return NULL;
093d3ff1
RD
4418}
4419
4420
554f62e9
RD
4421SWIGINTERN PyObject *_wrap_SystemOptions_GetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj = 0;
4423 wxString *arg1 = 0 ;
4424 wxString result;
4425 bool temp1 = false ;
4426 PyObject * obj0 = 0 ;
4427 char * kwnames[] = {
4428 (char *) "name", NULL
4429 };
4430
4431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) SWIG_fail;
4432 {
4433 arg1 = wxString_in_helper(obj0);
4434 if (arg1 == NULL) SWIG_fail;
4435 temp1 = true;
4436 }
4437 {
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 result = wxSystemOptions::GetOption((wxString const &)*arg1);
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 {
093d3ff1 4444#if wxUSE_UNICODE
554f62e9 4445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 4446#else
554f62e9 4447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 4448#endif
554f62e9
RD
4449 }
4450 {
4451 if (temp1)
4452 delete arg1;
4453 }
4454 return resultobj;
4455fail:
4456 {
4457 if (temp1)
4458 delete arg1;
4459 }
4460 return NULL;
d55e5bfc
RD
4461}
4462
4463
554f62e9
RD
4464SWIGINTERN PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj = 0;
4466 wxString *arg1 = 0 ;
4467 int result;
4468 bool temp1 = false ;
4469 PyObject * obj0 = 0 ;
4470 char * kwnames[] = {
4471 (char *) "name", NULL
4472 };
4473
4474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) SWIG_fail;
4475 {
4476 arg1 = wxString_in_helper(obj0);
4477 if (arg1 == NULL) SWIG_fail;
4478 temp1 = true;
4479 }
4480 {
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 resultobj = SWIG_From_int(static_cast< int >(result));
4487 {
4488 if (temp1)
4489 delete arg1;
4490 }
4491 return resultobj;
4492fail:
4493 {
4494 if (temp1)
4495 delete arg1;
4496 }
4497 return NULL;
d55e5bfc
RD
4498}
4499
4500
554f62e9
RD
4501SWIGINTERN PyObject *_wrap_SystemOptions_HasOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj = 0;
4503 wxString *arg1 = 0 ;
4504 bool result;
4505 bool temp1 = false ;
4506 PyObject * obj0 = 0 ;
4507 char * kwnames[] = {
4508 (char *) "name", NULL
4509 };
4510
4511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) SWIG_fail;
4512 {
4513 arg1 = wxString_in_helper(obj0);
4514 if (arg1 == NULL) SWIG_fail;
4515 temp1 = true;
4516 }
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
4519 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 {
4524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4525 }
4526 {
4527 if (temp1)
4528 delete arg1;
4529 }
4530 return resultobj;
4531fail:
4532 {
4533 if (temp1)
4534 delete arg1;
4535 }
4536 return NULL;
d55e5bfc
RD
4537}
4538
4539
554f62e9
RD
4540SWIGINTERN PyObject *_wrap_SystemOptions_IsFalse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = 0;
4542 wxString *arg1 = 0 ;
4543 bool result;
4544 bool temp1 = false ;
4545 PyObject * obj0 = 0 ;
4546 char * kwnames[] = {
4547 (char *) "name", NULL
4548 };
4549
4550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) SWIG_fail;
4551 {
4552 arg1 = wxString_in_helper(obj0);
4553 if (arg1 == NULL) SWIG_fail;
4554 temp1 = true;
4555 }
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 {
4563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4564 }
4565 {
4566 if (temp1)
4567 delete arg1;
4568 }
4569 return resultobj;
4570fail:
4571 {
4572 if (temp1)
4573 delete arg1;
4574 }
4575 return NULL;
d55e5bfc
RD
4576}
4577
4578
554f62e9
RD
4579SWIGINTERN PyObject *SystemOptions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4580 PyObject *obj;
4581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4582 SWIG_TypeNewClientData(SWIGTYPE_p_wxSystemOptions, SWIG_NewClientData(obj));
4583 return SWIG_Py_Void();
d55e5bfc
RD
4584}
4585
554f62e9
RD
4586SWIGINTERN PyObject *SystemOptions_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4587 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
4588}
4589
554f62e9
RD
4590SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
4591 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
4592 return 1;
d55e5bfc
RD
4593}
4594
4595
554f62e9
RD
4596SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
4597 PyObject *pyobj = 0;
4598
4599 {
4600#if wxUSE_UNICODE
4601 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
4602#else
4603 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
4604#endif
4605 }
4606 return pyobj;
396fb509
RD
4607}
4608
4609
554f62e9
RD
4610SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
4611 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
4612 return 1;
093d3ff1
RD
4613}
4614
4615
554f62e9
RD
4616SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
4617 PyObject *pyobj = 0;
4618
4619 {
093d3ff1 4620#if wxUSE_UNICODE
554f62e9 4621 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
093d3ff1 4622#else
554f62e9 4623 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
093d3ff1 4624#endif
554f62e9
RD
4625 }
4626 return pyobj;
093d3ff1
RD
4627}
4628
4629
554f62e9
RD
4630SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
4631 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
4632 return 1;
093d3ff1
RD
4633}
4634
4635
554f62e9
RD
4636SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
4637 PyObject *pyobj = 0;
4638
4639 {
093d3ff1 4640#if wxUSE_UNICODE
554f62e9 4641 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
093d3ff1 4642#else
554f62e9 4643 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
093d3ff1 4644#endif
554f62e9
RD
4645 }
4646 return pyobj;
093d3ff1
RD
4647}
4648
4649
554f62e9
RD
4650SWIGINTERN PyObject *_wrap_NewId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4651 PyObject *resultobj = 0;
4652 long result;
4653
4654 if (!SWIG_Python_UnpackTuple(args,"NewId",0,0,0)) SWIG_fail;
4655 {
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (long)wxNewId();
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_From_long(static_cast< long >(result));
4662 return resultobj;
4663fail:
4664 return NULL;
093d3ff1
RD
4665}
4666
4667
554f62e9
RD
4668SWIGINTERN PyObject *_wrap_RegisterId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 long arg1 ;
4671 long val1 ;
4672 int ecode1 = 0 ;
4673 PyObject * obj0 = 0 ;
4674 char * kwnames[] = {
4675 (char *) "id", NULL
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) SWIG_fail;
4679 ecode1 = SWIG_AsVal_long(obj0, &val1);
4680 if (!SWIG_IsOK(ecode1)) {
4681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RegisterId" "', expected argument " "1"" of type '" "long""'");
4682 }
4683 arg1 = static_cast< long >(val1);
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 wxRegisterId(arg1);
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = SWIG_Py_Void();
4691 return resultobj;
4692fail:
4693 return NULL;
4694}
4695
4696
4697SWIGINTERN PyObject *_wrap_GetCurrentId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4698 PyObject *resultobj = 0;
4699 long result;
4700
4701 if (!SWIG_Python_UnpackTuple(args,"GetCurrentId",0,0,0)) SWIG_fail;
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (long)wxGetCurrentId();
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_From_long(static_cast< long >(result));
4709 return resultobj;
4710fail:
4711 return NULL;
4712}
4713
4714
4715SWIGINTERN PyObject *_wrap_IsStockID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj = 0;
4717 int arg1 ;
4718 bool result;
4719 int val1 ;
4720 int ecode1 = 0 ;
4721 PyObject * obj0 = 0 ;
4722 char * kwnames[] = {
4723 (char *) "id", NULL
4724 };
4725
4726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) SWIG_fail;
4727 ecode1 = SWIG_AsVal_int(obj0, &val1);
4728 if (!SWIG_IsOK(ecode1)) {
4729 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsStockID" "', expected argument " "1"" of type '" "int""'");
4730 }
4731 arg1 = static_cast< int >(val1);
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (bool)wxIsStockID(arg1);
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 {
4739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4740 }
4741 return resultobj;
4742fail:
4743 return NULL;
4744}
4745
4746
4747SWIGINTERN PyObject *_wrap_IsStockLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj = 0;
4749 int arg1 ;
4750 wxString *arg2 = 0 ;
4751 bool result;
4752 int val1 ;
4753 int ecode1 = 0 ;
4754 bool temp2 = false ;
4755 PyObject * obj0 = 0 ;
4756 PyObject * obj1 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "id",(char *) "label", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4762 ecode1 = SWIG_AsVal_int(obj0, &val1);
4763 if (!SWIG_IsOK(ecode1)) {
4764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsStockLabel" "', expected argument " "1"" of type '" "int""'");
4765 }
4766 arg1 = static_cast< int >(val1);
4767 {
4768 arg2 = wxString_in_helper(obj1);
4769 if (arg2 == NULL) SWIG_fail;
4770 temp2 = true;
4771 }
4772 {
4773 PyThreadState* __tstate = wxPyBeginAllowThreads();
4774 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 {
4779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4780 }
4781 {
4782 if (temp2)
4783 delete arg2;
4784 }
4785 return resultobj;
4786fail:
4787 {
4788 if (temp2)
4789 delete arg2;
4790 }
4791 return NULL;
4792}
4793
4794
4795SWIGINTERN PyObject *_wrap_GetStockLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj = 0;
4797 int arg1 ;
97ab0f6a 4798 long arg2 = (long) wxSTOCK_WITH_MNEMONIC ;
554f62e9
RD
4799 wxString result;
4800 int val1 ;
4801 int ecode1 = 0 ;
97ab0f6a 4802 long val2 ;
554f62e9
RD
4803 int ecode2 = 0 ;
4804 PyObject * obj0 = 0 ;
4805 PyObject * obj1 = 0 ;
554f62e9 4806 char * kwnames[] = {
97ab0f6a 4807 (char *) "id",(char *) "flags", NULL
554f62e9
RD
4808 };
4809
97ab0f6a 4810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockLabel",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
4811 ecode1 = SWIG_AsVal_int(obj0, &val1);
4812 if (!SWIG_IsOK(ecode1)) {
4813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockLabel" "', expected argument " "1"" of type '" "int""'");
4814 }
4815 arg1 = static_cast< int >(val1);
4816 if (obj1) {
97ab0f6a 4817 ecode2 = SWIG_AsVal_long(obj1, &val2);
554f62e9 4818 if (!SWIG_IsOK(ecode2)) {
97ab0f6a 4819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockLabel" "', expected argument " "2"" of type '" "long""'");
554f62e9 4820 }
97ab0f6a 4821 arg2 = static_cast< long >(val2);
554f62e9 4822 }
97ab0f6a
RD
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = wxGetStockLabel(arg1,arg2);
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830#if wxUSE_UNICODE
4831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4832#else
4833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4834#endif
4835 }
4836 return resultobj;
4837fail:
4838 return NULL;
4839}
4840
4841
4842SWIGINTERN PyObject *_wrap_GetStockHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj = 0;
4844 int arg1 ;
4845 wxStockHelpStringClient arg2 = (wxStockHelpStringClient) wxSTOCK_MENU ;
4846 wxString result;
4847 int val1 ;
4848 int ecode1 = 0 ;
4849 int val2 ;
4850 int ecode2 = 0 ;
4851 PyObject * obj0 = 0 ;
4852 PyObject * obj1 = 0 ;
4853 char * kwnames[] = {
4854 (char *) "id",(char *) "client", NULL
4855 };
4856
4857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
4858 ecode1 = SWIG_AsVal_int(obj0, &val1);
4859 if (!SWIG_IsOK(ecode1)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockHelpString" "', expected argument " "1"" of type '" "int""'");
4861 }
4862 arg1 = static_cast< int >(val1);
4863 if (obj1) {
4864 ecode2 = SWIG_AsVal_int(obj1, &val2);
4865 if (!SWIG_IsOK(ecode2)) {
4866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockHelpString" "', expected argument " "2"" of type '" "wxStockHelpStringClient""'");
4867 }
4868 arg2 = static_cast< wxStockHelpStringClient >(val2);
554f62e9
RD
4869 }
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
97ab0f6a 4872 result = wxGetStockHelpString(arg1,arg2);
554f62e9
RD
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
093d3ff1 4877#if wxUSE_UNICODE
554f62e9 4878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 4879#else
554f62e9 4880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 4881#endif
554f62e9
RD
4882 }
4883 return resultobj;
4884fail:
4885 return NULL;
093d3ff1
RD
4886}
4887
4888
554f62e9
RD
4889SWIGINTERN PyObject *_wrap_Bell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4890 PyObject *resultobj = 0;
4891
4892 if (!SWIG_Python_UnpackTuple(args,"Bell",0,0,0)) SWIG_fail;
4893 {
4894 if (!wxPyCheckForApp()) SWIG_fail;
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 wxBell();
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 resultobj = SWIG_Py_Void();
4901 return resultobj;
4902fail:
4903 return NULL;
d55e5bfc
RD
4904}
4905
4906
554f62e9
RD
4907SWIGINTERN PyObject *_wrap_EndBusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4908 PyObject *resultobj = 0;
4909
4910 if (!SWIG_Python_UnpackTuple(args,"EndBusyCursor",0,0,0)) SWIG_fail;
4911 {
4912 if (!wxPyCheckForApp()) SWIG_fail;
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 wxEndBusyCursor();
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 resultobj = SWIG_Py_Void();
4919 return resultobj;
4920fail:
4921 return NULL;
4922}
4923
4924
4925SWIGINTERN PyObject *_wrap_GetElapsedTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4926 PyObject *resultobj = 0;
4927 bool arg1 = (bool) true ;
4928 long result;
4929 bool val1 ;
4930 int ecode1 = 0 ;
4931 PyObject * obj0 = 0 ;
4932 char * kwnames[] = {
4933 (char *) "resetTimer", NULL
4934 };
4935
4936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) SWIG_fail;
4937 if (obj0) {
4938 ecode1 = SWIG_AsVal_bool(obj0, &val1);
4939 if (!SWIG_IsOK(ecode1)) {
4940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetElapsedTime" "', expected argument " "1"" of type '" "bool""'");
4941 }
4942 arg1 = static_cast< bool >(val1);
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (long)wxGetElapsedTime(arg1);
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 resultobj = SWIG_From_long(static_cast< long >(result));
4951 return resultobj;
4952fail:
4953 return NULL;
d55e5bfc
RD
4954}
4955
4956
554f62e9
RD
4957SWIGINTERN PyObject *_wrap_IsBusy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4958 PyObject *resultobj = 0;
4959 bool result;
4960
4961 if (!SWIG_Python_UnpackTuple(args,"IsBusy",0,0,0)) SWIG_fail;
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 result = (bool)wxIsBusy();
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 {
4969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4970 }
4971 return resultobj;
4972fail:
4973 return NULL;
d55e5bfc
RD
4974}
4975
4976
554f62e9
RD
4977SWIGINTERN PyObject *_wrap_Now(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4978 PyObject *resultobj = 0;
4979 wxString result;
4980
4981 if (!SWIG_Python_UnpackTuple(args,"Now",0,0,0)) SWIG_fail;
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = wxNow();
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 {
4989#if wxUSE_UNICODE
4990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4991#else
4992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4993#endif
4994 }
4995 return resultobj;
4996fail:
4997 return NULL;
d55e5bfc
RD
4998}
4999
5000
554f62e9
RD
5001SWIGINTERN PyObject *_wrap_Shell(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj = 0;
5003 wxString const &arg1_defvalue = wxPyEmptyString ;
5004 wxString *arg1 = (wxString *) &arg1_defvalue ;
5005 bool result;
5006 bool temp1 = false ;
5007 PyObject * obj0 = 0 ;
5008 char * kwnames[] = {
5009 (char *) "command", NULL
5010 };
5011
5012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) SWIG_fail;
5013 if (obj0) {
093d3ff1 5014 {
554f62e9
RD
5015 arg1 = wxString_in_helper(obj0);
5016 if (arg1 == NULL) SWIG_fail;
5017 temp1 = true;
093d3ff1 5018 }
554f62e9
RD
5019 }
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (bool)wxShell((wxString const &)*arg1);
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 {
5027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5028 }
5029 {
5030 if (temp1)
5031 delete arg1;
5032 }
5033 return resultobj;
5034fail:
5035 {
5036 if (temp1)
5037 delete arg1;
5038 }
5039 return NULL;
d55e5bfc
RD
5040}
5041
5042
554f62e9
RD
5043SWIGINTERN PyObject *_wrap_StartTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5044 PyObject *resultobj = 0;
5045
5046 if (!SWIG_Python_UnpackTuple(args,"StartTimer",0,0,0)) SWIG_fail;
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 wxStartTimer();
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_Py_Void();
5054 return resultobj;
5055fail:
5056 return NULL;
5057}
5058
5059
5060SWIGINTERN PyObject *_wrap_GetOsVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5061 PyObject *resultobj = 0;
5062 int *arg1 = (int *) 0 ;
5063 int *arg2 = (int *) 0 ;
5064 int result;
5065 int temp1 ;
5066 int res1 = SWIG_TMPOBJ ;
5067 int temp2 ;
5068 int res2 = SWIG_TMPOBJ ;
5069
5070 arg1 = &temp1;
5071 arg2 = &temp2;
5072 if (!SWIG_Python_UnpackTuple(args,"GetOsVersion",0,0,0)) SWIG_fail;
5073 {
5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
5075 result = (int)wxGetOsVersion(arg1,arg2);
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 resultobj = SWIG_From_int(static_cast< int >(result));
5080 if (SWIG_IsTmpObj(res1)) {
5081 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
5082 } else {
5083 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
5084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
5085 }
5086 if (SWIG_IsTmpObj(res2)) {
5087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
5088 } else {
5089 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
5090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
5091 }
5092 return resultobj;
5093fail:
5094 return NULL;
5095}
5096
5097
5098SWIGINTERN PyObject *_wrap_GetOsDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5099 PyObject *resultobj = 0;
5100 wxString result;
5101
5102 if (!SWIG_Python_UnpackTuple(args,"GetOsDescription",0,0,0)) SWIG_fail;
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 result = wxGetOsDescription();
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 {
093d3ff1 5110#if wxUSE_UNICODE
554f62e9 5111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5112#else
554f62e9 5113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5114#endif
554f62e9
RD
5115 }
5116 return resultobj;
5117fail:
5118 return NULL;
bf26d883
RD
5119}
5120
5121
fc46b7f3
RD
5122SWIGINTERN PyObject *_wrap_IsPlatformLittleEndian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5123 PyObject *resultobj = 0;
5124 bool result;
5125
5126 if (!SWIG_Python_UnpackTuple(args,"IsPlatformLittleEndian",0,0,0)) SWIG_fail;
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 result = (bool)wxIsPlatformLittleEndian();
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 {
5134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5135 }
5136 return resultobj;
5137fail:
5138 return NULL;
5139}
5140
5141
5142SWIGINTERN PyObject *_wrap_IsPlatform64Bit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5143 PyObject *resultobj = 0;
5144 bool result;
5145
5146 if (!SWIG_Python_UnpackTuple(args,"IsPlatform64Bit",0,0,0)) SWIG_fail;
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 result = (bool)wxIsPlatform64Bit();
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 {
5154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5155 }
5156 return resultobj;
5157fail:
5158 return NULL;
5159}
5160
5161
554f62e9
RD
5162SWIGINTERN PyObject *_wrap_GetFreeMemory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5163 PyObject *resultobj = 0;
5164 wxMemorySize result;
5165
5166 if (!SWIG_Python_UnpackTuple(args,"GetFreeMemory",0,0,0)) SWIG_fail;
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = wxGetFreeMemory();
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
10044bf1
RD
5173 {
5174#if wxUSE_LONGLONG
5175 resultobj = PyLong_FromLongLong((&result)->GetValue());
5176#else
5177 resultobj = PyInt_FromLong(result);
5178#endif
5179 }
554f62e9
RD
5180 return resultobj;
5181fail:
5182 return NULL;
5183}
5184
5185
5186SWIGINTERN PyObject *_wrap_Shutdown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5187 PyObject *resultobj = 0;
5188 wxShutdownFlags arg1 ;
5189 bool result;
5190 int val1 ;
5191 int ecode1 = 0 ;
5192 PyObject * obj0 = 0 ;
5193 char * kwnames[] = {
5194 (char *) "wFlags", NULL
5195 };
5196
5197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) SWIG_fail;
5198 ecode1 = SWIG_AsVal_int(obj0, &val1);
5199 if (!SWIG_IsOK(ecode1)) {
5200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Shutdown" "', expected argument " "1"" of type '" "wxShutdownFlags""'");
5201 }
5202 arg1 = static_cast< wxShutdownFlags >(val1);
5203 {
5204 if (!wxPyCheckForApp()) SWIG_fail;
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (bool)wxShutdown(arg1);
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 {
5211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5212 }
5213 return resultobj;
5214fail:
5215 return NULL;
d55e5bfc
RD
5216}
5217
5218
554f62e9
RD
5219SWIGINTERN PyObject *_wrap_Sleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5220 PyObject *resultobj = 0;
5221 int arg1 ;
5222 int val1 ;
5223 int ecode1 = 0 ;
5224 PyObject * obj0 = 0 ;
5225 char * kwnames[] = {
5226 (char *) "secs", NULL
5227 };
5228
5229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) SWIG_fail;
5230 ecode1 = SWIG_AsVal_int(obj0, &val1);
5231 if (!SWIG_IsOK(ecode1)) {
5232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Sleep" "', expected argument " "1"" of type '" "int""'");
5233 }
5234 arg1 = static_cast< int >(val1);
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 wxSleep(arg1);
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 resultobj = SWIG_Py_Void();
5242 return resultobj;
5243fail:
5244 return NULL;
d55e5bfc
RD
5245}
5246
5247
554f62e9
RD
5248SWIGINTERN PyObject *_wrap_MilliSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj = 0;
5250 unsigned long arg1 ;
5251 unsigned long val1 ;
5252 int ecode1 = 0 ;
5253 PyObject * obj0 = 0 ;
5254 char * kwnames[] = {
5255 (char *) "milliseconds", NULL
5256 };
5257
5258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) SWIG_fail;
5259 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
5260 if (!SWIG_IsOK(ecode1)) {
5261 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MilliSleep" "', expected argument " "1"" of type '" "unsigned long""'");
5262 }
5263 arg1 = static_cast< unsigned long >(val1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 wxMilliSleep(arg1);
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = SWIG_Py_Void();
5271 return resultobj;
5272fail:
5273 return NULL;
d55e5bfc
RD
5274}
5275
5276
554f62e9
RD
5277SWIGINTERN PyObject *_wrap_MicroSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5278 PyObject *resultobj = 0;
5279 unsigned long arg1 ;
5280 unsigned long val1 ;
5281 int ecode1 = 0 ;
5282 PyObject * obj0 = 0 ;
5283 char * kwnames[] = {
5284 (char *) "microseconds", NULL
5285 };
5286
5287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) SWIG_fail;
5288 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
5289 if (!SWIG_IsOK(ecode1)) {
5290 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MicroSleep" "', expected argument " "1"" of type '" "unsigned long""'");
5291 }
5292 arg1 = static_cast< unsigned long >(val1);
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 wxMicroSleep(arg1);
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 resultobj = SWIG_Py_Void();
5300 return resultobj;
5301fail:
5302 return NULL;
d55e5bfc
RD
5303}
5304
5305
554f62e9
RD
5306SWIGINTERN PyObject *_wrap_EnableTopLevelWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj = 0;
5308 bool arg1 ;
5309 bool val1 ;
5310 int ecode1 = 0 ;
5311 PyObject * obj0 = 0 ;
5312 char * kwnames[] = {
5313 (char *) "enable", NULL
5314 };
5315
5316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) SWIG_fail;
5317 ecode1 = SWIG_AsVal_bool(obj0, &val1);
5318 if (!SWIG_IsOK(ecode1)) {
5319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EnableTopLevelWindows" "', expected argument " "1"" of type '" "bool""'");
5320 }
5321 arg1 = static_cast< bool >(val1);
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 wxEnableTopLevelWindows(arg1);
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
5328 resultobj = SWIG_Py_Void();
5329 return resultobj;
5330fail:
5331 return NULL;
d55e5bfc
RD
5332}
5333
5334
554f62e9
RD
5335SWIGINTERN PyObject *_wrap_StripMenuCodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj = 0;
5337 wxString *arg1 = 0 ;
5338 wxString result;
5339 bool temp1 = false ;
5340 PyObject * obj0 = 0 ;
5341 char * kwnames[] = {
f460c29d 5342 (char *) "in", NULL
554f62e9
RD
5343 };
5344
5345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) SWIG_fail;
5346 {
5347 arg1 = wxString_in_helper(obj0);
5348 if (arg1 == NULL) SWIG_fail;
5349 temp1 = true;
5350 }
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 result = wxStripMenuCodes((wxString const &)*arg1);
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 {
5358#if wxUSE_UNICODE
5359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5360#else
5361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5362#endif
5363 }
5364 {
5365 if (temp1)
5366 delete arg1;
5367 }
5368 return resultobj;
5369fail:
5370 {
5371 if (temp1)
5372 delete arg1;
5373 }
5374 return NULL;
093d3ff1
RD
5375}
5376
5377
554f62e9
RD
5378SWIGINTERN PyObject *_wrap_GetEmailAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5379 PyObject *resultobj = 0;
5380 wxString result;
5381
5382 if (!SWIG_Python_UnpackTuple(args,"GetEmailAddress",0,0,0)) SWIG_fail;
5383 {
5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
5385 result = wxGetEmailAddress();
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
5389 {
5390#if wxUSE_UNICODE
5391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5392#else
5393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5394#endif
5395 }
5396 return resultobj;
5397fail:
5398 return NULL;
d55e5bfc
RD
5399}
5400
5401
554f62e9
RD
5402SWIGINTERN PyObject *_wrap_GetHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5403 PyObject *resultobj = 0;
5404 wxString result;
5405
5406 if (!SWIG_Python_UnpackTuple(args,"GetHostName",0,0,0)) SWIG_fail;
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = wxGetHostName();
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
d55e5bfc 5414#if wxUSE_UNICODE
554f62e9 5415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5416#else
554f62e9 5417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5418#endif
554f62e9
RD
5419 }
5420 return resultobj;
5421fail:
5422 return NULL;
d55e5bfc
RD
5423}
5424
5425
554f62e9
RD
5426SWIGINTERN PyObject *_wrap_GetFullHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5427 PyObject *resultobj = 0;
5428 wxString result;
5429
5430 if (!SWIG_Python_UnpackTuple(args,"GetFullHostName",0,0,0)) SWIG_fail;
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = wxGetFullHostName();
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 {
5438#if wxUSE_UNICODE
5439 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5440#else
5441 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5442#endif
5443 }
5444 return resultobj;
5445fail:
5446 return NULL;
d55e5bfc
RD
5447}
5448
5449
554f62e9
RD
5450SWIGINTERN PyObject *_wrap_GetUserId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5451 PyObject *resultobj = 0;
5452 wxString result;
5453
5454 if (!SWIG_Python_UnpackTuple(args,"GetUserId",0,0,0)) SWIG_fail;
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = wxGetUserId();
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 {
5462#if wxUSE_UNICODE
5463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5464#else
5465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5466#endif
5467 }
5468 return resultobj;
5469fail:
5470 return NULL;
d55e5bfc
RD
5471}
5472
5473
554f62e9
RD
5474SWIGINTERN PyObject *_wrap_GetUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5475 PyObject *resultobj = 0;
5476 wxString result;
5477
5478 if (!SWIG_Python_UnpackTuple(args,"GetUserName",0,0,0)) SWIG_fail;
5479 {
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 result = wxGetUserName();
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 {
5486#if wxUSE_UNICODE
5487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5488#else
5489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5490#endif
5491 }
5492 return resultobj;
5493fail:
5494 return NULL;
d55e5bfc
RD
5495}
5496
5497
554f62e9
RD
5498SWIGINTERN PyObject *_wrap_GetHomeDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5499 PyObject *resultobj = 0;
5500 wxString result;
5501
5502 if (!SWIG_Python_UnpackTuple(args,"GetHomeDir",0,0,0)) SWIG_fail;
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 result = wxGetHomeDir();
5506 wxPyEndAllowThreads(__tstate);
5507 if (PyErr_Occurred()) SWIG_fail;
5508 }
5509 {
5510#if wxUSE_UNICODE
5511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5512#else
5513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5514#endif
5515 }
5516 return resultobj;
5517fail:
5518 return NULL;
d55e5bfc
RD
5519}
5520
5521
554f62e9
RD
5522SWIGINTERN PyObject *_wrap_GetUserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5523 PyObject *resultobj = 0;
5524 wxString const &arg1_defvalue = wxPyEmptyString ;
5525 wxString *arg1 = (wxString *) &arg1_defvalue ;
5526 wxString result;
5527 bool temp1 = false ;
5528 PyObject * obj0 = 0 ;
5529 char * kwnames[] = {
5530 (char *) "user", NULL
5531 };
5532
5533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) SWIG_fail;
5534 if (obj0) {
d55e5bfc 5535 {
554f62e9
RD
5536 arg1 = wxString_in_helper(obj0);
5537 if (arg1 == NULL) SWIG_fail;
5538 temp1 = true;
d55e5bfc 5539 }
554f62e9
RD
5540 }
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = wxGetUserHome((wxString const &)*arg1);
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548#if wxUSE_UNICODE
5549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5550#else
5551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5552#endif
5553 }
5554 {
5555 if (temp1)
5556 delete arg1;
5557 }
5558 return resultobj;
5559fail:
5560 {
5561 if (temp1)
5562 delete arg1;
5563 }
5564 return NULL;
093d3ff1
RD
5565}
5566
5567
554f62e9
RD
5568SWIGINTERN PyObject *_wrap_GetProcessId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5569 PyObject *resultobj = 0;
5570 unsigned long result;
5571
5572 if (!SWIG_Python_UnpackTuple(args,"GetProcessId",0,0,0)) SWIG_fail;
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 result = (unsigned long)wxGetProcessId();
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
5580 return resultobj;
5581fail:
5582 return NULL;
d55e5bfc
RD
5583}
5584
5585
554f62e9
RD
5586SWIGINTERN PyObject *_wrap_Trap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5587 PyObject *resultobj = 0;
5588
5589 if (!SWIG_Python_UnpackTuple(args,"Trap",0,0,0)) SWIG_fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 wxTrap();
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = SWIG_Py_Void();
5597 return resultobj;
5598fail:
5599 return NULL;
5600}
5601
5602
5603SWIGINTERN PyObject *_wrap_FileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5604 PyObject *resultobj = 0;
5605 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
5606 wxString *arg1 = (wxString *) &arg1_defvalue ;
5607 wxString const &arg2_defvalue = wxPyEmptyString ;
5608 wxString *arg2 = (wxString *) &arg2_defvalue ;
5609 wxString const &arg3_defvalue = wxPyEmptyString ;
5610 wxString *arg3 = (wxString *) &arg3_defvalue ;
5611 wxString const &arg4_defvalue = wxPyEmptyString ;
5612 wxString *arg4 = (wxString *) &arg4_defvalue ;
5613 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
5614 wxString *arg5 = (wxString *) &arg5_defvalue ;
5615 int arg6 = (int) 0 ;
5616 wxWindow *arg7 = (wxWindow *) NULL ;
5617 int arg8 = (int) -1 ;
5618 int arg9 = (int) -1 ;
5619 wxString result;
5620 bool temp1 = false ;
5621 bool temp2 = false ;
5622 bool temp3 = false ;
5623 bool temp4 = false ;
5624 bool temp5 = false ;
5625 int val6 ;
5626 int ecode6 = 0 ;
5627 void *argp7 = 0 ;
5628 int res7 = 0 ;
5629 int val8 ;
5630 int ecode8 = 0 ;
5631 int val9 ;
5632 int ecode9 = 0 ;
5633 PyObject * obj0 = 0 ;
5634 PyObject * obj1 = 0 ;
5635 PyObject * obj2 = 0 ;
5636 PyObject * obj3 = 0 ;
5637 PyObject * obj4 = 0 ;
5638 PyObject * obj5 = 0 ;
5639 PyObject * obj6 = 0 ;
5640 PyObject * obj7 = 0 ;
5641 PyObject * obj8 = 0 ;
5642 char * kwnames[] = {
5643 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
5644 };
5645
5646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5647 if (obj0) {
d55e5bfc 5648 {
554f62e9
RD
5649 arg1 = wxString_in_helper(obj0);
5650 if (arg1 == NULL) SWIG_fail;
5651 temp1 = true;
d55e5bfc 5652 }
554f62e9
RD
5653 }
5654 if (obj1) {
d55e5bfc 5655 {
554f62e9
RD
5656 arg2 = wxString_in_helper(obj1);
5657 if (arg2 == NULL) SWIG_fail;
5658 temp2 = true;
d55e5bfc 5659 }
554f62e9
RD
5660 }
5661 if (obj2) {
d55e5bfc 5662 {
554f62e9
RD
5663 arg3 = wxString_in_helper(obj2);
5664 if (arg3 == NULL) SWIG_fail;
5665 temp3 = true;
d55e5bfc 5666 }
554f62e9
RD
5667 }
5668 if (obj3) {
d55e5bfc 5669 {
554f62e9
RD
5670 arg4 = wxString_in_helper(obj3);
5671 if (arg4 == NULL) SWIG_fail;
5672 temp4 = true;
d55e5bfc 5673 }
554f62e9
RD
5674 }
5675 if (obj4) {
d55e5bfc 5676 {
554f62e9
RD
5677 arg5 = wxString_in_helper(obj4);
5678 if (arg5 == NULL) SWIG_fail;
5679 temp5 = true;
d55e5bfc 5680 }
554f62e9
RD
5681 }
5682 if (obj5) {
5683 ecode6 = SWIG_AsVal_int(obj5, &val6);
5684 if (!SWIG_IsOK(ecode6)) {
5685 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FileSelector" "', expected argument " "6"" of type '" "int""'");
5686 }
5687 arg6 = static_cast< int >(val6);
5688 }
5689 if (obj6) {
5690 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxWindow, 0 | 0 );
5691 if (!SWIG_IsOK(res7)) {
5692 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "FileSelector" "', expected argument " "7"" of type '" "wxWindow *""'");
d55e5bfc 5693 }
554f62e9
RD
5694 arg7 = reinterpret_cast< wxWindow * >(argp7);
5695 }
5696 if (obj7) {
5697 ecode8 = SWIG_AsVal_int(obj7, &val8);
5698 if (!SWIG_IsOK(ecode8)) {
5699 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FileSelector" "', expected argument " "8"" of type '" "int""'");
5700 }
5701 arg8 = static_cast< int >(val8);
5702 }
5703 if (obj8) {
5704 ecode9 = SWIG_AsVal_int(obj8, &val9);
5705 if (!SWIG_IsOK(ecode9)) {
5706 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FileSelector" "', expected argument " "9"" of type '" "int""'");
5707 }
5708 arg9 = static_cast< int >(val9);
5709 }
5710 {
5711 if (!wxPyCheckForApp()) SWIG_fail;
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 {
d55e5bfc 5718#if wxUSE_UNICODE
554f62e9 5719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5720#else
554f62e9 5721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5722#endif
554f62e9
RD
5723 }
5724 {
5725 if (temp1)
5726 delete arg1;
5727 }
5728 {
5729 if (temp2)
5730 delete arg2;
5731 }
5732 {
5733 if (temp3)
5734 delete arg3;
5735 }
5736 {
5737 if (temp4)
5738 delete arg4;
5739 }
5740 {
5741 if (temp5)
5742 delete arg5;
5743 }
5744 return resultobj;
5745fail:
5746 {
5747 if (temp1)
5748 delete arg1;
5749 }
5750 {
5751 if (temp2)
5752 delete arg2;
5753 }
5754 {
5755 if (temp3)
5756 delete arg3;
5757 }
5758 {
5759 if (temp4)
5760 delete arg4;
5761 }
5762 {
5763 if (temp5)
5764 delete arg5;
5765 }
5766 return NULL;
5767}
5768
5769
5770SWIGINTERN PyObject *_wrap_LoadFileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj = 0;
5772 wxString *arg1 = 0 ;
5773 wxString *arg2 = 0 ;
5774 wxString const &arg3_defvalue = wxPyEmptyString ;
5775 wxString *arg3 = (wxString *) &arg3_defvalue ;
5776 wxWindow *arg4 = (wxWindow *) NULL ;
5777 wxString result;
5778 bool temp1 = false ;
5779 bool temp2 = false ;
5780 bool temp3 = false ;
5781 void *argp4 = 0 ;
5782 int res4 = 0 ;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785 PyObject * obj2 = 0 ;
5786 PyObject * obj3 = 0 ;
5787 char * kwnames[] = {
5788 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
5789 };
5790
5791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5792 {
5793 arg1 = wxString_in_helper(obj0);
5794 if (arg1 == NULL) SWIG_fail;
5795 temp1 = true;
5796 }
5797 {
5798 arg2 = wxString_in_helper(obj1);
5799 if (arg2 == NULL) SWIG_fail;
5800 temp2 = true;
5801 }
5802 if (obj2) {
d55e5bfc 5803 {
554f62e9
RD
5804 arg3 = wxString_in_helper(obj2);
5805 if (arg3 == NULL) SWIG_fail;
5806 temp3 = true;
d55e5bfc 5807 }
554f62e9
RD
5808 }
5809 if (obj3) {
5810 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
5811 if (!SWIG_IsOK(res4)) {
5812 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "LoadFileSelector" "', expected argument " "4"" of type '" "wxWindow *""'");
093d3ff1 5813 }
554f62e9
RD
5814 arg4 = reinterpret_cast< wxWindow * >(argp4);
5815 }
5816 {
5817 if (!wxPyCheckForApp()) SWIG_fail;
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 {
093d3ff1 5824#if wxUSE_UNICODE
554f62e9 5825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5826#else
554f62e9 5827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5828#endif
554f62e9
RD
5829 }
5830 {
5831 if (temp1)
5832 delete arg1;
5833 }
5834 {
5835 if (temp2)
5836 delete arg2;
5837 }
5838 {
5839 if (temp3)
5840 delete arg3;
5841 }
5842 return resultobj;
5843fail:
5844 {
5845 if (temp1)
5846 delete arg1;
5847 }
5848 {
5849 if (temp2)
5850 delete arg2;
5851 }
5852 {
5853 if (temp3)
5854 delete arg3;
5855 }
5856 return NULL;
5857}
5858
5859
5860SWIGINTERN PyObject *_wrap_SaveFileSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj = 0;
5862 wxString *arg1 = 0 ;
5863 wxString *arg2 = 0 ;
5864 wxString const &arg3_defvalue = wxPyEmptyString ;
5865 wxString *arg3 = (wxString *) &arg3_defvalue ;
5866 wxWindow *arg4 = (wxWindow *) NULL ;
5867 wxString result;
5868 bool temp1 = false ;
5869 bool temp2 = false ;
5870 bool temp3 = false ;
5871 void *argp4 = 0 ;
5872 int res4 = 0 ;
5873 PyObject * obj0 = 0 ;
5874 PyObject * obj1 = 0 ;
5875 PyObject * obj2 = 0 ;
5876 PyObject * obj3 = 0 ;
5877 char * kwnames[] = {
5878 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
5879 };
5880
5881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5882 {
5883 arg1 = wxString_in_helper(obj0);
5884 if (arg1 == NULL) SWIG_fail;
5885 temp1 = true;
5886 }
5887 {
5888 arg2 = wxString_in_helper(obj1);
5889 if (arg2 == NULL) SWIG_fail;
5890 temp2 = true;
5891 }
5892 if (obj2) {
093d3ff1 5893 {
554f62e9
RD
5894 arg3 = wxString_in_helper(obj2);
5895 if (arg3 == NULL) SWIG_fail;
5896 temp3 = true;
093d3ff1 5897 }
554f62e9
RD
5898 }
5899 if (obj3) {
5900 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
5901 if (!SWIG_IsOK(res4)) {
5902 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SaveFileSelector" "', expected argument " "4"" of type '" "wxWindow *""'");
093d3ff1 5903 }
554f62e9
RD
5904 arg4 = reinterpret_cast< wxWindow * >(argp4);
5905 }
5906 {
5907 if (!wxPyCheckForApp()) SWIG_fail;
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 {
093d3ff1 5914#if wxUSE_UNICODE
554f62e9 5915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 5916#else
554f62e9 5917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 5918#endif
554f62e9
RD
5919 }
5920 {
5921 if (temp1)
5922 delete arg1;
5923 }
5924 {
5925 if (temp2)
5926 delete arg2;
5927 }
5928 {
5929 if (temp3)
5930 delete arg3;
5931 }
5932 return resultobj;
5933fail:
5934 {
5935 if (temp1)
5936 delete arg1;
5937 }
5938 {
5939 if (temp2)
5940 delete arg2;
5941 }
5942 {
5943 if (temp3)
5944 delete arg3;
5945 }
5946 return NULL;
5947}
5948
5949
5950SWIGINTERN PyObject *_wrap_DirSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj = 0;
5952 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
5953 wxString *arg1 = (wxString *) &arg1_defvalue ;
5954 wxString const &arg2_defvalue = wxPyEmptyString ;
5955 wxString *arg2 = (wxString *) &arg2_defvalue ;
5956 long arg3 = (long) wxDD_DEFAULT_STYLE ;
5957 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5958 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5959 wxWindow *arg5 = (wxWindow *) NULL ;
5960 wxString result;
5961 bool temp1 = false ;
5962 bool temp2 = false ;
5963 long val3 ;
5964 int ecode3 = 0 ;
5965 wxPoint temp4 ;
5966 void *argp5 = 0 ;
5967 int res5 = 0 ;
5968 PyObject * obj0 = 0 ;
5969 PyObject * obj1 = 0 ;
5970 PyObject * obj2 = 0 ;
5971 PyObject * obj3 = 0 ;
5972 PyObject * obj4 = 0 ;
5973 char * kwnames[] = {
5974 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
5975 };
5976
5977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
5978 if (obj0) {
093d3ff1 5979 {
554f62e9
RD
5980 arg1 = wxString_in_helper(obj0);
5981 if (arg1 == NULL) SWIG_fail;
5982 temp1 = true;
093d3ff1 5983 }
554f62e9
RD
5984 }
5985 if (obj1) {
093d3ff1 5986 {
554f62e9
RD
5987 arg2 = wxString_in_helper(obj1);
5988 if (arg2 == NULL) SWIG_fail;
5989 temp2 = true;
d55e5bfc 5990 }
554f62e9
RD
5991 }
5992 if (obj2) {
5993 ecode3 = SWIG_AsVal_long(obj2, &val3);
5994 if (!SWIG_IsOK(ecode3)) {
5995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirSelector" "', expected argument " "3"" of type '" "long""'");
5996 }
5997 arg3 = static_cast< long >(val3);
5998 }
5999 if (obj3) {
d55e5bfc 6000 {
554f62e9
RD
6001 arg4 = &temp4;
6002 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 6003 }
554f62e9
RD
6004 }
6005 if (obj4) {
6006 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6007 if (!SWIG_IsOK(res5)) {
6008 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DirSelector" "', expected argument " "5"" of type '" "wxWindow *""'");
6009 }
6010 arg5 = reinterpret_cast< wxWindow * >(argp5);
6011 }
6012 {
6013 if (!wxPyCheckForApp()) SWIG_fail;
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 {
d55e5bfc 6020#if wxUSE_UNICODE
554f62e9 6021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 6022#else
554f62e9 6023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 6024#endif
554f62e9
RD
6025 }
6026 {
6027 if (temp1)
6028 delete arg1;
6029 }
6030 {
6031 if (temp2)
6032 delete arg2;
6033 }
6034 return resultobj;
6035fail:
6036 {
6037 if (temp1)
6038 delete arg1;
6039 }
6040 {
6041 if (temp2)
6042 delete arg2;
6043 }
6044 return NULL;
6045}
6046
6047
6048SWIGINTERN PyObject *_wrap_GetTextFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 wxString *arg1 = 0 ;
6051 wxString const &arg2_defvalue = wxPyEmptyString ;
6052 wxString *arg2 = (wxString *) &arg2_defvalue ;
6053 wxString const &arg3_defvalue = wxPyEmptyString ;
6054 wxString *arg3 = (wxString *) &arg3_defvalue ;
6055 wxWindow *arg4 = (wxWindow *) NULL ;
6056 int arg5 = (int) -1 ;
6057 int arg6 = (int) -1 ;
6058 bool arg7 = (bool) true ;
6059 wxString result;
6060 bool temp1 = false ;
6061 bool temp2 = false ;
6062 bool temp3 = false ;
6063 void *argp4 = 0 ;
6064 int res4 = 0 ;
6065 int val5 ;
6066 int ecode5 = 0 ;
6067 int val6 ;
6068 int ecode6 = 0 ;
6069 bool val7 ;
6070 int ecode7 = 0 ;
6071 PyObject * obj0 = 0 ;
6072 PyObject * obj1 = 0 ;
6073 PyObject * obj2 = 0 ;
6074 PyObject * obj3 = 0 ;
6075 PyObject * obj4 = 0 ;
6076 PyObject * obj5 = 0 ;
6077 PyObject * obj6 = 0 ;
6078 char * kwnames[] = {
6079 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
6080 };
6081
6082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
6083 {
6084 arg1 = wxString_in_helper(obj0);
6085 if (arg1 == NULL) SWIG_fail;
6086 temp1 = true;
6087 }
6088 if (obj1) {
d55e5bfc 6089 {
554f62e9
RD
6090 arg2 = wxString_in_helper(obj1);
6091 if (arg2 == NULL) SWIG_fail;
6092 temp2 = true;
d55e5bfc 6093 }
554f62e9
RD
6094 }
6095 if (obj2) {
093d3ff1 6096 {
554f62e9
RD
6097 arg3 = wxString_in_helper(obj2);
6098 if (arg3 == NULL) SWIG_fail;
6099 temp3 = true;
093d3ff1 6100 }
554f62e9
RD
6101 }
6102 if (obj3) {
6103 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6104 if (!SWIG_IsOK(res4)) {
6105 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GetTextFromUser" "', expected argument " "4"" of type '" "wxWindow *""'");
d55e5bfc 6106 }
554f62e9
RD
6107 arg4 = reinterpret_cast< wxWindow * >(argp4);
6108 }
6109 if (obj4) {
6110 ecode5 = SWIG_AsVal_int(obj4, &val5);
6111 if (!SWIG_IsOK(ecode5)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GetTextFromUser" "', expected argument " "5"" of type '" "int""'");
6113 }
6114 arg5 = static_cast< int >(val5);
6115 }
6116 if (obj5) {
6117 ecode6 = SWIG_AsVal_int(obj5, &val6);
6118 if (!SWIG_IsOK(ecode6)) {
6119 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetTextFromUser" "', expected argument " "6"" of type '" "int""'");
6120 }
6121 arg6 = static_cast< int >(val6);
6122 }
6123 if (obj6) {
6124 ecode7 = SWIG_AsVal_bool(obj6, &val7);
6125 if (!SWIG_IsOK(ecode7)) {
6126 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetTextFromUser" "', expected argument " "7"" of type '" "bool""'");
6127 }
6128 arg7 = static_cast< bool >(val7);
6129 }
6130 {
6131 if (!wxPyCheckForApp()) SWIG_fail;
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 {
d55e5bfc 6138#if wxUSE_UNICODE
554f62e9 6139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 6140#else
554f62e9 6141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 6142#endif
554f62e9
RD
6143 }
6144 {
6145 if (temp1)
6146 delete arg1;
6147 }
6148 {
6149 if (temp2)
6150 delete arg2;
6151 }
6152 {
6153 if (temp3)
6154 delete arg3;
6155 }
6156 return resultobj;
6157fail:
6158 {
6159 if (temp1)
6160 delete arg1;
6161 }
6162 {
6163 if (temp2)
6164 delete arg2;
6165 }
6166 {
6167 if (temp3)
6168 delete arg3;
6169 }
6170 return NULL;
6171}
6172
6173
6174SWIGINTERN PyObject *_wrap_GetPasswordFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6175 PyObject *resultobj = 0;
6176 wxString *arg1 = 0 ;
6177 wxString const &arg2_defvalue = wxPyEmptyString ;
6178 wxString *arg2 = (wxString *) &arg2_defvalue ;
6179 wxString const &arg3_defvalue = wxPyEmptyString ;
6180 wxString *arg3 = (wxString *) &arg3_defvalue ;
6181 wxWindow *arg4 = (wxWindow *) NULL ;
6182 wxString result;
6183 bool temp1 = false ;
6184 bool temp2 = false ;
6185 bool temp3 = false ;
6186 void *argp4 = 0 ;
6187 int res4 = 0 ;
6188 PyObject * obj0 = 0 ;
6189 PyObject * obj1 = 0 ;
6190 PyObject * obj2 = 0 ;
6191 PyObject * obj3 = 0 ;
6192 char * kwnames[] = {
6193 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
6194 };
6195
6196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6197 {
6198 arg1 = wxString_in_helper(obj0);
6199 if (arg1 == NULL) SWIG_fail;
6200 temp1 = true;
6201 }
6202 if (obj1) {
d55e5bfc 6203 {
554f62e9
RD
6204 arg2 = wxString_in_helper(obj1);
6205 if (arg2 == NULL) SWIG_fail;
6206 temp2 = true;
d55e5bfc 6207 }
554f62e9
RD
6208 }
6209 if (obj2) {
093d3ff1 6210 {
554f62e9
RD
6211 arg3 = wxString_in_helper(obj2);
6212 if (arg3 == NULL) SWIG_fail;
6213 temp3 = true;
d55e5bfc 6214 }
554f62e9
RD
6215 }
6216 if (obj3) {
6217 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6218 if (!SWIG_IsOK(res4)) {
6219 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GetPasswordFromUser" "', expected argument " "4"" of type '" "wxWindow *""'");
d55e5bfc 6220 }
554f62e9
RD
6221 arg4 = reinterpret_cast< wxWindow * >(argp4);
6222 }
6223 {
6224 if (!wxPyCheckForApp()) SWIG_fail;
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 {
d55e5bfc 6231#if wxUSE_UNICODE
554f62e9 6232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 6233#else
554f62e9 6234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 6235#endif
554f62e9
RD
6236 }
6237 {
6238 if (temp1)
6239 delete arg1;
6240 }
6241 {
6242 if (temp2)
6243 delete arg2;
6244 }
6245 {
6246 if (temp3)
6247 delete arg3;
6248 }
6249 return resultobj;
6250fail:
6251 {
6252 if (temp1)
6253 delete arg1;
6254 }
6255 {
6256 if (temp2)
6257 delete arg2;
6258 }
6259 {
6260 if (temp3)
6261 delete arg3;
6262 }
6263 return NULL;
6264}
6265
6266
6267SWIGINTERN PyObject *_wrap_GetSingleChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj = 0;
6269 wxString *arg1 = 0 ;
6270 wxString *arg2 = 0 ;
6271 int arg3 ;
6272 wxString *arg4 = (wxString *) 0 ;
6273 wxWindow *arg5 = (wxWindow *) NULL ;
6274 int arg6 = (int) -1 ;
6275 int arg7 = (int) -1 ;
6276 bool arg8 = (bool) true ;
6277 int arg9 = (int) 150 ;
6278 int arg10 = (int) 200 ;
6279 wxString result;
6280 bool temp1 = false ;
6281 bool temp2 = false ;
6282 void *argp5 = 0 ;
6283 int res5 = 0 ;
6284 int val6 ;
6285 int ecode6 = 0 ;
6286 int val7 ;
6287 int ecode7 = 0 ;
6288 bool val8 ;
6289 int ecode8 = 0 ;
6290 int val9 ;
6291 int ecode9 = 0 ;
6292 int val10 ;
6293 int ecode10 = 0 ;
6294 PyObject * obj0 = 0 ;
6295 PyObject * obj1 = 0 ;
6296 PyObject * obj2 = 0 ;
6297 PyObject * obj3 = 0 ;
6298 PyObject * obj4 = 0 ;
6299 PyObject * obj5 = 0 ;
6300 PyObject * obj6 = 0 ;
6301 PyObject * obj7 = 0 ;
6302 PyObject * obj8 = 0 ;
6303 char * kwnames[] = {
6304 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
6305 };
6306
6307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6308 {
6309 arg1 = wxString_in_helper(obj0);
6310 if (arg1 == NULL) SWIG_fail;
6311 temp1 = true;
6312 }
6313 {
6314 arg2 = wxString_in_helper(obj1);
6315 if (arg2 == NULL) SWIG_fail;
6316 temp2 = true;
6317 }
6318 {
6319 arg3 = PyList_Size(obj2);
6320 arg4 = wxString_LIST_helper(obj2);
6321 if (arg4 == NULL) SWIG_fail;
6322 }
6323 if (obj3) {
6324 res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6325 if (!SWIG_IsOK(res5)) {
6326 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GetSingleChoice" "', expected argument " "5"" of type '" "wxWindow *""'");
d55e5bfc 6327 }
554f62e9
RD
6328 arg5 = reinterpret_cast< wxWindow * >(argp5);
6329 }
6330 if (obj4) {
6331 ecode6 = SWIG_AsVal_int(obj4, &val6);
6332 if (!SWIG_IsOK(ecode6)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetSingleChoice" "', expected argument " "6"" of type '" "int""'");
6334 }
6335 arg6 = static_cast< int >(val6);
6336 }
6337 if (obj5) {
6338 ecode7 = SWIG_AsVal_int(obj5, &val7);
6339 if (!SWIG_IsOK(ecode7)) {
6340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetSingleChoice" "', expected argument " "7"" of type '" "int""'");
6341 }
6342 arg7 = static_cast< int >(val7);
6343 }
6344 if (obj6) {
6345 ecode8 = SWIG_AsVal_bool(obj6, &val8);
6346 if (!SWIG_IsOK(ecode8)) {
6347 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "GetSingleChoice" "', expected argument " "8"" of type '" "bool""'");
6348 }
6349 arg8 = static_cast< bool >(val8);
6350 }
6351 if (obj7) {
6352 ecode9 = SWIG_AsVal_int(obj7, &val9);
6353 if (!SWIG_IsOK(ecode9)) {
6354 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GetSingleChoice" "', expected argument " "9"" of type '" "int""'");
6355 }
6356 arg9 = static_cast< int >(val9);
6357 }
6358 if (obj8) {
6359 ecode10 = SWIG_AsVal_int(obj8, &val10);
6360 if (!SWIG_IsOK(ecode10)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "GetSingleChoice" "', expected argument " "10"" of type '" "int""'");
6362 }
6363 arg10 = static_cast< int >(val10);
6364 }
6365 {
6366 if (!wxPyCheckForApp()) SWIG_fail;
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 {
d55e5bfc 6373#if wxUSE_UNICODE
554f62e9 6374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 6375#else
554f62e9 6376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 6377#endif
554f62e9
RD
6378 }
6379 {
6380 if (temp1)
6381 delete arg1;
6382 }
6383 {
6384 if (temp2)
6385 delete arg2;
6386 }
6387 {
6388 if (arg4) delete [] arg4;
6389 }
6390 return resultobj;
6391fail:
6392 {
6393 if (temp1)
6394 delete arg1;
6395 }
6396 {
6397 if (temp2)
6398 delete arg2;
6399 }
6400 {
6401 if (arg4) delete [] arg4;
6402 }
6403 return NULL;
6404}
6405
6406
6407SWIGINTERN PyObject *_wrap_GetSingleChoiceIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj = 0;
6409 wxString *arg1 = 0 ;
6410 wxString *arg2 = 0 ;
6411 int arg3 ;
6412 wxString *arg4 = (wxString *) 0 ;
6413 wxWindow *arg5 = (wxWindow *) NULL ;
6414 int arg6 = (int) -1 ;
6415 int arg7 = (int) -1 ;
6416 bool arg8 = (bool) true ;
6417 int arg9 = (int) 150 ;
6418 int arg10 = (int) 200 ;
6419 int result;
6420 bool temp1 = false ;
6421 bool temp2 = false ;
6422 void *argp5 = 0 ;
6423 int res5 = 0 ;
6424 int val6 ;
6425 int ecode6 = 0 ;
6426 int val7 ;
6427 int ecode7 = 0 ;
6428 bool val8 ;
6429 int ecode8 = 0 ;
6430 int val9 ;
6431 int ecode9 = 0 ;
6432 int val10 ;
6433 int ecode10 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 PyObject * obj3 = 0 ;
6438 PyObject * obj4 = 0 ;
6439 PyObject * obj5 = 0 ;
6440 PyObject * obj6 = 0 ;
6441 PyObject * obj7 = 0 ;
6442 PyObject * obj8 = 0 ;
6443 char * kwnames[] = {
6444 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
6445 };
6446
6447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6448 {
6449 arg1 = wxString_in_helper(obj0);
6450 if (arg1 == NULL) SWIG_fail;
6451 temp1 = true;
6452 }
6453 {
6454 arg2 = wxString_in_helper(obj1);
6455 if (arg2 == NULL) SWIG_fail;
6456 temp2 = true;
6457 }
6458 {
6459 arg3 = PyList_Size(obj2);
6460 arg4 = wxString_LIST_helper(obj2);
6461 if (arg4 == NULL) SWIG_fail;
6462 }
6463 if (obj3) {
6464 res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p_wxWindow, 0 | 0 );
6465 if (!SWIG_IsOK(res5)) {
6466 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GetSingleChoiceIndex" "', expected argument " "5"" of type '" "wxWindow *""'");
d55e5bfc 6467 }
554f62e9
RD
6468 arg5 = reinterpret_cast< wxWindow * >(argp5);
6469 }
6470 if (obj4) {
6471 ecode6 = SWIG_AsVal_int(obj4, &val6);
6472 if (!SWIG_IsOK(ecode6)) {
6473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetSingleChoiceIndex" "', expected argument " "6"" of type '" "int""'");
6474 }
6475 arg6 = static_cast< int >(val6);
6476 }
6477 if (obj5) {
6478 ecode7 = SWIG_AsVal_int(obj5, &val7);
6479 if (!SWIG_IsOK(ecode7)) {
6480 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GetSingleChoiceIndex" "', expected argument " "7"" of type '" "int""'");
6481 }
6482 arg7 = static_cast< int >(val7);
6483 }
6484 if (obj6) {
6485 ecode8 = SWIG_AsVal_bool(obj6, &val8);
6486 if (!SWIG_IsOK(ecode8)) {
6487 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "GetSingleChoiceIndex" "', expected argument " "8"" of type '" "bool""'");
6488 }
6489 arg8 = static_cast< bool >(val8);
6490 }
6491 if (obj7) {
6492 ecode9 = SWIG_AsVal_int(obj7, &val9);
6493 if (!SWIG_IsOK(ecode9)) {
6494 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GetSingleChoiceIndex" "', expected argument " "9"" of type '" "int""'");
6495 }
6496 arg9 = static_cast< int >(val9);
6497 }
6498 if (obj8) {
6499 ecode10 = SWIG_AsVal_int(obj8, &val10);
6500 if (!SWIG_IsOK(ecode10)) {
6501 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "GetSingleChoiceIndex" "', expected argument " "10"" of type '" "int""'");
6502 }
6503 arg10 = static_cast< int >(val10);
6504 }
6505 {
6506 if (!wxPyCheckForApp()) SWIG_fail;
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
6509 wxPyEndAllowThreads(__tstate);
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 resultobj = SWIG_From_int(static_cast< int >(result));
6513 {
6514 if (temp1)
6515 delete arg1;
6516 }
6517 {
6518 if (temp2)
6519 delete arg2;
6520 }
6521 {
6522 if (arg4) delete [] arg4;
6523 }
6524 return resultobj;
6525fail:
6526 {
6527 if (temp1)
6528 delete arg1;
6529 }
6530 {
6531 if (temp2)
6532 delete arg2;
6533 }
6534 {
6535 if (arg4) delete [] arg4;
6536 }
6537 return NULL;
6538}
6539
6540
6541SWIGINTERN PyObject *_wrap_MessageBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6542 PyObject *resultobj = 0;
6543 wxString *arg1 = 0 ;
6544 wxString const &arg2_defvalue = wxPyEmptyString ;
6545 wxString *arg2 = (wxString *) &arg2_defvalue ;
6546 int arg3 = (int) wxOK|wxCENTRE ;
6547 wxWindow *arg4 = (wxWindow *) NULL ;
6548 int arg5 = (int) -1 ;
6549 int arg6 = (int) -1 ;
6550 int result;
6551 bool temp1 = false ;
6552 bool temp2 = false ;
6553 int val3 ;
6554 int ecode3 = 0 ;
6555 void *argp4 = 0 ;
6556 int res4 = 0 ;
6557 int val5 ;
6558 int ecode5 = 0 ;
6559 int val6 ;
6560 int ecode6 = 0 ;
6561 PyObject * obj0 = 0 ;
6562 PyObject * obj1 = 0 ;
6563 PyObject * obj2 = 0 ;
6564 PyObject * obj3 = 0 ;
6565 PyObject * obj4 = 0 ;
6566 PyObject * obj5 = 0 ;
6567 char * kwnames[] = {
6568 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
6569 };
6570
6571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6572 {
6573 arg1 = wxString_in_helper(obj0);
6574 if (arg1 == NULL) SWIG_fail;
6575 temp1 = true;
6576 }
6577 if (obj1) {
d55e5bfc 6578 {
554f62e9
RD
6579 arg2 = wxString_in_helper(obj1);
6580 if (arg2 == NULL) SWIG_fail;
6581 temp2 = true;
d55e5bfc 6582 }
554f62e9
RD
6583 }
6584 if (obj2) {
6585 ecode3 = SWIG_AsVal_int(obj2, &val3);
6586 if (!SWIG_IsOK(ecode3)) {
6587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessageBox" "', expected argument " "3"" of type '" "int""'");
6588 }
6589 arg3 = static_cast< int >(val3);
6590 }
6591 if (obj3) {
6592 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
6593 if (!SWIG_IsOK(res4)) {
6594 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MessageBox" "', expected argument " "4"" of type '" "wxWindow *""'");
d55e5bfc 6595 }
554f62e9
RD
6596 arg4 = reinterpret_cast< wxWindow * >(argp4);
6597 }
6598 if (obj4) {
6599 ecode5 = SWIG_AsVal_int(obj4, &val5);
6600 if (!SWIG_IsOK(ecode5)) {
6601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "MessageBox" "', expected argument " "5"" of type '" "int""'");
6602 }
6603 arg5 = static_cast< int >(val5);
6604 }
6605 if (obj5) {
6606 ecode6 = SWIG_AsVal_int(obj5, &val6);
6607 if (!SWIG_IsOK(ecode6)) {
6608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "MessageBox" "', expected argument " "6"" of type '" "int""'");
6609 }
6610 arg6 = static_cast< int >(val6);
6611 }
6612 {
6613 if (!wxPyCheckForApp()) SWIG_fail;
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 resultobj = SWIG_From_int(static_cast< int >(result));
6620 {
6621 if (temp1)
6622 delete arg1;
6623 }
6624 {
6625 if (temp2)
6626 delete arg2;
6627 }
6628 return resultobj;
6629fail:
6630 {
6631 if (temp1)
6632 delete arg1;
6633 }
6634 {
6635 if (temp2)
6636 delete arg2;
6637 }
6638 return NULL;
d55e5bfc
RD
6639}
6640
6641
27e45892
RD
6642SWIGINTERN PyObject *_wrap_GetNumberFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj = 0;
6644 wxString *arg1 = 0 ;
6645 wxString *arg2 = 0 ;
6646 wxString *arg3 = 0 ;
6647 long arg4 ;
6648 long arg5 = (long) 0 ;
6649 long arg6 = (long) 100 ;
6650 wxWindow *arg7 = (wxWindow *) NULL ;
6651 wxPoint const &arg8_defvalue = wxDefaultPosition ;
6652 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
6653 long result;
6654 bool temp1 = false ;
6655 bool temp2 = false ;
6656 bool temp3 = false ;
6657 long val4 ;
6658 int ecode4 = 0 ;
6659 long val5 ;
6660 int ecode5 = 0 ;
6661 long val6 ;
6662 int ecode6 = 0 ;
6663 void *argp7 = 0 ;
6664 int res7 = 0 ;
6665 wxPoint temp8 ;
6666 PyObject * obj0 = 0 ;
6667 PyObject * obj1 = 0 ;
6668 PyObject * obj2 = 0 ;
6669 PyObject * obj3 = 0 ;
6670 PyObject * obj4 = 0 ;
6671 PyObject * obj5 = 0 ;
6672 PyObject * obj6 = 0 ;
6673 PyObject * obj7 = 0 ;
6674 char * kwnames[] = {
6675 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
6676 };
6677
6678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6679 {
6680 arg1 = wxString_in_helper(obj0);
6681 if (arg1 == NULL) SWIG_fail;
6682 temp1 = true;
6683 }
6684 {
6685 arg2 = wxString_in_helper(obj1);
6686 if (arg2 == NULL) SWIG_fail;
6687 temp2 = true;
6688 }
6689 {
6690 arg3 = wxString_in_helper(obj2);
6691 if (arg3 == NULL) SWIG_fail;
6692 temp3 = true;
6693 }
6694 ecode4 = SWIG_AsVal_long(obj3, &val4);
6695 if (!SWIG_IsOK(ecode4)) {
6696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GetNumberFromUser" "', expected argument " "4"" of type '" "long""'");
6697 }
6698 arg4 = static_cast< long >(val4);
6699 if (obj4) {
6700 ecode5 = SWIG_AsVal_long(obj4, &val5);
6701 if (!SWIG_IsOK(ecode5)) {
6702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GetNumberFromUser" "', expected argument " "5"" of type '" "long""'");
6703 }
6704 arg5 = static_cast< long >(val5);
6705 }
6706 if (obj5) {
6707 ecode6 = SWIG_AsVal_long(obj5, &val6);
6708 if (!SWIG_IsOK(ecode6)) {
6709 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GetNumberFromUser" "', expected argument " "6"" of type '" "long""'");
6710 }
6711 arg6 = static_cast< long >(val6);
6712 }
6713 if (obj6) {
6714 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxWindow, 0 | 0 );
6715 if (!SWIG_IsOK(res7)) {
6716 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "GetNumberFromUser" "', expected argument " "7"" of type '" "wxWindow *""'");
6717 }
6718 arg7 = reinterpret_cast< wxWindow * >(argp7);
6719 }
6720 if (obj7) {
6721 {
6722 arg8 = &temp8;
6723 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
6724 }
6725 }
6726 {
6727 if (!wxPyCheckForApp()) SWIG_fail;
6728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6729 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 resultobj = SWIG_From_long(static_cast< long >(result));
6734 {
6735 if (temp1)
6736 delete arg1;
6737 }
6738 {
6739 if (temp2)
6740 delete arg2;
6741 }
6742 {
6743 if (temp3)
6744 delete arg3;
6745 }
6746 return resultobj;
6747fail:
6748 {
6749 if (temp1)
6750 delete arg1;
6751 }
6752 {
6753 if (temp2)
6754 delete arg2;
6755 }
6756 {
6757 if (temp3)
6758 delete arg3;
6759 }
6760 return NULL;
6761}
6762
6763
554f62e9
RD
6764SWIGINTERN PyObject *_wrap_ColourDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *resultobj = 0;
6766 bool result;
6767
6768 if (!SWIG_Python_UnpackTuple(args,"ColourDisplay",0,0,0)) SWIG_fail;
6769 {
6770 if (!wxPyCheckForApp()) SWIG_fail;
6771 PyThreadState* __tstate = wxPyBeginAllowThreads();
6772 result = (bool)wxColourDisplay();
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 {
6777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6778 }
6779 return resultobj;
6780fail:
6781 return NULL;
d55e5bfc
RD
6782}
6783
6784
554f62e9
RD
6785SWIGINTERN PyObject *_wrap_DisplayDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6786 PyObject *resultobj = 0;
6787 int result;
6788
6789 if (!SWIG_Python_UnpackTuple(args,"DisplayDepth",0,0,0)) SWIG_fail;
6790 {
6791 if (!wxPyCheckForApp()) SWIG_fail;
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = (int)wxDisplayDepth();
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 resultobj = SWIG_From_int(static_cast< int >(result));
6798 return resultobj;
6799fail:
6800 return NULL;
d55e5bfc
RD
6801}
6802
6803
554f62e9
RD
6804SWIGINTERN PyObject *_wrap_GetDisplayDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6805 PyObject *resultobj = 0;
6806 int result;
6807
6808 if (!SWIG_Python_UnpackTuple(args,"GetDisplayDepth",0,0,0)) SWIG_fail;
6809 {
6810 if (!wxPyCheckForApp()) SWIG_fail;
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 result = (int)wxGetDisplayDepth();
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 resultobj = SWIG_From_int(static_cast< int >(result));
6817 return resultobj;
6818fail:
6819 return NULL;
d55e5bfc
RD
6820}
6821
6822
554f62e9
RD
6823SWIGINTERN PyObject *_wrap_DisplaySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6824 PyObject *resultobj = 0;
6825 int *arg1 = (int *) 0 ;
6826 int *arg2 = (int *) 0 ;
6827 int temp1 ;
6828 int res1 = SWIG_TMPOBJ ;
6829 int temp2 ;
6830 int res2 = SWIG_TMPOBJ ;
6831
6832 arg1 = &temp1;
6833 arg2 = &temp2;
6834 if (!SWIG_Python_UnpackTuple(args,"DisplaySize",0,0,0)) SWIG_fail;
6835 {
6836 if (!wxPyCheckForApp()) SWIG_fail;
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 wxDisplaySize(arg1,arg2);
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_Py_Void();
6843 if (SWIG_IsTmpObj(res1)) {
6844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6845 } else {
6846 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6848 }
6849 if (SWIG_IsTmpObj(res2)) {
6850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6851 } else {
6852 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6854 }
6855 return resultobj;
6856fail:
6857 return NULL;
d55e5bfc
RD
6858}
6859
6860
554f62e9
RD
6861SWIGINTERN PyObject *_wrap_GetDisplaySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6862 PyObject *resultobj = 0;
6863 wxSize result;
6864
6865 if (!SWIG_Python_UnpackTuple(args,"GetDisplaySize",0,0,0)) SWIG_fail;
6866 {
6867 if (!wxPyCheckForApp()) SWIG_fail;
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 result = wxGetDisplaySize();
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6874 return resultobj;
6875fail:
6876 return NULL;
d55e5bfc
RD
6877}
6878
6879
554f62e9
RD
6880SWIGINTERN PyObject *_wrap_DisplaySizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6881 PyObject *resultobj = 0;
6882 int *arg1 = (int *) 0 ;
6883 int *arg2 = (int *) 0 ;
6884 int temp1 ;
6885 int res1 = SWIG_TMPOBJ ;
6886 int temp2 ;
6887 int res2 = SWIG_TMPOBJ ;
6888
6889 arg1 = &temp1;
6890 arg2 = &temp2;
6891 if (!SWIG_Python_UnpackTuple(args,"DisplaySizeMM",0,0,0)) SWIG_fail;
6892 {
6893 if (!wxPyCheckForApp()) SWIG_fail;
6894 PyThreadState* __tstate = wxPyBeginAllowThreads();
6895 wxDisplaySizeMM(arg1,arg2);
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 resultobj = SWIG_Py_Void();
6900 if (SWIG_IsTmpObj(res1)) {
6901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6902 } else {
6903 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6905 }
6906 if (SWIG_IsTmpObj(res2)) {
6907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6908 } else {
6909 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6911 }
6912 return resultobj;
6913fail:
6914 return NULL;
093d3ff1
RD
6915}
6916
6917
554f62e9
RD
6918SWIGINTERN PyObject *_wrap_GetDisplaySizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6919 PyObject *resultobj = 0;
6920 wxSize result;
6921
6922 if (!SWIG_Python_UnpackTuple(args,"GetDisplaySizeMM",0,0,0)) SWIG_fail;
6923 {
6924 if (!wxPyCheckForApp()) SWIG_fail;
6925 PyThreadState* __tstate = wxPyBeginAllowThreads();
6926 result = wxGetDisplaySizeMM();
6927 wxPyEndAllowThreads(__tstate);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6931 return resultobj;
6932fail:
6933 return NULL;
6934}
6935
6936
6937SWIGINTERN PyObject *_wrap_ClientDisplayRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6938 PyObject *resultobj = 0;
6939 int *arg1 = (int *) 0 ;
6940 int *arg2 = (int *) 0 ;
6941 int *arg3 = (int *) 0 ;
6942 int *arg4 = (int *) 0 ;
6943 int temp1 ;
6944 int res1 = SWIG_TMPOBJ ;
6945 int temp2 ;
6946 int res2 = SWIG_TMPOBJ ;
6947 int temp3 ;
6948 int res3 = SWIG_TMPOBJ ;
6949 int temp4 ;
6950 int res4 = SWIG_TMPOBJ ;
6951
6952 arg1 = &temp1;
6953 arg2 = &temp2;
6954 arg3 = &temp3;
6955 arg4 = &temp4;
6956 if (!SWIG_Python_UnpackTuple(args,"ClientDisplayRect",0,0,0)) SWIG_fail;
6957 {
6958 if (!wxPyCheckForApp()) SWIG_fail;
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 wxClientDisplayRect(arg1,arg2,arg3,arg4);
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 resultobj = SWIG_Py_Void();
6965 if (SWIG_IsTmpObj(res1)) {
6966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));
6967 } else {
6968 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
6970 }
6971 if (SWIG_IsTmpObj(res2)) {
6972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
6973 } else {
6974 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
6976 }
6977 if (SWIG_IsTmpObj(res3)) {
6978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
6979 } else {
6980 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
6982 }
6983 if (SWIG_IsTmpObj(res4)) {
6984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
6985 } else {
6986 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
6988 }
6989 return resultobj;
6990fail:
6991 return NULL;
093d3ff1
RD
6992}
6993
6994
554f62e9
RD
6995SWIGINTERN PyObject *_wrap_GetClientDisplayRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6996 PyObject *resultobj = 0;
6997 wxRect result;
6998
6999 if (!SWIG_Python_UnpackTuple(args,"GetClientDisplayRect",0,0,0)) SWIG_fail;
7000 {
7001 if (!wxPyCheckForApp()) SWIG_fail;
7002 PyThreadState* __tstate = wxPyBeginAllowThreads();
7003 result = wxGetClientDisplayRect();
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7008 return resultobj;
7009fail:
7010 return NULL;
093d3ff1
RD
7011}
7012
7013
554f62e9
RD
7014SWIGINTERN PyObject *_wrap_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj = 0;
7016 wxCursor *arg1 = 0 ;
7017 void *argp1 = 0 ;
7018 int res1 = 0 ;
7019 PyObject * obj0 = 0 ;
7020 char * kwnames[] = {
7021 (char *) "cursor", NULL
7022 };
7023
7024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) SWIG_fail;
7025 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxCursor, 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursor" "', expected argument " "1"" of type '" "wxCursor &""'");
7028 }
7029 if (!argp1) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SetCursor" "', expected argument " "1"" of type '" "wxCursor &""'");
7031 }
7032 arg1 = reinterpret_cast< wxCursor * >(argp1);
7033 {
7034 if (!wxPyCheckForApp()) SWIG_fail;
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 wxSetCursor(*arg1);
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 resultobj = SWIG_Py_Void();
7041 return resultobj;
7042fail:
7043 return NULL;
d55e5bfc
RD
7044}
7045
7046
554f62e9
RD
7047SWIGINTERN PyObject *_wrap_GetXDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7048 PyObject *resultobj = 0;
7049 void *result = 0 ;
7050
7051 if (!SWIG_Python_UnpackTuple(args,"GetXDisplay",0,0,0)) SWIG_fail;
7052 {
7053 if (!wxPyCheckForApp()) SWIG_fail;
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 result = (void *)wxGetXDisplay();
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
7060 return resultobj;
7061fail:
7062 return NULL;
d55e5bfc
RD
7063}
7064
7065
554f62e9
RD
7066SWIGINTERN PyObject *_wrap_BeginBusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj = 0;
7068 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
7069 void *argp1 = 0 ;
7070 int res1 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 char * kwnames[] = {
7073 (char *) "cursor", NULL
7074 };
7075
7076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) SWIG_fail;
7077 if (obj0) {
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BeginBusyCursor" "', expected argument " "1"" of type '" "wxCursor *""'");
d55e5bfc 7081 }
554f62e9
RD
7082 arg1 = reinterpret_cast< wxCursor * >(argp1);
7083 }
7084 {
7085 if (!wxPyCheckForApp()) SWIG_fail;
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 wxBeginBusyCursor(arg1);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093fail:
7094 return NULL;
d55e5bfc
RD
7095}
7096
7097
554f62e9
RD
7098SWIGINTERN PyObject *_wrap_GetMousePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxPoint result;
7101
7102 if (!SWIG_Python_UnpackTuple(args,"GetMousePosition",0,0,0)) SWIG_fail;
7103 {
7104 if (!wxPyCheckForApp()) SWIG_fail;
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 result = wxGetMousePosition();
7107 wxPyEndAllowThreads(__tstate);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7111 return resultobj;
7112fail:
7113 return NULL;
d55e5bfc
RD
7114}
7115
7116
554f62e9
RD
7117SWIGINTERN PyObject *_wrap_FindWindowAtPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7118 PyObject *resultobj = 0;
7119 wxWindow *result = 0 ;
7120
7121 if (!SWIG_Python_UnpackTuple(args,"FindWindowAtPointer",0,0,0)) SWIG_fail;
7122 {
7123 if (!wxPyCheckForApp()) SWIG_fail;
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 result = (wxWindow *)FindWindowAtPointer();
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 {
7130 resultobj = wxPyMake_wxObject(result, 0);
7131 }
7132 return resultobj;
7133fail:
7134 return NULL;
d55e5bfc
RD
7135}
7136
7137
554f62e9
RD
7138SWIGINTERN PyObject *_wrap_GetActiveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7139 PyObject *resultobj = 0;
7140 wxWindow *result = 0 ;
7141
7142 if (!SWIG_Python_UnpackTuple(args,"GetActiveWindow",0,0,0)) SWIG_fail;
7143 {
7144 if (!wxPyCheckForApp()) SWIG_fail;
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (wxWindow *)wxGetActiveWindow();
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 resultobj = wxPyMake_wxObject(result, 0);
7152 }
7153 return resultobj;
7154fail:
7155 return NULL;
d55e5bfc
RD
7156}
7157
7158
554f62e9
RD
7159SWIGINTERN PyObject *_wrap_GenericFindWindowAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7160 PyObject *resultobj = 0;
7161 wxPoint *arg1 = 0 ;
7162 wxWindow *result = 0 ;
7163 wxPoint temp1 ;
7164 PyObject * obj0 = 0 ;
7165 char * kwnames[] = {
7166 (char *) "pt", NULL
7167 };
7168
7169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) SWIG_fail;
7170 {
7171 arg1 = &temp1;
7172 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
7173 }
7174 {
7175 if (!wxPyCheckForApp()) SWIG_fail;
7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
7177 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
7178 wxPyEndAllowThreads(__tstate);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 resultobj = wxPyMake_wxObject(result, 0);
7183 }
7184 return resultobj;
7185fail:
7186 return NULL;
d55e5bfc
RD
7187}
7188
7189
554f62e9
RD
7190SWIGINTERN PyObject *_wrap_FindWindowAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj = 0;
7192 wxPoint *arg1 = 0 ;
7193 wxWindow *result = 0 ;
7194 wxPoint temp1 ;
7195 PyObject * obj0 = 0 ;
7196 char * kwnames[] = {
7197 (char *) "pt", NULL
7198 };
7199
7200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) SWIG_fail;
7201 {
7202 arg1 = &temp1;
7203 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
7204 }
7205 {
7206 if (!wxPyCheckForApp()) SWIG_fail;
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 {
7213 resultobj = wxPyMake_wxObject(result, 0);
7214 }
7215 return resultobj;
7216fail:
7217 return NULL;
7449af73
RD
7218}
7219
7220
554f62e9
RD
7221SWIGINTERN PyObject *_wrap_GetTopLevelParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj = 0;
7223 wxWindow *arg1 = (wxWindow *) 0 ;
7224 wxWindow *result = 0 ;
7225 void *argp1 = 0 ;
7226 int res1 = 0 ;
7227 PyObject * obj0 = 0 ;
7228 char * kwnames[] = {
7229 (char *) "win", NULL
7230 };
7231
7232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) SWIG_fail;
7233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetTopLevelParent" "', expected argument " "1"" of type '" "wxWindow *""'");
7236 }
7237 arg1 = reinterpret_cast< wxWindow * >(argp1);
7238 {
7239 if (!wxPyCheckForApp()) SWIG_fail;
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 result = (wxWindow *)wxGetTopLevelParent(arg1);
7242 wxPyEndAllowThreads(__tstate);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 {
7246 resultobj = wxPyMake_wxObject(result, 0);
7247 }
7248 return resultobj;
7249fail:
7250 return NULL;
7449af73
RD
7251}
7252
7253
554f62e9
RD
7254SWIGINTERN PyObject *_wrap_LaunchDefaultBrowser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj = 0;
7256 wxString *arg1 = 0 ;
7257 bool result;
7258 bool temp1 = false ;
7259 PyObject * obj0 = 0 ;
7260 char * kwnames[] = {
7261 (char *) "url", NULL
7262 };
7263
7264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LaunchDefaultBrowser",kwnames,&obj0)) SWIG_fail;
7265 {
7266 arg1 = wxString_in_helper(obj0);
7267 if (arg1 == NULL) SWIG_fail;
7268 temp1 = true;
7269 }
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (bool)wxLaunchDefaultBrowser((wxString const &)*arg1);
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 {
7277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7278 }
7279 {
7280 if (temp1)
7281 delete arg1;
7282 }
7283 return resultobj;
7284fail:
7285 {
7286 if (temp1)
7287 delete arg1;
7288 }
7289 return NULL;
7449af73
RD
7290}
7291
7292
554f62e9
RD
7293SWIGINTERN PyObject *_wrap_GetKeyState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj = 0;
7295 wxKeyCode arg1 ;
7296 bool result;
7297 int val1 ;
7298 int ecode1 = 0 ;
7299 PyObject * obj0 = 0 ;
7300 char * kwnames[] = {
7301 (char *) "key", NULL
7302 };
7303
7304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) SWIG_fail;
7305 ecode1 = SWIG_AsVal_int(obj0, &val1);
7306 if (!SWIG_IsOK(ecode1)) {
7307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetKeyState" "', expected argument " "1"" of type '" "wxKeyCode""'");
7308 }
7309 arg1 = static_cast< wxKeyCode >(val1);
7310 {
7311 if (!wxPyCheckForApp()) SWIG_fail;
7312 PyThreadState* __tstate = wxPyBeginAllowThreads();
7313 result = (bool)wxGetKeyState(arg1);
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 {
7318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7319 }
7320 return resultobj;
7321fail:
7322 return NULL;
7449af73
RD
7323}
7324
7325
554f62e9
RD
7326SWIGINTERN PyObject *_wrap_new_MouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7327 PyObject *resultobj = 0;
7328 wxMouseState *result = 0 ;
7329
7330 if (!SWIG_Python_UnpackTuple(args,"new_MouseState",0,0,0)) SWIG_fail;
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (wxMouseState *)new wxMouseState();
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseState, SWIG_POINTER_NEW | 0 );
7338 return resultobj;
7339fail:
7340 return NULL;
7449af73
RD
7341}
7342
7343
554f62e9
RD
7344SWIGINTERN PyObject *_wrap_delete_MouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7345 PyObject *resultobj = 0;
7346 wxMouseState *arg1 = (wxMouseState *) 0 ;
7347 void *argp1 = 0 ;
7348 int res1 = 0 ;
7349 PyObject *swig_obj[1] ;
7350
7351 if (!args) SWIG_fail;
7352 swig_obj[0] = args;
7353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, SWIG_POINTER_DISOWN | 0 );
7354 if (!SWIG_IsOK(res1)) {
7355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MouseState" "', expected argument " "1"" of type '" "wxMouseState *""'");
7356 }
7357 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7358 {
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 delete arg1;
7361
7362 wxPyEndAllowThreads(__tstate);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_Py_Void();
7366 return resultobj;
7367fail:
7368 return NULL;
7449af73
RD
7369}
7370
7371
554f62e9
RD
7372SWIGINTERN PyObject *_wrap_MouseState_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 PyObject *resultobj = 0;
7374 wxMouseState *arg1 = (wxMouseState *) 0 ;
7375 int result;
7376 void *argp1 = 0 ;
7377 int res1 = 0 ;
7378 PyObject *swig_obj[1] ;
7379
7380 if (!args) SWIG_fail;
7381 swig_obj[0] = args;
7382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7383 if (!SWIG_IsOK(res1)) {
7384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_GetX" "', expected argument " "1"" of type '" "wxMouseState *""'");
7385 }
7386 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7387 {
7388 PyThreadState* __tstate = wxPyBeginAllowThreads();
7389 result = (int)(arg1)->GetX();
7390 wxPyEndAllowThreads(__tstate);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_From_int(static_cast< int >(result));
7394 return resultobj;
7395fail:
7396 return NULL;
7449af73
RD
7397}
7398
7399
554f62e9
RD
7400SWIGINTERN PyObject *_wrap_MouseState_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7401 PyObject *resultobj = 0;
7402 wxMouseState *arg1 = (wxMouseState *) 0 ;
7403 int result;
7404 void *argp1 = 0 ;
7405 int res1 = 0 ;
7406 PyObject *swig_obj[1] ;
7407
7408 if (!args) SWIG_fail;
7409 swig_obj[0] = args;
7410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7411 if (!SWIG_IsOK(res1)) {
7412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_GetY" "', expected argument " "1"" of type '" "wxMouseState *""'");
7413 }
7414 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7415 {
7416 PyThreadState* __tstate = wxPyBeginAllowThreads();
7417 result = (int)(arg1)->GetY();
7418 wxPyEndAllowThreads(__tstate);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 resultobj = SWIG_From_int(static_cast< int >(result));
7422 return resultobj;
7423fail:
7424 return NULL;
7449af73
RD
7425}
7426
7427
554f62e9
RD
7428SWIGINTERN PyObject *_wrap_MouseState_LeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 PyObject *resultobj = 0;
7430 wxMouseState *arg1 = (wxMouseState *) 0 ;
7431 bool result;
7432 void *argp1 = 0 ;
7433 int res1 = 0 ;
7434 PyObject *swig_obj[1] ;
7435
7436 if (!args) SWIG_fail;
7437 swig_obj[0] = args;
7438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7439 if (!SWIG_IsOK(res1)) {
7440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_LeftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7441 }
7442 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 result = (bool)(arg1)->LeftDown();
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 {
7450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7451 }
7452 return resultobj;
7453fail:
7454 return NULL;
7449af73
RD
7455}
7456
7457
554f62e9
RD
7458SWIGINTERN PyObject *_wrap_MouseState_MiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7459 PyObject *resultobj = 0;
7460 wxMouseState *arg1 = (wxMouseState *) 0 ;
7461 bool result;
7462 void *argp1 = 0 ;
7463 int res1 = 0 ;
7464 PyObject *swig_obj[1] ;
7465
7466 if (!args) SWIG_fail;
7467 swig_obj[0] = args;
7468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7469 if (!SWIG_IsOK(res1)) {
7470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_MiddleDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7471 }
7472 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (bool)(arg1)->MiddleDown();
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7481 }
7482 return resultobj;
7483fail:
7484 return NULL;
7449af73
RD
7485}
7486
7487
554f62e9
RD
7488SWIGINTERN PyObject *_wrap_MouseState_RightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7489 PyObject *resultobj = 0;
7490 wxMouseState *arg1 = (wxMouseState *) 0 ;
7491 bool result;
7492 void *argp1 = 0 ;
7493 int res1 = 0 ;
7494 PyObject *swig_obj[1] ;
7495
7496 if (!args) SWIG_fail;
7497 swig_obj[0] = args;
7498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_RightDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7501 }
7502 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 result = (bool)(arg1)->RightDown();
7506 wxPyEndAllowThreads(__tstate);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 {
7510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7511 }
7512 return resultobj;
7513fail:
7514 return NULL;
7449af73
RD
7515}
7516
7517
554f62e9
RD
7518SWIGINTERN PyObject *_wrap_MouseState_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7519 PyObject *resultobj = 0;
7520 wxMouseState *arg1 = (wxMouseState *) 0 ;
7521 bool result;
7522 void *argp1 = 0 ;
7523 int res1 = 0 ;
7524 PyObject *swig_obj[1] ;
7525
7526 if (!args) SWIG_fail;
7527 swig_obj[0] = args;
7528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7529 if (!SWIG_IsOK(res1)) {
7530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_ControlDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7531 }
7532 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (bool)(arg1)->ControlDown();
7536 wxPyEndAllowThreads(__tstate);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 {
7540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7541 }
7542 return resultobj;
7543fail:
7544 return NULL;
7449af73
RD
7545}
7546
7547
554f62e9
RD
7548SWIGINTERN PyObject *_wrap_MouseState_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7549 PyObject *resultobj = 0;
7550 wxMouseState *arg1 = (wxMouseState *) 0 ;
7551 bool result;
7552 void *argp1 = 0 ;
7553 int res1 = 0 ;
7554 PyObject *swig_obj[1] ;
7555
7556 if (!args) SWIG_fail;
7557 swig_obj[0] = args;
7558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_ShiftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7561 }
7562 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 result = (bool)(arg1)->ShiftDown();
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 {
7570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7571 }
7572 return resultobj;
7573fail:
7574 return NULL;
7449af73
RD
7575}
7576
7577
554f62e9
RD
7578SWIGINTERN PyObject *_wrap_MouseState_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7579 PyObject *resultobj = 0;
7580 wxMouseState *arg1 = (wxMouseState *) 0 ;
7581 bool result;
7582 void *argp1 = 0 ;
7583 int res1 = 0 ;
7584 PyObject *swig_obj[1] ;
7585
7586 if (!args) SWIG_fail;
7587 swig_obj[0] = args;
7588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7589 if (!SWIG_IsOK(res1)) {
7590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_AltDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7591 }
7592 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 result = (bool)(arg1)->AltDown();
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 {
7600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7601 }
7602 return resultobj;
7603fail:
7604 return NULL;
7449af73
RD
7605}
7606
7607
554f62e9
RD
7608SWIGINTERN PyObject *_wrap_MouseState_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7609 PyObject *resultobj = 0;
7610 wxMouseState *arg1 = (wxMouseState *) 0 ;
7611 bool result;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject *swig_obj[1] ;
7615
7616 if (!args) SWIG_fail;
7617 swig_obj[0] = args;
7618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7619 if (!SWIG_IsOK(res1)) {
7620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_MetaDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7621 }
7622 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (bool)(arg1)->MetaDown();
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 {
7630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7631 }
7632 return resultobj;
7633fail:
7634 return NULL;
7449af73
RD
7635}
7636
7637
554f62e9
RD
7638SWIGINTERN PyObject *_wrap_MouseState_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7639 PyObject *resultobj = 0;
7640 wxMouseState *arg1 = (wxMouseState *) 0 ;
7641 bool result;
7642 void *argp1 = 0 ;
7643 int res1 = 0 ;
7644 PyObject *swig_obj[1] ;
7645
7646 if (!args) SWIG_fail;
7647 swig_obj[0] = args;
7648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7649 if (!SWIG_IsOK(res1)) {
7650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_CmdDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7651 }
7652 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 result = (bool)(arg1)->CmdDown();
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 {
7660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7661 }
7662 return resultobj;
7663fail:
7664 return NULL;
7665}
7666
7667
7668SWIGINTERN PyObject *_wrap_MouseState_SetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7669 PyObject *resultobj = 0;
7670 wxMouseState *arg1 = (wxMouseState *) 0 ;
7671 int arg2 ;
7672 void *argp1 = 0 ;
7673 int res1 = 0 ;
7674 int val2 ;
7675 int ecode2 = 0 ;
7676 PyObject * obj0 = 0 ;
7677 PyObject * obj1 = 0 ;
7678 char * kwnames[] = {
7679 (char *) "self",(char *) "x", NULL
7680 };
7681
7682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetX",kwnames,&obj0,&obj1)) SWIG_fail;
7683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetX" "', expected argument " "1"" of type '" "wxMouseState *""'");
7686 }
7687 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7688 ecode2 = SWIG_AsVal_int(obj1, &val2);
7689 if (!SWIG_IsOK(ecode2)) {
7690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetX" "', expected argument " "2"" of type '" "int""'");
7691 }
7692 arg2 = static_cast< int >(val2);
7693 {
7694 PyThreadState* __tstate = wxPyBeginAllowThreads();
7695 (arg1)->SetX(arg2);
7696 wxPyEndAllowThreads(__tstate);
7697 if (PyErr_Occurred()) SWIG_fail;
7698 }
7699 resultobj = SWIG_Py_Void();
7700 return resultobj;
7701fail:
7702 return NULL;
7703}
7704
7705
7706SWIGINTERN PyObject *_wrap_MouseState_SetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj = 0;
7708 wxMouseState *arg1 = (wxMouseState *) 0 ;
7709 int arg2 ;
7710 void *argp1 = 0 ;
7711 int res1 = 0 ;
7712 int val2 ;
7713 int ecode2 = 0 ;
7714 PyObject * obj0 = 0 ;
7715 PyObject * obj1 = 0 ;
7716 char * kwnames[] = {
7717 (char *) "self",(char *) "y", NULL
7718 };
7719
7720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetY",kwnames,&obj0,&obj1)) SWIG_fail;
7721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7722 if (!SWIG_IsOK(res1)) {
7723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetY" "', expected argument " "1"" of type '" "wxMouseState *""'");
7724 }
7725 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7726 ecode2 = SWIG_AsVal_int(obj1, &val2);
7727 if (!SWIG_IsOK(ecode2)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetY" "', expected argument " "2"" of type '" "int""'");
7729 }
7730 arg2 = static_cast< int >(val2);
7731 {
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 (arg1)->SetY(arg2);
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 resultobj = SWIG_Py_Void();
7738 return resultobj;
7739fail:
7740 return NULL;
7741}
7742
7743
7744SWIGINTERN PyObject *_wrap_MouseState_SetLeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj = 0;
7746 wxMouseState *arg1 = (wxMouseState *) 0 ;
7747 bool arg2 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 bool val2 ;
7751 int ecode2 = 0 ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 char * kwnames[] = {
7755 (char *) "self",(char *) "down", NULL
7756 };
7757
7758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetLeftDown",kwnames,&obj0,&obj1)) SWIG_fail;
7759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7760 if (!SWIG_IsOK(res1)) {
7761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetLeftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7762 }
7763 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7764 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7765 if (!SWIG_IsOK(ecode2)) {
7766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetLeftDown" "', expected argument " "2"" of type '" "bool""'");
7767 }
7768 arg2 = static_cast< bool >(val2);
7769 {
7770 PyThreadState* __tstate = wxPyBeginAllowThreads();
7771 (arg1)->SetLeftDown(arg2);
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 resultobj = SWIG_Py_Void();
7776 return resultobj;
7777fail:
7778 return NULL;
7779}
7780
7781
7782SWIGINTERN PyObject *_wrap_MouseState_SetMiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj = 0;
7784 wxMouseState *arg1 = (wxMouseState *) 0 ;
7785 bool arg2 ;
7786 void *argp1 = 0 ;
7787 int res1 = 0 ;
7788 bool val2 ;
7789 int ecode2 = 0 ;
7790 PyObject * obj0 = 0 ;
7791 PyObject * obj1 = 0 ;
7792 char * kwnames[] = {
7793 (char *) "self",(char *) "down", NULL
7794 };
7795
7796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMiddleDown",kwnames,&obj0,&obj1)) SWIG_fail;
7797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7798 if (!SWIG_IsOK(res1)) {
7799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetMiddleDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7800 }
7801 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7802 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7803 if (!SWIG_IsOK(ecode2)) {
7804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetMiddleDown" "', expected argument " "2"" of type '" "bool""'");
7805 }
7806 arg2 = static_cast< bool >(val2);
7807 {
7808 PyThreadState* __tstate = wxPyBeginAllowThreads();
7809 (arg1)->SetMiddleDown(arg2);
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 resultobj = SWIG_Py_Void();
7814 return resultobj;
7815fail:
7816 return NULL;
7817}
7818
7819
7820SWIGINTERN PyObject *_wrap_MouseState_SetRightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj = 0;
7822 wxMouseState *arg1 = (wxMouseState *) 0 ;
7823 bool arg2 ;
7824 void *argp1 = 0 ;
7825 int res1 = 0 ;
7826 bool val2 ;
7827 int ecode2 = 0 ;
7828 PyObject * obj0 = 0 ;
7829 PyObject * obj1 = 0 ;
7830 char * kwnames[] = {
7831 (char *) "self",(char *) "down", NULL
7832 };
7833
7834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetRightDown",kwnames,&obj0,&obj1)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetRightDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7838 }
7839 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7840 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7841 if (!SWIG_IsOK(ecode2)) {
7842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetRightDown" "', expected argument " "2"" of type '" "bool""'");
7843 }
7844 arg2 = static_cast< bool >(val2);
7845 {
7846 PyThreadState* __tstate = wxPyBeginAllowThreads();
7847 (arg1)->SetRightDown(arg2);
7848 wxPyEndAllowThreads(__tstate);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 resultobj = SWIG_Py_Void();
7852 return resultobj;
7853fail:
7854 return NULL;
7855}
7856
7857
7858SWIGINTERN PyObject *_wrap_MouseState_SetControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7859 PyObject *resultobj = 0;
7860 wxMouseState *arg1 = (wxMouseState *) 0 ;
7861 bool arg2 ;
7862 void *argp1 = 0 ;
7863 int res1 = 0 ;
7864 bool val2 ;
7865 int ecode2 = 0 ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 char * kwnames[] = {
7869 (char *) "self",(char *) "down", NULL
7870 };
7871
7872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetControlDown",kwnames,&obj0,&obj1)) SWIG_fail;
7873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetControlDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7876 }
7877 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7878 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7879 if (!SWIG_IsOK(ecode2)) {
7880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetControlDown" "', expected argument " "2"" of type '" "bool""'");
7881 }
7882 arg2 = static_cast< bool >(val2);
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 (arg1)->SetControlDown(arg2);
7886 wxPyEndAllowThreads(__tstate);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891fail:
7892 return NULL;
7893}
7894
7895
7896SWIGINTERN PyObject *_wrap_MouseState_SetShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 wxMouseState *arg1 = (wxMouseState *) 0 ;
7899 bool arg2 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 bool val2 ;
7903 int ecode2 = 0 ;
7904 PyObject * obj0 = 0 ;
7905 PyObject * obj1 = 0 ;
7906 char * kwnames[] = {
7907 (char *) "self",(char *) "down", NULL
7908 };
7909
7910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetShiftDown",kwnames,&obj0,&obj1)) SWIG_fail;
7911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7912 if (!SWIG_IsOK(res1)) {
7913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetShiftDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7914 }
7915 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7916 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7917 if (!SWIG_IsOK(ecode2)) {
7918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetShiftDown" "', expected argument " "2"" of type '" "bool""'");
7919 }
7920 arg2 = static_cast< bool >(val2);
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 (arg1)->SetShiftDown(arg2);
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 resultobj = SWIG_Py_Void();
7928 return resultobj;
7929fail:
7930 return NULL;
7931}
7932
7933
7934SWIGINTERN PyObject *_wrap_MouseState_SetAltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj = 0;
7936 wxMouseState *arg1 = (wxMouseState *) 0 ;
7937 bool arg2 ;
7938 void *argp1 = 0 ;
7939 int res1 = 0 ;
7940 bool val2 ;
7941 int ecode2 = 0 ;
7942 PyObject * obj0 = 0 ;
7943 PyObject * obj1 = 0 ;
7944 char * kwnames[] = {
7945 (char *) "self",(char *) "down", NULL
7946 };
7947
7948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetAltDown",kwnames,&obj0,&obj1)) SWIG_fail;
7949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetAltDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7952 }
7953 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7954 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7955 if (!SWIG_IsOK(ecode2)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetAltDown" "', expected argument " "2"" of type '" "bool""'");
7957 }
7958 arg2 = static_cast< bool >(val2);
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 (arg1)->SetAltDown(arg2);
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_Py_Void();
7966 return resultobj;
7967fail:
7968 return NULL;
7969}
7970
7971
7972SWIGINTERN PyObject *_wrap_MouseState_SetMetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj = 0;
7974 wxMouseState *arg1 = (wxMouseState *) 0 ;
7975 bool arg2 ;
7976 void *argp1 = 0 ;
7977 int res1 = 0 ;
7978 bool val2 ;
7979 int ecode2 = 0 ;
7980 PyObject * obj0 = 0 ;
7981 PyObject * obj1 = 0 ;
7982 char * kwnames[] = {
7983 (char *) "self",(char *) "down", NULL
7984 };
7985
7986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseState_SetMetaDown",kwnames,&obj0,&obj1)) SWIG_fail;
7987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseState, 0 | 0 );
7988 if (!SWIG_IsOK(res1)) {
7989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseState_SetMetaDown" "', expected argument " "1"" of type '" "wxMouseState *""'");
7990 }
7991 arg1 = reinterpret_cast< wxMouseState * >(argp1);
7992 ecode2 = SWIG_AsVal_bool(obj1, &val2);
7993 if (!SWIG_IsOK(ecode2)) {
7994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseState_SetMetaDown" "', expected argument " "2"" of type '" "bool""'");
7995 }
7996 arg2 = static_cast< bool >(val2);
7997 {
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 (arg1)->SetMetaDown(arg2);
8000 wxPyEndAllowThreads(__tstate);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 resultobj = SWIG_Py_Void();
8004 return resultobj;
8005fail:
8006 return NULL;
7449af73
RD
8007}
8008
8009
554f62e9
RD
8010SWIGINTERN PyObject *MouseState_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8011 PyObject *obj;
8012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8013 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseState, SWIG_NewClientData(obj));
8014 return SWIG_Py_Void();
7449af73
RD
8015}
8016
554f62e9
RD
8017SWIGINTERN PyObject *MouseState_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8018 return SWIG_Python_InitShadowInstance(args);
8019}
7449af73 8020
554f62e9
RD
8021SWIGINTERN PyObject *_wrap_GetMouseState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8022 PyObject *resultobj = 0;
8023 wxMouseState result;
8024
8025 if (!SWIG_Python_UnpackTuple(args,"GetMouseState",0,0,0)) SWIG_fail;
8026 {
8027 PyThreadState* __tstate = wxPyBeginAllowThreads();
8028 result = wxGetMouseState();
8029 wxPyEndAllowThreads(__tstate);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 resultobj = SWIG_NewPointerObj((new wxMouseState(static_cast< const wxMouseState& >(result))), SWIGTYPE_p_wxMouseState, SWIG_POINTER_OWN | 0 );
8033 return resultobj;
8034fail:
8035 return NULL;
7449af73
RD
8036}
8037
8038
554f62e9
RD
8039SWIGINTERN PyObject *_wrap_WakeUpMainThread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8040 PyObject *resultobj = 0;
8041
8042 if (!SWIG_Python_UnpackTuple(args,"WakeUpMainThread",0,0,0)) SWIG_fail;
8043 {
8044 if (!wxPyCheckForApp()) SWIG_fail;
8045 PyThreadState* __tstate = wxPyBeginAllowThreads();
8046 wxWakeUpMainThread();
8047 wxPyEndAllowThreads(__tstate);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 resultobj = SWIG_Py_Void();
8051 return resultobj;
8052fail:
8053 return NULL;
7449af73
RD
8054}
8055
8056
554f62e9
RD
8057SWIGINTERN PyObject *_wrap_MutexGuiEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8058 PyObject *resultobj = 0;
8059
8060 if (!SWIG_Python_UnpackTuple(args,"MutexGuiEnter",0,0,0)) SWIG_fail;
8061 {
8062 if (!wxPyCheckForApp()) SWIG_fail;
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 wxMutexGuiEnter();
8065 wxPyEndAllowThreads(__tstate);
8066 if (PyErr_Occurred()) SWIG_fail;
8067 }
8068 resultobj = SWIG_Py_Void();
8069 return resultobj;
8070fail:
8071 return NULL;
7449af73
RD
8072}
8073
8074
554f62e9
RD
8075SWIGINTERN PyObject *_wrap_MutexGuiLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8076 PyObject *resultobj = 0;
8077
8078 if (!SWIG_Python_UnpackTuple(args,"MutexGuiLeave",0,0,0)) SWIG_fail;
8079 {
8080 if (!wxPyCheckForApp()) SWIG_fail;
8081 PyThreadState* __tstate = wxPyBeginAllowThreads();
8082 wxMutexGuiLeave();
8083 wxPyEndAllowThreads(__tstate);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 resultobj = SWIG_Py_Void();
8087 return resultobj;
8088fail:
8089 return NULL;
7449af73
RD
8090}
8091
8092
554f62e9
RD
8093SWIGINTERN PyObject *_wrap_new_MutexGuiLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8094 PyObject *resultobj = 0;
8095 wxMutexGuiLocker *result = 0 ;
8096
8097 if (!SWIG_Python_UnpackTuple(args,"new_MutexGuiLocker",0,0,0)) SWIG_fail;
8098 {
8099 if (!wxPyCheckForApp()) SWIG_fail;
8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
8101 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_NEW | 0 );
8106 return resultobj;
8107fail:
8108 return NULL;
7449af73
RD
8109}
8110
8111
554f62e9
RD
8112SWIGINTERN PyObject *_wrap_delete_MutexGuiLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8113 PyObject *resultobj = 0;
8114 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
8115 void *argp1 = 0 ;
8116 int res1 = 0 ;
8117 PyObject *swig_obj[1] ;
8118
8119 if (!args) SWIG_fail;
8120 swig_obj[0] = args;
8121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMutexGuiLocker, SWIG_POINTER_DISOWN | 0 );
8122 if (!SWIG_IsOK(res1)) {
8123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MutexGuiLocker" "', expected argument " "1"" of type '" "wxMutexGuiLocker *""'");
8124 }
8125 arg1 = reinterpret_cast< wxMutexGuiLocker * >(argp1);
8126 {
8127 PyThreadState* __tstate = wxPyBeginAllowThreads();
8128 delete arg1;
7449af73 8129
554f62e9
RD
8130 wxPyEndAllowThreads(__tstate);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 resultobj = SWIG_Py_Void();
8134 return resultobj;
8135fail:
8136 return NULL;
7449af73
RD
8137}
8138
8139
554f62e9
RD
8140SWIGINTERN PyObject *MutexGuiLocker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8141 PyObject *obj;
8142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8143 SWIG_TypeNewClientData(SWIGTYPE_p_wxMutexGuiLocker, SWIG_NewClientData(obj));
8144 return SWIG_Py_Void();
d55e5bfc
RD
8145}
8146
554f62e9
RD
8147SWIGINTERN PyObject *MutexGuiLocker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8148 return SWIG_Python_InitShadowInstance(args);
a97cefba
RD
8149}
8150
554f62e9
RD
8151SWIGINTERN PyObject *_wrap_Thread_IsMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8152 PyObject *resultobj = 0;
8153 bool result;
8154
8155 if (!SWIG_Python_UnpackTuple(args,"Thread_IsMain",0,0,0)) SWIG_fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (bool)wxThread_IsMain();
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 {
8163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8164 }
8165 return resultobj;
8166fail:
8167 return NULL;
d55e5bfc
RD
8168}
8169
8170
554f62e9
RD
8171SWIGINTERN PyObject *_wrap_new_ToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj = 0;
8173 wxString *arg1 = 0 ;
8174 wxToolTip *result = 0 ;
8175 bool temp1 = false ;
8176 PyObject * obj0 = 0 ;
8177 char * kwnames[] = {
8178 (char *) "tip", NULL
8179 };
8180
8181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) SWIG_fail;
8182 {
8183 arg1 = wxString_in_helper(obj0);
8184 if (arg1 == NULL) SWIG_fail;
8185 temp1 = true;
8186 }
8187 {
8188 if (!wxPyCheckForApp()) SWIG_fail;
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
8191 wxPyEndAllowThreads(__tstate);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolTip, SWIG_POINTER_NEW | 0 );
8195 {
8196 if (temp1)
8197 delete arg1;
8198 }
8199 return resultobj;
8200fail:
8201 {
8202 if (temp1)
8203 delete arg1;
8204 }
8205 return NULL;
d55e5bfc
RD
8206}
8207
8208
554f62e9
RD
8209SWIGINTERN PyObject *_wrap_delete_ToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8210 PyObject *resultobj = 0;
8211 wxToolTip *arg1 = (wxToolTip *) 0 ;
8212 void *argp1 = 0 ;
8213 int res1 = 0 ;
8214 PyObject *swig_obj[1] ;
8215
8216 if (!args) SWIG_fail;
8217 swig_obj[0] = args;
8218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, SWIG_POINTER_DISOWN | 0 );
8219 if (!SWIG_IsOK(res1)) {
8220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ToolTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8221 }
8222 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 delete arg1;
d55e5bfc 8226
554f62e9
RD
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 resultobj = SWIG_Py_Void();
8231 return resultobj;
8232fail:
8233 return NULL;
8234}
8235
8236
8237SWIGINTERN PyObject *_wrap_ToolTip_SetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj = 0;
8239 wxToolTip *arg1 = (wxToolTip *) 0 ;
8240 wxString *arg2 = 0 ;
8241 void *argp1 = 0 ;
8242 int res1 = 0 ;
8243 bool temp2 = false ;
8244 PyObject * obj0 = 0 ;
8245 PyObject * obj1 = 0 ;
8246 char * kwnames[] = {
8247 (char *) "self",(char *) "tip", NULL
8248 };
8249
8250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) SWIG_fail;
8251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8252 if (!SWIG_IsOK(res1)) {
8253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_SetTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8254 }
8255 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8256 {
8257 arg2 = wxString_in_helper(obj1);
8258 if (arg2 == NULL) SWIG_fail;
8259 temp2 = true;
8260 }
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 (arg1)->SetTip((wxString const &)*arg2);
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 resultobj = SWIG_Py_Void();
8268 {
8269 if (temp2)
8270 delete arg2;
8271 }
8272 return resultobj;
8273fail:
8274 {
8275 if (temp2)
8276 delete arg2;
8277 }
8278 return NULL;
d55e5bfc
RD
8279}
8280
8281
554f62e9
RD
8282SWIGINTERN PyObject *_wrap_ToolTip_GetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8283 PyObject *resultobj = 0;
8284 wxToolTip *arg1 = (wxToolTip *) 0 ;
8285 wxString result;
8286 void *argp1 = 0 ;
8287 int res1 = 0 ;
8288 PyObject *swig_obj[1] ;
8289
8290 if (!args) SWIG_fail;
8291 swig_obj[0] = args;
8292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8293 if (!SWIG_IsOK(res1)) {
8294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_GetTip" "', expected argument " "1"" of type '" "wxToolTip *""'");
8295 }
8296 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8297 {
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 result = (arg1)->GetTip();
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 {
8304#if wxUSE_UNICODE
8305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8306#else
8307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8308#endif
8309 }
8310 return resultobj;
8311fail:
8312 return NULL;
d55e5bfc
RD
8313}
8314
8315
554f62e9
RD
8316SWIGINTERN PyObject *_wrap_ToolTip_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8317 PyObject *resultobj = 0;
8318 wxToolTip *arg1 = (wxToolTip *) 0 ;
8319 wxWindow *result = 0 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 PyObject *swig_obj[1] ;
8323
8324 if (!args) SWIG_fail;
8325 swig_obj[0] = args;
8326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolTip, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolTip_GetWindow" "', expected argument " "1"" of type '" "wxToolTip *""'");
8329 }
8330 arg1 = reinterpret_cast< wxToolTip * >(argp1);
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 result = (wxWindow *)(arg1)->GetWindow();
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 {
8338 resultobj = wxPyMake_wxObject(result, 0);
8339 }
8340 return resultobj;
8341fail:
8342 return NULL;
d55e5bfc
RD
8343}
8344
8345
554f62e9
RD
8346SWIGINTERN PyObject *_wrap_ToolTip_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj = 0;
8348 bool arg1 ;
8349 bool val1 ;
8350 int ecode1 = 0 ;
8351 PyObject * obj0 = 0 ;
8352 char * kwnames[] = {
8353 (char *) "flag", NULL
8354 };
8355
8356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) SWIG_fail;
8357 ecode1 = SWIG_AsVal_bool(obj0, &val1);
8358 if (!SWIG_IsOK(ecode1)) {
8359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolTip_Enable" "', expected argument " "1"" of type '" "bool""'");
8360 }
8361 arg1 = static_cast< bool >(val1);
8362 {
8363 PyThreadState* __tstate = wxPyBeginAllowThreads();
8364 wxToolTip::Enable(arg1);
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 resultobj = SWIG_Py_Void();
8369 return resultobj;
8370fail:
8371 return NULL;
d04418a7
RD
8372}
8373
8374
554f62e9
RD
8375SWIGINTERN PyObject *_wrap_ToolTip_SetDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 long arg1 ;
8378 long val1 ;
8379 int ecode1 = 0 ;
8380 PyObject * obj0 = 0 ;
8381 char * kwnames[] = {
8382 (char *) "milliseconds", NULL
8383 };
8384
8385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) SWIG_fail;
8386 ecode1 = SWIG_AsVal_long(obj0, &val1);
8387 if (!SWIG_IsOK(ecode1)) {
8388 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolTip_SetDelay" "', expected argument " "1"" of type '" "long""'");
8389 }
8390 arg1 = static_cast< long >(val1);
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 wxToolTip::SetDelay(arg1);
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 resultobj = SWIG_Py_Void();
8398 return resultobj;
8399fail:
8400 return NULL;
d55e5bfc
RD
8401}
8402
8403
554f62e9
RD
8404SWIGINTERN PyObject *ToolTip_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8405 PyObject *obj;
8406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8407 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolTip, SWIG_NewClientData(obj));
8408 return SWIG_Py_Void();
d55e5bfc
RD
8409}
8410
554f62e9
RD
8411SWIGINTERN PyObject *ToolTip_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8413}
8414
554f62e9
RD
8415SWIGINTERN PyObject *_wrap_new_Caret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8416 PyObject *resultobj = 0;
8417 wxWindow *arg1 = (wxWindow *) 0 ;
8418 wxSize *arg2 = 0 ;
8419 wxCaret *result = 0 ;
8420 void *argp1 = 0 ;
8421 int res1 = 0 ;
8422 wxSize temp2 ;
8423 PyObject * obj0 = 0 ;
8424 PyObject * obj1 = 0 ;
8425 char * kwnames[] = {
8426 (char *) "window",(char *) "size", NULL
8427 };
8428
8429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Caret" "', expected argument " "1"" of type '" "wxWindow *""'");
8433 }
8434 arg1 = reinterpret_cast< wxWindow * >(argp1);
8435 {
8436 arg2 = &temp2;
8437 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8438 }
8439 {
8440 if (!wxPyCheckForApp()) SWIG_fail;
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCaret, SWIG_POINTER_NEW | 0 );
8447 return resultobj;
8448fail:
8449 return NULL;
d55e5bfc
RD
8450}
8451
8452
554f62e9
RD
8453SWIGINTERN PyObject *_wrap_delete_Caret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8454 PyObject *resultobj = 0;
8455 wxCaret *arg1 = (wxCaret *) 0 ;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 PyObject *swig_obj[1] ;
8459
8460 if (!args) SWIG_fail;
8461 swig_obj[0] = args;
8462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, SWIG_POINTER_DISOWN | 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Caret" "', expected argument " "1"" of type '" "wxCaret *""'");
8465 }
8466 arg1 = reinterpret_cast< wxCaret * >(argp1);
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 delete arg1;
d55e5bfc 8470
554f62e9
RD
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_Py_Void();
8475 return resultobj;
8476fail:
8477 return NULL;
d55e5bfc
RD
8478}
8479
8480
554f62e9
RD
8481SWIGINTERN PyObject *_wrap_Caret_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8482 PyObject *resultobj = 0;
8483 wxCaret *arg1 = (wxCaret *) 0 ;
8484 void *argp1 = 0 ;
8485 int res1 = 0 ;
8486 PyObject *swig_obj[1] ;
8487
8488 if (!args) SWIG_fail;
8489 swig_obj[0] = args;
8490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8491 if (!SWIG_IsOK(res1)) {
8492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Destroy" "', expected argument " "1"" of type '" "wxCaret *""'");
8493 }
8494 arg1 = reinterpret_cast< wxCaret * >(argp1);
8495 {
8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
8497 wxCaret_Destroy(arg1);
8498 wxPyEndAllowThreads(__tstate);
8499 if (PyErr_Occurred()) SWIG_fail;
8500 }
8501 resultobj = SWIG_Py_Void();
8502 return resultobj;
8503fail:
8504 return NULL;
d55e5bfc
RD
8505}
8506
8507
554f62e9
RD
8508SWIGINTERN PyObject *_wrap_Caret_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8509 PyObject *resultobj = 0;
8510 wxCaret *arg1 = (wxCaret *) 0 ;
8511 bool result;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 PyObject *swig_obj[1] ;
8515
8516 if (!args) SWIG_fail;
8517 swig_obj[0] = args;
8518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8519 if (!SWIG_IsOK(res1)) {
8520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_IsOk" "', expected argument " "1"" of type '" "wxCaret *""'");
8521 }
8522 arg1 = reinterpret_cast< wxCaret * >(argp1);
8523 {
8524 PyThreadState* __tstate = wxPyBeginAllowThreads();
8525 result = (bool)(arg1)->IsOk();
8526 wxPyEndAllowThreads(__tstate);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 {
8530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8531 }
8532 return resultobj;
8533fail:
8534 return NULL;
d55e5bfc
RD
8535}
8536
8537
554f62e9
RD
8538SWIGINTERN PyObject *_wrap_Caret_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8539 PyObject *resultobj = 0;
8540 wxCaret *arg1 = (wxCaret *) 0 ;
8541 bool result;
8542 void *argp1 = 0 ;
8543 int res1 = 0 ;
8544 PyObject *swig_obj[1] ;
8545
8546 if (!args) SWIG_fail;
8547 swig_obj[0] = args;
8548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8549 if (!SWIG_IsOK(res1)) {
8550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_IsVisible" "', expected argument " "1"" of type '" "wxCaret *""'");
8551 }
8552 arg1 = reinterpret_cast< wxCaret * >(argp1);
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 result = (bool)(arg1)->IsVisible();
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 }
8559 {
8560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8561 }
8562 return resultobj;
8563fail:
8564 return NULL;
d55e5bfc
RD
8565}
8566
8567
554f62e9
RD
8568SWIGINTERN PyObject *_wrap_Caret_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8569 PyObject *resultobj = 0;
8570 wxCaret *arg1 = (wxCaret *) 0 ;
8571 wxPoint result;
8572 void *argp1 = 0 ;
8573 int res1 = 0 ;
8574 PyObject *swig_obj[1] ;
8575
8576 if (!args) SWIG_fail;
8577 swig_obj[0] = args;
8578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetPosition" "', expected argument " "1"" of type '" "wxCaret *""'");
8581 }
8582 arg1 = reinterpret_cast< wxCaret * >(argp1);
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (arg1)->GetPosition();
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
8590 return resultobj;
8591fail:
8592 return NULL;
8593}
8594
8595
8596SWIGINTERN PyObject *_wrap_Caret_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8597 PyObject *resultobj = 0;
8598 wxCaret *arg1 = (wxCaret *) 0 ;
8599 int *arg2 = (int *) 0 ;
8600 int *arg3 = (int *) 0 ;
8601 void *argp1 = 0 ;
8602 int res1 = 0 ;
8603 int temp2 ;
8604 int res2 = SWIG_TMPOBJ ;
8605 int temp3 ;
8606 int res3 = SWIG_TMPOBJ ;
8607 PyObject *swig_obj[1] ;
8608
8609 arg2 = &temp2;
8610 arg3 = &temp3;
8611 if (!args) SWIG_fail;
8612 swig_obj[0] = args;
8613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8614 if (!SWIG_IsOK(res1)) {
8615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetPositionTuple" "', expected argument " "1"" of type '" "wxCaret *""'");
8616 }
8617 arg1 = reinterpret_cast< wxCaret * >(argp1);
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 (arg1)->GetPosition(arg2,arg3);
8621 wxPyEndAllowThreads(__tstate);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
8624 resultobj = SWIG_Py_Void();
8625 if (SWIG_IsTmpObj(res2)) {
8626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8627 } else {
8628 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8630 }
8631 if (SWIG_IsTmpObj(res3)) {
8632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8633 } else {
8634 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8636 }
8637 return resultobj;
8638fail:
8639 return NULL;
7e08d4ef
RD
8640}
8641
8642
554f62e9
RD
8643SWIGINTERN PyObject *_wrap_Caret_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *resultobj = 0;
8645 wxCaret *arg1 = (wxCaret *) 0 ;
8646 wxSize result;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 PyObject *swig_obj[1] ;
8650
8651 if (!args) SWIG_fail;
8652 swig_obj[0] = args;
8653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8654 if (!SWIG_IsOK(res1)) {
8655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetSize" "', expected argument " "1"" of type '" "wxCaret *""'");
8656 }
8657 arg1 = reinterpret_cast< wxCaret * >(argp1);
8658 {
8659 PyThreadState* __tstate = wxPyBeginAllowThreads();
8660 result = (arg1)->GetSize();
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
8665 return resultobj;
8666fail:
8667 return NULL;
8668}
8669
8670
8671SWIGINTERN PyObject *_wrap_Caret_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxCaret *arg1 = (wxCaret *) 0 ;
8674 int *arg2 = (int *) 0 ;
8675 int *arg3 = (int *) 0 ;
8676 void *argp1 = 0 ;
8677 int res1 = 0 ;
8678 int temp2 ;
8679 int res2 = SWIG_TMPOBJ ;
8680 int temp3 ;
8681 int res3 = SWIG_TMPOBJ ;
8682 PyObject *swig_obj[1] ;
8683
8684 arg2 = &temp2;
8685 arg3 = &temp3;
8686 if (!args) SWIG_fail;
8687 swig_obj[0] = args;
8688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8689 if (!SWIG_IsOK(res1)) {
8690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetSizeTuple" "', expected argument " "1"" of type '" "wxCaret *""'");
8691 }
8692 arg1 = reinterpret_cast< wxCaret * >(argp1);
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 (arg1)->GetSize(arg2,arg3);
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = SWIG_Py_Void();
8700 if (SWIG_IsTmpObj(res2)) {
8701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8702 } else {
8703 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8705 }
8706 if (SWIG_IsTmpObj(res3)) {
8707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8708 } else {
8709 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8711 }
8712 return resultobj;
8713fail:
8714 return NULL;
d55e5bfc
RD
8715}
8716
8717
554f62e9
RD
8718SWIGINTERN PyObject *_wrap_Caret_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8719 PyObject *resultobj = 0;
8720 wxCaret *arg1 = (wxCaret *) 0 ;
8721 wxWindow *result = 0 ;
8722 void *argp1 = 0 ;
8723 int res1 = 0 ;
8724 PyObject *swig_obj[1] ;
8725
8726 if (!args) SWIG_fail;
8727 swig_obj[0] = args;
8728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8729 if (!SWIG_IsOK(res1)) {
8730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_GetWindow" "', expected argument " "1"" of type '" "wxCaret *""'");
8731 }
8732 arg1 = reinterpret_cast< wxCaret * >(argp1);
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 result = (wxWindow *)(arg1)->GetWindow();
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 {
8740 resultobj = wxPyMake_wxObject(result, 0);
8741 }
8742 return resultobj;
8743fail:
8744 return NULL;
8745}
8746
8747
8748SWIGINTERN PyObject *_wrap_Caret_MoveXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj = 0;
8750 wxCaret *arg1 = (wxCaret *) 0 ;
8751 int arg2 ;
8752 int arg3 ;
8753 void *argp1 = 0 ;
8754 int res1 = 0 ;
8755 int val2 ;
8756 int ecode2 = 0 ;
8757 int val3 ;
8758 int ecode3 = 0 ;
8759 PyObject * obj0 = 0 ;
8760 PyObject * obj1 = 0 ;
8761 PyObject * obj2 = 0 ;
8762 char * kwnames[] = {
8763 (char *) "self",(char *) "x",(char *) "y", NULL
8764 };
8765
8766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8768 if (!SWIG_IsOK(res1)) {
8769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_MoveXY" "', expected argument " "1"" of type '" "wxCaret *""'");
8770 }
8771 arg1 = reinterpret_cast< wxCaret * >(argp1);
8772 ecode2 = SWIG_AsVal_int(obj1, &val2);
8773 if (!SWIG_IsOK(ecode2)) {
8774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_MoveXY" "', expected argument " "2"" of type '" "int""'");
8775 }
8776 arg2 = static_cast< int >(val2);
8777 ecode3 = SWIG_AsVal_int(obj2, &val3);
8778 if (!SWIG_IsOK(ecode3)) {
8779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Caret_MoveXY" "', expected argument " "3"" of type '" "int""'");
8780 }
8781 arg3 = static_cast< int >(val3);
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 (arg1)->Move(arg2,arg3);
8785 wxPyEndAllowThreads(__tstate);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_Py_Void();
8789 return resultobj;
8790fail:
8791 return NULL;
8792}
8793
8794
8795SWIGINTERN PyObject *_wrap_Caret_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj = 0;
8797 wxCaret *arg1 = (wxCaret *) 0 ;
8798 wxPoint *arg2 = 0 ;
8799 void *argp1 = 0 ;
8800 int res1 = 0 ;
8801 wxPoint temp2 ;
8802 PyObject * obj0 = 0 ;
8803 PyObject * obj1 = 0 ;
8804 char * kwnames[] = {
8805 (char *) "self",(char *) "pt", NULL
8806 };
8807
8808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) SWIG_fail;
8809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8810 if (!SWIG_IsOK(res1)) {
8811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Move" "', expected argument " "1"" of type '" "wxCaret *""'");
8812 }
8813 arg1 = reinterpret_cast< wxCaret * >(argp1);
8814 {
8815 arg2 = &temp2;
8816 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8817 }
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 (arg1)->Move((wxPoint const &)*arg2);
8821 wxPyEndAllowThreads(__tstate);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 resultobj = SWIG_Py_Void();
8825 return resultobj;
8826fail:
8827 return NULL;
8828}
8829
8830
8831SWIGINTERN PyObject *_wrap_Caret_SetSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj = 0;
8833 wxCaret *arg1 = (wxCaret *) 0 ;
8834 int arg2 ;
8835 int arg3 ;
8836 void *argp1 = 0 ;
8837 int res1 = 0 ;
8838 int val2 ;
8839 int ecode2 = 0 ;
8840 int val3 ;
8841 int ecode3 = 0 ;
8842 PyObject * obj0 = 0 ;
8843 PyObject * obj1 = 0 ;
8844 PyObject * obj2 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "self",(char *) "width",(char *) "height", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_SetSizeWH" "', expected argument " "1"" of type '" "wxCaret *""'");
8853 }
8854 arg1 = reinterpret_cast< wxCaret * >(argp1);
8855 ecode2 = SWIG_AsVal_int(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_SetSizeWH" "', expected argument " "2"" of type '" "int""'");
8858 }
8859 arg2 = static_cast< int >(val2);
8860 ecode3 = SWIG_AsVal_int(obj2, &val3);
8861 if (!SWIG_IsOK(ecode3)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Caret_SetSizeWH" "', expected argument " "3"" of type '" "int""'");
8863 }
8864 arg3 = static_cast< int >(val3);
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 (arg1)->SetSize(arg2,arg3);
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_Py_Void();
8872 return resultobj;
8873fail:
8874 return NULL;
8875}
8876
8877
8878SWIGINTERN PyObject *_wrap_Caret_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj = 0;
8880 wxCaret *arg1 = (wxCaret *) 0 ;
8881 wxSize *arg2 = 0 ;
8882 void *argp1 = 0 ;
8883 int res1 = 0 ;
8884 wxSize temp2 ;
8885 PyObject * obj0 = 0 ;
8886 PyObject * obj1 = 0 ;
8887 char * kwnames[] = {
8888 (char *) "self",(char *) "size", NULL
8889 };
8890
8891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8893 if (!SWIG_IsOK(res1)) {
8894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_SetSize" "', expected argument " "1"" of type '" "wxCaret *""'");
8895 }
8896 arg1 = reinterpret_cast< wxCaret * >(argp1);
8897 {
8898 arg2 = &temp2;
8899 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8900 }
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 (arg1)->SetSize((wxSize const &)*arg2);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_Py_Void();
8908 return resultobj;
8909fail:
8910 return NULL;
8911}
8912
8913
8914SWIGINTERN PyObject *_wrap_Caret_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj = 0;
8916 wxCaret *arg1 = (wxCaret *) 0 ;
8917 int arg2 = (int) true ;
8918 void *argp1 = 0 ;
8919 int res1 = 0 ;
8920 int val2 ;
8921 int ecode2 = 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 char * kwnames[] = {
8925 (char *) "self",(char *) "show", NULL
8926 };
8927
8928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) SWIG_fail;
8929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8930 if (!SWIG_IsOK(res1)) {
8931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Show" "', expected argument " "1"" of type '" "wxCaret *""'");
8932 }
8933 arg1 = reinterpret_cast< wxCaret * >(argp1);
8934 if (obj1) {
8935 ecode2 = SWIG_AsVal_int(obj1, &val2);
8936 if (!SWIG_IsOK(ecode2)) {
8937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Caret_Show" "', expected argument " "2"" of type '" "int""'");
8938 }
8939 arg2 = static_cast< int >(val2);
8940 }
8941 {
8942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8943 (arg1)->Show(arg2);
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 resultobj = SWIG_Py_Void();
8948 return resultobj;
8949fail:
8950 return NULL;
d55e5bfc
RD
8951}
8952
8953
554f62e9
RD
8954SWIGINTERN PyObject *_wrap_Caret_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8955 PyObject *resultobj = 0;
8956 wxCaret *arg1 = (wxCaret *) 0 ;
8957 void *argp1 = 0 ;
8958 int res1 = 0 ;
8959 PyObject *swig_obj[1] ;
8960
8961 if (!args) SWIG_fail;
8962 swig_obj[0] = args;
8963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCaret, 0 | 0 );
8964 if (!SWIG_IsOK(res1)) {
8965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Caret_Hide" "', expected argument " "1"" of type '" "wxCaret *""'");
8966 }
8967 arg1 = reinterpret_cast< wxCaret * >(argp1);
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 (arg1)->Hide();
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
8974 resultobj = SWIG_Py_Void();
8975 return resultobj;
8976fail:
8977 return NULL;
d55e5bfc
RD
8978}
8979
8980
554f62e9
RD
8981SWIGINTERN PyObject *_wrap_Caret_GetBlinkTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8982 PyObject *resultobj = 0;
8983 int result;
8984
8985 if (!SWIG_Python_UnpackTuple(args,"Caret_GetBlinkTime",0,0,0)) SWIG_fail;
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 result = (int)wxCaret::GetBlinkTime();
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 resultobj = SWIG_From_int(static_cast< int >(result));
8993 return resultobj;
8994fail:
8995 return NULL;
d55e5bfc
RD
8996}
8997
8998
554f62e9
RD
8999SWIGINTERN PyObject *_wrap_Caret_SetBlinkTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj = 0;
9001 int arg1 ;
9002 int val1 ;
9003 int ecode1 = 0 ;
9004 PyObject * obj0 = 0 ;
9005 char * kwnames[] = {
9006 (char *) "milliseconds", NULL
9007 };
9008
9009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) SWIG_fail;
9010 ecode1 = SWIG_AsVal_int(obj0, &val1);
9011 if (!SWIG_IsOK(ecode1)) {
9012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Caret_SetBlinkTime" "', expected argument " "1"" of type '" "int""'");
9013 }
9014 arg1 = static_cast< int >(val1);
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 wxCaret::SetBlinkTime(arg1);
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = SWIG_Py_Void();
9022 return resultobj;
9023fail:
9024 return NULL;
d55e5bfc
RD
9025}
9026
9027
554f62e9
RD
9028SWIGINTERN PyObject *Caret_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9029 PyObject *obj;
9030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9031 SWIG_TypeNewClientData(SWIGTYPE_p_wxCaret, SWIG_NewClientData(obj));
9032 return SWIG_Py_Void();
d55e5bfc
RD
9033}
9034
554f62e9
RD
9035SWIGINTERN PyObject *Caret_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9036 return SWIG_Python_InitShadowInstance(args);
7e08d4ef
RD
9037}
9038
554f62e9
RD
9039SWIGINTERN PyObject *_wrap_new_BusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj = 0;
9041 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
9042 wxBusyCursor *result = 0 ;
9043 void *argp1 = 0 ;
9044 int res1 = 0 ;
9045 PyObject * obj0 = 0 ;
9046 char * kwnames[] = {
9047 (char *) "cursor", NULL
9048 };
9049
9050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) SWIG_fail;
9051 if (obj0) {
9052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9053 if (!SWIG_IsOK(res1)) {
9054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BusyCursor" "', expected argument " "1"" of type '" "wxCursor *""'");
d55e5bfc 9055 }
554f62e9
RD
9056 arg1 = reinterpret_cast< wxCursor * >(argp1);
9057 }
9058 {
9059 if (!wxPyCheckForApp()) SWIG_fail;
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (wxBusyCursor *)new wxBusyCursor(arg1);
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_NEW | 0 );
9066 return resultobj;
9067fail:
9068 return NULL;
d55e5bfc
RD
9069}
9070
9071
554f62e9
RD
9072SWIGINTERN PyObject *_wrap_delete_BusyCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *resultobj = 0;
9074 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
9075 void *argp1 = 0 ;
9076 int res1 = 0 ;
9077 PyObject *swig_obj[1] ;
9078
9079 if (!args) SWIG_fail;
9080 swig_obj[0] = args;
9081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBusyCursor, SWIG_POINTER_DISOWN | 0 );
9082 if (!SWIG_IsOK(res1)) {
9083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BusyCursor" "', expected argument " "1"" of type '" "wxBusyCursor *""'");
9084 }
9085 arg1 = reinterpret_cast< wxBusyCursor * >(argp1);
9086 {
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 delete arg1;
d55e5bfc 9089
554f62e9
RD
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_Py_Void();
9094 return resultobj;
9095fail:
9096 return NULL;
d55e5bfc
RD
9097}
9098
9099
554f62e9
RD
9100SWIGINTERN PyObject *BusyCursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9101 PyObject *obj;
9102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9103 SWIG_TypeNewClientData(SWIGTYPE_p_wxBusyCursor, SWIG_NewClientData(obj));
9104 return SWIG_Py_Void();
d55e5bfc
RD
9105}
9106
554f62e9
RD
9107SWIGINTERN PyObject *BusyCursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9108 return SWIG_Python_InitShadowInstance(args);
9109}
d55e5bfc 9110
554f62e9
RD
9111SWIGINTERN PyObject *_wrap_new_WindowDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj = 0;
9113 wxWindow *arg1 = (wxWindow *) NULL ;
9114 wxWindowDisabler *result = 0 ;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 PyObject * obj0 = 0 ;
9118 char * kwnames[] = {
9119 (char *) "winToSkip", NULL
9120 };
9121
9122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) SWIG_fail;
9123 if (obj0) {
9124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9125 if (!SWIG_IsOK(res1)) {
9126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDisabler" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 9127 }
554f62e9
RD
9128 arg1 = reinterpret_cast< wxWindow * >(argp1);
9129 }
9130 {
9131 if (!wxPyCheckForApp()) SWIG_fail;
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_NEW | 0 );
9138 return resultobj;
9139fail:
9140 return NULL;
d55e5bfc
RD
9141}
9142
9143
554f62e9
RD
9144SWIGINTERN PyObject *_wrap_delete_WindowDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9145 PyObject *resultobj = 0;
9146 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 PyObject *swig_obj[1] ;
9150
9151 if (!args) SWIG_fail;
9152 swig_obj[0] = args;
9153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowDisabler, SWIG_POINTER_DISOWN | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WindowDisabler" "', expected argument " "1"" of type '" "wxWindowDisabler *""'");
9156 }
9157 arg1 = reinterpret_cast< wxWindowDisabler * >(argp1);
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 delete arg1;
d55e5bfc 9161
554f62e9
RD
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 resultobj = SWIG_Py_Void();
9166 return resultobj;
9167fail:
9168 return NULL;
d55e5bfc
RD
9169}
9170
9171
554f62e9
RD
9172SWIGINTERN PyObject *WindowDisabler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9173 PyObject *obj;
9174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9175 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDisabler, SWIG_NewClientData(obj));
9176 return SWIG_Py_Void();
d55e5bfc
RD
9177}
9178
554f62e9
RD
9179SWIGINTERN PyObject *WindowDisabler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9180 return SWIG_Python_InitShadowInstance(args);
9181}
d55e5bfc 9182
554f62e9
RD
9183SWIGINTERN PyObject *_wrap_new_BusyInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9184 PyObject *resultobj = 0;
9185 wxString *arg1 = 0 ;
9186 wxBusyInfo *result = 0 ;
9187 bool temp1 = false ;
9188 PyObject * obj0 = 0 ;
9189 char * kwnames[] = {
9190 (char *) "message", NULL
9191 };
9192
9193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) SWIG_fail;
9194 {
9195 arg1 = wxString_in_helper(obj0);
9196 if (arg1 == NULL) SWIG_fail;
9197 temp1 = true;
9198 }
9199 {
9200 if (!wxPyCheckForApp()) SWIG_fail;
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_NEW | 0 );
9207 {
9208 if (temp1)
9209 delete arg1;
9210 }
9211 return resultobj;
9212fail:
9213 {
9214 if (temp1)
9215 delete arg1;
9216 }
9217 return NULL;
d55e5bfc
RD
9218}
9219
9220
554f62e9
RD
9221SWIGINTERN PyObject *_wrap_delete_BusyInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9222 PyObject *resultobj = 0;
9223 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
9224 void *argp1 = 0 ;
9225 int res1 = 0 ;
9226 PyObject *swig_obj[1] ;
9227
9228 if (!args) SWIG_fail;
9229 swig_obj[0] = args;
9230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBusyInfo, SWIG_POINTER_DISOWN | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BusyInfo" "', expected argument " "1"" of type '" "wxBusyInfo *""'");
9233 }
9234 arg1 = reinterpret_cast< wxBusyInfo * >(argp1);
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 delete arg1;
d55e5bfc 9238
554f62e9
RD
9239 wxPyEndAllowThreads(__tstate);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 }
9242 resultobj = SWIG_Py_Void();
9243 return resultobj;
9244fail:
9245 return NULL;
d55e5bfc
RD
9246}
9247
9248
554f62e9
RD
9249SWIGINTERN PyObject *BusyInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9250 PyObject *obj;
9251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9252 SWIG_TypeNewClientData(SWIGTYPE_p_wxBusyInfo, SWIG_NewClientData(obj));
9253 return SWIG_Py_Void();
d55e5bfc
RD
9254}
9255
554f62e9
RD
9256SWIGINTERN PyObject *BusyInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9257 return SWIG_Python_InitShadowInstance(args);
9258}
d55e5bfc 9259
554f62e9
RD
9260SWIGINTERN PyObject *_wrap_new_StopWatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9261 PyObject *resultobj = 0;
9262 wxStopWatch *result = 0 ;
9263
9264 if (!SWIG_Python_UnpackTuple(args,"new_StopWatch",0,0,0)) SWIG_fail;
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 result = (wxStopWatch *)new wxStopWatch();
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStopWatch, SWIG_POINTER_NEW | 0 );
9272 return resultobj;
9273fail:
9274 return NULL;
9275}
9276
9277
3ecece7e
RD
9278SWIGINTERN PyObject *_wrap_delete_StopWatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9279 PyObject *resultobj = 0;
9280 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9281 void *argp1 = 0 ;
9282 int res1 = 0 ;
9283 PyObject *swig_obj[1] ;
9284
9285 if (!args) SWIG_fail;
9286 swig_obj[0] = args;
9287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, SWIG_POINTER_DISOWN | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StopWatch" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9290 }
9291 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 delete arg1;
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_Py_Void();
9300 return resultobj;
9301fail:
9302 return NULL;
9303}
9304
9305
554f62e9
RD
9306SWIGINTERN PyObject *_wrap_StopWatch_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj = 0;
9308 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9309 long arg2 = (long) 0 ;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 long val2 ;
9313 int ecode2 = 0 ;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 char * kwnames[] = {
9317 (char *) "self",(char *) "t0", NULL
9318 };
9319
9320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) SWIG_fail;
9321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Start" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9324 }
9325 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9326 if (obj1) {
9327 ecode2 = SWIG_AsVal_long(obj1, &val2);
9328 if (!SWIG_IsOK(ecode2)) {
9329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StopWatch_Start" "', expected argument " "2"" of type '" "long""'");
9330 }
9331 arg2 = static_cast< long >(val2);
9332 }
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 (arg1)->Start(arg2);
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 resultobj = SWIG_Py_Void();
9340 return resultobj;
9341fail:
9342 return NULL;
d55e5bfc
RD
9343}
9344
9345
554f62e9
RD
9346SWIGINTERN PyObject *_wrap_StopWatch_Pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9347 PyObject *resultobj = 0;
9348 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9349 void *argp1 = 0 ;
9350 int res1 = 0 ;
9351 PyObject *swig_obj[1] ;
9352
9353 if (!args) SWIG_fail;
9354 swig_obj[0] = args;
9355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9356 if (!SWIG_IsOK(res1)) {
9357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Pause" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9358 }
9359 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 (arg1)->Pause();
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 resultobj = SWIG_Py_Void();
9367 return resultobj;
9368fail:
9369 return NULL;
d55e5bfc
RD
9370}
9371
9372
554f62e9
RD
9373SWIGINTERN PyObject *_wrap_StopWatch_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9374 PyObject *resultobj = 0;
9375 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 PyObject *swig_obj[1] ;
9379
9380 if (!args) SWIG_fail;
9381 swig_obj[0] = args;
9382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9383 if (!SWIG_IsOK(res1)) {
9384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Resume" "', expected argument " "1"" of type '" "wxStopWatch *""'");
9385 }
9386 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 (arg1)->Resume();
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 resultobj = SWIG_Py_Void();
9394 return resultobj;
9395fail:
9396 return NULL;
d55e5bfc
RD
9397}
9398
9399
554f62e9
RD
9400SWIGINTERN PyObject *_wrap_StopWatch_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9401 PyObject *resultobj = 0;
9402 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
9403 long result;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 PyObject *swig_obj[1] ;
9407
9408 if (!args) SWIG_fail;
9409 swig_obj[0] = args;
9410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStopWatch, 0 | 0 );
9411 if (!SWIG_IsOK(res1)) {
9412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StopWatch_Time" "', expected argument " "1"" of type '" "wxStopWatch const *""'");
9413 }
9414 arg1 = reinterpret_cast< wxStopWatch * >(argp1);
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 result = (long)((wxStopWatch const *)arg1)->Time();
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 resultobj = SWIG_From_long(static_cast< long >(result));
9422 return resultobj;
9423fail:
9424 return NULL;
d55e5bfc
RD
9425}
9426
9427
554f62e9
RD
9428SWIGINTERN PyObject *StopWatch_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9429 PyObject *obj;
9430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9431 SWIG_TypeNewClientData(SWIGTYPE_p_wxStopWatch, SWIG_NewClientData(obj));
9432 return SWIG_Py_Void();
d55e5bfc
RD
9433}
9434
554f62e9
RD
9435SWIGINTERN PyObject *StopWatch_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9436 return SWIG_Python_InitShadowInstance(args);
9437}
d55e5bfc 9438
554f62e9
RD
9439SWIGINTERN PyObject *_wrap_new_FileHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj = 0;
9441 int arg1 = (int) 9 ;
9442 int arg2 = (int) wxID_FILE1 ;
9443 wxFileHistory *result = 0 ;
9444 int val1 ;
9445 int ecode1 = 0 ;
9446 int val2 ;
9447 int ecode2 = 0 ;
9448 PyObject * obj0 = 0 ;
9449 PyObject * obj1 = 0 ;
9450 char * kwnames[] = {
9451 (char *) "maxFiles",(char *) "idBase", NULL
9452 };
9453
9454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9455 if (obj0) {
9456 ecode1 = SWIG_AsVal_int(obj0, &val1);
9457 if (!SWIG_IsOK(ecode1)) {
9458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileHistory" "', expected argument " "1"" of type '" "int""'");
9459 }
9460 arg1 = static_cast< int >(val1);
9461 }
9462 if (obj1) {
9463 ecode2 = SWIG_AsVal_int(obj1, &val2);
9464 if (!SWIG_IsOK(ecode2)) {
9465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FileHistory" "', expected argument " "2"" of type '" "int""'");
9466 }
9467 arg2 = static_cast< int >(val2);
9468 }
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileHistory, SWIG_POINTER_NEW | 0 );
9476 return resultobj;
9477fail:
9478 return NULL;
d55e5bfc
RD
9479}
9480
9481
554f62e9
RD
9482SWIGINTERN PyObject *_wrap_delete_FileHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9483 PyObject *resultobj = 0;
9484 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9485 void *argp1 = 0 ;
9486 int res1 = 0 ;
9487 PyObject *swig_obj[1] ;
9488
9489 if (!args) SWIG_fail;
9490 swig_obj[0] = args;
9491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, SWIG_POINTER_DISOWN | 0 );
9492 if (!SWIG_IsOK(res1)) {
9493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9494 }
9495 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 delete arg1;
d55e5bfc 9499
554f62e9
RD
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 resultobj = SWIG_Py_Void();
9504 return resultobj;
9505fail:
9506 return NULL;
9507}
9508
9509
9510SWIGINTERN PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj = 0;
9512 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9513 wxString *arg2 = 0 ;
9514 void *argp1 = 0 ;
9515 int res1 = 0 ;
9516 bool temp2 = false ;
9517 PyObject * obj0 = 0 ;
9518 PyObject * obj1 = 0 ;
9519 char * kwnames[] = {
9520 (char *) "self",(char *) "file", NULL
9521 };
9522
9523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9525 if (!SWIG_IsOK(res1)) {
9526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFileToHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9527 }
9528 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9529 {
9530 arg2 = wxString_in_helper(obj1);
9531 if (arg2 == NULL) SWIG_fail;
9532 temp2 = true;
9533 }
9534 {
9535 PyThreadState* __tstate = wxPyBeginAllowThreads();
9536 (arg1)->AddFileToHistory((wxString const &)*arg2);
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 resultobj = SWIG_Py_Void();
9541 {
9542 if (temp2)
9543 delete arg2;
9544 }
9545 return resultobj;
9546fail:
9547 {
9548 if (temp2)
9549 delete arg2;
9550 }
9551 return NULL;
9552}
9553
9554
9555SWIGINTERN PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9556 PyObject *resultobj = 0;
9557 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9558 int arg2 ;
9559 void *argp1 = 0 ;
9560 int res1 = 0 ;
9561 int val2 ;
9562 int ecode2 = 0 ;
9563 PyObject * obj0 = 0 ;
9564 PyObject * obj1 = 0 ;
9565 char * kwnames[] = {
9566 (char *) "self",(char *) "i", NULL
9567 };
9568
9569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) SWIG_fail;
9570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9571 if (!SWIG_IsOK(res1)) {
9572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_RemoveFileFromHistory" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9573 }
9574 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9575 ecode2 = SWIG_AsVal_int(obj1, &val2);
9576 if (!SWIG_IsOK(ecode2)) {
9577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileHistory_RemoveFileFromHistory" "', expected argument " "2"" of type '" "int""'");
9578 }
9579 arg2 = static_cast< int >(val2);
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 (arg1)->RemoveFileFromHistory(arg2);
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 }
9586 resultobj = SWIG_Py_Void();
9587 return resultobj;
9588fail:
9589 return NULL;
d55e5bfc
RD
9590}
9591
9592
554f62e9
RD
9593SWIGINTERN PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9594 PyObject *resultobj = 0;
9595 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9596 int result;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject *swig_obj[1] ;
9600
9601 if (!args) SWIG_fail;
9602 swig_obj[0] = args;
9603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetMaxFiles" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9606 }
9607 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_From_int(static_cast< int >(result));
9615 return resultobj;
9616fail:
9617 return NULL;
9618}
9619
9620
9621SWIGINTERN PyObject *_wrap_FileHistory_UseMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj = 0;
9623 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9624 wxMenu *arg2 = (wxMenu *) 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 void *argp2 = 0 ;
9628 int res2 = 0 ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "self",(char *) "menu", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_UseMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9639 }
9640 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9642 if (!SWIG_IsOK(res2)) {
9643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_UseMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9644 }
9645 arg2 = reinterpret_cast< wxMenu * >(argp2);
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 (arg1)->UseMenu(arg2);
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_Py_Void();
9653 return resultobj;
9654fail:
9655 return NULL;
9656}
9657
9658
9659SWIGINTERN PyObject *_wrap_FileHistory_RemoveMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj = 0;
9661 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9662 wxMenu *arg2 = (wxMenu *) 0 ;
9663 void *argp1 = 0 ;
9664 int res1 = 0 ;
9665 void *argp2 = 0 ;
9666 int res2 = 0 ;
9667 PyObject * obj0 = 0 ;
9668 PyObject * obj1 = 0 ;
9669 char * kwnames[] = {
9670 (char *) "self",(char *) "menu", NULL
9671 };
9672
9673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9675 if (!SWIG_IsOK(res1)) {
9676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_RemoveMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9677 }
9678 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9680 if (!SWIG_IsOK(res2)) {
9681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_RemoveMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9682 }
9683 arg2 = reinterpret_cast< wxMenu * >(argp2);
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 (arg1)->RemoveMenu(arg2);
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 resultobj = SWIG_Py_Void();
9691 return resultobj;
9692fail:
9693 return NULL;
9694}
9695
9696
9697SWIGINTERN PyObject *_wrap_FileHistory_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj = 0;
9699 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9700 wxConfigBase *arg2 = 0 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 void *argp2 = 0 ;
9704 int res2 = 0 ;
9705 PyObject * obj0 = 0 ;
9706 PyObject * obj1 = 0 ;
9707 char * kwnames[] = {
9708 (char *) "self",(char *) "config", NULL
9709 };
9710
9711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) SWIG_fail;
9712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_Load" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9715 }
9716 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxConfigBase, 0 );
9718 if (!SWIG_IsOK(res2)) {
9719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_Load" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9720 }
9721 if (!argp2) {
9722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileHistory_Load" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9723 }
9724 arg2 = reinterpret_cast< wxConfigBase * >(argp2);
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 (arg1)->Load(*arg2);
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_Py_Void();
9732 return resultobj;
9733fail:
9734 return NULL;
9735}
9736
9737
9738SWIGINTERN PyObject *_wrap_FileHistory_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj = 0;
9740 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9741 wxConfigBase *arg2 = 0 ;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 void *argp2 = 0 ;
9745 int res2 = 0 ;
9746 PyObject * obj0 = 0 ;
9747 PyObject * obj1 = 0 ;
9748 char * kwnames[] = {
9749 (char *) "self",(char *) "config", NULL
9750 };
9751
9752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) SWIG_fail;
9753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_Save" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9756 }
9757 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxConfigBase, 0 );
9759 if (!SWIG_IsOK(res2)) {
9760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_Save" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9761 }
9762 if (!argp2) {
9763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileHistory_Save" "', expected argument " "2"" of type '" "wxConfigBase &""'");
9764 }
9765 arg2 = reinterpret_cast< wxConfigBase * >(argp2);
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 (arg1)->Save(*arg2);
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 resultobj = SWIG_Py_Void();
9773 return resultobj;
9774fail:
9775 return NULL;
d55e5bfc
RD
9776}
9777
9778
554f62e9
RD
9779SWIGINTERN PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9780 PyObject *resultobj = 0;
9781 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9782 void *argp1 = 0 ;
9783 int res1 = 0 ;
9784 PyObject *swig_obj[1] ;
9785
9786 if (!args) SWIG_fail;
9787 swig_obj[0] = args;
9788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFilesToMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9791 }
9792 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 (arg1)->AddFilesToMenu();
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 resultobj = SWIG_Py_Void();
9800 return resultobj;
9801fail:
9802 return NULL;
9803}
9804
9805
9806SWIGINTERN PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj = 0;
9808 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9809 wxMenu *arg2 = (wxMenu *) 0 ;
9810 void *argp1 = 0 ;
9811 int res1 = 0 ;
9812 void *argp2 = 0 ;
9813 int res2 = 0 ;
9814 PyObject * obj0 = 0 ;
9815 PyObject * obj1 = 0 ;
9816 char * kwnames[] = {
9817 (char *) "self",(char *) "menu", NULL
9818 };
9819
9820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) SWIG_fail;
9821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9822 if (!SWIG_IsOK(res1)) {
9823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_AddFilesToThisMenu" "', expected argument " "1"" of type '" "wxFileHistory *""'");
9824 }
9825 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
9827 if (!SWIG_IsOK(res2)) {
9828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileHistory_AddFilesToThisMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
9829 }
9830 arg2 = reinterpret_cast< wxMenu * >(argp2);
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 (arg1)->AddFilesToMenu(arg2);
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 resultobj = SWIG_Py_Void();
9838 return resultobj;
9839fail:
9840 return NULL;
9841}
9842
9843
9844SWIGINTERN PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj = 0;
9846 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9847 int arg2 ;
9848 wxString result;
9849 void *argp1 = 0 ;
9850 int res1 = 0 ;
9851 int val2 ;
9852 int ecode2 = 0 ;
9853 PyObject * obj0 = 0 ;
9854 PyObject * obj1 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "i", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetHistoryFile" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9863 }
9864 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileHistory_GetHistoryFile" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 {
9877#if wxUSE_UNICODE
9878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9879#else
9880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9881#endif
9882 }
9883 return resultobj;
9884fail:
9885 return NULL;
d55e5bfc
RD
9886}
9887
9888
554f62e9
RD
9889SWIGINTERN PyObject *_wrap_FileHistory_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9890 PyObject *resultobj = 0;
9891 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
9892 int result;
9893 void *argp1 = 0 ;
9894 int res1 = 0 ;
9895 PyObject *swig_obj[1] ;
9896
9897 if (!args) SWIG_fail;
9898 swig_obj[0] = args;
9899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileHistory, 0 | 0 );
9900 if (!SWIG_IsOK(res1)) {
9901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileHistory_GetCount" "', expected argument " "1"" of type '" "wxFileHistory const *""'");
9902 }
9903 arg1 = reinterpret_cast< wxFileHistory * >(argp1);
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = (int)((wxFileHistory const *)arg1)->GetCount();
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_From_int(static_cast< int >(result));
9911 return resultobj;
9912fail:
9913 return NULL;
d55e5bfc
RD
9914}
9915
9916
554f62e9
RD
9917SWIGINTERN PyObject *FileHistory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9918 PyObject *obj;
9919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9920 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileHistory, SWIG_NewClientData(obj));
9921 return SWIG_Py_Void();
d55e5bfc
RD
9922}
9923
554f62e9
RD
9924SWIGINTERN PyObject *FileHistory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925 return SWIG_Python_InitShadowInstance(args);
d55e5bfc 9926}
554f62e9
RD
9927
9928SWIGINTERN PyObject *_wrap_new_SingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9929 PyObject *resultobj = 0;
9930 wxString *arg1 = 0 ;
9931 wxString const &arg2_defvalue = wxPyEmptyString ;
9932 wxString *arg2 = (wxString *) &arg2_defvalue ;
9933 wxSingleInstanceChecker *result = 0 ;
9934 bool temp1 = false ;
9935 bool temp2 = false ;
9936 PyObject * obj0 = 0 ;
9937 PyObject * obj1 = 0 ;
9938 char * kwnames[] = {
9939 (char *) "name",(char *) "path", NULL
9940 };
9941
9942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) SWIG_fail;
9943 {
9944 arg1 = wxString_in_helper(obj0);
9945 if (arg1 == NULL) SWIG_fail;
9946 temp1 = true;
9947 }
9948 if (obj1) {
d55e5bfc 9949 {
554f62e9
RD
9950 arg2 = wxString_in_helper(obj1);
9951 if (arg2 == NULL) SWIG_fail;
9952 temp2 = true;
d55e5bfc 9953 }
554f62e9
RD
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_NEW | 0 );
9962 {
9963 if (temp1)
9964 delete arg1;
9965 }
9966 {
9967 if (temp2)
9968 delete arg2;
9969 }
9970 return resultobj;
9971fail:
9972 {
9973 if (temp1)
9974 delete arg1;
9975 }
9976 {
9977 if (temp2)
9978 delete arg2;
9979 }
9980 return NULL;
d55e5bfc
RD
9981}
9982
9983
554f62e9
RD
9984SWIGINTERN PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9985 PyObject *resultobj = 0;
9986 wxSingleInstanceChecker *result = 0 ;
9987
9988 if (!SWIG_Python_UnpackTuple(args,"new_PreSingleInstanceChecker",0,0,0)) SWIG_fail;
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
9995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_OWN | 0 );
9996 return resultobj;
9997fail:
9998 return NULL;
d55e5bfc
RD
9999}
10000
10001
554f62e9
RD
10002SWIGINTERN PyObject *_wrap_delete_SingleInstanceChecker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10003 PyObject *resultobj = 0;
10004 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10005 void *argp1 = 0 ;
10006 int res1 = 0 ;
10007 PyObject *swig_obj[1] ;
10008
10009 if (!args) SWIG_fail;
10010 swig_obj[0] = args;
10011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleInstanceChecker, SWIG_POINTER_DISOWN | 0 );
10012 if (!SWIG_IsOK(res1)) {
10013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SingleInstanceChecker" "', expected argument " "1"" of type '" "wxSingleInstanceChecker *""'");
10014 }
10015 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 delete arg1;
d55e5bfc 10019
554f62e9
RD
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 resultobj = SWIG_Py_Void();
10024 return resultobj;
10025fail:
10026 return NULL;
10027}
10028
10029
10030SWIGINTERN PyObject *_wrap_SingleInstanceChecker_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10031 PyObject *resultobj = 0;
10032 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10033 wxString *arg2 = 0 ;
10034 wxString const &arg3_defvalue = wxPyEmptyString ;
10035 wxString *arg3 = (wxString *) &arg3_defvalue ;
10036 bool result;
10037 void *argp1 = 0 ;
10038 int res1 = 0 ;
10039 bool temp2 = false ;
10040 bool temp3 = false ;
10041 PyObject * obj0 = 0 ;
10042 PyObject * obj1 = 0 ;
10043 PyObject * obj2 = 0 ;
10044 char * kwnames[] = {
10045 (char *) "self",(char *) "name",(char *) "path", NULL
10046 };
10047
10048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleInstanceChecker, 0 | 0 );
10050 if (!SWIG_IsOK(res1)) {
10051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleInstanceChecker_Create" "', expected argument " "1"" of type '" "wxSingleInstanceChecker *""'");
10052 }
10053 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10054 {
10055 arg2 = wxString_in_helper(obj1);
10056 if (arg2 == NULL) SWIG_fail;
10057 temp2 = true;
10058 }
10059 if (obj2) {
d55e5bfc 10060 {
554f62e9
RD
10061 arg3 = wxString_in_helper(obj2);
10062 if (arg3 == NULL) SWIG_fail;
10063 temp3 = true;
d55e5bfc 10064 }
554f62e9
RD
10065 }
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 {
10073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10074 }
10075 {
10076 if (temp2)
10077 delete arg2;
10078 }
10079 {
10080 if (temp3)
10081 delete arg3;
10082 }
10083 return resultobj;
10084fail:
10085 {
10086 if (temp2)
10087 delete arg2;
10088 }
10089 {
10090 if (temp3)
10091 delete arg3;
10092 }
10093 return NULL;
d55e5bfc
RD
10094}
10095
10096
554f62e9
RD
10097SWIGINTERN PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10098 PyObject *resultobj = 0;
10099 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
10100 bool result;
10101 void *argp1 = 0 ;
10102 int res1 = 0 ;
10103 PyObject *swig_obj[1] ;
10104
10105 if (!args) SWIG_fail;
10106 swig_obj[0] = args;
10107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleInstanceChecker, 0 | 0 );
10108 if (!SWIG_IsOK(res1)) {
10109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleInstanceChecker_IsAnotherRunning" "', expected argument " "1"" of type '" "wxSingleInstanceChecker const *""'");
10110 }
10111 arg1 = reinterpret_cast< wxSingleInstanceChecker * >(argp1);
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 {
10119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10120 }
10121 return resultobj;
10122fail:
10123 return NULL;
d55e5bfc
RD
10124}
10125
10126
554f62e9
RD
10127SWIGINTERN PyObject *SingleInstanceChecker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10128 PyObject *obj;
10129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10130 SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleInstanceChecker, SWIG_NewClientData(obj));
10131 return SWIG_Py_Void();
d55e5bfc
RD
10132}
10133
554f62e9
RD
10134SWIGINTERN PyObject *SingleInstanceChecker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10135 return SWIG_Python_InitShadowInstance(args);
10136}
d55e5bfc 10137
fc46b7f3
RD
10138SWIGINTERN PyObject *_wrap_new_PlatformInformation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10139 PyObject *resultobj = 0;
10140 wxPlatformInfo *result = 0 ;
10141
10142 if (!SWIG_Python_UnpackTuple(args,"new_PlatformInformation",0,0,0)) SWIG_fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxPlatformInfo *)new wxPlatformInfo();
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPlatformInfo, SWIG_POINTER_NEW | 0 );
10150 return resultobj;
10151fail:
10152 return NULL;
10153}
10154
10155
10156SWIGINTERN PyObject *_wrap_PlatformInformation___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj = 0;
10158 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10159 wxPlatformInfo *arg2 = 0 ;
10160 bool result;
10161 void *argp1 = 0 ;
10162 int res1 = 0 ;
10163 void *argp2 = 0 ;
10164 int res2 = 0 ;
10165 PyObject * obj0 = 0 ;
10166 PyObject * obj1 = 0 ;
10167 char * kwnames[] = {
10168 (char *) "self",(char *) "t", NULL
10169 };
10170
10171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
10172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10173 if (!SWIG_IsOK(res1)) {
10174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation___eq__" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10175 }
10176 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPlatformInfo, 0 | 0);
10178 if (!SWIG_IsOK(res2)) {
10179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PlatformInformation___eq__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10180 }
10181 if (!argp2) {
10182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PlatformInformation___eq__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10183 }
10184 arg2 = reinterpret_cast< wxPlatformInfo * >(argp2);
10185 {
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (bool)((wxPlatformInfo const *)arg1)->operator ==((wxPlatformInfo const &)*arg2);
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 {
10192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10193 }
10194 return resultobj;
10195fail:
10196 return NULL;
10197}
10198
10199
10200SWIGINTERN PyObject *_wrap_PlatformInformation___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10201 PyObject *resultobj = 0;
10202 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10203 wxPlatformInfo *arg2 = 0 ;
10204 bool result;
10205 void *argp1 = 0 ;
10206 int res1 = 0 ;
10207 void *argp2 = 0 ;
10208 int res2 = 0 ;
10209 PyObject * obj0 = 0 ;
10210 PyObject * obj1 = 0 ;
10211 char * kwnames[] = {
10212 (char *) "self",(char *) "t", NULL
10213 };
10214
10215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
10216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10217 if (!SWIG_IsOK(res1)) {
10218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation___ne__" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10219 }
10220 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPlatformInfo, 0 | 0);
10222 if (!SWIG_IsOK(res2)) {
10223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PlatformInformation___ne__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10224 }
10225 if (!argp2) {
10226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PlatformInformation___ne__" "', expected argument " "2"" of type '" "wxPlatformInfo const &""'");
10227 }
10228 arg2 = reinterpret_cast< wxPlatformInfo * >(argp2);
10229 {
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 result = (bool)((wxPlatformInfo const *)arg1)->operator !=((wxPlatformInfo const &)*arg2);
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10237 }
10238 return resultobj;
10239fail:
10240 return NULL;
10241}
10242
10243
10244SWIGINTERN PyObject *_wrap_PlatformInformation_GetOSMajorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10245 PyObject *resultobj = 0;
10246 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10247 int result;
10248 void *argp1 = 0 ;
10249 int res1 = 0 ;
10250 PyObject *swig_obj[1] ;
10251
10252 if (!args) SWIG_fail;
10253 swig_obj[0] = args;
10254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10255 if (!SWIG_IsOK(res1)) {
10256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOSMajorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10257 }
10258 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 result = (int)((wxPlatformInfo const *)arg1)->GetOSMajorVersion();
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_From_int(static_cast< int >(result));
10266 return resultobj;
10267fail:
10268 return NULL;
10269}
10270
10271
10272SWIGINTERN PyObject *_wrap_PlatformInformation_GetOSMinorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10273 PyObject *resultobj = 0;
10274 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10275 int result;
10276 void *argp1 = 0 ;
10277 int res1 = 0 ;
10278 PyObject *swig_obj[1] ;
10279
10280 if (!args) SWIG_fail;
10281 swig_obj[0] = args;
10282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10283 if (!SWIG_IsOK(res1)) {
10284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOSMinorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10285 }
10286 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10287 {
10288 PyThreadState* __tstate = wxPyBeginAllowThreads();
10289 result = (int)((wxPlatformInfo const *)arg1)->GetOSMinorVersion();
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 resultobj = SWIG_From_int(static_cast< int >(result));
10294 return resultobj;
10295fail:
10296 return NULL;
10297}
10298
10299
5acb46e0
RD
10300SWIGINTERN PyObject *_wrap_PlatformInformation_CheckOSVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj = 0;
10302 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10303 int arg2 ;
10304 int arg3 ;
10305 bool result;
10306 void *argp1 = 0 ;
10307 int res1 = 0 ;
10308 int val2 ;
10309 int ecode2 = 0 ;
10310 int val3 ;
10311 int ecode3 = 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 PyObject * obj2 = 0 ;
10315 char * kwnames[] = {
10316 (char *) "self",(char *) "major",(char *) "minor", NULL
10317 };
10318
10319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_CheckOSVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10321 if (!SWIG_IsOK(res1)) {
10322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10323 }
10324 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10325 ecode2 = SWIG_AsVal_int(obj1, &val2);
10326 if (!SWIG_IsOK(ecode2)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "2"" of type '" "int""'");
10328 }
10329 arg2 = static_cast< int >(val2);
10330 ecode3 = SWIG_AsVal_int(obj2, &val3);
10331 if (!SWIG_IsOK(ecode3)) {
10332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_CheckOSVersion" "', expected argument " "3"" of type '" "int""'");
10333 }
10334 arg3 = static_cast< int >(val3);
10335 {
10336 PyThreadState* __tstate = wxPyBeginAllowThreads();
10337 result = (bool)((wxPlatformInfo const *)arg1)->CheckOSVersion(arg2,arg3);
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 {
10342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10343 }
10344 return resultobj;
10345fail:
10346 return NULL;
10347}
10348
10349
fc46b7f3
RD
10350SWIGINTERN PyObject *_wrap_PlatformInformation_GetToolkitMajorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10351 PyObject *resultobj = 0;
10352 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10353 int result;
10354 void *argp1 = 0 ;
10355 int res1 = 0 ;
10356 PyObject *swig_obj[1] ;
10357
10358 if (!args) SWIG_fail;
10359 swig_obj[0] = args;
10360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetToolkitMajorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10363 }
10364 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (int)((wxPlatformInfo const *)arg1)->GetToolkitMajorVersion();
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 resultobj = SWIG_From_int(static_cast< int >(result));
10372 return resultobj;
10373fail:
10374 return NULL;
10375}
10376
10377
10378SWIGINTERN PyObject *_wrap_PlatformInformation_GetToolkitMinorVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10379 PyObject *resultobj = 0;
10380 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10381 int result;
10382 void *argp1 = 0 ;
10383 int res1 = 0 ;
10384 PyObject *swig_obj[1] ;
10385
10386 if (!args) SWIG_fail;
10387 swig_obj[0] = args;
10388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10389 if (!SWIG_IsOK(res1)) {
10390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetToolkitMinorVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10391 }
10392 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10393 {
10394 PyThreadState* __tstate = wxPyBeginAllowThreads();
10395 result = (int)((wxPlatformInfo const *)arg1)->GetToolkitMinorVersion();
10396 wxPyEndAllowThreads(__tstate);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 resultobj = SWIG_From_int(static_cast< int >(result));
10400 return resultobj;
10401fail:
10402 return NULL;
10403}
10404
10405
5acb46e0
RD
10406SWIGINTERN PyObject *_wrap_PlatformInformation_CheckToolkitVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10407 PyObject *resultobj = 0;
10408 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10409 int arg2 ;
10410 int arg3 ;
10411 bool result;
10412 void *argp1 = 0 ;
10413 int res1 = 0 ;
10414 int val2 ;
10415 int ecode2 = 0 ;
10416 int val3 ;
10417 int ecode3 = 0 ;
10418 PyObject * obj0 = 0 ;
10419 PyObject * obj1 = 0 ;
10420 PyObject * obj2 = 0 ;
10421 char * kwnames[] = {
10422 (char *) "self",(char *) "major",(char *) "minor", NULL
10423 };
10424
10425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_CheckToolkitVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10427 if (!SWIG_IsOK(res1)) {
10428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10429 }
10430 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10431 ecode2 = SWIG_AsVal_int(obj1, &val2);
10432 if (!SWIG_IsOK(ecode2)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "2"" of type '" "int""'");
10434 }
10435 arg2 = static_cast< int >(val2);
10436 ecode3 = SWIG_AsVal_int(obj2, &val3);
10437 if (!SWIG_IsOK(ecode3)) {
10438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_CheckToolkitVersion" "', expected argument " "3"" of type '" "int""'");
10439 }
10440 arg3 = static_cast< int >(val3);
10441 {
10442 PyThreadState* __tstate = wxPyBeginAllowThreads();
10443 result = (bool)((wxPlatformInfo const *)arg1)->CheckToolkitVersion(arg2,arg3);
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 }
10447 {
10448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10449 }
10450 return resultobj;
10451fail:
10452 return NULL;
10453}
10454
10455
fc46b7f3
RD
10456SWIGINTERN PyObject *_wrap_PlatformInformation_IsUsingUniversalWidgets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10457 PyObject *resultobj = 0;
10458 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10459 bool result;
10460 void *argp1 = 0 ;
10461 int res1 = 0 ;
10462 PyObject *swig_obj[1] ;
10463
10464 if (!args) SWIG_fail;
10465 swig_obj[0] = args;
10466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10467 if (!SWIG_IsOK(res1)) {
10468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_IsUsingUniversalWidgets" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10469 }
10470 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = (bool)((wxPlatformInfo const *)arg1)->IsUsingUniversalWidgets();
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 {
10478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10479 }
10480 return resultobj;
10481fail:
10482 return NULL;
10483}
10484
10485
10486SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10487 PyObject *resultobj = 0;
10488 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10489 wxOperatingSystemId result;
10490 void *argp1 = 0 ;
10491 int res1 = 0 ;
10492 PyObject *swig_obj[1] ;
10493
10494 if (!args) SWIG_fail;
10495 swig_obj[0] = args;
10496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemId" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10499 }
10500 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxOperatingSystemId)((wxPlatformInfo const *)arg1)->GetOperatingSystemId();
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_From_int(static_cast< int >(result));
10508 return resultobj;
10509fail:
10510 return NULL;
10511}
10512
10513
10514SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10517 wxPortId result;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject *swig_obj[1] ;
10521
10522 if (!args) SWIG_fail;
10523 swig_obj[0] = args;
10524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortId" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10527 }
10528 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 result = (wxPortId)((wxPlatformInfo const *)arg1)->GetPortId();
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_From_int(static_cast< int >(result));
10536 return resultobj;
10537fail:
10538 return NULL;
10539}
10540
10541
10542SWIGINTERN PyObject *_wrap_PlatformInformation_GetArchitecture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10545 wxArchitecture result;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 PyObject *swig_obj[1] ;
10549
10550 if (!args) SWIG_fail;
10551 swig_obj[0] = args;
10552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetArchitecture" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10555 }
10556 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (wxArchitecture)((wxPlatformInfo const *)arg1)->GetArchitecture();
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_From_int(static_cast< int >(result));
10564 return resultobj;
10565fail:
10566 return NULL;
10567}
10568
10569
10570SWIGINTERN PyObject *_wrap_PlatformInformation_GetEndianness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10571 PyObject *resultobj = 0;
10572 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10573 wxEndianness result;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 PyObject *swig_obj[1] ;
10577
10578 if (!args) SWIG_fail;
10579 swig_obj[0] = args;
10580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10581 if (!SWIG_IsOK(res1)) {
10582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetEndianness" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10583 }
10584 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (wxEndianness)((wxPlatformInfo const *)arg1)->GetEndianness();
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 resultobj = SWIG_From_int(static_cast< int >(result));
10592 return resultobj;
10593fail:
10594 return NULL;
10595}
10596
10597
10598SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemFamilyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10599 PyObject *resultobj = 0;
10600 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10601 wxString result;
10602 void *argp1 = 0 ;
10603 int res1 = 0 ;
10604 PyObject *swig_obj[1] ;
10605
10606 if (!args) SWIG_fail;
10607 swig_obj[0] = args;
10608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10609 if (!SWIG_IsOK(res1)) {
10610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemFamilyName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10611 }
10612 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 result = ((wxPlatformInfo const *)arg1)->GetOperatingSystemFamilyName();
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 {
10620#if wxUSE_UNICODE
10621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10622#else
10623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10624#endif
10625 }
10626 return resultobj;
10627fail:
10628 return NULL;
10629}
10630
10631
10632SWIGINTERN PyObject *_wrap_PlatformInformation_GetOperatingSystemIdName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10633 PyObject *resultobj = 0;
10634 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10635 wxString result;
10636 void *argp1 = 0 ;
10637 int res1 = 0 ;
10638 PyObject *swig_obj[1] ;
10639
10640 if (!args) SWIG_fail;
10641 swig_obj[0] = args;
10642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetOperatingSystemIdName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10645 }
10646 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 result = ((wxPlatformInfo const *)arg1)->GetOperatingSystemIdName();
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 {
10654#if wxUSE_UNICODE
10655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10656#else
10657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10658#endif
10659 }
10660 return resultobj;
10661fail:
10662 return NULL;
10663}
10664
10665
10666SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortIdName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10667 PyObject *resultobj = 0;
10668 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10669 wxString result;
10670 void *argp1 = 0 ;
10671 int res1 = 0 ;
10672 PyObject *swig_obj[1] ;
10673
10674 if (!args) SWIG_fail;
10675 swig_obj[0] = args;
10676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10677 if (!SWIG_IsOK(res1)) {
10678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortIdName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10679 }
10680 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10681 {
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 result = ((wxPlatformInfo const *)arg1)->GetPortIdName();
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 {
10688#if wxUSE_UNICODE
10689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10690#else
10691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10692#endif
10693 }
10694 return resultobj;
10695fail:
10696 return NULL;
10697}
10698
10699
10700SWIGINTERN PyObject *_wrap_PlatformInformation_GetPortIdShortName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10701 PyObject *resultobj = 0;
10702 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10703 wxString result;
10704 void *argp1 = 0 ;
10705 int res1 = 0 ;
10706 PyObject *swig_obj[1] ;
10707
10708 if (!args) SWIG_fail;
10709 swig_obj[0] = args;
10710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10711 if (!SWIG_IsOK(res1)) {
10712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetPortIdShortName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10713 }
10714 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = ((wxPlatformInfo const *)arg1)->GetPortIdShortName();
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 {
10722#if wxUSE_UNICODE
10723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10724#else
10725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10726#endif
10727 }
10728 return resultobj;
10729fail:
10730 return NULL;
10731}
10732
10733
10734SWIGINTERN PyObject *_wrap_PlatformInformation_GetArchName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10735 PyObject *resultobj = 0;
10736 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10737 wxString result;
10738 void *argp1 = 0 ;
10739 int res1 = 0 ;
10740 PyObject *swig_obj[1] ;
10741
10742 if (!args) SWIG_fail;
10743 swig_obj[0] = args;
10744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetArchName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10747 }
10748 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 result = ((wxPlatformInfo const *)arg1)->GetArchName();
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 {
10756#if wxUSE_UNICODE
10757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10758#else
10759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10760#endif
10761 }
10762 return resultobj;
10763fail:
10764 return NULL;
10765}
10766
10767
10768SWIGINTERN PyObject *_wrap_PlatformInformation_GetEndiannessName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10769 PyObject *resultobj = 0;
10770 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10771 wxString result;
10772 void *argp1 = 0 ;
10773 int res1 = 0 ;
10774 PyObject *swig_obj[1] ;
10775
10776 if (!args) SWIG_fail;
10777 swig_obj[0] = args;
10778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10779 if (!SWIG_IsOK(res1)) {
10780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_GetEndiannessName" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
10781 }
10782 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10783 {
10784 PyThreadState* __tstate = wxPyBeginAllowThreads();
10785 result = ((wxPlatformInfo const *)arg1)->GetEndiannessName();
10786 wxPyEndAllowThreads(__tstate);
10787 if (PyErr_Occurred()) SWIG_fail;
10788 }
10789 {
10790#if wxUSE_UNICODE
10791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10792#else
10793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10794#endif
10795 }
10796 return resultobj;
10797fail:
10798 return NULL;
10799}
10800
10801
10802SWIGINTERN PyObject *_wrap_PlatformInformation_SetOSVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10803 PyObject *resultobj = 0;
10804 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10805 int arg2 ;
10806 int arg3 ;
10807 void *argp1 = 0 ;
10808 int res1 = 0 ;
10809 int val2 ;
10810 int ecode2 = 0 ;
10811 int val3 ;
10812 int ecode3 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 PyObject * obj2 = 0 ;
10816 char * kwnames[] = {
10817 (char *) "self",(char *) "major",(char *) "minor", NULL
10818 };
10819
10820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_SetOSVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10824 }
10825 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10826 ecode2 = SWIG_AsVal_int(obj1, &val2);
10827 if (!SWIG_IsOK(ecode2)) {
10828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "2"" of type '" "int""'");
10829 }
10830 arg2 = static_cast< int >(val2);
10831 ecode3 = SWIG_AsVal_int(obj2, &val3);
10832 if (!SWIG_IsOK(ecode3)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_SetOSVersion" "', expected argument " "3"" of type '" "int""'");
10834 }
10835 arg3 = static_cast< int >(val3);
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->SetOSVersion(arg2,arg3);
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 resultobj = SWIG_Py_Void();
10843 return resultobj;
10844fail:
10845 return NULL;
10846}
10847
10848
10849SWIGINTERN PyObject *_wrap_PlatformInformation_SetToolkitVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj = 0;
10851 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10852 int arg2 ;
10853 int arg3 ;
10854 void *argp1 = 0 ;
10855 int res1 = 0 ;
10856 int val2 ;
10857 int ecode2 = 0 ;
10858 int val3 ;
10859 int ecode3 = 0 ;
10860 PyObject * obj0 = 0 ;
10861 PyObject * obj1 = 0 ;
10862 PyObject * obj2 = 0 ;
10863 char * kwnames[] = {
10864 (char *) "self",(char *) "major",(char *) "minor", NULL
10865 };
10866
10867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PlatformInformation_SetToolkitVersion",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10869 if (!SWIG_IsOK(res1)) {
10870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10871 }
10872 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10873 ecode2 = SWIG_AsVal_int(obj1, &val2);
10874 if (!SWIG_IsOK(ecode2)) {
10875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "2"" of type '" "int""'");
10876 }
10877 arg2 = static_cast< int >(val2);
10878 ecode3 = SWIG_AsVal_int(obj2, &val3);
10879 if (!SWIG_IsOK(ecode3)) {
10880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PlatformInformation_SetToolkitVersion" "', expected argument " "3"" of type '" "int""'");
10881 }
10882 arg3 = static_cast< int >(val3);
10883 {
10884 PyThreadState* __tstate = wxPyBeginAllowThreads();
10885 (arg1)->SetToolkitVersion(arg2,arg3);
10886 wxPyEndAllowThreads(__tstate);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 }
10889 resultobj = SWIG_Py_Void();
10890 return resultobj;
10891fail:
10892 return NULL;
10893}
10894
10895
10896SWIGINTERN PyObject *_wrap_PlatformInformation_SetOperatingSystemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10897 PyObject *resultobj = 0;
10898 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10899 wxOperatingSystemId arg2 ;
10900 void *argp1 = 0 ;
10901 int res1 = 0 ;
10902 int val2 ;
10903 int ecode2 = 0 ;
10904 PyObject * obj0 = 0 ;
10905 PyObject * obj1 = 0 ;
10906 char * kwnames[] = {
10907 (char *) "self",(char *) "n", NULL
10908 };
10909
10910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetOperatingSystemId",kwnames,&obj0,&obj1)) SWIG_fail;
10911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10912 if (!SWIG_IsOK(res1)) {
10913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetOperatingSystemId" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10914 }
10915 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10916 ecode2 = SWIG_AsVal_int(obj1, &val2);
10917 if (!SWIG_IsOK(ecode2)) {
10918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetOperatingSystemId" "', expected argument " "2"" of type '" "wxOperatingSystemId""'");
10919 }
10920 arg2 = static_cast< wxOperatingSystemId >(val2);
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 (arg1)->SetOperatingSystemId(arg2);
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 resultobj = SWIG_Py_Void();
10928 return resultobj;
10929fail:
10930 return NULL;
10931}
10932
10933
10934SWIGINTERN PyObject *_wrap_PlatformInformation_SetPortId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj = 0;
10936 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10937 wxPortId arg2 ;
10938 void *argp1 = 0 ;
10939 int res1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 char * kwnames[] = {
10945 (char *) "self",(char *) "n", NULL
10946 };
10947
10948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetPortId",kwnames,&obj0,&obj1)) SWIG_fail;
10949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetPortId" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10952 }
10953 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10954 ecode2 = SWIG_AsVal_int(obj1, &val2);
10955 if (!SWIG_IsOK(ecode2)) {
10956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetPortId" "', expected argument " "2"" of type '" "wxPortId""'");
10957 }
10958 arg2 = static_cast< wxPortId >(val2);
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->SetPortId(arg2);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 resultobj = SWIG_Py_Void();
10966 return resultobj;
10967fail:
10968 return NULL;
10969}
10970
10971
10972SWIGINTERN PyObject *_wrap_PlatformInformation_SetArchitecture(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj = 0;
10974 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
10975 wxArchitecture arg2 ;
10976 void *argp1 = 0 ;
10977 int res1 = 0 ;
10978 int val2 ;
10979 int ecode2 = 0 ;
10980 PyObject * obj0 = 0 ;
10981 PyObject * obj1 = 0 ;
10982 char * kwnames[] = {
10983 (char *) "self",(char *) "n", NULL
10984 };
10985
10986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetArchitecture",kwnames,&obj0,&obj1)) SWIG_fail;
10987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
10988 if (!SWIG_IsOK(res1)) {
10989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetArchitecture" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
10990 }
10991 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
10992 ecode2 = SWIG_AsVal_int(obj1, &val2);
10993 if (!SWIG_IsOK(ecode2)) {
10994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetArchitecture" "', expected argument " "2"" of type '" "wxArchitecture""'");
10995 }
10996 arg2 = static_cast< wxArchitecture >(val2);
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 (arg1)->SetArchitecture(arg2);
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_Py_Void();
11004 return resultobj;
11005fail:
11006 return NULL;
11007}
11008
11009
11010SWIGINTERN PyObject *_wrap_PlatformInformation_SetEndianness(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj = 0;
11012 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
11013 wxEndianness arg2 ;
11014 void *argp1 = 0 ;
11015 int res1 = 0 ;
11016 int val2 ;
11017 int ecode2 = 0 ;
11018 PyObject * obj0 = 0 ;
11019 PyObject * obj1 = 0 ;
11020 char * kwnames[] = {
11021 (char *) "self",(char *) "n", NULL
11022 };
11023
11024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PlatformInformation_SetEndianness",kwnames,&obj0,&obj1)) SWIG_fail;
11025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_SetEndianness" "', expected argument " "1"" of type '" "wxPlatformInfo *""'");
11028 }
11029 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
11030 ecode2 = SWIG_AsVal_int(obj1, &val2);
11031 if (!SWIG_IsOK(ecode2)) {
11032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PlatformInformation_SetEndianness" "', expected argument " "2"" of type '" "wxEndianness""'");
11033 }
11034 arg2 = static_cast< wxEndianness >(val2);
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->SetEndianness(arg2);
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 }
11041 resultobj = SWIG_Py_Void();
11042 return resultobj;
11043fail:
11044 return NULL;
11045}
11046
11047
11048SWIGINTERN PyObject *_wrap_PlatformInformation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11049 PyObject *resultobj = 0;
11050 wxPlatformInfo *arg1 = (wxPlatformInfo *) 0 ;
11051 bool result;
11052 void *argp1 = 0 ;
11053 int res1 = 0 ;
11054 PyObject *swig_obj[1] ;
11055
11056 if (!args) SWIG_fail;
11057 swig_obj[0] = args;
11058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPlatformInfo, 0 | 0 );
11059 if (!SWIG_IsOK(res1)) {
11060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlatformInformation_IsOk" "', expected argument " "1"" of type '" "wxPlatformInfo const *""'");
11061 }
11062 arg1 = reinterpret_cast< wxPlatformInfo * >(argp1);
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 result = (bool)((wxPlatformInfo const *)arg1)->IsOk();
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 {
11070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11071 }
11072 return resultobj;
11073fail:
11074 return NULL;
11075}
11076
11077
11078SWIGINTERN PyObject *PlatformInformation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11079 PyObject *obj;
11080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11081 SWIG_TypeNewClientData(SWIGTYPE_p_wxPlatformInfo, SWIG_NewClientData(obj));
11082 return SWIG_Py_Void();
11083}
11084
11085SWIGINTERN PyObject *PlatformInformation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11086 return SWIG_Python_InitShadowInstance(args);
11087}
11088
554f62e9
RD
11089SWIGINTERN PyObject *_wrap_DrawWindowOnDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11090 PyObject *resultobj = 0;
11091 wxWindow *arg1 = (wxWindow *) 0 ;
11092 wxDC *arg2 = 0 ;
11093 bool result;
11094 void *argp1 = 0 ;
11095 int res1 = 0 ;
11096 void *argp2 = 0 ;
11097 int res2 = 0 ;
11098 PyObject * obj0 = 0 ;
11099 PyObject * obj1 = 0 ;
11100 char * kwnames[] = {
11101 (char *) "window",(char *) "dc", NULL
11102 };
11103
11104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DrawWindowOnDC",kwnames,&obj0,&obj1)) SWIG_fail;
11105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11106 if (!SWIG_IsOK(res1)) {
11107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DrawWindowOnDC" "', expected argument " "1"" of type '" "wxWindow *""'");
11108 }
11109 arg1 = reinterpret_cast< wxWindow * >(argp1);
11110 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 | 0);
11111 if (!SWIG_IsOK(res2)) {
11112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DrawWindowOnDC" "', expected argument " "2"" of type '" "wxDC const &""'");
11113 }
11114 if (!argp2) {
11115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DrawWindowOnDC" "', expected argument " "2"" of type '" "wxDC const &""'");
11116 }
11117 arg2 = reinterpret_cast< wxDC * >(argp2);
11118 {
11119 PyThreadState* __tstate = wxPyBeginAllowThreads();
11120 result = (bool)wxDrawWindowOnDC(arg1,(wxDC const &)*arg2);
11121 wxPyEndAllowThreads(__tstate);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 }
11124 {
11125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11126 }
11127 return resultobj;
11128fail:
11129 return NULL;
d55e5bfc
RD
11130}
11131
11132
554f62e9
RD
11133SWIGINTERN PyObject *_wrap_delete_TipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11134 PyObject *resultobj = 0;
11135 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11136 void *argp1 = 0 ;
11137 int res1 = 0 ;
11138 PyObject *swig_obj[1] ;
11139
11140 if (!args) SWIG_fail;
11141 swig_obj[0] = args;
11142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, SWIG_POINTER_DISOWN | 0 );
11143 if (!SWIG_IsOK(res1)) {
11144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TipProvider" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11145 }
11146 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 delete arg1;
d55e5bfc 11150
554f62e9
RD
11151 wxPyEndAllowThreads(__tstate);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 resultobj = SWIG_Py_Void();
11155 return resultobj;
11156fail:
11157 return NULL;
d55e5bfc
RD
11158}
11159
11160
554f62e9
RD
11161SWIGINTERN PyObject *_wrap_TipProvider_GetTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11162 PyObject *resultobj = 0;
11163 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11164 wxString result;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 PyObject *swig_obj[1] ;
11168
11169 if (!args) SWIG_fail;
11170 swig_obj[0] = args;
11171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11172 if (!SWIG_IsOK(res1)) {
11173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_GetTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11174 }
11175 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 result = (arg1)->GetTip();
11179 wxPyEndAllowThreads(__tstate);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 {
11183#if wxUSE_UNICODE
11184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11185#else
11186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11187#endif
11188 }
11189 return resultobj;
11190fail:
11191 return NULL;
d55e5bfc
RD
11192}
11193
11194
554f62e9
RD
11195SWIGINTERN PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11196 PyObject *resultobj = 0;
11197 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11198 size_t result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 PyObject *swig_obj[1] ;
11202
11203 if (!args) SWIG_fail;
11204 swig_obj[0] = args;
11205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11206 if (!SWIG_IsOK(res1)) {
11207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_GetCurrentTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11208 }
11209 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11210 {
11211 PyThreadState* __tstate = wxPyBeginAllowThreads();
11212 result = (size_t)(arg1)->GetCurrentTip();
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11217 return resultobj;
11218fail:
11219 return NULL;
11220}
11221
11222
11223SWIGINTERN PyObject *_wrap_TipProvider_PreprocessTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11224 PyObject *resultobj = 0;
11225 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
11226 wxString *arg2 = 0 ;
11227 wxString result;
11228 void *argp1 = 0 ;
11229 int res1 = 0 ;
11230 bool temp2 = false ;
11231 PyObject * obj0 = 0 ;
11232 PyObject * obj1 = 0 ;
11233 char * kwnames[] = {
11234 (char *) "self",(char *) "tip", NULL
11235 };
11236
11237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) SWIG_fail;
11238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11239 if (!SWIG_IsOK(res1)) {
11240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipProvider_PreprocessTip" "', expected argument " "1"" of type '" "wxTipProvider *""'");
11241 }
11242 arg1 = reinterpret_cast< wxTipProvider * >(argp1);
11243 {
11244 arg2 = wxString_in_helper(obj1);
11245 if (arg2 == NULL) SWIG_fail;
11246 temp2 = true;
11247 }
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = (arg1)->PreprocessTip((wxString const &)*arg2);
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 {
11255#if wxUSE_UNICODE
11256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11257#else
11258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11259#endif
11260 }
11261 {
11262 if (temp2)
11263 delete arg2;
11264 }
11265 return resultobj;
11266fail:
11267 {
11268 if (temp2)
11269 delete arg2;
11270 }
11271 return NULL;
d55e5bfc
RD
11272}
11273
11274
554f62e9
RD
11275SWIGINTERN PyObject *TipProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11276 PyObject *obj;
11277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11278 SWIG_TypeNewClientData(SWIGTYPE_p_wxTipProvider, SWIG_NewClientData(obj));
11279 return SWIG_Py_Void();
d55e5bfc
RD
11280}
11281
554f62e9
RD
11282SWIGINTERN PyObject *_wrap_new_PyTipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj = 0;
11284 size_t arg1 ;
11285 wxPyTipProvider *result = 0 ;
11286 size_t val1 ;
11287 int ecode1 = 0 ;
11288 PyObject * obj0 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "currentTip", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) SWIG_fail;
11294 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11295 if (!SWIG_IsOK(ecode1)) {
11296 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyTipProvider" "', expected argument " "1"" of type '" "size_t""'");
11297 }
11298 arg1 = static_cast< size_t >(val1);
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
11302 wxPyEndAllowThreads(__tstate);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTipProvider, SWIG_POINTER_NEW | 0 );
11306 return resultobj;
11307fail:
11308 return NULL;
11309}
11310
11311
11312SWIGINTERN PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj = 0;
11314 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
11315 PyObject *arg2 = (PyObject *) 0 ;
11316 PyObject *arg3 = (PyObject *) 0 ;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 PyObject * obj0 = 0 ;
11320 PyObject * obj1 = 0 ;
11321 PyObject * obj2 = 0 ;
11322 char * kwnames[] = {
11323 (char *) "self",(char *) "self",(char *) "_class", NULL
11324 };
11325
11326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTipProvider, 0 | 0 );
11328 if (!SWIG_IsOK(res1)) {
11329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyTipProvider__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTipProvider *""'");
11330 }
11331 arg1 = reinterpret_cast< wxPyTipProvider * >(argp1);
11332 arg2 = obj1;
11333 arg3 = obj2;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->_setCallbackInfo(arg2,arg3);
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 resultobj = SWIG_Py_Void();
11341 return resultobj;
11342fail:
11343 return NULL;
11344}
11345
11346
11347SWIGINTERN PyObject *PyTipProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11348 PyObject *obj;
11349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11350 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTipProvider, SWIG_NewClientData(obj));
11351 return SWIG_Py_Void();
11352}
11353
11354SWIGINTERN PyObject *PyTipProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11355 return SWIG_Python_InitShadowInstance(args);
11356}
11357
11358SWIGINTERN PyObject *_wrap_ShowTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11359 PyObject *resultobj = 0;
11360 wxWindow *arg1 = (wxWindow *) 0 ;
11361 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
11362 bool arg3 = (bool) true ;
11363 bool result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 void *argp2 = 0 ;
11367 int res2 = 0 ;
11368 bool val3 ;
11369 int ecode3 = 0 ;
11370 PyObject * obj0 = 0 ;
11371 PyObject * obj1 = 0 ;
11372 PyObject * obj2 = 0 ;
11373 char * kwnames[] = {
11374 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
11375 };
11376
11377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11379 if (!SWIG_IsOK(res1)) {
11380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowTip" "', expected argument " "1"" of type '" "wxWindow *""'");
11381 }
11382 arg1 = reinterpret_cast< wxWindow * >(argp1);
11383 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTipProvider, 0 | 0 );
11384 if (!SWIG_IsOK(res2)) {
11385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShowTip" "', expected argument " "2"" of type '" "wxTipProvider *""'");
11386 }
11387 arg2 = reinterpret_cast< wxTipProvider * >(argp2);
11388 if (obj2) {
11389 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11390 if (!SWIG_IsOK(ecode3)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ShowTip" "', expected argument " "3"" of type '" "bool""'");
11392 }
11393 arg3 = static_cast< bool >(val3);
11394 }
11395 {
11396 if (!wxPyCheckForApp()) SWIG_fail;
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (bool)wxShowTip(arg1,arg2,arg3);
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 {
11403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11404 }
11405 return resultobj;
11406fail:
11407 return NULL;
11408}
11409
11410
11411SWIGINTERN PyObject *_wrap_CreateFileTipProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11412 PyObject *resultobj = 0;
11413 wxString *arg1 = 0 ;
11414 size_t arg2 ;
11415 wxTipProvider *result = 0 ;
11416 bool temp1 = false ;
11417 size_t val2 ;
11418 int ecode2 = 0 ;
11419 PyObject * obj0 = 0 ;
11420 PyObject * obj1 = 0 ;
11421 char * kwnames[] = {
11422 (char *) "filename",(char *) "currentTip", NULL
11423 };
11424
11425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) SWIG_fail;
11426 {
11427 arg1 = wxString_in_helper(obj0);
11428 if (arg1 == NULL) SWIG_fail;
11429 temp1 = true;
11430 }
11431 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
11432 if (!SWIG_IsOK(ecode2)) {
11433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreateFileTipProvider" "', expected argument " "2"" of type '" "size_t""'");
11434 }
11435 arg2 = static_cast< size_t >(val2);
11436 {
11437 if (!wxPyCheckForApp()) SWIG_fail;
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipProvider, SWIG_POINTER_OWN | 0 );
11444 {
11445 if (temp1)
11446 delete arg1;
11447 }
11448 return resultobj;
11449fail:
11450 {
11451 if (temp1)
11452 delete arg1;
11453 }
11454 return NULL;
11455}
11456
11457
11458SWIGINTERN PyObject *_wrap_new_Timer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11459 PyObject *resultobj = 0;
11460 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
11461 int arg2 = (int) wxID_ANY ;
11462 wxPyTimer *result = 0 ;
11463 void *argp1 = 0 ;
11464 int res1 = 0 ;
11465 int val2 ;
11466 int ecode2 = 0 ;
11467 PyObject * obj0 = 0 ;
11468 PyObject * obj1 = 0 ;
11469 char * kwnames[] = {
11470 (char *) "owner",(char *) "id", NULL
11471 };
11472
11473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) SWIG_fail;
11474 if (obj0) {
11475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Timer" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
d55e5bfc 11478 }
554f62e9
RD
11479 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
11480 }
11481 if (obj1) {
11482 ecode2 = SWIG_AsVal_int(obj1, &val2);
11483 if (!SWIG_IsOK(ecode2)) {
11484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Timer" "', expected argument " "2"" of type '" "int""'");
11485 }
11486 arg2 = static_cast< int >(val2);
11487 }
11488 {
11489 if (!wxPyCheckForApp()) SWIG_fail;
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTimer, SWIG_POINTER_NEW | 0 );
11496 return resultobj;
11497fail:
11498 return NULL;
d55e5bfc
RD
11499}
11500
11501
554f62e9
RD
11502SWIGINTERN PyObject *_wrap_delete_Timer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11503 PyObject *resultobj = 0;
11504 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, SWIG_POINTER_DISOWN | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Timer" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11514 }
11515 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 delete arg1;
d55e5bfc 11519
554f62e9
RD
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_Py_Void();
11524 return resultobj;
11525fail:
11526 return NULL;
11527}
11528
11529
11530SWIGINTERN PyObject *_wrap_Timer__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj = 0;
11532 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11533 PyObject *arg2 = (PyObject *) 0 ;
11534 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 11535 int arg4 = (int) 0 ;
554f62e9
RD
11536 void *argp1 = 0 ;
11537 int res1 = 0 ;
11538 int val4 ;
11539 int ecode4 = 0 ;
11540 PyObject * obj0 = 0 ;
11541 PyObject * obj1 = 0 ;
11542 PyObject * obj2 = 0 ;
11543 PyObject * obj3 = 0 ;
11544 char * kwnames[] = {
11545 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
11546 };
11547
11548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11550 if (!SWIG_IsOK(res1)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11552 }
11553 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11554 arg2 = obj1;
11555 arg3 = obj2;
11556 if (obj3) {
11557 ecode4 = SWIG_AsVal_int(obj3, &val4);
11558 if (!SWIG_IsOK(ecode4)) {
11559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Timer__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
11560 }
11561 arg4 = static_cast< int >(val4);
11562 }
11563 {
11564 PyThreadState* __tstate = wxPyBeginAllowThreads();
11565 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
11566 wxPyEndAllowThreads(__tstate);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 resultobj = SWIG_Py_Void();
11570 return resultobj;
11571fail:
11572 return NULL;
11573}
11574
11575
11576SWIGINTERN PyObject *_wrap_Timer_SetOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj = 0;
11578 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11579 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11580 int arg3 = (int) wxID_ANY ;
11581 void *argp1 = 0 ;
11582 int res1 = 0 ;
11583 void *argp2 = 0 ;
11584 int res2 = 0 ;
11585 int val3 ;
11586 int ecode3 = 0 ;
11587 PyObject * obj0 = 0 ;
11588 PyObject * obj1 = 0 ;
11589 PyObject * obj2 = 0 ;
11590 char * kwnames[] = {
11591 (char *) "self",(char *) "owner",(char *) "id", NULL
11592 };
11593
11594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11596 if (!SWIG_IsOK(res1)) {
11597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_SetOwner" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11598 }
11599 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
11601 if (!SWIG_IsOK(res2)) {
11602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Timer_SetOwner" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
11603 }
11604 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
11605 if (obj2) {
11606 ecode3 = SWIG_AsVal_int(obj2, &val3);
11607 if (!SWIG_IsOK(ecode3)) {
11608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Timer_SetOwner" "', expected argument " "3"" of type '" "int""'");
11609 }
11610 arg3 = static_cast< int >(val3);
11611 }
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
11614 (arg1)->SetOwner(arg2,arg3);
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 resultobj = SWIG_Py_Void();
11619 return resultobj;
11620fail:
11621 return NULL;
d55e5bfc
RD
11622}
11623
11624
554f62e9
RD
11625SWIGINTERN PyObject *_wrap_Timer_GetOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11626 PyObject *resultobj = 0;
11627 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11628 wxEvtHandler *result = 0 ;
11629 void *argp1 = 0 ;
11630 int res1 = 0 ;
11631 PyObject *swig_obj[1] ;
11632
11633 if (!args) SWIG_fail;
11634 swig_obj[0] = args;
11635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11636 if (!SWIG_IsOK(res1)) {
11637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetOwner" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11638 }
11639 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (wxEvtHandler *)(arg1)->GetOwner();
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 {
11647 resultobj = wxPyMake_wxObject(result, 0);
11648 }
11649 return resultobj;
11650fail:
11651 return NULL;
11652}
11653
11654
11655SWIGINTERN PyObject *_wrap_Timer_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj = 0;
11657 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11658 int arg2 = (int) -1 ;
11659 bool arg3 = (bool) false ;
11660 bool result;
11661 void *argp1 = 0 ;
11662 int res1 = 0 ;
11663 int val2 ;
11664 int ecode2 = 0 ;
11665 bool val3 ;
11666 int ecode3 = 0 ;
11667 PyObject * obj0 = 0 ;
11668 PyObject * obj1 = 0 ;
11669 PyObject * obj2 = 0 ;
11670 char * kwnames[] = {
11671 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
11672 };
11673
11674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11676 if (!SWIG_IsOK(res1)) {
11677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Start" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11678 }
11679 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11680 if (obj1) {
11681 ecode2 = SWIG_AsVal_int(obj1, &val2);
11682 if (!SWIG_IsOK(ecode2)) {
11683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Timer_Start" "', expected argument " "2"" of type '" "int""'");
11684 }
11685 arg2 = static_cast< int >(val2);
11686 }
11687 if (obj2) {
11688 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11689 if (!SWIG_IsOK(ecode3)) {
11690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Timer_Start" "', expected argument " "3"" of type '" "bool""'");
11691 }
11692 arg3 = static_cast< bool >(val3);
11693 }
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = (bool)(arg1)->Start(arg2,arg3);
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 {
11701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11702 }
11703 return resultobj;
11704fail:
11705 return NULL;
d55e5bfc
RD
11706}
11707
11708
554f62e9
RD
11709SWIGINTERN PyObject *_wrap_Timer_Stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11710 PyObject *resultobj = 0;
11711 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11712 void *argp1 = 0 ;
11713 int res1 = 0 ;
11714 PyObject *swig_obj[1] ;
11715
11716 if (!args) SWIG_fail;
11717 swig_obj[0] = args;
11718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11719 if (!SWIG_IsOK(res1)) {
11720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Stop" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11721 }
11722 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 (arg1)->Stop();
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 resultobj = SWIG_Py_Void();
11730 return resultobj;
11731fail:
11732 return NULL;
d55e5bfc
RD
11733}
11734
11735
554f62e9
RD
11736SWIGINTERN PyObject *_wrap_Timer_Notify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11737 PyObject *resultobj = 0;
11738 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11739 void *argp1 = 0 ;
11740 int res1 = 0 ;
11741 PyObject *swig_obj[1] ;
11742
11743 if (!args) SWIG_fail;
11744 swig_obj[0] = args;
11745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_Notify" "', expected argument " "1"" of type '" "wxPyTimer *""'");
11748 }
11749 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 (arg1)->Notify();
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_Py_Void();
11757 return resultobj;
11758fail:
11759 return NULL;
d55e5bfc
RD
11760}
11761
11762
554f62e9
RD
11763SWIGINTERN PyObject *_wrap_Timer_IsRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11766 bool result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_IsRunning" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11776 }
11777 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 {
11785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11786 }
11787 return resultobj;
11788fail:
11789 return NULL;
d55e5bfc
RD
11790}
11791
11792
554f62e9
RD
11793SWIGINTERN PyObject *_wrap_Timer_GetInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11794 PyObject *resultobj = 0;
11795 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11796 int result;
11797 void *argp1 = 0 ;
11798 int res1 = 0 ;
11799 PyObject *swig_obj[1] ;
11800
11801 if (!args) SWIG_fail;
11802 swig_obj[0] = args;
11803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11804 if (!SWIG_IsOK(res1)) {
11805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetInterval" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11806 }
11807 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (int)((wxPyTimer const *)arg1)->GetInterval();
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 resultobj = SWIG_From_int(static_cast< int >(result));
11815 return resultobj;
11816fail:
11817 return NULL;
d55e5bfc
RD
11818}
11819
11820
554f62e9
RD
11821SWIGINTERN PyObject *_wrap_Timer_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11822 PyObject *resultobj = 0;
11823 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11824 int result;
11825 void *argp1 = 0 ;
11826 int res1 = 0 ;
11827 PyObject *swig_obj[1] ;
11828
11829 if (!args) SWIG_fail;
11830 swig_obj[0] = args;
11831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11832 if (!SWIG_IsOK(res1)) {
11833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_GetId" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11834 }
11835 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11836 {
11837 PyThreadState* __tstate = wxPyBeginAllowThreads();
11838 result = (int)((wxPyTimer const *)arg1)->GetId();
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 resultobj = SWIG_From_int(static_cast< int >(result));
11843 return resultobj;
11844fail:
11845 return NULL;
d55e5bfc
RD
11846}
11847
11848
554f62e9
RD
11849SWIGINTERN PyObject *_wrap_Timer_IsOneShot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11850 PyObject *resultobj = 0;
11851 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
11852 bool result;
11853 void *argp1 = 0 ;
11854 int res1 = 0 ;
11855 PyObject *swig_obj[1] ;
11856
11857 if (!args) SWIG_fail;
11858 swig_obj[0] = args;
11859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTimer, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Timer_IsOneShot" "', expected argument " "1"" of type '" "wxPyTimer const *""'");
11862 }
11863 arg1 = reinterpret_cast< wxPyTimer * >(argp1);
11864 {
11865 PyThreadState* __tstate = wxPyBeginAllowThreads();
11866 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 {
11871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11872 }
11873 return resultobj;
11874fail:
11875 return NULL;
d55e5bfc
RD
11876}
11877
11878
554f62e9
RD
11879SWIGINTERN PyObject *Timer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11880 PyObject *obj;
11881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11882 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTimer, SWIG_NewClientData(obj));
11883 return SWIG_Py_Void();
d55e5bfc
RD
11884}
11885
554f62e9
RD
11886SWIGINTERN PyObject *Timer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11887 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
11888}
11889
554f62e9
RD
11890SWIGINTERN PyObject *_wrap_new_TimerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj = 0;
11892 int arg1 = (int) 0 ;
11893 int arg2 = (int) 0 ;
11894 wxTimerEvent *result = 0 ;
11895 int val1 ;
11896 int ecode1 = 0 ;
11897 int val2 ;
11898 int ecode2 = 0 ;
11899 PyObject * obj0 = 0 ;
11900 PyObject * obj1 = 0 ;
11901 char * kwnames[] = {
11902 (char *) "timerid",(char *) "interval", NULL
11903 };
11904
11905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11906 if (obj0) {
11907 ecode1 = SWIG_AsVal_int(obj0, &val1);
11908 if (!SWIG_IsOK(ecode1)) {
11909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimerEvent" "', expected argument " "1"" of type '" "int""'");
11910 }
11911 arg1 = static_cast< int >(val1);
11912 }
11913 if (obj1) {
11914 ecode2 = SWIG_AsVal_int(obj1, &val2);
11915 if (!SWIG_IsOK(ecode2)) {
11916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimerEvent" "', expected argument " "2"" of type '" "int""'");
11917 }
11918 arg2 = static_cast< int >(val2);
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerEvent, SWIG_POINTER_NEW | 0 );
11927 return resultobj;
11928fail:
11929 return NULL;
d55e5bfc
RD
11930}
11931
11932
554f62e9
RD
11933SWIGINTERN PyObject *_wrap_TimerEvent_GetInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11934 PyObject *resultobj = 0;
11935 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
11936 int result;
11937 void *argp1 = 0 ;
11938 int res1 = 0 ;
11939 PyObject *swig_obj[1] ;
11940
11941 if (!args) SWIG_fail;
11942 swig_obj[0] = args;
11943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimerEvent, 0 | 0 );
11944 if (!SWIG_IsOK(res1)) {
11945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimerEvent_GetInterval" "', expected argument " "1"" of type '" "wxTimerEvent const *""'");
11946 }
11947 arg1 = reinterpret_cast< wxTimerEvent * >(argp1);
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 resultobj = SWIG_From_int(static_cast< int >(result));
11955 return resultobj;
11956fail:
11957 return NULL;
d55e5bfc
RD
11958}
11959
11960
554f62e9
RD
11961SWIGINTERN PyObject *TimerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *obj;
11963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11964 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimerEvent, SWIG_NewClientData(obj));
11965 return SWIG_Py_Void();
d55e5bfc
RD
11966}
11967
554f62e9
RD
11968SWIGINTERN PyObject *TimerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11969 return SWIG_Python_InitShadowInstance(args);
11970}
d55e5bfc 11971
554f62e9
RD
11972SWIGINTERN PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
11973 PyObject *resultobj = 0;
11974 wxTimer *arg1 = 0 ;
11975 wxTimerRunner *result = 0 ;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978
11979 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
11980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxTimer, 0 );
11981 if (!SWIG_IsOK(res1)) {
11982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
11983 }
11984 if (!argp1) {
11985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
11986 }
11987 arg1 = reinterpret_cast< wxTimer * >(argp1);
11988 {
11989 if (!wxPyCheckForApp()) SWIG_fail;
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_NEW | 0 );
11996 return resultobj;
11997fail:
11998 return NULL;
11999}
12000
12001
12002SWIGINTERN PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
12003 PyObject *resultobj = 0;
12004 wxTimer *arg1 = 0 ;
12005 int arg2 ;
12006 bool arg3 = (bool) false ;
12007 wxTimerRunner *result = 0 ;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 int val2 ;
12011 int ecode2 = 0 ;
12012 bool val3 ;
12013 int ecode3 = 0 ;
12014
12015 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
12016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxTimer, 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
12019 }
12020 if (!argp1) {
12021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimerRunner" "', expected argument " "1"" of type '" "wxTimer &""'");
12022 }
12023 arg1 = reinterpret_cast< wxTimer * >(argp1);
12024 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12025 if (!SWIG_IsOK(ecode2)) {
12026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimerRunner" "', expected argument " "2"" of type '" "int""'");
12027 }
12028 arg2 = static_cast< int >(val2);
12029 if (swig_obj[2]) {
12030 ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
12031 if (!SWIG_IsOK(ecode3)) {
12032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TimerRunner" "', expected argument " "3"" of type '" "bool""'");
12033 }
12034 arg3 = static_cast< bool >(val3);
12035 }
12036 {
12037 if (!wxPyCheckForApp()) SWIG_fail;
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
12039 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_NEW | 0 );
12044 return resultobj;
12045fail:
12046 return NULL;
d55e5bfc
RD
12047}
12048
12049
554f62e9
RD
12050SWIGINTERN PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
12051 int argc;
12052 PyObject *argv[4];
12053
12054 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TimerRunner",0,3,argv))) SWIG_fail;
12055 --argc;
12056 if (argc == 1) {
12057 return _wrap_new_TimerRunner__SWIG_0(self, argc, argv);
12058 }
12059 if ((argc >= 2) && (argc <= 3)) {
12060 return _wrap_new_TimerRunner__SWIG_1(self, argc, argv);
12061 }
12062
12063fail:
12064 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TimerRunner'");
12065 return NULL;
68350608
RD
12066}
12067
12068
554f62e9
RD
12069SWIGINTERN PyObject *_wrap_delete_TimerRunner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12070 PyObject *resultobj = 0;
12071 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
12072 void *argp1 = 0 ;
12073 int res1 = 0 ;
12074 PyObject *swig_obj[1] ;
12075
12076 if (!args) SWIG_fail;
12077 swig_obj[0] = args;
12078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimerRunner, SWIG_POINTER_DISOWN | 0 );
12079 if (!SWIG_IsOK(res1)) {
12080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimerRunner" "', expected argument " "1"" of type '" "wxTimerRunner *""'");
12081 }
12082 arg1 = reinterpret_cast< wxTimerRunner * >(argp1);
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 delete arg1;
12086
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 resultobj = SWIG_Py_Void();
12091 return resultobj;
12092fail:
12093 return NULL;
12094}
12095
12096
12097SWIGINTERN PyObject *_wrap_TimerRunner_Start(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12098 PyObject *resultobj = 0;
12099 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
12100 int arg2 ;
12101 bool arg3 = (bool) false ;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 int val2 ;
12105 int ecode2 = 0 ;
12106 bool val3 ;
12107 int ecode3 = 0 ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 PyObject * obj2 = 0 ;
12111 char * kwnames[] = {
12112 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
12113 };
12114
12115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimerRunner, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimerRunner_Start" "', expected argument " "1"" of type '" "wxTimerRunner *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTimerRunner * >(argp1);
12121 ecode2 = SWIG_AsVal_int(obj1, &val2);
12122 if (!SWIG_IsOK(ecode2)) {
12123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimerRunner_Start" "', expected argument " "2"" of type '" "int""'");
12124 }
12125 arg2 = static_cast< int >(val2);
12126 if (obj2) {
12127 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12128 if (!SWIG_IsOK(ecode3)) {
12129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TimerRunner_Start" "', expected argument " "3"" of type '" "bool""'");
12130 }
12131 arg3 = static_cast< bool >(val3);
12132 }
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 (arg1)->Start(arg2,arg3);
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 resultobj = SWIG_Py_Void();
12140 return resultobj;
12141fail:
12142 return NULL;
d55e5bfc
RD
12143}
12144
12145
554f62e9
RD
12146SWIGINTERN PyObject *TimerRunner_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *obj;
12148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12149 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimerRunner, SWIG_NewClientData(obj));
12150 return SWIG_Py_Void();
d55e5bfc
RD
12151}
12152
554f62e9
RD
12153SWIGINTERN PyObject *TimerRunner_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12154 return SWIG_Python_InitShadowInstance(args);
12155}
d55e5bfc 12156
554f62e9
RD
12157SWIGINTERN PyObject *_wrap_new_Log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12158 PyObject *resultobj = 0;
12159 wxLog *result = 0 ;
12160
12161 if (!SWIG_Python_UnpackTuple(args,"new_Log",0,0,0)) SWIG_fail;
12162 {
12163 PyThreadState* __tstate = wxPyBeginAllowThreads();
12164 result = (wxLog *)new wxLog();
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, SWIG_POINTER_NEW | 0 );
12169 return resultobj;
12170fail:
12171 return NULL;
d55e5bfc
RD
12172}
12173
12174
554f62e9
RD
12175SWIGINTERN PyObject *_wrap_delete_Log(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12176 PyObject *resultobj = 0;
12177 wxLog *arg1 = (wxLog *) 0 ;
12178 void *argp1 = 0 ;
12179 int res1 = 0 ;
12180 PyObject *swig_obj[1] ;
12181
12182 if (!args) SWIG_fail;
12183 swig_obj[0] = args;
12184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, SWIG_POINTER_DISOWN | 0 );
12185 if (!SWIG_IsOK(res1)) {
12186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Log" "', expected argument " "1"" of type '" "wxLog *""'");
12187 }
12188 arg1 = reinterpret_cast< wxLog * >(argp1);
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 delete arg1;
d55e5bfc 12192
554f62e9
RD
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 resultobj = SWIG_Py_Void();
12197 return resultobj;
12198fail:
12199 return NULL;
d55e5bfc
RD
12200}
12201
12202
554f62e9
RD
12203SWIGINTERN PyObject *_wrap_Log_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12204 PyObject *resultobj = 0;
12205 bool result;
12206
12207 if (!SWIG_Python_UnpackTuple(args,"Log_IsEnabled",0,0,0)) SWIG_fail;
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (bool)wxLog::IsEnabled();
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 {
12215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12216 }
12217 return resultobj;
12218fail:
12219 return NULL;
d55e5bfc
RD
12220}
12221
12222
554f62e9
RD
12223SWIGINTERN PyObject *_wrap_Log_EnableLogging(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12224 PyObject *resultobj = 0;
12225 bool arg1 = (bool) true ;
12226 bool result;
12227 bool val1 ;
12228 int ecode1 = 0 ;
12229 PyObject * obj0 = 0 ;
12230 char * kwnames[] = {
12231 (char *) "doIt", NULL
12232 };
12233
12234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) SWIG_fail;
12235 if (obj0) {
12236 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12237 if (!SWIG_IsOK(ecode1)) {
12238 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_EnableLogging" "', expected argument " "1"" of type '" "bool""'");
12239 }
12240 arg1 = static_cast< bool >(val1);
12241 }
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 result = (bool)wxLog::EnableLogging(arg1);
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 {
12249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12250 }
12251 return resultobj;
12252fail:
12253 return NULL;
12254}
12255
12256
12257SWIGINTERN PyObject *_wrap_Log_OnLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12258 PyObject *resultobj = 0;
12259 wxLogLevel arg1 ;
12260 wxChar *arg2 = (wxChar *) 0 ;
12261 time_t arg3 ;
12262 unsigned long val1 ;
12263 int ecode1 = 0 ;
12264 void *argp2 = 0 ;
12265 int res2 = 0 ;
12266 unsigned int val3 ;
12267 int ecode3 = 0 ;
12268 PyObject * obj0 = 0 ;
12269 PyObject * obj1 = 0 ;
12270 PyObject * obj2 = 0 ;
12271 char * kwnames[] = {
12272 (char *) "level",(char *) "szString",(char *) "t", NULL
12273 };
12274
12275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12276 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12277 if (!SWIG_IsOK(ecode1)) {
12278 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_OnLog" "', expected argument " "1"" of type '" "wxLogLevel""'");
12279 }
12280 arg1 = static_cast< wxLogLevel >(val1);
12281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
12282 if (!SWIG_IsOK(res2)) {
12283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Log_OnLog" "', expected argument " "2"" of type '" "wxChar const *""'");
12284 }
12285 arg2 = reinterpret_cast< wxChar * >(argp2);
12286 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
12287 if (!SWIG_IsOK(ecode3)) {
12288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Log_OnLog" "', expected argument " "3"" of type '" "time_t""'");
12289 }
12290 arg3 = static_cast< time_t >(val3);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_Py_Void();
12298 return resultobj;
12299fail:
12300 return NULL;
d55e5bfc
RD
12301}
12302
12303
554f62e9
RD
12304SWIGINTERN PyObject *_wrap_Log_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12305 PyObject *resultobj = 0;
12306 wxLog *arg1 = (wxLog *) 0 ;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_Flush" "', expected argument " "1"" of type '" "wxLog *""'");
12316 }
12317 arg1 = reinterpret_cast< wxLog * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 (arg1)->Flush();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_Py_Void();
12325 return resultobj;
12326fail:
12327 return NULL;
d55e5bfc
RD
12328}
12329
12330
554f62e9
RD
12331SWIGINTERN PyObject *_wrap_Log_FlushActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333
12334 if (!SWIG_Python_UnpackTuple(args,"Log_FlushActive",0,0,0)) SWIG_fail;
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 wxLog::FlushActive();
12338 wxPyEndAllowThreads(__tstate);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 resultobj = SWIG_Py_Void();
12342 return resultobj;
12343fail:
12344 return NULL;
d55e5bfc
RD
12345}
12346
12347
554f62e9
RD
12348SWIGINTERN PyObject *_wrap_Log_GetActiveTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12349 PyObject *resultobj = 0;
12350 wxLog *result = 0 ;
12351
12352 if (!SWIG_Python_UnpackTuple(args,"Log_GetActiveTarget",0,0,0)) SWIG_fail;
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = (wxLog *)wxLog::GetActiveTarget();
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
12360 return resultobj;
12361fail:
12362 return NULL;
d55e5bfc
RD
12363}
12364
12365
554f62e9
RD
12366SWIGINTERN PyObject *_wrap_Log_SetActiveTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj = 0;
12368 wxLog *arg1 = (wxLog *) 0 ;
12369 wxLog *result = 0 ;
12370 int res1 = 0 ;
12371 PyObject * obj0 = 0 ;
12372 char * kwnames[] = {
12373 (char *) "pLogger", NULL
12374 };
12375
12376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) SWIG_fail;
12377 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxLog, SWIG_POINTER_DISOWN | 0 );
12378 if (!SWIG_IsOK(res1)) {
12379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_SetActiveTarget" "', expected argument " "1"" of type '" "wxLog *""'");
12380 }
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 result = (wxLog *)wxLog::SetActiveTarget(arg1);
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, SWIG_POINTER_OWN | 0 );
12388 return resultobj;
12389fail:
12390 return NULL;
d55e5bfc
RD
12391}
12392
12393
554f62e9
RD
12394SWIGINTERN PyObject *_wrap_Log_Suspend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12395 PyObject *resultobj = 0;
12396
12397 if (!SWIG_Python_UnpackTuple(args,"Log_Suspend",0,0,0)) SWIG_fail;
12398 {
12399 PyThreadState* __tstate = wxPyBeginAllowThreads();
12400 wxLog::Suspend();
12401 wxPyEndAllowThreads(__tstate);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 resultobj = SWIG_Py_Void();
12405 return resultobj;
12406fail:
12407 return NULL;
d55e5bfc
RD
12408}
12409
12410
554f62e9
RD
12411SWIGINTERN PyObject *_wrap_Log_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12412 PyObject *resultobj = 0;
12413
12414 if (!SWIG_Python_UnpackTuple(args,"Log_Resume",0,0,0)) SWIG_fail;
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 wxLog::Resume();
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 resultobj = SWIG_Py_Void();
12422 return resultobj;
12423fail:
12424 return NULL;
d55e5bfc
RD
12425}
12426
12427
554f62e9
RD
12428SWIGINTERN PyObject *_wrap_Log_SetVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12429 PyObject *resultobj = 0;
12430 bool arg1 = (bool) true ;
12431 bool val1 ;
12432 int ecode1 = 0 ;
12433 PyObject * obj0 = 0 ;
12434 char * kwnames[] = {
12435 (char *) "bVerbose", NULL
12436 };
12437
12438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) SWIG_fail;
12439 if (obj0) {
12440 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12441 if (!SWIG_IsOK(ecode1)) {
12442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetVerbose" "', expected argument " "1"" of type '" "bool""'");
12443 }
12444 arg1 = static_cast< bool >(val1);
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 wxLog::SetVerbose(arg1);
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 resultobj = SWIG_Py_Void();
12453 return resultobj;
12454fail:
12455 return NULL;
1a6bba1e
RD
12456}
12457
12458
554f62e9
RD
12459SWIGINTERN PyObject *_wrap_Log_SetLogLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj = 0;
12461 wxLogLevel arg1 ;
12462 unsigned long val1 ;
12463 int ecode1 = 0 ;
12464 PyObject * obj0 = 0 ;
12465 char * kwnames[] = {
12466 (char *) "logLevel", NULL
12467 };
12468
12469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) SWIG_fail;
12470 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12471 if (!SWIG_IsOK(ecode1)) {
12472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetLogLevel" "', expected argument " "1"" of type '" "wxLogLevel""'");
12473 }
12474 arg1 = static_cast< wxLogLevel >(val1);
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 wxLog::SetLogLevel(arg1);
12478 wxPyEndAllowThreads(__tstate);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 resultobj = SWIG_Py_Void();
12482 return resultobj;
12483fail:
12484 return NULL;
d55e5bfc
RD
12485}
12486
12487
554f62e9
RD
12488SWIGINTERN PyObject *_wrap_Log_DontCreateOnDemand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 PyObject *resultobj = 0;
12490
12491 if (!SWIG_Python_UnpackTuple(args,"Log_DontCreateOnDemand",0,0,0)) SWIG_fail;
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 wxLog::DontCreateOnDemand();
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_Py_Void();
12499 return resultobj;
12500fail:
12501 return NULL;
d55e5bfc
RD
12502}
12503
12504
1eeb270e
RD
12505SWIGINTERN PyObject *_wrap_Log_SetRepetitionCounting(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj = 0;
12507 bool arg1 = (bool) true ;
12508 bool val1 ;
12509 int ecode1 = 0 ;
12510 PyObject * obj0 = 0 ;
12511 char * kwnames[] = {
12512 (char *) "bRepetCounting", NULL
12513 };
12514
12515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetRepetitionCounting",kwnames,&obj0)) SWIG_fail;
12516 if (obj0) {
12517 ecode1 = SWIG_AsVal_bool(obj0, &val1);
12518 if (!SWIG_IsOK(ecode1)) {
12519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetRepetitionCounting" "', expected argument " "1"" of type '" "bool""'");
12520 }
12521 arg1 = static_cast< bool >(val1);
12522 }
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 wxLog::SetRepetitionCounting(arg1);
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 resultobj = SWIG_Py_Void();
12530 return resultobj;
12531fail:
12532 return NULL;
12533}
12534
12535
12536SWIGINTERN PyObject *_wrap_Log_GetRepetitionCounting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12537 PyObject *resultobj = 0;
12538 bool result;
12539
12540 if (!SWIG_Python_UnpackTuple(args,"Log_GetRepetitionCounting",0,0,0)) SWIG_fail;
12541 {
12542 PyThreadState* __tstate = wxPyBeginAllowThreads();
12543 result = (bool)wxLog::GetRepetitionCounting();
12544 wxPyEndAllowThreads(__tstate);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 }
12547 {
12548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12549 }
12550 return resultobj;
12551fail:
12552 return NULL;
12553}
12554
12555
554f62e9
RD
12556SWIGINTERN PyObject *_wrap_Log_SetTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj = 0;
12558 wxTraceMask arg1 ;
12559 unsigned long val1 ;
12560 int ecode1 = 0 ;
12561 PyObject * obj0 = 0 ;
12562 char * kwnames[] = {
12563 (char *) "ulMask", NULL
12564 };
12565
12566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) SWIG_fail;
12567 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
12568 if (!SWIG_IsOK(ecode1)) {
12569 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Log_SetTraceMask" "', expected argument " "1"" of type '" "wxTraceMask""'");
12570 }
12571 arg1 = static_cast< wxTraceMask >(val1);
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 wxLog::SetTraceMask(arg1);
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 resultobj = SWIG_Py_Void();
12579 return resultobj;
12580fail:
12581 return NULL;
b06b3e70
RD
12582}
12583
12584
554f62e9
RD
12585SWIGINTERN PyObject *_wrap_Log_AddTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj = 0;
12587 wxString *arg1 = 0 ;
12588 bool temp1 = false ;
12589 PyObject * obj0 = 0 ;
12590 char * kwnames[] = {
12591 (char *) "str", NULL
12592 };
12593
12594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) SWIG_fail;
12595 {
12596 arg1 = wxString_in_helper(obj0);
12597 if (arg1 == NULL) SWIG_fail;
12598 temp1 = true;
12599 }
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 wxLog::AddTraceMask((wxString const &)*arg1);
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = SWIG_Py_Void();
12607 {
12608 if (temp1)
12609 delete arg1;
12610 }
12611 return resultobj;
12612fail:
12613 {
12614 if (temp1)
12615 delete arg1;
12616 }
12617 return NULL;
d55e5bfc
RD
12618}
12619
12620
554f62e9
RD
12621SWIGINTERN PyObject *_wrap_Log_RemoveTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj = 0;
12623 wxString *arg1 = 0 ;
12624 bool temp1 = false ;
12625 PyObject * obj0 = 0 ;
12626 char * kwnames[] = {
12627 (char *) "str", NULL
12628 };
12629
12630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) SWIG_fail;
12631 {
12632 arg1 = wxString_in_helper(obj0);
12633 if (arg1 == NULL) SWIG_fail;
12634 temp1 = true;
12635 }
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 wxLog::RemoveTraceMask((wxString const &)*arg1);
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = SWIG_Py_Void();
12643 {
12644 if (temp1)
12645 delete arg1;
12646 }
12647 return resultobj;
12648fail:
12649 {
12650 if (temp1)
12651 delete arg1;
12652 }
12653 return NULL;
d55e5bfc
RD
12654}
12655
12656
554f62e9
RD
12657SWIGINTERN PyObject *_wrap_Log_ClearTraceMasks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12658 PyObject *resultobj = 0;
12659
12660 if (!SWIG_Python_UnpackTuple(args,"Log_ClearTraceMasks",0,0,0)) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 wxLog::ClearTraceMasks();
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 resultobj = SWIG_Py_Void();
12668 return resultobj;
12669fail:
12670 return NULL;
d55e5bfc
RD
12671}
12672
12673
554f62e9
RD
12674SWIGINTERN PyObject *_wrap_Log_GetTraceMasks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12675 PyObject *resultobj = 0;
12676 wxArrayString *result = 0 ;
12677
12678 if (!SWIG_Python_UnpackTuple(args,"Log_GetTraceMasks",0,0,0)) SWIG_fail;
12679 {
12680 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12681 {
554f62e9
RD
12682 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
12683 result = (wxArrayString *) &_result_ref;
093d3ff1 12684 }
554f62e9
RD
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 {
12689 resultobj = wxArrayString2PyList_helper(*result);
12690 }
12691 return resultobj;
12692fail:
12693 return NULL;
d55e5bfc
RD
12694}
12695
12696
554f62e9
RD
12697SWIGINTERN PyObject *_wrap_Log_SetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj = 0;
12699 wxChar *arg1 = (wxChar *) 0 ;
12700 void *argp1 = 0 ;
12701 int res1 = 0 ;
12702 PyObject * obj0 = 0 ;
12703 char * kwnames[] = {
12704 (char *) "ts", NULL
12705 };
12706
12707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) SWIG_fail;
12708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 );
12709 if (!SWIG_IsOK(res1)) {
12710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_SetTimestamp" "', expected argument " "1"" of type '" "wxChar const *""'");
12711 }
12712 arg1 = reinterpret_cast< wxChar * >(argp1);
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 wxLog::SetTimestamp((wxChar const *)arg1);
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 resultobj = SWIG_Py_Void();
12720 return resultobj;
12721fail:
12722 return NULL;
d55e5bfc
RD
12723}
12724
12725
554f62e9
RD
12726SWIGINTERN PyObject *_wrap_Log_GetVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12727 PyObject *resultobj = 0;
12728 bool result;
12729
12730 if (!SWIG_Python_UnpackTuple(args,"Log_GetVerbose",0,0,0)) SWIG_fail;
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (bool)wxLog::GetVerbose();
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 {
12738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12739 }
12740 return resultobj;
12741fail:
12742 return NULL;
d55e5bfc
RD
12743}
12744
12745
554f62e9
RD
12746SWIGINTERN PyObject *_wrap_Log_GetTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12747 PyObject *resultobj = 0;
12748 wxTraceMask result;
12749
12750 if (!SWIG_Python_UnpackTuple(args,"Log_GetTraceMask",0,0,0)) SWIG_fail;
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 result = (wxTraceMask)wxLog::GetTraceMask();
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12758 return resultobj;
12759fail:
12760 return NULL;
12761}
12762
12763
12764SWIGINTERN PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj = 0;
12766 wxChar *arg1 = (wxChar *) 0 ;
12767 bool result;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 PyObject * obj0 = 0 ;
12771 char * kwnames[] = {
12772 (char *) "mask", NULL
12773 };
12774
12775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) SWIG_fail;
12776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_IsAllowedTraceMask" "', expected argument " "1"" of type '" "wxChar const *""'");
12779 }
12780 arg1 = reinterpret_cast< wxChar * >(argp1);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12789 }
12790 return resultobj;
12791fail:
12792 return NULL;
d55e5bfc
RD
12793}
12794
12795
554f62e9
RD
12796SWIGINTERN PyObject *_wrap_Log_GetLogLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12797 PyObject *resultobj = 0;
12798 wxLogLevel result;
12799
12800 if (!SWIG_Python_UnpackTuple(args,"Log_GetLogLevel",0,0,0)) SWIG_fail;
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 result = (wxLogLevel)wxLog::GetLogLevel();
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
12808 return resultobj;
12809fail:
12810 return NULL;
d55e5bfc
RD
12811}
12812
12813
554f62e9
RD
12814SWIGINTERN PyObject *_wrap_Log_GetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12815 PyObject *resultobj = 0;
12816 wxChar *result = 0 ;
12817
12818 if (!SWIG_Python_UnpackTuple(args,"Log_GetTimestamp",0,0,0)) SWIG_fail;
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (wxChar *)wxLog::GetTimestamp();
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
12826 return resultobj;
12827fail:
12828 return NULL;
d55e5bfc
RD
12829}
12830
12831
554f62e9
RD
12832SWIGINTERN PyObject *_wrap_Log_TimeStamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12833 PyObject *resultobj = 0;
12834 wxString result;
12835
12836 if (!SWIG_Python_UnpackTuple(args,"Log_TimeStamp",0,0,0)) SWIG_fail;
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = wxLog_TimeStamp();
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844#if wxUSE_UNICODE
12845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12846#else
12847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12848#endif
12849 }
12850 return resultobj;
12851fail:
12852 return NULL;
d55e5bfc
RD
12853}
12854
12855
554f62e9
RD
12856SWIGINTERN PyObject *_wrap_Log_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12857 PyObject *resultobj = 0;
12858 wxLog *arg1 = (wxLog *) 0 ;
12859 void *argp1 = 0 ;
12860 int res1 = 0 ;
12861 PyObject *swig_obj[1] ;
12862
12863 if (!args) SWIG_fail;
12864 swig_obj[0] = args;
12865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
12866 if (!SWIG_IsOK(res1)) {
12867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Log_Destroy" "', expected argument " "1"" of type '" "wxLog *""'");
12868 }
12869 arg1 = reinterpret_cast< wxLog * >(argp1);
12870 {
12871 PyThreadState* __tstate = wxPyBeginAllowThreads();
12872 wxLog_Destroy(arg1);
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 resultobj = SWIG_Py_Void();
12877 return resultobj;
12878fail:
12879 return NULL;
d55e5bfc
RD
12880}
12881
12882
554f62e9
RD
12883SWIGINTERN PyObject *Log_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12884 PyObject *obj;
12885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12886 SWIG_TypeNewClientData(SWIGTYPE_p_wxLog, SWIG_NewClientData(obj));
12887 return SWIG_Py_Void();
d55e5bfc
RD
12888}
12889
554f62e9
RD
12890SWIGINTERN PyObject *Log_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12891 return SWIG_Python_InitShadowInstance(args);
12892}
d55e5bfc 12893
554f62e9
RD
12894SWIGINTERN PyObject *_wrap_new_LogStderr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12895 PyObject *resultobj = 0;
12896 wxLogStderr *result = 0 ;
12897
12898 if (!SWIG_Python_UnpackTuple(args,"new_LogStderr",0,0,0)) SWIG_fail;
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (wxLogStderr *)new wxLogStderr();
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogStderr, SWIG_POINTER_NEW | 0 );
12906 return resultobj;
12907fail:
12908 return NULL;
7e08d4ef
RD
12909}
12910
12911
554f62e9
RD
12912SWIGINTERN PyObject *LogStderr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12913 PyObject *obj;
12914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12915 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogStderr, SWIG_NewClientData(obj));
12916 return SWIG_Py_Void();
d55e5bfc
RD
12917}
12918
554f62e9
RD
12919SWIGINTERN PyObject *LogStderr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12920 return SWIG_Python_InitShadowInstance(args);
12921}
d55e5bfc 12922
554f62e9
RD
12923SWIGINTERN PyObject *_wrap_new_LogTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12924 PyObject *resultobj = 0;
12925 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12926 wxLogTextCtrl *result = 0 ;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 PyObject * obj0 = 0 ;
12930 char * kwnames[] = {
12931 (char *) "pTextCtrl", NULL
12932 };
12933
12934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) SWIG_fail;
12935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12936 if (!SWIG_IsOK(res1)) {
12937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogTextCtrl" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12938 }
12939 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12940 {
12941 PyThreadState* __tstate = wxPyBeginAllowThreads();
12942 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogTextCtrl, SWIG_POINTER_NEW | 0 );
12947 return resultobj;
12948fail:
12949 return NULL;
d55e5bfc
RD
12950}
12951
12952
554f62e9
RD
12953SWIGINTERN PyObject *LogTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12954 PyObject *obj;
12955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12956 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogTextCtrl, SWIG_NewClientData(obj));
12957 return SWIG_Py_Void();
d55e5bfc
RD
12958}
12959
554f62e9
RD
12960SWIGINTERN PyObject *LogTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12961 return SWIG_Python_InitShadowInstance(args);
12962}
d55e5bfc 12963
554f62e9
RD
12964SWIGINTERN PyObject *_wrap_new_LogGui(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12965 PyObject *resultobj = 0;
12966 wxLogGui *result = 0 ;
12967
12968 if (!SWIG_Python_UnpackTuple(args,"new_LogGui",0,0,0)) SWIG_fail;
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (wxLogGui *)new wxLogGui();
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogGui, SWIG_POINTER_NEW | 0 );
12976 return resultobj;
12977fail:
12978 return NULL;
12979}
12980
12981
12982SWIGINTERN PyObject *LogGui_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12983 PyObject *obj;
12984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12985 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogGui, SWIG_NewClientData(obj));
12986 return SWIG_Py_Void();
12987}
12988
12989SWIGINTERN PyObject *LogGui_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12990 return SWIG_Python_InitShadowInstance(args);
12991}
12992
12993SWIGINTERN PyObject *_wrap_new_LogWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxFrame *arg1 = (wxFrame *) 0 ;
12996 wxString *arg2 = 0 ;
12997 bool arg3 = (bool) true ;
12998 bool arg4 = (bool) true ;
12999 wxLogWindow *result = 0 ;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 bool temp2 = false ;
13003 bool val3 ;
13004 int ecode3 = 0 ;
13005 bool val4 ;
13006 int ecode4 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 PyObject * obj2 = 0 ;
13010 PyObject * obj3 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogWindow" "', expected argument " "1"" of type '" "wxFrame *""'");
13019 }
13020 arg1 = reinterpret_cast< wxFrame * >(argp1);
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
13024 temp2 = true;
13025 }
13026 if (obj2) {
13027 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13028 if (!SWIG_IsOK(ecode3)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LogWindow" "', expected argument " "3"" of type '" "bool""'");
13030 }
13031 arg3 = static_cast< bool >(val3);
13032 }
13033 if (obj3) {
13034 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13035 if (!SWIG_IsOK(ecode4)) {
13036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LogWindow" "', expected argument " "4"" of type '" "bool""'");
13037 }
13038 arg4 = static_cast< bool >(val4);
13039 }
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogWindow, SWIG_POINTER_NEW | 0 );
13047 {
13048 if (temp2)
13049 delete arg2;
13050 }
13051 return resultobj;
13052fail:
13053 {
13054 if (temp2)
13055 delete arg2;
13056 }
13057 return NULL;
13058}
13059
13060
13061SWIGINTERN PyObject *_wrap_LogWindow_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj = 0;
13063 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13064 bool arg2 = (bool) true ;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 bool val2 ;
13068 int ecode2 = 0 ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 char * kwnames[] = {
13072 (char *) "self",(char *) "bShow", NULL
13073 };
13074
13075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) SWIG_fail;
13076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13077 if (!SWIG_IsOK(res1)) {
13078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_Show" "', expected argument " "1"" of type '" "wxLogWindow *""'");
13079 }
13080 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13081 if (obj1) {
13082 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13083 if (!SWIG_IsOK(ecode2)) {
13084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogWindow_Show" "', expected argument " "2"" of type '" "bool""'");
13085 }
13086 arg2 = static_cast< bool >(val2);
13087 }
13088 {
13089 PyThreadState* __tstate = wxPyBeginAllowThreads();
13090 (arg1)->Show(arg2);
13091 wxPyEndAllowThreads(__tstate);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 resultobj = SWIG_Py_Void();
13095 return resultobj;
13096fail:
13097 return NULL;
d55e5bfc
RD
13098}
13099
13100
554f62e9
RD
13101SWIGINTERN PyObject *_wrap_LogWindow_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13102 PyObject *resultobj = 0;
13103 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13104 wxFrame *result = 0 ;
13105 void *argp1 = 0 ;
13106 int res1 = 0 ;
13107 PyObject *swig_obj[1] ;
13108
13109 if (!args) SWIG_fail;
13110 swig_obj[0] = args;
13111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13112 if (!SWIG_IsOK(res1)) {
13113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_GetFrame" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13114 }
13115 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 {
13123 resultobj = wxPyMake_wxObject(result, (bool)0);
13124 }
13125 return resultobj;
13126fail:
13127 return NULL;
d55e5bfc
RD
13128}
13129
13130
554f62e9
RD
13131SWIGINTERN PyObject *_wrap_LogWindow_GetOldLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13132 PyObject *resultobj = 0;
13133 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13134 wxLog *result = 0 ;
13135 void *argp1 = 0 ;
13136 int res1 = 0 ;
13137 PyObject *swig_obj[1] ;
13138
13139 if (!args) SWIG_fail;
13140 swig_obj[0] = args;
13141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13142 if (!SWIG_IsOK(res1)) {
13143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_GetOldLog" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13144 }
13145 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13146 {
13147 PyThreadState* __tstate = wxPyBeginAllowThreads();
13148 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
13153 return resultobj;
13154fail:
13155 return NULL;
d55e5bfc
RD
13156}
13157
13158
554f62e9
RD
13159SWIGINTERN PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13160 PyObject *resultobj = 0;
13161 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13162 bool result;
13163 void *argp1 = 0 ;
13164 int res1 = 0 ;
13165 PyObject *swig_obj[1] ;
13166
13167 if (!args) SWIG_fail;
13168 swig_obj[0] = args;
13169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13170 if (!SWIG_IsOK(res1)) {
13171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_IsPassingMessages" "', expected argument " "1"" of type '" "wxLogWindow const *""'");
13172 }
13173 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 {
13181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13182 }
13183 return resultobj;
13184fail:
13185 return NULL;
13186}
13187
13188
13189SWIGINTERN PyObject *_wrap_LogWindow_PassMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13190 PyObject *resultobj = 0;
13191 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
13192 bool arg2 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 bool val2 ;
13196 int ecode2 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "bDoPass", NULL
13201 };
13202
13203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) SWIG_fail;
13204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogWindow, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogWindow_PassMessages" "', expected argument " "1"" of type '" "wxLogWindow *""'");
13207 }
13208 arg1 = reinterpret_cast< wxLogWindow * >(argp1);
13209 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13210 if (!SWIG_IsOK(ecode2)) {
13211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogWindow_PassMessages" "', expected argument " "2"" of type '" "bool""'");
13212 }
13213 arg2 = static_cast< bool >(val2);
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 (arg1)->PassMessages(arg2);
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_Py_Void();
13221 return resultobj;
13222fail:
13223 return NULL;
d55e5bfc
RD
13224}
13225
13226
554f62e9
RD
13227SWIGINTERN PyObject *LogWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13228 PyObject *obj;
13229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13230 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogWindow, SWIG_NewClientData(obj));
13231 return SWIG_Py_Void();
d55e5bfc
RD
13232}
13233
554f62e9
RD
13234SWIGINTERN PyObject *LogWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13235 return SWIG_Python_InitShadowInstance(args);
13236}
d55e5bfc 13237
554f62e9
RD
13238SWIGINTERN PyObject *_wrap_new_LogChain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13239 PyObject *resultobj = 0;
13240 wxLog *arg1 = (wxLog *) 0 ;
13241 wxLogChain *result = 0 ;
13242 void *argp1 = 0 ;
13243 int res1 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 char * kwnames[] = {
13246 (char *) "logger", NULL
13247 };
13248
13249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) SWIG_fail;
13250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLog, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogChain" "', expected argument " "1"" of type '" "wxLog *""'");
13253 }
13254 arg1 = reinterpret_cast< wxLog * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (wxLogChain *)new wxLogChain(arg1);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogChain, SWIG_POINTER_NEW | 0 );
13262 return resultobj;
13263fail:
13264 return NULL;
13265}
13266
13267
13268SWIGINTERN PyObject *_wrap_LogChain_SetLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj = 0;
13270 wxLogChain *arg1 = (wxLogChain *) 0 ;
13271 wxLog *arg2 = (wxLog *) 0 ;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 void *argp2 = 0 ;
13275 int res2 = 0 ;
13276 PyObject * obj0 = 0 ;
13277 PyObject * obj1 = 0 ;
13278 char * kwnames[] = {
13279 (char *) "self",(char *) "logger", NULL
13280 };
13281
13282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_SetLog" "', expected argument " "1"" of type '" "wxLogChain *""'");
13286 }
13287 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxLog, 0 | 0 );
13289 if (!SWIG_IsOK(res2)) {
13290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LogChain_SetLog" "', expected argument " "2"" of type '" "wxLog *""'");
13291 }
13292 arg2 = reinterpret_cast< wxLog * >(argp2);
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 (arg1)->SetLog(arg2);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_Py_Void();
13300 return resultobj;
13301fail:
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_LogChain_PassMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 wxLogChain *arg1 = (wxLogChain *) 0 ;
13309 bool arg2 ;
13310 void *argp1 = 0 ;
13311 int res1 = 0 ;
13312 bool val2 ;
13313 int ecode2 = 0 ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "bDoPass", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_PassMessages" "', expected argument " "1"" of type '" "wxLogChain *""'");
13324 }
13325 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13326 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13327 if (!SWIG_IsOK(ecode2)) {
13328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogChain_PassMessages" "', expected argument " "2"" of type '" "bool""'");
13329 }
13330 arg2 = static_cast< bool >(val2);
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 (arg1)->PassMessages(arg2);
13334 wxPyEndAllowThreads(__tstate);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 }
13337 resultobj = SWIG_Py_Void();
13338 return resultobj;
13339fail:
13340 return NULL;
d55e5bfc
RD
13341}
13342
13343
554f62e9
RD
13344SWIGINTERN PyObject *_wrap_LogChain_IsPassingMessages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13345 PyObject *resultobj = 0;
13346 wxLogChain *arg1 = (wxLogChain *) 0 ;
13347 bool result;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 PyObject *swig_obj[1] ;
13351
13352 if (!args) SWIG_fail;
13353 swig_obj[0] = args;
13354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_IsPassingMessages" "', expected argument " "1"" of type '" "wxLogChain *""'");
13357 }
13358 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 result = (bool)(arg1)->IsPassingMessages();
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 {
13366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13367 }
13368 return resultobj;
13369fail:
13370 return NULL;
d55e5bfc
RD
13371}
13372
13373
554f62e9
RD
13374SWIGINTERN PyObject *_wrap_LogChain_GetOldLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13375 PyObject *resultobj = 0;
13376 wxLogChain *arg1 = (wxLogChain *) 0 ;
13377 wxLog *result = 0 ;
13378 void *argp1 = 0 ;
13379 int res1 = 0 ;
13380 PyObject *swig_obj[1] ;
13381
13382 if (!args) SWIG_fail;
13383 swig_obj[0] = args;
13384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogChain, 0 | 0 );
13385 if (!SWIG_IsOK(res1)) {
13386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogChain_GetOldLog" "', expected argument " "1"" of type '" "wxLogChain *""'");
13387 }
13388 arg1 = reinterpret_cast< wxLogChain * >(argp1);
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = (wxLog *)(arg1)->GetOldLog();
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLog, 0 | 0 );
13396 return resultobj;
13397fail:
13398 return NULL;
d55e5bfc
RD
13399}
13400
13401
554f62e9
RD
13402SWIGINTERN PyObject *LogChain_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13403 PyObject *obj;
13404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13405 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogChain, SWIG_NewClientData(obj));
13406 return SWIG_Py_Void();
d55e5bfc
RD
13407}
13408
554f62e9
RD
13409SWIGINTERN PyObject *LogChain_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13410 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13411}
13412
554f62e9
RD
13413SWIGINTERN PyObject *_wrap_new_LogBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13414 PyObject *resultobj = 0;
13415 wxLogBuffer *result = 0 ;
13416
13417 if (!SWIG_Python_UnpackTuple(args,"new_LogBuffer",0,0,0)) SWIG_fail;
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 result = (wxLogBuffer *)new wxLogBuffer();
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogBuffer, SWIG_POINTER_NEW | 0 );
13425 return resultobj;
13426fail:
13427 return NULL;
d55e5bfc
RD
13428}
13429
13430
554f62e9
RD
13431SWIGINTERN PyObject *_wrap_LogBuffer_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13432 PyObject *resultobj = 0;
13433 wxLogBuffer *arg1 = (wxLogBuffer *) 0 ;
13434 wxString *result = 0 ;
13435 void *argp1 = 0 ;
13436 int res1 = 0 ;
13437 PyObject *swig_obj[1] ;
13438
13439 if (!args) SWIG_fail;
13440 swig_obj[0] = args;
13441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogBuffer, 0 | 0 );
13442 if (!SWIG_IsOK(res1)) {
13443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogBuffer_GetBuffer" "', expected argument " "1"" of type '" "wxLogBuffer const *""'");
13444 }
13445 arg1 = reinterpret_cast< wxLogBuffer * >(argp1);
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13448 {
554f62e9
RD
13449 wxString const &_result_ref = ((wxLogBuffer const *)arg1)->GetBuffer();
13450 result = (wxString *) &_result_ref;
d55e5bfc 13451 }
554f62e9
RD
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 {
13456#if wxUSE_UNICODE
13457 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13458#else
13459 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13460#endif
13461 }
13462 return resultobj;
13463fail:
13464 return NULL;
d55e5bfc
RD
13465}
13466
13467
554f62e9
RD
13468SWIGINTERN PyObject *LogBuffer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *obj;
13470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13471 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogBuffer, SWIG_NewClientData(obj));
13472 return SWIG_Py_Void();
d55e5bfc
RD
13473}
13474
554f62e9
RD
13475SWIGINTERN PyObject *LogBuffer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13476 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13477}
13478
554f62e9
RD
13479SWIGINTERN PyObject *_wrap_SysErrorCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13480 PyObject *resultobj = 0;
13481 unsigned long result;
13482
13483 if (!SWIG_Python_UnpackTuple(args,"SysErrorCode",0,0,0)) SWIG_fail;
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = (unsigned long)wxSysErrorCode();
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
13491 return resultobj;
13492fail:
13493 return NULL;
13494}
13495
13496
13497SWIGINTERN PyObject *_wrap_SysErrorMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13498 PyObject *resultobj = 0;
13499 unsigned long arg1 = (unsigned long) 0 ;
13500 wxString result;
13501 unsigned long val1 ;
13502 int ecode1 = 0 ;
13503 PyObject * obj0 = 0 ;
13504 char * kwnames[] = {
13505 (char *) "nErrCode", NULL
13506 };
13507
13508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) SWIG_fail;
13509 if (obj0) {
13510 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
13511 if (!SWIG_IsOK(ecode1)) {
13512 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SysErrorMsg" "', expected argument " "1"" of type '" "unsigned long""'");
13513 }
13514 arg1 = static_cast< unsigned long >(val1);
13515 }
13516 {
13517 PyThreadState* __tstate = wxPyBeginAllowThreads();
13518 result = wxSysErrorMsg(arg1);
13519 wxPyEndAllowThreads(__tstate);
13520 if (PyErr_Occurred()) SWIG_fail;
13521 }
13522 {
13523#if wxUSE_UNICODE
13524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13525#else
13526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13527#endif
13528 }
13529 return resultobj;
13530fail:
13531 return NULL;
d55e5bfc
RD
13532}
13533
13534
554f62e9
RD
13535SWIGINTERN PyObject *_wrap_LogFatalError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13536 PyObject *resultobj = 0;
13537 wxString *arg1 = 0 ;
13538 bool temp1 = false ;
13539 PyObject * obj0 = 0 ;
13540 char * kwnames[] = {
13541 (char *) "msg", NULL
13542 };
13543
13544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) SWIG_fail;
13545 {
13546 arg1 = wxString_in_helper(obj0);
13547 if (arg1 == NULL) SWIG_fail;
13548 temp1 = true;
13549 }
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 wxPyLogFatalError((wxString const &)*arg1);
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 resultobj = SWIG_Py_Void();
13557 {
13558 if (temp1)
13559 delete arg1;
13560 }
13561 return resultobj;
13562fail:
13563 {
13564 if (temp1)
13565 delete arg1;
13566 }
13567 return NULL;
d55e5bfc
RD
13568}
13569
13570
554f62e9
RD
13571SWIGINTERN PyObject *_wrap_LogError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13572 PyObject *resultobj = 0;
13573 wxString *arg1 = 0 ;
13574 bool temp1 = false ;
13575 PyObject * obj0 = 0 ;
13576 char * kwnames[] = {
13577 (char *) "msg", NULL
13578 };
13579
13580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) SWIG_fail;
13581 {
13582 arg1 = wxString_in_helper(obj0);
13583 if (arg1 == NULL) SWIG_fail;
13584 temp1 = true;
13585 }
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 wxPyLogError((wxString const &)*arg1);
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = SWIG_Py_Void();
13593 {
13594 if (temp1)
13595 delete arg1;
13596 }
13597 return resultobj;
13598fail:
13599 {
13600 if (temp1)
13601 delete arg1;
13602 }
13603 return NULL;
d55e5bfc
RD
13604}
13605
13606
554f62e9
RD
13607SWIGINTERN PyObject *_wrap_LogWarning(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13608 PyObject *resultobj = 0;
13609 wxString *arg1 = 0 ;
13610 bool temp1 = false ;
13611 PyObject * obj0 = 0 ;
13612 char * kwnames[] = {
13613 (char *) "msg", NULL
13614 };
13615
13616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) SWIG_fail;
13617 {
13618 arg1 = wxString_in_helper(obj0);
13619 if (arg1 == NULL) SWIG_fail;
13620 temp1 = true;
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 wxPyLogWarning((wxString const &)*arg1);
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = SWIG_Py_Void();
13629 {
13630 if (temp1)
13631 delete arg1;
13632 }
13633 return resultobj;
13634fail:
13635 {
13636 if (temp1)
13637 delete arg1;
13638 }
13639 return NULL;
d55e5bfc
RD
13640}
13641
13642
554f62e9
RD
13643SWIGINTERN PyObject *_wrap_LogMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj = 0;
13645 wxString *arg1 = 0 ;
13646 bool temp1 = false ;
13647 PyObject * obj0 = 0 ;
13648 char * kwnames[] = {
13649 (char *) "msg", NULL
13650 };
13651
13652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) SWIG_fail;
13653 {
13654 arg1 = wxString_in_helper(obj0);
13655 if (arg1 == NULL) SWIG_fail;
13656 temp1 = true;
13657 }
13658 {
13659 PyThreadState* __tstate = wxPyBeginAllowThreads();
13660 wxPyLogMessage((wxString const &)*arg1);
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 resultobj = SWIG_Py_Void();
13665 {
13666 if (temp1)
13667 delete arg1;
13668 }
13669 return resultobj;
13670fail:
13671 {
13672 if (temp1)
13673 delete arg1;
13674 }
13675 return NULL;
d55e5bfc
RD
13676}
13677
13678
554f62e9
RD
13679SWIGINTERN PyObject *_wrap_LogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj = 0;
13681 wxString *arg1 = 0 ;
13682 bool temp1 = false ;
13683 PyObject * obj0 = 0 ;
13684 char * kwnames[] = {
13685 (char *) "msg", NULL
13686 };
13687
13688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) SWIG_fail;
13689 {
13690 arg1 = wxString_in_helper(obj0);
13691 if (arg1 == NULL) SWIG_fail;
13692 temp1 = true;
13693 }
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 wxPyLogInfo((wxString const &)*arg1);
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_Py_Void();
13701 {
13702 if (temp1)
13703 delete arg1;
13704 }
13705 return resultobj;
13706fail:
13707 {
13708 if (temp1)
13709 delete arg1;
13710 }
13711 return NULL;
d55e5bfc
RD
13712}
13713
13714
554f62e9
RD
13715SWIGINTERN PyObject *_wrap_LogDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxString *arg1 = 0 ;
13718 bool temp1 = false ;
13719 PyObject * obj0 = 0 ;
13720 char * kwnames[] = {
13721 (char *) "msg", NULL
13722 };
13723
13724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) SWIG_fail;
13725 {
13726 arg1 = wxString_in_helper(obj0);
13727 if (arg1 == NULL) SWIG_fail;
13728 temp1 = true;
13729 }
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 wxPyLogDebug((wxString const &)*arg1);
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 resultobj = SWIG_Py_Void();
13737 {
13738 if (temp1)
13739 delete arg1;
13740 }
13741 return resultobj;
13742fail:
13743 {
13744 if (temp1)
13745 delete arg1;
13746 }
13747 return NULL;
d55e5bfc
RD
13748}
13749
13750
554f62e9
RD
13751SWIGINTERN PyObject *_wrap_LogVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj = 0;
13753 wxString *arg1 = 0 ;
13754 bool temp1 = false ;
13755 PyObject * obj0 = 0 ;
13756 char * kwnames[] = {
13757 (char *) "msg", NULL
13758 };
13759
13760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) SWIG_fail;
13761 {
13762 arg1 = wxString_in_helper(obj0);
13763 if (arg1 == NULL) SWIG_fail;
13764 temp1 = true;
13765 }
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 wxPyLogVerbose((wxString const &)*arg1);
13769 wxPyEndAllowThreads(__tstate);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 resultobj = SWIG_Py_Void();
13773 {
13774 if (temp1)
13775 delete arg1;
13776 }
13777 return resultobj;
13778fail:
13779 {
13780 if (temp1)
13781 delete arg1;
13782 }
13783 return NULL;
d55e5bfc
RD
13784}
13785
13786
554f62e9
RD
13787SWIGINTERN PyObject *_wrap_LogStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj = 0;
13789 wxString *arg1 = 0 ;
13790 bool temp1 = false ;
13791 PyObject * obj0 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "msg", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) SWIG_fail;
13797 {
13798 arg1 = wxString_in_helper(obj0);
13799 if (arg1 == NULL) SWIG_fail;
13800 temp1 = true;
13801 }
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 wxPyLogStatus((wxString const &)*arg1);
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_Py_Void();
13809 {
13810 if (temp1)
13811 delete arg1;
13812 }
13813 return resultobj;
13814fail:
13815 {
13816 if (temp1)
13817 delete arg1;
13818 }
13819 return NULL;
d55e5bfc
RD
13820}
13821
13822
554f62e9
RD
13823SWIGINTERN PyObject *_wrap_LogStatusFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj = 0;
13825 wxFrame *arg1 = (wxFrame *) 0 ;
13826 wxString *arg2 = 0 ;
13827 void *argp1 = 0 ;
13828 int res1 = 0 ;
13829 bool temp2 = false ;
13830 PyObject * obj0 = 0 ;
13831 PyObject * obj1 = 0 ;
13832 char * kwnames[] = {
13833 (char *) "pFrame",(char *) "msg", NULL
13834 };
13835
13836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) SWIG_fail;
13837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 );
13838 if (!SWIG_IsOK(res1)) {
13839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogStatusFrame" "', expected argument " "1"" of type '" "wxFrame *""'");
13840 }
13841 arg1 = reinterpret_cast< wxFrame * >(argp1);
13842 {
13843 arg2 = wxString_in_helper(obj1);
13844 if (arg2 == NULL) SWIG_fail;
13845 temp2 = true;
13846 }
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
13850 wxPyEndAllowThreads(__tstate);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 resultobj = SWIG_Py_Void();
13854 {
13855 if (temp2)
13856 delete arg2;
13857 }
13858 return resultobj;
13859fail:
13860 {
13861 if (temp2)
13862 delete arg2;
13863 }
13864 return NULL;
d55e5bfc
RD
13865}
13866
13867
554f62e9
RD
13868SWIGINTERN PyObject *_wrap_LogSysError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13869 PyObject *resultobj = 0;
13870 wxString *arg1 = 0 ;
13871 bool temp1 = false ;
13872 PyObject * obj0 = 0 ;
13873 char * kwnames[] = {
13874 (char *) "msg", NULL
13875 };
13876
13877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) SWIG_fail;
13878 {
13879 arg1 = wxString_in_helper(obj0);
13880 if (arg1 == NULL) SWIG_fail;
13881 temp1 = true;
13882 }
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 wxPyLogSysError((wxString const &)*arg1);
13886 wxPyEndAllowThreads(__tstate);
13887 if (PyErr_Occurred()) SWIG_fail;
13888 }
13889 resultobj = SWIG_Py_Void();
13890 {
13891 if (temp1)
13892 delete arg1;
13893 }
13894 return resultobj;
13895fail:
13896 {
13897 if (temp1)
13898 delete arg1;
13899 }
13900 return NULL;
d55e5bfc
RD
13901}
13902
13903
554f62e9
RD
13904SWIGINTERN PyObject *_wrap_LogGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj = 0;
13906 unsigned long arg1 ;
13907 wxString *arg2 = 0 ;
13908 unsigned long val1 ;
13909 int ecode1 = 0 ;
13910 bool temp2 = false ;
13911 PyObject * obj0 = 0 ;
13912 PyObject * obj1 = 0 ;
13913 char * kwnames[] = {
13914 (char *) "level",(char *) "msg", NULL
13915 };
13916
13917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) SWIG_fail;
13918 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
13919 if (!SWIG_IsOK(ecode1)) {
13920 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "LogGeneric" "', expected argument " "1"" of type '" "unsigned long""'");
13921 }
13922 arg1 = static_cast< unsigned long >(val1);
13923 {
13924 arg2 = wxString_in_helper(obj1);
13925 if (arg2 == NULL) SWIG_fail;
13926 temp2 = true;
13927 }
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 wxPyLogGeneric(arg1,(wxString const &)*arg2);
13931 wxPyEndAllowThreads(__tstate);
13932 if (PyErr_Occurred()) SWIG_fail;
13933 }
13934 resultobj = SWIG_Py_Void();
13935 {
13936 if (temp2)
13937 delete arg2;
13938 }
13939 return resultobj;
13940fail:
13941 {
13942 if (temp2)
13943 delete arg2;
13944 }
13945 return NULL;
d55e5bfc
RD
13946}
13947
13948
554f62e9
RD
13949SWIGINTERN PyObject *_wrap_LogTrace__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13950 PyObject *resultobj = 0;
13951 unsigned long arg1 ;
13952 wxString *arg2 = 0 ;
13953 unsigned long val1 ;
13954 int ecode1 = 0 ;
13955 bool temp2 = false ;
13956
13957 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13958 ecode1 = SWIG_AsVal_unsigned_SS_long(swig_obj[0], &val1);
13959 if (!SWIG_IsOK(ecode1)) {
13960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "LogTrace" "', expected argument " "1"" of type '" "unsigned long""'");
13961 }
13962 arg1 = static_cast< unsigned long >(val1);
13963 {
13964 arg2 = wxString_in_helper(swig_obj[1]);
13965 if (arg2 == NULL) SWIG_fail;
13966 temp2 = true;
13967 }
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 wxPyLogTrace(arg1,(wxString const &)*arg2);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_Py_Void();
13975 {
13976 if (temp2)
13977 delete arg2;
13978 }
13979 return resultobj;
13980fail:
13981 {
13982 if (temp2)
13983 delete arg2;
13984 }
13985 return NULL;
d55e5bfc
RD
13986}
13987
13988
554f62e9
RD
13989SWIGINTERN PyObject *_wrap_LogTrace__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13990 PyObject *resultobj = 0;
13991 wxString *arg1 = 0 ;
13992 wxString *arg2 = 0 ;
13993 bool temp1 = false ;
13994 bool temp2 = false ;
13995
13996 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
13997 {
13998 arg1 = wxString_in_helper(swig_obj[0]);
13999 if (arg1 == NULL) SWIG_fail;
14000 temp1 = true;
14001 }
14002 {
14003 arg2 = wxString_in_helper(swig_obj[1]);
14004 if (arg2 == NULL) SWIG_fail;
14005 temp2 = true;
14006 }
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 resultobj = SWIG_Py_Void();
14014 {
14015 if (temp1)
14016 delete arg1;
14017 }
14018 {
14019 if (temp2)
14020 delete arg2;
14021 }
14022 return resultobj;
14023fail:
14024 {
14025 if (temp1)
14026 delete arg1;
14027 }
14028 {
14029 if (temp2)
14030 delete arg2;
14031 }
14032 return NULL;
d55e5bfc
RD
14033}
14034
14035
554f62e9
RD
14036SWIGINTERN PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
14037 int argc;
14038 PyObject *argv[3];
14039
14040 if (!(argc = SWIG_Python_UnpackTuple(args,"LogTrace",0,2,argv))) SWIG_fail;
14041 --argc;
14042 if (argc == 2) {
14043 int _v = 0;
d55e5bfc 14044 {
554f62e9
RD
14045 {
14046 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
14047 }
d55e5bfc 14048 }
554f62e9
RD
14049 if (!_v) goto check_1;
14050 return _wrap_LogTrace__SWIG_1(self, argc, argv);
14051 }
14052check_1:
14053
14054 if (argc == 2) {
14055 return _wrap_LogTrace__SWIG_0(self, argc, argv);
14056 }
14057
14058fail:
14059 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'LogTrace'");
14060 return NULL;
14061}
14062
14063
14064SWIGINTERN PyObject *_wrap_SafeShowMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14065 PyObject *resultobj = 0;
14066 wxString *arg1 = 0 ;
14067 wxString *arg2 = 0 ;
14068 bool temp1 = false ;
14069 bool temp2 = false ;
14070 PyObject * obj0 = 0 ;
14071 PyObject * obj1 = 0 ;
14072 char * kwnames[] = {
14073 (char *) "title",(char *) "text", NULL
14074 };
14075
14076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) SWIG_fail;
14077 {
14078 arg1 = wxString_in_helper(obj0);
14079 if (arg1 == NULL) SWIG_fail;
14080 temp1 = true;
14081 }
14082 {
14083 arg2 = wxString_in_helper(obj1);
14084 if (arg2 == NULL) SWIG_fail;
14085 temp2 = true;
14086 }
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
14090 wxPyEndAllowThreads(__tstate);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 }
14093 resultobj = SWIG_Py_Void();
14094 {
14095 if (temp1)
14096 delete arg1;
14097 }
14098 {
14099 if (temp2)
14100 delete arg2;
14101 }
14102 return resultobj;
14103fail:
14104 {
14105 if (temp1)
14106 delete arg1;
14107 }
14108 {
14109 if (temp2)
14110 delete arg2;
14111 }
14112 return NULL;
d55e5bfc
RD
14113}
14114
14115
554f62e9
RD
14116SWIGINTERN PyObject *_wrap_new_LogNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14117 PyObject *resultobj = 0;
14118 wxLogNull *result = 0 ;
14119
14120 if (!SWIG_Python_UnpackTuple(args,"new_LogNull",0,0,0)) SWIG_fail;
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = (wxLogNull *)new wxLogNull();
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLogNull, SWIG_POINTER_NEW | 0 );
14128 return resultobj;
14129fail:
14130 return NULL;
d55e5bfc
RD
14131}
14132
14133
554f62e9
RD
14134SWIGINTERN PyObject *_wrap_delete_LogNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14135 PyObject *resultobj = 0;
14136 wxLogNull *arg1 = (wxLogNull *) 0 ;
14137 void *argp1 = 0 ;
14138 int res1 = 0 ;
14139 PyObject *swig_obj[1] ;
14140
14141 if (!args) SWIG_fail;
14142 swig_obj[0] = args;
14143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLogNull, SWIG_POINTER_DISOWN | 0 );
14144 if (!SWIG_IsOK(res1)) {
14145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogNull" "', expected argument " "1"" of type '" "wxLogNull *""'");
14146 }
14147 arg1 = reinterpret_cast< wxLogNull * >(argp1);
14148 {
14149 PyThreadState* __tstate = wxPyBeginAllowThreads();
14150 delete arg1;
d55e5bfc 14151
554f62e9
RD
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 resultobj = SWIG_Py_Void();
14156 return resultobj;
14157fail:
14158 return NULL;
d55e5bfc
RD
14159}
14160
14161
554f62e9
RD
14162SWIGINTERN PyObject *LogNull_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14163 PyObject *obj;
14164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14165 SWIG_TypeNewClientData(SWIGTYPE_p_wxLogNull, SWIG_NewClientData(obj));
14166 return SWIG_Py_Void();
d55e5bfc
RD
14167}
14168
554f62e9
RD
14169SWIGINTERN PyObject *LogNull_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14170 return SWIG_Python_InitShadowInstance(args);
14171}
d55e5bfc 14172
554f62e9
RD
14173SWIGINTERN PyObject *_wrap_new_PyLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14174 PyObject *resultobj = 0;
14175 wxPyLog *result = 0 ;
14176
14177 if (!SWIG_Python_UnpackTuple(args,"new_PyLog",0,0,0)) SWIG_fail;
14178 {
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 result = (wxPyLog *)new wxPyLog();
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLog, SWIG_POINTER_NEW | 0 );
14185 return resultobj;
14186fail:
14187 return NULL;
14188}
14189
14190
14191SWIGINTERN PyObject *_wrap_PyLog__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj = 0;
14193 wxPyLog *arg1 = (wxPyLog *) 0 ;
14194 PyObject *arg2 = (PyObject *) 0 ;
14195 PyObject *arg3 = (PyObject *) 0 ;
14196 void *argp1 = 0 ;
14197 int res1 = 0 ;
14198 PyObject * obj0 = 0 ;
14199 PyObject * obj1 = 0 ;
14200 PyObject * obj2 = 0 ;
14201 char * kwnames[] = {
14202 (char *) "self",(char *) "self",(char *) "_class", NULL
14203 };
14204
14205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLog, 0 | 0 );
14207 if (!SWIG_IsOK(res1)) {
14208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLog__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLog *""'");
14209 }
14210 arg1 = reinterpret_cast< wxPyLog * >(argp1);
14211 arg2 = obj1;
14212 arg3 = obj2;
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 (arg1)->_setCallbackInfo(arg2,arg3);
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 resultobj = SWIG_Py_Void();
14220 return resultobj;
14221fail:
14222 return NULL;
14223}
14224
14225
14226SWIGINTERN PyObject *PyLog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14227 PyObject *obj;
14228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14229 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLog, SWIG_NewClientData(obj));
14230 return SWIG_Py_Void();
14231}
14232
14233SWIGINTERN PyObject *PyLog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14234 return SWIG_Python_InitShadowInstance(args);
14235}
14236
14237SWIGINTERN PyObject *_wrap_Process_Kill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj = 0;
14239 int arg1 ;
14240 wxSignal arg2 = (wxSignal) wxSIGTERM ;
14241 int arg3 = (int) wxKILL_NOCHILDREN ;
14242 wxKillError result;
14243 int val1 ;
14244 int ecode1 = 0 ;
14245 int val2 ;
14246 int ecode2 = 0 ;
14247 int val3 ;
14248 int ecode3 = 0 ;
14249 PyObject * obj0 = 0 ;
14250 PyObject * obj1 = 0 ;
14251 PyObject * obj2 = 0 ;
14252 char * kwnames[] = {
14253 (char *) "pid",(char *) "sig",(char *) "flags", NULL
14254 };
14255
14256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14257 ecode1 = SWIG_AsVal_int(obj0, &val1);
14258 if (!SWIG_IsOK(ecode1)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Process_Kill" "', expected argument " "1"" of type '" "int""'");
14260 }
14261 arg1 = static_cast< int >(val1);
14262 if (obj1) {
14263 ecode2 = SWIG_AsVal_int(obj1, &val2);
14264 if (!SWIG_IsOK(ecode2)) {
14265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_Kill" "', expected argument " "2"" of type '" "wxSignal""'");
14266 }
14267 arg2 = static_cast< wxSignal >(val2);
14268 }
14269 if (obj2) {
14270 ecode3 = SWIG_AsVal_int(obj2, &val3);
14271 if (!SWIG_IsOK(ecode3)) {
14272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Process_Kill" "', expected argument " "3"" of type '" "int""'");
14273 }
14274 arg3 = static_cast< int >(val3);
14275 }
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 result = (wxKillError)wxPyProcess::Kill(arg1,arg2,arg3);
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_From_int(static_cast< int >(result));
14283 return resultobj;
14284fail:
14285 return NULL;
14286}
14287
14288
14289SWIGINTERN PyObject *_wrap_Process_Exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj = 0;
14291 int arg1 ;
14292 bool result;
14293 int val1 ;
14294 int ecode1 = 0 ;
14295 PyObject * obj0 = 0 ;
14296 char * kwnames[] = {
14297 (char *) "pid", NULL
14298 };
14299
14300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) SWIG_fail;
14301 ecode1 = SWIG_AsVal_int(obj0, &val1);
14302 if (!SWIG_IsOK(ecode1)) {
14303 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Process_Exists" "', expected argument " "1"" of type '" "int""'");
14304 }
14305 arg1 = static_cast< int >(val1);
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (bool)wxPyProcess::Exists(arg1);
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 {
14313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14314 }
14315 return resultobj;
14316fail:
14317 return NULL;
14318}
14319
14320
14321SWIGINTERN PyObject *_wrap_Process_Open(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14322 PyObject *resultobj = 0;
14323 wxString *arg1 = 0 ;
14324 int arg2 = (int) wxEXEC_ASYNC ;
14325 wxPyProcess *result = 0 ;
14326 bool temp1 = false ;
14327 int val2 ;
14328 int ecode2 = 0 ;
14329 PyObject * obj0 = 0 ;
14330 PyObject * obj1 = 0 ;
14331 char * kwnames[] = {
14332 (char *) "cmd",(char *) "flags", NULL
14333 };
14334
14335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) SWIG_fail;
14336 {
14337 arg1 = wxString_in_helper(obj0);
14338 if (arg1 == NULL) SWIG_fail;
14339 temp1 = true;
14340 }
14341 if (obj1) {
14342 ecode2 = SWIG_AsVal_int(obj1, &val2);
14343 if (!SWIG_IsOK(ecode2)) {
14344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_Open" "', expected argument " "2"" of type '" "int""'");
14345 }
14346 arg2 = static_cast< int >(val2);
14347 }
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyProcess, 0 | 0 );
14355 {
14356 if (temp1)
14357 delete arg1;
14358 }
14359 return resultobj;
14360fail:
14361 {
14362 if (temp1)
14363 delete arg1;
14364 }
14365 return NULL;
14366}
14367
14368
14369SWIGINTERN PyObject *_wrap_new_Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14370 PyObject *resultobj = 0;
14371 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
14372 int arg2 = (int) -1 ;
14373 wxPyProcess *result = 0 ;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 int val2 ;
14377 int ecode2 = 0 ;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 char * kwnames[] = {
14381 (char *) "parent",(char *) "id", NULL
14382 };
14383
14384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) SWIG_fail;
14385 if (obj0) {
14386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Process" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
d55e5bfc 14389 }
554f62e9
RD
14390 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
14391 }
14392 if (obj1) {
14393 ecode2 = SWIG_AsVal_int(obj1, &val2);
14394 if (!SWIG_IsOK(ecode2)) {
14395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Process" "', expected argument " "2"" of type '" "int""'");
14396 }
14397 arg2 = static_cast< int >(val2);
14398 }
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyProcess, SWIG_POINTER_NEW | 0 );
14406 return resultobj;
14407fail:
14408 return NULL;
14409}
14410
14411
8f514ab4
RD
14412SWIGINTERN PyObject *_wrap_delete_Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14413 PyObject *resultobj = 0;
14414 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 PyObject *swig_obj[1] ;
14418
14419 if (!args) SWIG_fail;
14420 swig_obj[0] = args;
14421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, SWIG_POINTER_DISOWN | 0 );
14422 if (!SWIG_IsOK(res1)) {
14423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Process" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14424 }
14425 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14426 {
14427 PyThreadState* __tstate = wxPyBeginAllowThreads();
14428 delete arg1;
14429
14430 wxPyEndAllowThreads(__tstate);
14431 if (PyErr_Occurred()) SWIG_fail;
14432 }
14433 resultobj = SWIG_Py_Void();
14434 return resultobj;
14435fail:
14436 return NULL;
14437}
14438
14439
5172800e 14440SWIGINTERN PyObject *_wrap_Process__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8f514ab4
RD
14441 PyObject *resultobj = 0;
14442 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
5172800e
RD
14443 PyObject *arg2 = (PyObject *) 0 ;
14444 PyObject *arg3 = (PyObject *) 0 ;
8f514ab4
RD
14445 void *argp1 = 0 ;
14446 int res1 = 0 ;
5172800e
RD
14447 PyObject * obj0 = 0 ;
14448 PyObject * obj1 = 0 ;
14449 PyObject * obj2 = 0 ;
14450 char * kwnames[] = {
14451 (char *) "self",(char *) "self",(char *) "_class", NULL
14452 };
8f514ab4 14453
5172800e
RD
14454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
8f514ab4 14456 if (!SWIG_IsOK(res1)) {
5172800e 14457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyProcess *""'");
8f514ab4
RD
14458 }
14459 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
5172800e
RD
14460 arg2 = obj1;
14461 arg3 = obj2;
8f514ab4
RD
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172800e 14464 (arg1)->_setCallbackInfo(arg2,arg3);
8f514ab4
RD
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
5172800e 14468 resultobj = SWIG_Py_Void();
8f514ab4
RD
14469 return resultobj;
14470fail:
14471 return NULL;
14472}
14473
14474
5172800e 14475SWIGINTERN PyObject *_wrap_Process_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14476 PyObject *resultobj = 0;
14477 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
5172800e 14478 long result;
554f62e9
RD
14479 void *argp1 = 0 ;
14480 int res1 = 0 ;
5172800e 14481 PyObject *swig_obj[1] ;
554f62e9 14482
5172800e
RD
14483 if (!args) SWIG_fail;
14484 swig_obj[0] = args;
14485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
554f62e9 14486 if (!SWIG_IsOK(res1)) {
5172800e 14487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetPid" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
554f62e9
RD
14488 }
14489 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
554f62e9
RD
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172800e 14492 result = (long)((wxPyProcess const *)arg1)->GetPid();
554f62e9
RD
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
5172800e 14496 resultobj = SWIG_From_long(static_cast< long >(result));
554f62e9
RD
14497 return resultobj;
14498fail:
14499 return NULL;
14500}
14501
14502
14503SWIGINTERN PyObject *_wrap_Process_OnTerminate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj = 0;
14505 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14506 int arg2 ;
14507 int arg3 ;
14508 void *argp1 = 0 ;
14509 int res1 = 0 ;
14510 int val2 ;
14511 int ecode2 = 0 ;
14512 int val3 ;
14513 int ecode3 = 0 ;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 PyObject * obj2 = 0 ;
14517 char * kwnames[] = {
14518 (char *) "self",(char *) "pid",(char *) "status", NULL
14519 };
14520
14521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_OnTerminate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_OnTerminate" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14525 }
14526 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14527 ecode2 = SWIG_AsVal_int(obj1, &val2);
14528 if (!SWIG_IsOK(ecode2)) {
14529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Process_OnTerminate" "', expected argument " "2"" of type '" "int""'");
14530 }
14531 arg2 = static_cast< int >(val2);
14532 ecode3 = SWIG_AsVal_int(obj2, &val3);
14533 if (!SWIG_IsOK(ecode3)) {
14534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Process_OnTerminate" "', expected argument " "3"" of type '" "int""'");
14535 }
14536 arg3 = static_cast< int >(val3);
14537 {
14538 PyThreadState* __tstate = wxPyBeginAllowThreads();
14539 (arg1)->OnTerminate(arg2,arg3);
14540 wxPyEndAllowThreads(__tstate);
14541 if (PyErr_Occurred()) SWIG_fail;
14542 }
14543 resultobj = SWIG_Py_Void();
14544 return resultobj;
14545fail:
14546 return NULL;
d55e5bfc
RD
14547}
14548
14549
554f62e9
RD
14550SWIGINTERN PyObject *_wrap_Process_Redirect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14551 PyObject *resultobj = 0;
14552 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14553 void *argp1 = 0 ;
14554 int res1 = 0 ;
14555 PyObject *swig_obj[1] ;
14556
14557 if (!args) SWIG_fail;
14558 swig_obj[0] = args;
14559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_Redirect" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14562 }
14563 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 (arg1)->Redirect();
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 resultobj = SWIG_Py_Void();
14571 return resultobj;
14572fail:
14573 return NULL;
d55e5bfc
RD
14574}
14575
14576
554f62e9
RD
14577SWIGINTERN PyObject *_wrap_Process_IsRedirected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14578 PyObject *resultobj = 0;
14579 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14580 bool result;
14581 void *argp1 = 0 ;
14582 int res1 = 0 ;
14583 PyObject *swig_obj[1] ;
14584
14585 if (!args) SWIG_fail;
14586 swig_obj[0] = args;
14587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14588 if (!SWIG_IsOK(res1)) {
14589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsRedirected" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14590 }
14591 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (bool)(arg1)->IsRedirected();
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 {
14599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14600 }
14601 return resultobj;
14602fail:
14603 return NULL;
d55e5bfc
RD
14604}
14605
14606
554f62e9
RD
14607SWIGINTERN PyObject *_wrap_Process_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14610 void *argp1 = 0 ;
14611 int res1 = 0 ;
14612 PyObject *swig_obj[1] ;
14613
14614 if (!args) SWIG_fail;
14615 swig_obj[0] = args;
14616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14617 if (!SWIG_IsOK(res1)) {
14618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_Detach" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14619 }
14620 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14621 {
14622 PyThreadState* __tstate = wxPyBeginAllowThreads();
14623 (arg1)->Detach();
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 resultobj = SWIG_Py_Void();
14628 return resultobj;
14629fail:
14630 return NULL;
d55e5bfc
RD
14631}
14632
14633
554f62e9
RD
14634SWIGINTERN PyObject *_wrap_Process_GetInputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14635 PyObject *resultobj = 0;
14636 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14637 wxInputStream *result = 0 ;
14638 void *argp1 = 0 ;
14639 int res1 = 0 ;
14640 PyObject *swig_obj[1] ;
14641
14642 if (!args) SWIG_fail;
14643 swig_obj[0] = args;
14644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14645 if (!SWIG_IsOK(res1)) {
14646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetInputStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14647 }
14648 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 result = (wxInputStream *)(arg1)->GetInputStream();
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 {
14656 wxPyInputStream * _ptr = NULL;
be9b1dca 14657
554f62e9
RD
14658 if (result) {
14659 _ptr = new wxPyInputStream(result);
be9b1dca 14660 }
554f62e9
RD
14661 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
14662 }
14663 return resultobj;
14664fail:
14665 return NULL;
be9b1dca
RD
14666}
14667
14668
554f62e9
RD
14669SWIGINTERN PyObject *_wrap_Process_GetErrorStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14670 PyObject *resultobj = 0;
14671 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14672 wxInputStream *result = 0 ;
14673 void *argp1 = 0 ;
14674 int res1 = 0 ;
14675 PyObject *swig_obj[1] ;
14676
14677 if (!args) SWIG_fail;
14678 swig_obj[0] = args;
14679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14680 if (!SWIG_IsOK(res1)) {
14681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetErrorStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14682 }
14683 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (wxInputStream *)(arg1)->GetErrorStream();
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 {
14691 wxPyInputStream * _ptr = NULL;
be9b1dca 14692
554f62e9
RD
14693 if (result) {
14694 _ptr = new wxPyInputStream(result);
be9b1dca 14695 }
554f62e9
RD
14696 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
14697 }
14698 return resultobj;
14699fail:
14700 return NULL;
be9b1dca
RD
14701}
14702
14703
554f62e9
RD
14704SWIGINTERN PyObject *_wrap_Process_GetOutputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14705 PyObject *resultobj = 0;
14706 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14707 wxOutputStream *result = 0 ;
14708 void *argp1 = 0 ;
14709 int res1 = 0 ;
14710 PyObject *swig_obj[1] ;
14711
14712 if (!args) SWIG_fail;
14713 swig_obj[0] = args;
14714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14715 if (!SWIG_IsOK(res1)) {
14716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_GetOutputStream" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14717 }
14718 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (wxOutputStream *)(arg1)->GetOutputStream();
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOutputStream, 0 | 0 );
14726 return resultobj;
14727fail:
14728 return NULL;
be9b1dca
RD
14729}
14730
14731
554f62e9
RD
14732SWIGINTERN PyObject *_wrap_Process_CloseOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14733 PyObject *resultobj = 0;
14734 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14735 void *argp1 = 0 ;
14736 int res1 = 0 ;
14737 PyObject *swig_obj[1] ;
14738
14739 if (!args) SWIG_fail;
14740 swig_obj[0] = args;
14741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14742 if (!SWIG_IsOK(res1)) {
14743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_CloseOutput" "', expected argument " "1"" of type '" "wxPyProcess *""'");
14744 }
14745 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 (arg1)->CloseOutput();
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 resultobj = SWIG_Py_Void();
14753 return resultobj;
14754fail:
14755 return NULL;
d55e5bfc
RD
14756}
14757
14758
554f62e9
RD
14759SWIGINTERN PyObject *_wrap_Process_IsInputOpened(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14760 PyObject *resultobj = 0;
14761 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14762 bool result;
14763 void *argp1 = 0 ;
14764 int res1 = 0 ;
14765 PyObject *swig_obj[1] ;
14766
14767 if (!args) SWIG_fail;
14768 swig_obj[0] = args;
14769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14770 if (!SWIG_IsOK(res1)) {
14771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsInputOpened" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14772 }
14773 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 {
14781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14782 }
14783 return resultobj;
14784fail:
14785 return NULL;
d55e5bfc
RD
14786}
14787
14788
554f62e9
RD
14789SWIGINTERN PyObject *_wrap_Process_IsInputAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14790 PyObject *resultobj = 0;
14791 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14792 bool result;
14793 void *argp1 = 0 ;
14794 int res1 = 0 ;
14795 PyObject *swig_obj[1] ;
14796
14797 if (!args) SWIG_fail;
14798 swig_obj[0] = args;
14799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14800 if (!SWIG_IsOK(res1)) {
14801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsInputAvailable" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14802 }
14803 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14804 {
14805 PyThreadState* __tstate = wxPyBeginAllowThreads();
14806 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 {
14811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14812 }
14813 return resultobj;
14814fail:
14815 return NULL;
d55e5bfc
RD
14816}
14817
14818
554f62e9
RD
14819SWIGINTERN PyObject *_wrap_Process_IsErrorAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14820 PyObject *resultobj = 0;
14821 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
14822 bool result;
14823 void *argp1 = 0 ;
14824 int res1 = 0 ;
14825 PyObject *swig_obj[1] ;
14826
14827 if (!args) SWIG_fail;
14828 swig_obj[0] = args;
14829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyProcess, 0 | 0 );
14830 if (!SWIG_IsOK(res1)) {
14831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Process_IsErrorAvailable" "', expected argument " "1"" of type '" "wxPyProcess const *""'");
14832 }
14833 arg1 = reinterpret_cast< wxPyProcess * >(argp1);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 {
14841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14842 }
14843 return resultobj;
14844fail:
14845 return NULL;
14846}
14847
14848
14849SWIGINTERN PyObject *Process_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14850 PyObject *obj;
14851 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14852 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyProcess, SWIG_NewClientData(obj));
14853 return SWIG_Py_Void();
14854}
14855
14856SWIGINTERN PyObject *Process_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14857 return SWIG_Python_InitShadowInstance(args);
14858}
14859
14860SWIGINTERN PyObject *_wrap_new_ProcessEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj = 0;
14862 int arg1 = (int) 0 ;
14863 int arg2 = (int) 0 ;
14864 int arg3 = (int) 0 ;
14865 wxProcessEvent *result = 0 ;
14866 int val1 ;
14867 int ecode1 = 0 ;
14868 int val2 ;
14869 int ecode2 = 0 ;
14870 int val3 ;
14871 int ecode3 = 0 ;
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 PyObject * obj2 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14880 if (obj0) {
14881 ecode1 = SWIG_AsVal_int(obj0, &val1);
14882 if (!SWIG_IsOK(ecode1)) {
14883 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ProcessEvent" "', expected argument " "1"" of type '" "int""'");
14884 }
14885 arg1 = static_cast< int >(val1);
14886 }
14887 if (obj1) {
14888 ecode2 = SWIG_AsVal_int(obj1, &val2);
14889 if (!SWIG_IsOK(ecode2)) {
14890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ProcessEvent" "', expected argument " "2"" of type '" "int""'");
14891 }
14892 arg2 = static_cast< int >(val2);
14893 }
14894 if (obj2) {
14895 ecode3 = SWIG_AsVal_int(obj2, &val3);
14896 if (!SWIG_IsOK(ecode3)) {
14897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProcessEvent" "', expected argument " "3"" of type '" "int""'");
14898 }
14899 arg3 = static_cast< int >(val3);
14900 }
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
14904 wxPyEndAllowThreads(__tstate);
14905 if (PyErr_Occurred()) SWIG_fail;
14906 }
14907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProcessEvent, SWIG_POINTER_NEW | 0 );
14908 return resultobj;
14909fail:
14910 return NULL;
d55e5bfc
RD
14911}
14912
14913
554f62e9
RD
14914SWIGINTERN PyObject *_wrap_ProcessEvent_GetPid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14915 PyObject *resultobj = 0;
14916 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14917 int result;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 PyObject *swig_obj[1] ;
14921
14922 if (!args) SWIG_fail;
14923 swig_obj[0] = args;
14924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_GetPid" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14927 }
14928 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (int)(arg1)->GetPid();
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 resultobj = SWIG_From_int(static_cast< int >(result));
14936 return resultobj;
14937fail:
14938 return NULL;
d55e5bfc
RD
14939}
14940
14941
554f62e9
RD
14942SWIGINTERN PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14943 PyObject *resultobj = 0;
14944 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14945 int result;
14946 void *argp1 = 0 ;
14947 int res1 = 0 ;
14948 PyObject *swig_obj[1] ;
14949
14950 if (!args) SWIG_fail;
14951 swig_obj[0] = args;
14952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14953 if (!SWIG_IsOK(res1)) {
14954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_GetExitCode" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14955 }
14956 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14957 {
14958 PyThreadState* __tstate = wxPyBeginAllowThreads();
14959 result = (int)(arg1)->GetExitCode();
14960 wxPyEndAllowThreads(__tstate);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 resultobj = SWIG_From_int(static_cast< int >(result));
14964 return resultobj;
14965fail:
14966 return NULL;
14967}
14968
14969
14970SWIGINTERN PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14971 PyObject *resultobj = 0;
14972 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
14973 int arg2 ;
14974 void *argp1 = 0 ;
14975 int res1 = 0 ;
14976 int val2 ;
14977 int ecode2 = 0 ;
14978 PyObject *swig_obj[2] ;
14979
14980 if (!SWIG_Python_UnpackTuple(args,"ProcessEvent_m_pid_set",2,2,swig_obj)) SWIG_fail;
14981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
14982 if (!SWIG_IsOK(res1)) {
14983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_pid_set" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
14984 }
14985 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
14986 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14987 if (!SWIG_IsOK(ecode2)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProcessEvent_m_pid_set" "', expected argument " "2"" of type '" "int""'");
14989 }
14990 arg2 = static_cast< int >(val2);
14991 if (arg1) (arg1)->m_pid = arg2;
14992
14993 resultobj = SWIG_Py_Void();
14994 return resultobj;
14995fail:
14996 return NULL;
d55e5bfc
RD
14997}
14998
14999
554f62e9
RD
15000SWIGINTERN PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15001 PyObject *resultobj = 0;
15002 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
15003 int result;
15004 void *argp1 = 0 ;
15005 int res1 = 0 ;
15006 PyObject *swig_obj[1] ;
15007
15008 if (!args) SWIG_fail;
15009 swig_obj[0] = args;
15010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_pid_get" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
15013 }
15014 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
15015 result = (int) ((arg1)->m_pid);
15016 resultobj = SWIG_From_int(static_cast< int >(result));
15017 return resultobj;
15018fail:
15019 return NULL;
15020}
15021
15022
15023SWIGINTERN PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15024 PyObject *resultobj = 0;
15025 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
15026 int arg2 ;
15027 void *argp1 = 0 ;
15028 int res1 = 0 ;
15029 int val2 ;
15030 int ecode2 = 0 ;
15031 PyObject *swig_obj[2] ;
15032
15033 if (!SWIG_Python_UnpackTuple(args,"ProcessEvent_m_exitcode_set",2,2,swig_obj)) SWIG_fail;
15034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
15035 if (!SWIG_IsOK(res1)) {
15036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_exitcode_set" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
15037 }
15038 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
15039 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15040 if (!SWIG_IsOK(ecode2)) {
15041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProcessEvent_m_exitcode_set" "', expected argument " "2"" of type '" "int""'");
15042 }
15043 arg2 = static_cast< int >(val2);
15044 if (arg1) (arg1)->m_exitcode = arg2;
15045
15046 resultobj = SWIG_Py_Void();
15047 return resultobj;
15048fail:
15049 return NULL;
d55e5bfc
RD
15050}
15051
15052
554f62e9
RD
15053SWIGINTERN PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15054 PyObject *resultobj = 0;
15055 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
15056 int result;
15057 void *argp1 = 0 ;
15058 int res1 = 0 ;
15059 PyObject *swig_obj[1] ;
15060
15061 if (!args) SWIG_fail;
15062 swig_obj[0] = args;
15063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProcessEvent, 0 | 0 );
15064 if (!SWIG_IsOK(res1)) {
15065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProcessEvent_m_exitcode_get" "', expected argument " "1"" of type '" "wxProcessEvent *""'");
15066 }
15067 arg1 = reinterpret_cast< wxProcessEvent * >(argp1);
15068 result = (int) ((arg1)->m_exitcode);
15069 resultobj = SWIG_From_int(static_cast< int >(result));
15070 return resultobj;
15071fail:
15072 return NULL;
15073}
15074
15075
15076SWIGINTERN PyObject *ProcessEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15077 PyObject *obj;
15078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15079 SWIG_TypeNewClientData(SWIGTYPE_p_wxProcessEvent, SWIG_NewClientData(obj));
15080 return SWIG_Py_Void();
15081}
15082
15083SWIGINTERN PyObject *ProcessEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15084 return SWIG_Python_InitShadowInstance(args);
15085}
15086
15087SWIGINTERN PyObject *_wrap_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj = 0;
15089 wxString *arg1 = 0 ;
15090 int arg2 = (int) wxEXEC_ASYNC ;
15091 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
15092 long result;
15093 bool temp1 = false ;
15094 int val2 ;
15095 int ecode2 = 0 ;
15096 void *argp3 = 0 ;
15097 int res3 = 0 ;
15098 PyObject * obj0 = 0 ;
15099 PyObject * obj1 = 0 ;
15100 PyObject * obj2 = 0 ;
15101 char * kwnames[] = {
15102 (char *) "command",(char *) "flags",(char *) "process", NULL
15103 };
15104
15105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15106 {
15107 arg1 = wxString_in_helper(obj0);
15108 if (arg1 == NULL) SWIG_fail;
15109 temp1 = true;
15110 }
15111 if (obj1) {
15112 ecode2 = SWIG_AsVal_int(obj1, &val2);
15113 if (!SWIG_IsOK(ecode2)) {
15114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Execute" "', expected argument " "2"" of type '" "int""'");
15115 }
15116 arg2 = static_cast< int >(val2);
15117 }
15118 if (obj2) {
15119 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyProcess, 0 | 0 );
15120 if (!SWIG_IsOK(res3)) {
15121 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Execute" "', expected argument " "3"" of type '" "wxPyProcess *""'");
d55e5bfc 15122 }
554f62e9
RD
15123 arg3 = reinterpret_cast< wxPyProcess * >(argp3);
15124 }
15125 {
15126 if (!wxPyCheckForApp()) SWIG_fail;
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_From_long(static_cast< long >(result));
15133 {
15134 if (temp1)
15135 delete arg1;
15136 }
15137 return resultobj;
15138fail:
15139 {
15140 if (temp1)
15141 delete arg1;
15142 }
15143 return NULL;
15144}
15145
15146
15147SWIGINTERN PyObject *_wrap_Kill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15148 PyObject *resultobj = 0;
15149 long arg1 ;
15150 wxSignal arg2 = (wxSignal) wxSIGTERM ;
15151 wxKillError *arg3 = (wxKillError *) 0 ;
15152 int arg4 = (int) wxKILL_NOCHILDREN ;
15153 int result;
15154 long val1 ;
15155 int ecode1 = 0 ;
15156 int val2 ;
15157 int ecode2 = 0 ;
15158 wxKillError temp3 ;
15159 int val4 ;
15160 int ecode4 = 0 ;
15161 PyObject * obj0 = 0 ;
15162 PyObject * obj1 = 0 ;
15163 PyObject * obj2 = 0 ;
15164 char * kwnames[] = {
15165 (char *) "pid",(char *) "sig",(char *) "flags", NULL
15166 };
15167
15168 {
15169 arg3 = &temp3;
15170 }
15171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15172 ecode1 = SWIG_AsVal_long(obj0, &val1);
15173 if (!SWIG_IsOK(ecode1)) {
15174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Kill" "', expected argument " "1"" of type '" "long""'");
15175 }
15176 arg1 = static_cast< long >(val1);
15177 if (obj1) {
15178 ecode2 = SWIG_AsVal_int(obj1, &val2);
15179 if (!SWIG_IsOK(ecode2)) {
15180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Kill" "', expected argument " "2"" of type '" "wxSignal""'");
15181 }
15182 arg2 = static_cast< wxSignal >(val2);
15183 }
15184 if (obj2) {
15185 ecode4 = SWIG_AsVal_int(obj2, &val4);
15186 if (!SWIG_IsOK(ecode4)) {
15187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Kill" "', expected argument " "4"" of type '" "int""'");
15188 }
15189 arg4 = static_cast< int >(val4);
15190 }
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (int)wxKill(arg1,arg2,arg3,arg4);
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 resultobj = SWIG_From_int(static_cast< int >(result));
15198 {
15199 PyObject* o;
15200 o = PyInt_FromLong((long) (*arg3));
d55e5bfc 15201
554f62e9
RD
15202
15203
15204 resultobj = SWIG_Python_AppendOutput(resultobj, o);
15205
15206 }
15207 return resultobj;
15208fail:
15209 return NULL;
d55e5bfc
RD
15210}
15211
15212
554f62e9
RD
15213SWIGINTERN PyObject *_wrap_new_Joystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj = 0;
15215 int arg1 = (int) wxJOYSTICK1 ;
15216 wxJoystick *result = 0 ;
15217 int val1 ;
15218 int ecode1 = 0 ;
15219 PyObject * obj0 = 0 ;
15220 char * kwnames[] = {
15221 (char *) "joystick", NULL
15222 };
15223
15224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) SWIG_fail;
15225 if (obj0) {
15226 ecode1 = SWIG_AsVal_int(obj0, &val1);
15227 if (!SWIG_IsOK(ecode1)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Joystick" "', expected argument " "1"" of type '" "int""'");
15229 }
15230 arg1 = static_cast< int >(val1);
15231 }
15232 {
15233 if (!wxPyCheckForApp()) SWIG_fail;
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (wxJoystick *)new wxJoystick(arg1);
15236 wxPyEndAllowThreads(__tstate);
15237 if (PyErr_Occurred()) SWIG_fail;
15238 }
15239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJoystick, SWIG_POINTER_NEW | 0 );
15240 return resultobj;
15241fail:
15242 return NULL;
d55e5bfc
RD
15243}
15244
15245
554f62e9
RD
15246SWIGINTERN PyObject *_wrap_delete_Joystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15247 PyObject *resultobj = 0;
15248 wxJoystick *arg1 = (wxJoystick *) 0 ;
15249 void *argp1 = 0 ;
15250 int res1 = 0 ;
15251 PyObject *swig_obj[1] ;
15252
15253 if (!args) SWIG_fail;
15254 swig_obj[0] = args;
15255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, SWIG_POINTER_DISOWN | 0 );
15256 if (!SWIG_IsOK(res1)) {
15257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Joystick" "', expected argument " "1"" of type '" "wxJoystick *""'");
15258 }
15259 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 delete arg1;
d55e5bfc 15263
554f62e9
RD
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_Py_Void();
15268 return resultobj;
15269fail:
15270 return NULL;
d55e5bfc
RD
15271}
15272
15273
554f62e9
RD
15274SWIGINTERN PyObject *_wrap_Joystick_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15275 PyObject *resultobj = 0;
15276 wxJoystick *arg1 = (wxJoystick *) 0 ;
15277 wxPoint result;
15278 void *argp1 = 0 ;
15279 int res1 = 0 ;
15280 PyObject *swig_obj[1] ;
15281
15282 if (!args) SWIG_fail;
15283 swig_obj[0] = args;
15284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15285 if (!SWIG_IsOK(res1)) {
15286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15287 }
15288 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15289 {
15290 PyThreadState* __tstate = wxPyBeginAllowThreads();
15291 result = (arg1)->GetPosition();
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
15296 return resultobj;
15297fail:
15298 return NULL;
d55e5bfc
RD
15299}
15300
15301
554f62e9
RD
15302SWIGINTERN PyObject *_wrap_Joystick_GetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15303 PyObject *resultobj = 0;
15304 wxJoystick *arg1 = (wxJoystick *) 0 ;
15305 int result;
15306 void *argp1 = 0 ;
15307 int res1 = 0 ;
15308 PyObject *swig_obj[1] ;
15309
15310 if (!args) SWIG_fail;
15311 swig_obj[0] = args;
15312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15313 if (!SWIG_IsOK(res1)) {
15314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15315 }
15316 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (int)(arg1)->GetZPosition();
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 resultobj = SWIG_From_int(static_cast< int >(result));
15324 return resultobj;
15325fail:
15326 return NULL;
f78cc896
RD
15327}
15328
15329
554f62e9
RD
15330SWIGINTERN PyObject *_wrap_Joystick_GetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 PyObject *resultobj = 0;
15332 wxJoystick *arg1 = (wxJoystick *) 0 ;
15333 int result;
15334 void *argp1 = 0 ;
15335 int res1 = 0 ;
15336 PyObject *swig_obj[1] ;
15337
15338 if (!args) SWIG_fail;
15339 swig_obj[0] = args;
15340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15341 if (!SWIG_IsOK(res1)) {
15342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetButtonState" "', expected argument " "1"" of type '" "wxJoystick *""'");
15343 }
15344 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15345 {
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 result = (int)(arg1)->GetButtonState();
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_From_int(static_cast< int >(result));
15352 return resultobj;
15353fail:
15354 return NULL;
d55e5bfc
RD
15355}
15356
15357
554f62e9
RD
15358SWIGINTERN PyObject *_wrap_Joystick_GetPOVPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15359 PyObject *resultobj = 0;
15360 wxJoystick *arg1 = (wxJoystick *) 0 ;
15361 int result;
15362 void *argp1 = 0 ;
15363 int res1 = 0 ;
15364 PyObject *swig_obj[1] ;
15365
15366 if (!args) SWIG_fail;
15367 swig_obj[0] = args;
15368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15369 if (!SWIG_IsOK(res1)) {
15370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPOVPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15371 }
15372 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 result = (int)(arg1)->GetPOVPosition();
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_From_int(static_cast< int >(result));
15380 return resultobj;
15381fail:
15382 return NULL;
d55e5bfc
RD
15383}
15384
15385
554f62e9
RD
15386SWIGINTERN PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15387 PyObject *resultobj = 0;
15388 wxJoystick *arg1 = (wxJoystick *) 0 ;
15389 int result;
15390 void *argp1 = 0 ;
15391 int res1 = 0 ;
15392 PyObject *swig_obj[1] ;
15393
15394 if (!args) SWIG_fail;
15395 swig_obj[0] = args;
15396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15397 if (!SWIG_IsOK(res1)) {
15398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPOVCTSPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15399 }
15400 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (int)(arg1)->GetPOVCTSPosition();
15404 wxPyEndAllowThreads(__tstate);
15405 if (PyErr_Occurred()) SWIG_fail;
15406 }
15407 resultobj = SWIG_From_int(static_cast< int >(result));
15408 return resultobj;
15409fail:
15410 return NULL;
d55e5bfc
RD
15411}
15412
15413
554f62e9
RD
15414SWIGINTERN PyObject *_wrap_Joystick_GetRudderPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15415 PyObject *resultobj = 0;
15416 wxJoystick *arg1 = (wxJoystick *) 0 ;
15417 int result;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 PyObject *swig_obj[1] ;
15421
15422 if (!args) SWIG_fail;
15423 swig_obj[0] = args;
15424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15427 }
15428 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (int)(arg1)->GetRudderPosition();
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = SWIG_From_int(static_cast< int >(result));
15436 return resultobj;
15437fail:
15438 return NULL;
d55e5bfc
RD
15439}
15440
15441
554f62e9
RD
15442SWIGINTERN PyObject *_wrap_Joystick_GetUPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15443 PyObject *resultobj = 0;
15444 wxJoystick *arg1 = (wxJoystick *) 0 ;
15445 int result;
15446 void *argp1 = 0 ;
15447 int res1 = 0 ;
15448 PyObject *swig_obj[1] ;
15449
15450 if (!args) SWIG_fail;
15451 swig_obj[0] = args;
15452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15453 if (!SWIG_IsOK(res1)) {
15454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15455 }
15456 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (int)(arg1)->GetUPosition();
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 resultobj = SWIG_From_int(static_cast< int >(result));
15464 return resultobj;
15465fail:
15466 return NULL;
d55e5bfc
RD
15467}
15468
15469
554f62e9
RD
15470SWIGINTERN PyObject *_wrap_Joystick_GetVPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15471 PyObject *resultobj = 0;
15472 wxJoystick *arg1 = (wxJoystick *) 0 ;
15473 int result;
15474 void *argp1 = 0 ;
15475 int res1 = 0 ;
15476 PyObject *swig_obj[1] ;
15477
15478 if (!args) SWIG_fail;
15479 swig_obj[0] = args;
15480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15481 if (!SWIG_IsOK(res1)) {
15482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVPosition" "', expected argument " "1"" of type '" "wxJoystick *""'");
15483 }
15484 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 result = (int)(arg1)->GetVPosition();
15488 wxPyEndAllowThreads(__tstate);
15489 if (PyErr_Occurred()) SWIG_fail;
15490 }
15491 resultobj = SWIG_From_int(static_cast< int >(result));
15492 return resultobj;
15493fail:
15494 return NULL;
d55e5bfc
RD
15495}
15496
15497
554f62e9
RD
15498SWIGINTERN PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15499 PyObject *resultobj = 0;
15500 wxJoystick *arg1 = (wxJoystick *) 0 ;
15501 int result;
15502 void *argp1 = 0 ;
15503 int res1 = 0 ;
15504 PyObject *swig_obj[1] ;
15505
15506 if (!args) SWIG_fail;
15507 swig_obj[0] = args;
15508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15509 if (!SWIG_IsOK(res1)) {
15510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMovementThreshold" "', expected argument " "1"" of type '" "wxJoystick *""'");
15511 }
15512 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15513 {
15514 PyThreadState* __tstate = wxPyBeginAllowThreads();
15515 result = (int)(arg1)->GetMovementThreshold();
15516 wxPyEndAllowThreads(__tstate);
15517 if (PyErr_Occurred()) SWIG_fail;
15518 }
15519 resultobj = SWIG_From_int(static_cast< int >(result));
15520 return resultobj;
15521fail:
15522 return NULL;
15523}
15524
15525
15526SWIGINTERN PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj = 0;
15528 wxJoystick *arg1 = (wxJoystick *) 0 ;
15529 int arg2 ;
15530 void *argp1 = 0 ;
15531 int res1 = 0 ;
15532 int val2 ;
15533 int ecode2 = 0 ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 char * kwnames[] = {
15537 (char *) "self",(char *) "threshold", NULL
15538 };
15539
15540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
15541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15542 if (!SWIG_IsOK(res1)) {
15543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_SetMovementThreshold" "', expected argument " "1"" of type '" "wxJoystick *""'");
15544 }
15545 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15546 ecode2 = SWIG_AsVal_int(obj1, &val2);
15547 if (!SWIG_IsOK(ecode2)) {
15548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Joystick_SetMovementThreshold" "', expected argument " "2"" of type '" "int""'");
15549 }
15550 arg2 = static_cast< int >(val2);
15551 {
15552 PyThreadState* __tstate = wxPyBeginAllowThreads();
15553 (arg1)->SetMovementThreshold(arg2);
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 resultobj = SWIG_Py_Void();
15558 return resultobj;
15559fail:
15560 return NULL;
d55e5bfc 15561}
554f62e9
RD
15562
15563
15564SWIGINTERN PyObject *_wrap_Joystick_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565 PyObject *resultobj = 0;
15566 wxJoystick *arg1 = (wxJoystick *) 0 ;
15567 bool result;
15568 void *argp1 = 0 ;
15569 int res1 = 0 ;
15570 PyObject *swig_obj[1] ;
15571
15572 if (!args) SWIG_fail;
15573 swig_obj[0] = args;
15574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15575 if (!SWIG_IsOK(res1)) {
15576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_IsOk" "', expected argument " "1"" of type '" "wxJoystick *""'");
15577 }
15578 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = (bool)(arg1)->IsOk();
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 {
15586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15587 }
15588 return resultobj;
15589fail:
15590 return NULL;
d55e5bfc
RD
15591}
15592
15593
554f62e9
RD
15594SWIGINTERN PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15595 PyObject *resultobj = 0;
15596 wxJoystick *arg1 = (wxJoystick *) 0 ;
15597 int result;
15598 void *argp1 = 0 ;
15599 int res1 = 0 ;
15600 PyObject *swig_obj[1] ;
15601
15602 if (!args) SWIG_fail;
15603 swig_obj[0] = args;
15604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15605 if (!SWIG_IsOK(res1)) {
15606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberJoysticks" "', expected argument " "1"" of type '" "wxJoystick *""'");
15607 }
15608 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 result = (int)(arg1)->GetNumberJoysticks();
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_From_int(static_cast< int >(result));
15616 return resultobj;
15617fail:
15618 return NULL;
d55e5bfc
RD
15619}
15620
15621
554f62e9
RD
15622SWIGINTERN PyObject *_wrap_Joystick_GetManufacturerId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15623 PyObject *resultobj = 0;
15624 wxJoystick *arg1 = (wxJoystick *) 0 ;
15625 int result;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 PyObject *swig_obj[1] ;
15629
15630 if (!args) SWIG_fail;
15631 swig_obj[0] = args;
15632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetManufacturerId" "', expected argument " "1"" of type '" "wxJoystick *""'");
15635 }
15636 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (int)(arg1)->GetManufacturerId();
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 resultobj = SWIG_From_int(static_cast< int >(result));
15644 return resultobj;
15645fail:
15646 return NULL;
d55e5bfc
RD
15647}
15648
15649
554f62e9
RD
15650SWIGINTERN PyObject *_wrap_Joystick_GetProductId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15651 PyObject *resultobj = 0;
15652 wxJoystick *arg1 = (wxJoystick *) 0 ;
15653 int result;
15654 void *argp1 = 0 ;
15655 int res1 = 0 ;
15656 PyObject *swig_obj[1] ;
15657
15658 if (!args) SWIG_fail;
15659 swig_obj[0] = args;
15660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15661 if (!SWIG_IsOK(res1)) {
15662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetProductId" "', expected argument " "1"" of type '" "wxJoystick *""'");
15663 }
15664 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15665 {
15666 PyThreadState* __tstate = wxPyBeginAllowThreads();
15667 result = (int)(arg1)->GetProductId();
15668 wxPyEndAllowThreads(__tstate);
15669 if (PyErr_Occurred()) SWIG_fail;
15670 }
15671 resultobj = SWIG_From_int(static_cast< int >(result));
15672 return resultobj;
15673fail:
15674 return NULL;
d55e5bfc
RD
15675}
15676
15677
554f62e9
RD
15678SWIGINTERN PyObject *_wrap_Joystick_GetProductName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15679 PyObject *resultobj = 0;
15680 wxJoystick *arg1 = (wxJoystick *) 0 ;
15681 wxString result;
15682 void *argp1 = 0 ;
15683 int res1 = 0 ;
15684 PyObject *swig_obj[1] ;
15685
15686 if (!args) SWIG_fail;
15687 swig_obj[0] = args;
15688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15689 if (!SWIG_IsOK(res1)) {
15690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetProductName" "', expected argument " "1"" of type '" "wxJoystick *""'");
15691 }
15692 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 result = (arg1)->GetProductName();
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 {
15700#if wxUSE_UNICODE
15701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15702#else
15703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15704#endif
15705 }
15706 return resultobj;
15707fail:
15708 return NULL;
d55e5bfc
RD
15709}
15710
15711
554f62e9
RD
15712SWIGINTERN PyObject *_wrap_Joystick_GetXMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxJoystick *arg1 = (wxJoystick *) 0 ;
15715 int result;
15716 void *argp1 = 0 ;
15717 int res1 = 0 ;
15718 PyObject *swig_obj[1] ;
15719
15720 if (!args) SWIG_fail;
15721 swig_obj[0] = args;
15722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetXMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15725 }
15726 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (int)(arg1)->GetXMin();
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_From_int(static_cast< int >(result));
15734 return resultobj;
15735fail:
15736 return NULL;
d55e5bfc
RD
15737}
15738
15739
554f62e9
RD
15740SWIGINTERN PyObject *_wrap_Joystick_GetYMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 wxJoystick *arg1 = (wxJoystick *) 0 ;
15743 int result;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 PyObject *swig_obj[1] ;
15747
15748 if (!args) SWIG_fail;
15749 swig_obj[0] = args;
15750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15751 if (!SWIG_IsOK(res1)) {
15752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetYMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15753 }
15754 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (int)(arg1)->GetYMin();
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 resultobj = SWIG_From_int(static_cast< int >(result));
15762 return resultobj;
15763fail:
15764 return NULL;
d55e5bfc
RD
15765}
15766
15767
554f62e9
RD
15768SWIGINTERN PyObject *_wrap_Joystick_GetZMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15769 PyObject *resultobj = 0;
15770 wxJoystick *arg1 = (wxJoystick *) 0 ;
15771 int result;
15772 void *argp1 = 0 ;
15773 int res1 = 0 ;
15774 PyObject *swig_obj[1] ;
15775
15776 if (!args) SWIG_fail;
15777 swig_obj[0] = args;
15778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15779 if (!SWIG_IsOK(res1)) {
15780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
15781 }
15782 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (int)(arg1)->GetZMin();
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 resultobj = SWIG_From_int(static_cast< int >(result));
15790 return resultobj;
15791fail:
15792 return NULL;
d55e5bfc
RD
15793}
15794
15795
554f62e9
RD
15796SWIGINTERN PyObject *_wrap_Joystick_GetXMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 PyObject *resultobj = 0;
15798 wxJoystick *arg1 = (wxJoystick *) 0 ;
15799 int result;
15800 void *argp1 = 0 ;
15801 int res1 = 0 ;
15802 PyObject *swig_obj[1] ;
15803
15804 if (!args) SWIG_fail;
15805 swig_obj[0] = args;
15806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15807 if (!SWIG_IsOK(res1)) {
15808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetXMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15809 }
15810 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15811 {
15812 PyThreadState* __tstate = wxPyBeginAllowThreads();
15813 result = (int)(arg1)->GetXMax();
15814 wxPyEndAllowThreads(__tstate);
15815 if (PyErr_Occurred()) SWIG_fail;
15816 }
15817 resultobj = SWIG_From_int(static_cast< int >(result));
15818 return resultobj;
15819fail:
15820 return NULL;
d55e5bfc
RD
15821}
15822
15823
554f62e9
RD
15824SWIGINTERN PyObject *_wrap_Joystick_GetYMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15825 PyObject *resultobj = 0;
15826 wxJoystick *arg1 = (wxJoystick *) 0 ;
15827 int result;
15828 void *argp1 = 0 ;
15829 int res1 = 0 ;
15830 PyObject *swig_obj[1] ;
15831
15832 if (!args) SWIG_fail;
15833 swig_obj[0] = args;
15834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15835 if (!SWIG_IsOK(res1)) {
15836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetYMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15837 }
15838 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 result = (int)(arg1)->GetYMax();
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
15845 resultobj = SWIG_From_int(static_cast< int >(result));
15846 return resultobj;
15847fail:
15848 return NULL;
d55e5bfc
RD
15849}
15850
15851
554f62e9
RD
15852SWIGINTERN PyObject *_wrap_Joystick_GetZMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15853 PyObject *resultobj = 0;
15854 wxJoystick *arg1 = (wxJoystick *) 0 ;
15855 int result;
15856 void *argp1 = 0 ;
15857 int res1 = 0 ;
15858 PyObject *swig_obj[1] ;
15859
15860 if (!args) SWIG_fail;
15861 swig_obj[0] = args;
15862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15863 if (!SWIG_IsOK(res1)) {
15864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetZMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
15865 }
15866 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15867 {
15868 PyThreadState* __tstate = wxPyBeginAllowThreads();
15869 result = (int)(arg1)->GetZMax();
15870 wxPyEndAllowThreads(__tstate);
15871 if (PyErr_Occurred()) SWIG_fail;
15872 }
15873 resultobj = SWIG_From_int(static_cast< int >(result));
15874 return resultobj;
15875fail:
15876 return NULL;
d55e5bfc
RD
15877}
15878
15879
554f62e9
RD
15880SWIGINTERN PyObject *_wrap_Joystick_GetNumberButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15881 PyObject *resultobj = 0;
15882 wxJoystick *arg1 = (wxJoystick *) 0 ;
15883 int result;
15884 void *argp1 = 0 ;
15885 int res1 = 0 ;
15886 PyObject *swig_obj[1] ;
15887
15888 if (!args) SWIG_fail;
15889 swig_obj[0] = args;
15890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15891 if (!SWIG_IsOK(res1)) {
15892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberButtons" "', expected argument " "1"" of type '" "wxJoystick *""'");
15893 }
15894 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (int)(arg1)->GetNumberButtons();
15898 wxPyEndAllowThreads(__tstate);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 resultobj = SWIG_From_int(static_cast< int >(result));
15902 return resultobj;
15903fail:
15904 return NULL;
d55e5bfc
RD
15905}
15906
15907
554f62e9
RD
15908SWIGINTERN PyObject *_wrap_Joystick_GetNumberAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15909 PyObject *resultobj = 0;
15910 wxJoystick *arg1 = (wxJoystick *) 0 ;
15911 int result;
15912 void *argp1 = 0 ;
15913 int res1 = 0 ;
15914 PyObject *swig_obj[1] ;
15915
15916 if (!args) SWIG_fail;
15917 swig_obj[0] = args;
15918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15919 if (!SWIG_IsOK(res1)) {
15920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetNumberAxes" "', expected argument " "1"" of type '" "wxJoystick *""'");
15921 }
15922 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (int)(arg1)->GetNumberAxes();
15926 wxPyEndAllowThreads(__tstate);
15927 if (PyErr_Occurred()) SWIG_fail;
15928 }
15929 resultobj = SWIG_From_int(static_cast< int >(result));
15930 return resultobj;
15931fail:
15932 return NULL;
d55e5bfc
RD
15933}
15934
15935
554f62e9
RD
15936SWIGINTERN PyObject *_wrap_Joystick_GetMaxButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15937 PyObject *resultobj = 0;
15938 wxJoystick *arg1 = (wxJoystick *) 0 ;
15939 int result;
15940 void *argp1 = 0 ;
15941 int res1 = 0 ;
15942 PyObject *swig_obj[1] ;
15943
15944 if (!args) SWIG_fail;
15945 swig_obj[0] = args;
15946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15947 if (!SWIG_IsOK(res1)) {
15948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMaxButtons" "', expected argument " "1"" of type '" "wxJoystick *""'");
15949 }
15950 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (int)(arg1)->GetMaxButtons();
15954 wxPyEndAllowThreads(__tstate);
15955 if (PyErr_Occurred()) SWIG_fail;
15956 }
15957 resultobj = SWIG_From_int(static_cast< int >(result));
15958 return resultobj;
15959fail:
15960 return NULL;
d55e5bfc
RD
15961}
15962
15963
554f62e9
RD
15964SWIGINTERN PyObject *_wrap_Joystick_GetMaxAxes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15965 PyObject *resultobj = 0;
15966 wxJoystick *arg1 = (wxJoystick *) 0 ;
15967 int result;
15968 void *argp1 = 0 ;
15969 int res1 = 0 ;
15970 PyObject *swig_obj[1] ;
15971
15972 if (!args) SWIG_fail;
15973 swig_obj[0] = args;
15974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
15975 if (!SWIG_IsOK(res1)) {
15976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetMaxAxes" "', expected argument " "1"" of type '" "wxJoystick *""'");
15977 }
15978 arg1 = reinterpret_cast< wxJoystick * >(argp1);
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (int)(arg1)->GetMaxAxes();
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_From_int(static_cast< int >(result));
15986 return resultobj;
15987fail:
15988 return NULL;
d55e5bfc
RD
15989}
15990
15991
554f62e9
RD
15992SWIGINTERN PyObject *_wrap_Joystick_GetPollingMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15993 PyObject *resultobj = 0;
15994 wxJoystick *arg1 = (wxJoystick *) 0 ;
15995 int result;
15996 void *argp1 = 0 ;
15997 int res1 = 0 ;
15998 PyObject *swig_obj[1] ;
15999
16000 if (!args) SWIG_fail;
16001 swig_obj[0] = args;
16002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16003 if (!SWIG_IsOK(res1)) {
16004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPollingMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16005 }
16006 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 result = (int)(arg1)->GetPollingMin();
16010 wxPyEndAllowThreads(__tstate);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 }
16013 resultobj = SWIG_From_int(static_cast< int >(result));
16014 return resultobj;
16015fail:
16016 return NULL;
d55e5bfc
RD
16017}
16018
16019
554f62e9
RD
16020SWIGINTERN PyObject *_wrap_Joystick_GetPollingMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16021 PyObject *resultobj = 0;
16022 wxJoystick *arg1 = (wxJoystick *) 0 ;
16023 int result;
16024 void *argp1 = 0 ;
16025 int res1 = 0 ;
16026 PyObject *swig_obj[1] ;
16027
16028 if (!args) SWIG_fail;
16029 swig_obj[0] = args;
16030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16031 if (!SWIG_IsOK(res1)) {
16032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetPollingMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16033 }
16034 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16035 {
16036 PyThreadState* __tstate = wxPyBeginAllowThreads();
16037 result = (int)(arg1)->GetPollingMax();
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 resultobj = SWIG_From_int(static_cast< int >(result));
16042 return resultobj;
16043fail:
16044 return NULL;
d55e5bfc
RD
16045}
16046
16047
554f62e9
RD
16048SWIGINTERN PyObject *_wrap_Joystick_GetRudderMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16049 PyObject *resultobj = 0;
16050 wxJoystick *arg1 = (wxJoystick *) 0 ;
16051 int result;
16052 void *argp1 = 0 ;
16053 int res1 = 0 ;
16054 PyObject *swig_obj[1] ;
16055
16056 if (!args) SWIG_fail;
16057 swig_obj[0] = args;
16058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16059 if (!SWIG_IsOK(res1)) {
16060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16061 }
16062 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 result = (int)(arg1)->GetRudderMin();
16066 wxPyEndAllowThreads(__tstate);
16067 if (PyErr_Occurred()) SWIG_fail;
16068 }
16069 resultobj = SWIG_From_int(static_cast< int >(result));
16070 return resultobj;
16071fail:
16072 return NULL;
d55e5bfc
RD
16073}
16074
16075
554f62e9
RD
16076SWIGINTERN PyObject *_wrap_Joystick_GetRudderMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16077 PyObject *resultobj = 0;
16078 wxJoystick *arg1 = (wxJoystick *) 0 ;
16079 int result;
16080 void *argp1 = 0 ;
16081 int res1 = 0 ;
16082 PyObject *swig_obj[1] ;
16083
16084 if (!args) SWIG_fail;
16085 swig_obj[0] = args;
16086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16087 if (!SWIG_IsOK(res1)) {
16088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetRudderMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16089 }
16090 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16091 {
16092 PyThreadState* __tstate = wxPyBeginAllowThreads();
16093 result = (int)(arg1)->GetRudderMax();
16094 wxPyEndAllowThreads(__tstate);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 }
16097 resultobj = SWIG_From_int(static_cast< int >(result));
16098 return resultobj;
16099fail:
16100 return NULL;
d55e5bfc
RD
16101}
16102
16103
554f62e9
RD
16104SWIGINTERN PyObject *_wrap_Joystick_GetUMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16105 PyObject *resultobj = 0;
16106 wxJoystick *arg1 = (wxJoystick *) 0 ;
16107 int result;
16108 void *argp1 = 0 ;
16109 int res1 = 0 ;
16110 PyObject *swig_obj[1] ;
16111
16112 if (!args) SWIG_fail;
16113 swig_obj[0] = args;
16114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16115 if (!SWIG_IsOK(res1)) {
16116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16117 }
16118 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16119 {
16120 PyThreadState* __tstate = wxPyBeginAllowThreads();
16121 result = (int)(arg1)->GetUMin();
16122 wxPyEndAllowThreads(__tstate);
16123 if (PyErr_Occurred()) SWIG_fail;
16124 }
16125 resultobj = SWIG_From_int(static_cast< int >(result));
16126 return resultobj;
16127fail:
16128 return NULL;
d55e5bfc
RD
16129}
16130
16131
554f62e9
RD
16132SWIGINTERN PyObject *_wrap_Joystick_GetUMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16133 PyObject *resultobj = 0;
16134 wxJoystick *arg1 = (wxJoystick *) 0 ;
16135 int result;
16136 void *argp1 = 0 ;
16137 int res1 = 0 ;
16138 PyObject *swig_obj[1] ;
16139
16140 if (!args) SWIG_fail;
16141 swig_obj[0] = args;
16142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16143 if (!SWIG_IsOK(res1)) {
16144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetUMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16145 }
16146 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16147 {
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = (int)(arg1)->GetUMax();
16150 wxPyEndAllowThreads(__tstate);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 }
16153 resultobj = SWIG_From_int(static_cast< int >(result));
16154 return resultobj;
16155fail:
16156 return NULL;
d55e5bfc
RD
16157}
16158
16159
554f62e9
RD
16160SWIGINTERN PyObject *_wrap_Joystick_GetVMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16161 PyObject *resultobj = 0;
16162 wxJoystick *arg1 = (wxJoystick *) 0 ;
16163 int result;
16164 void *argp1 = 0 ;
16165 int res1 = 0 ;
16166 PyObject *swig_obj[1] ;
16167
16168 if (!args) SWIG_fail;
16169 swig_obj[0] = args;
16170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16171 if (!SWIG_IsOK(res1)) {
16172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVMin" "', expected argument " "1"" of type '" "wxJoystick *""'");
16173 }
16174 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (int)(arg1)->GetVMin();
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_From_int(static_cast< int >(result));
16182 return resultobj;
16183fail:
16184 return NULL;
d55e5bfc
RD
16185}
16186
16187
554f62e9
RD
16188SWIGINTERN PyObject *_wrap_Joystick_GetVMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16189 PyObject *resultobj = 0;
16190 wxJoystick *arg1 = (wxJoystick *) 0 ;
16191 int result;
16192 void *argp1 = 0 ;
16193 int res1 = 0 ;
16194 PyObject *swig_obj[1] ;
16195
16196 if (!args) SWIG_fail;
16197 swig_obj[0] = args;
16198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16199 if (!SWIG_IsOK(res1)) {
16200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_GetVMax" "', expected argument " "1"" of type '" "wxJoystick *""'");
16201 }
16202 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16203 {
16204 PyThreadState* __tstate = wxPyBeginAllowThreads();
16205 result = (int)(arg1)->GetVMax();
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 resultobj = SWIG_From_int(static_cast< int >(result));
16210 return resultobj;
16211fail:
16212 return NULL;
d55e5bfc
RD
16213}
16214
16215
554f62e9
RD
16216SWIGINTERN PyObject *_wrap_Joystick_HasRudder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16217 PyObject *resultobj = 0;
16218 wxJoystick *arg1 = (wxJoystick *) 0 ;
16219 bool result;
16220 void *argp1 = 0 ;
16221 int res1 = 0 ;
16222 PyObject *swig_obj[1] ;
16223
16224 if (!args) SWIG_fail;
16225 swig_obj[0] = args;
16226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16227 if (!SWIG_IsOK(res1)) {
16228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasRudder" "', expected argument " "1"" of type '" "wxJoystick *""'");
16229 }
16230 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 result = (bool)(arg1)->HasRudder();
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 {
16238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16239 }
16240 return resultobj;
16241fail:
16242 return NULL;
d55e5bfc
RD
16243}
16244
16245
554f62e9
RD
16246SWIGINTERN PyObject *_wrap_Joystick_HasZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16247 PyObject *resultobj = 0;
16248 wxJoystick *arg1 = (wxJoystick *) 0 ;
16249 bool result;
16250 void *argp1 = 0 ;
16251 int res1 = 0 ;
16252 PyObject *swig_obj[1] ;
16253
16254 if (!args) SWIG_fail;
16255 swig_obj[0] = args;
16256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16257 if (!SWIG_IsOK(res1)) {
16258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasZ" "', expected argument " "1"" of type '" "wxJoystick *""'");
16259 }
16260 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 result = (bool)(arg1)->HasZ();
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 {
16268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16269 }
16270 return resultobj;
16271fail:
16272 return NULL;
d55e5bfc
RD
16273}
16274
16275
554f62e9
RD
16276SWIGINTERN PyObject *_wrap_Joystick_HasU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16277 PyObject *resultobj = 0;
16278 wxJoystick *arg1 = (wxJoystick *) 0 ;
16279 bool result;
16280 void *argp1 = 0 ;
16281 int res1 = 0 ;
16282 PyObject *swig_obj[1] ;
16283
16284 if (!args) SWIG_fail;
16285 swig_obj[0] = args;
16286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasU" "', expected argument " "1"" of type '" "wxJoystick *""'");
16289 }
16290 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = (bool)(arg1)->HasU();
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 {
16298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16299 }
16300 return resultobj;
16301fail:
16302 return NULL;
d55e5bfc
RD
16303}
16304
16305
554f62e9
RD
16306SWIGINTERN PyObject *_wrap_Joystick_HasV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16307 PyObject *resultobj = 0;
16308 wxJoystick *arg1 = (wxJoystick *) 0 ;
16309 bool result;
16310 void *argp1 = 0 ;
16311 int res1 = 0 ;
16312 PyObject *swig_obj[1] ;
16313
16314 if (!args) SWIG_fail;
16315 swig_obj[0] = args;
16316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16317 if (!SWIG_IsOK(res1)) {
16318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasV" "', expected argument " "1"" of type '" "wxJoystick *""'");
16319 }
16320 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 result = (bool)(arg1)->HasV();
16324 wxPyEndAllowThreads(__tstate);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 }
16327 {
16328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16329 }
16330 return resultobj;
16331fail:
16332 return NULL;
c9c2cf70
RD
16333}
16334
16335
554f62e9
RD
16336SWIGINTERN PyObject *_wrap_Joystick_HasPOV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16337 PyObject *resultobj = 0;
16338 wxJoystick *arg1 = (wxJoystick *) 0 ;
16339 bool result;
16340 void *argp1 = 0 ;
16341 int res1 = 0 ;
16342 PyObject *swig_obj[1] ;
16343
16344 if (!args) SWIG_fail;
16345 swig_obj[0] = args;
16346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16347 if (!SWIG_IsOK(res1)) {
16348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOV" "', expected argument " "1"" of type '" "wxJoystick *""'");
16349 }
16350 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16351 {
16352 PyThreadState* __tstate = wxPyBeginAllowThreads();
16353 result = (bool)(arg1)->HasPOV();
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 {
16358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16359 }
16360 return resultobj;
16361fail:
16362 return NULL;
d55e5bfc
RD
16363}
16364
16365
554f62e9
RD
16366SWIGINTERN PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16367 PyObject *resultobj = 0;
16368 wxJoystick *arg1 = (wxJoystick *) 0 ;
16369 bool result;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 PyObject *swig_obj[1] ;
16373
16374 if (!args) SWIG_fail;
16375 swig_obj[0] = args;
16376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16377 if (!SWIG_IsOK(res1)) {
16378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOV4Dir" "', expected argument " "1"" of type '" "wxJoystick *""'");
16379 }
16380 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 result = (bool)(arg1)->HasPOV4Dir();
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16389 }
16390 return resultobj;
16391fail:
16392 return NULL;
d55e5bfc
RD
16393}
16394
16395
554f62e9
RD
16396SWIGINTERN PyObject *_wrap_Joystick_HasPOVCTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16397 PyObject *resultobj = 0;
16398 wxJoystick *arg1 = (wxJoystick *) 0 ;
16399 bool result;
16400 void *argp1 = 0 ;
16401 int res1 = 0 ;
16402 PyObject *swig_obj[1] ;
16403
16404 if (!args) SWIG_fail;
16405 swig_obj[0] = args;
16406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16407 if (!SWIG_IsOK(res1)) {
16408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_HasPOVCTS" "', expected argument " "1"" of type '" "wxJoystick *""'");
16409 }
16410 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 result = (bool)(arg1)->HasPOVCTS();
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 {
16418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16419 }
16420 return resultobj;
16421fail:
16422 return NULL;
16423}
16424
16425
16426SWIGINTERN PyObject *_wrap_Joystick_SetCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16427 PyObject *resultobj = 0;
16428 wxJoystick *arg1 = (wxJoystick *) 0 ;
16429 wxWindow *arg2 = (wxWindow *) 0 ;
16430 int arg3 = (int) 0 ;
16431 bool result;
16432 void *argp1 = 0 ;
16433 int res1 = 0 ;
16434 void *argp2 = 0 ;
16435 int res2 = 0 ;
16436 int val3 ;
16437 int ecode3 = 0 ;
16438 PyObject * obj0 = 0 ;
16439 PyObject * obj1 = 0 ;
16440 PyObject * obj2 = 0 ;
16441 char * kwnames[] = {
16442 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
16443 };
16444
16445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16447 if (!SWIG_IsOK(res1)) {
16448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_SetCapture" "', expected argument " "1"" of type '" "wxJoystick *""'");
16449 }
16450 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16452 if (!SWIG_IsOK(res2)) {
16453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Joystick_SetCapture" "', expected argument " "2"" of type '" "wxWindow *""'");
16454 }
16455 arg2 = reinterpret_cast< wxWindow * >(argp2);
16456 if (obj2) {
16457 ecode3 = SWIG_AsVal_int(obj2, &val3);
16458 if (!SWIG_IsOK(ecode3)) {
16459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Joystick_SetCapture" "', expected argument " "3"" of type '" "int""'");
16460 }
16461 arg3 = static_cast< int >(val3);
16462 }
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 result = (bool)(arg1)->SetCapture(arg2,arg3);
16466 wxPyEndAllowThreads(__tstate);
16467 if (PyErr_Occurred()) SWIG_fail;
16468 }
16469 {
16470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16471 }
16472 return resultobj;
16473fail:
16474 return NULL;
d55e5bfc
RD
16475}
16476
16477
554f62e9
RD
16478SWIGINTERN PyObject *_wrap_Joystick_ReleaseCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16479 PyObject *resultobj = 0;
16480 wxJoystick *arg1 = (wxJoystick *) 0 ;
16481 bool result;
16482 void *argp1 = 0 ;
16483 int res1 = 0 ;
16484 PyObject *swig_obj[1] ;
16485
16486 if (!args) SWIG_fail;
16487 swig_obj[0] = args;
16488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystick, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Joystick_ReleaseCapture" "', expected argument " "1"" of type '" "wxJoystick *""'");
16491 }
16492 arg1 = reinterpret_cast< wxJoystick * >(argp1);
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (bool)(arg1)->ReleaseCapture();
16496 wxPyEndAllowThreads(__tstate);
16497 if (PyErr_Occurred()) SWIG_fail;
16498 }
16499 {
16500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16501 }
16502 return resultobj;
16503fail:
16504 return NULL;
16505}
16506
16507
16508SWIGINTERN PyObject *Joystick_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16509 PyObject *obj;
16510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16511 SWIG_TypeNewClientData(SWIGTYPE_p_wxJoystick, SWIG_NewClientData(obj));
16512 return SWIG_Py_Void();
16513}
16514
16515SWIGINTERN PyObject *Joystick_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16516 return SWIG_Python_InitShadowInstance(args);
16517}
16518
16519SWIGINTERN PyObject *_wrap_new_JoystickEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj = 0;
16521 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16522 int arg2 = (int) 0 ;
16523 int arg3 = (int) wxJOYSTICK1 ;
16524 int arg4 = (int) 0 ;
16525 wxJoystickEvent *result = 0 ;
16526 int val1 ;
16527 int ecode1 = 0 ;
16528 int val2 ;
16529 int ecode2 = 0 ;
16530 int val3 ;
16531 int ecode3 = 0 ;
16532 int val4 ;
16533 int ecode4 = 0 ;
16534 PyObject * obj0 = 0 ;
16535 PyObject * obj1 = 0 ;
16536 PyObject * obj2 = 0 ;
16537 PyObject * obj3 = 0 ;
16538 char * kwnames[] = {
16539 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
16540 };
16541
16542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16543 if (obj0) {
16544 ecode1 = SWIG_AsVal_int(obj0, &val1);
16545 if (!SWIG_IsOK(ecode1)) {
16546 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_JoystickEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16547 }
16548 arg1 = static_cast< wxEventType >(val1);
16549 }
16550 if (obj1) {
16551 ecode2 = SWIG_AsVal_int(obj1, &val2);
16552 if (!SWIG_IsOK(ecode2)) {
16553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_JoystickEvent" "', expected argument " "2"" of type '" "int""'");
16554 }
16555 arg2 = static_cast< int >(val2);
16556 }
16557 if (obj2) {
16558 ecode3 = SWIG_AsVal_int(obj2, &val3);
16559 if (!SWIG_IsOK(ecode3)) {
16560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_JoystickEvent" "', expected argument " "3"" of type '" "int""'");
16561 }
16562 arg3 = static_cast< int >(val3);
16563 }
16564 if (obj3) {
16565 ecode4 = SWIG_AsVal_int(obj3, &val4);
16566 if (!SWIG_IsOK(ecode4)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_JoystickEvent" "', expected argument " "4"" of type '" "int""'");
16568 }
16569 arg4 = static_cast< int >(val4);
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJoystickEvent, SWIG_POINTER_NEW | 0 );
16578 return resultobj;
16579fail:
16580 return NULL;
d55e5bfc
RD
16581}
16582
16583
554f62e9
RD
16584SWIGINTERN PyObject *_wrap_JoystickEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16585 PyObject *resultobj = 0;
16586 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16587 wxPoint result;
16588 void *argp1 = 0 ;
16589 int res1 = 0 ;
16590 PyObject *swig_obj[1] ;
16591
16592 if (!args) SWIG_fail;
16593 swig_obj[0] = args;
16594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16595 if (!SWIG_IsOK(res1)) {
16596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetPosition" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16597 }
16598 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16599 {
16600 PyThreadState* __tstate = wxPyBeginAllowThreads();
16601 result = ((wxJoystickEvent const *)arg1)->GetPosition();
16602 wxPyEndAllowThreads(__tstate);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 }
16605 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
16606 return resultobj;
16607fail:
16608 return NULL;
d55e5bfc
RD
16609}
16610
16611
554f62e9
RD
16612SWIGINTERN PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16613 PyObject *resultobj = 0;
16614 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16615 int result;
16616 void *argp1 = 0 ;
16617 int res1 = 0 ;
16618 PyObject *swig_obj[1] ;
16619
16620 if (!args) SWIG_fail;
16621 swig_obj[0] = args;
16622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16623 if (!SWIG_IsOK(res1)) {
16624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetZPosition" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16625 }
16626 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 resultobj = SWIG_From_int(static_cast< int >(result));
16634 return resultobj;
16635fail:
16636 return NULL;
d55e5bfc
RD
16637}
16638
16639
554f62e9
RD
16640SWIGINTERN PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16641 PyObject *resultobj = 0;
16642 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16643 int result;
16644 void *argp1 = 0 ;
16645 int res1 = 0 ;
16646 PyObject *swig_obj[1] ;
16647
16648 if (!args) SWIG_fail;
16649 swig_obj[0] = args;
16650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16651 if (!SWIG_IsOK(res1)) {
16652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetButtonState" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16653 }
16654 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16655 {
16656 PyThreadState* __tstate = wxPyBeginAllowThreads();
16657 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
16658 wxPyEndAllowThreads(__tstate);
16659 if (PyErr_Occurred()) SWIG_fail;
16660 }
16661 resultobj = SWIG_From_int(static_cast< int >(result));
16662 return resultobj;
16663fail:
16664 return NULL;
d55e5bfc
RD
16665}
16666
16667
554f62e9
RD
16668SWIGINTERN PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16669 PyObject *resultobj = 0;
16670 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16671 int result;
16672 void *argp1 = 0 ;
16673 int res1 = 0 ;
16674 PyObject *swig_obj[1] ;
16675
16676 if (!args) SWIG_fail;
16677 swig_obj[0] = args;
16678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16679 if (!SWIG_IsOK(res1)) {
16680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetButtonChange" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16681 }
16682 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16683 {
16684 PyThreadState* __tstate = wxPyBeginAllowThreads();
16685 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 resultobj = SWIG_From_int(static_cast< int >(result));
16690 return resultobj;
16691fail:
16692 return NULL;
d55e5bfc
RD
16693}
16694
16695
554f62e9
RD
16696SWIGINTERN PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16697 PyObject *resultobj = 0;
16698 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16699 int result;
16700 void *argp1 = 0 ;
16701 int res1 = 0 ;
16702 PyObject *swig_obj[1] ;
16703
16704 if (!args) SWIG_fail;
16705 swig_obj[0] = args;
16706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16707 if (!SWIG_IsOK(res1)) {
16708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_GetJoystick" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16709 }
16710 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 resultobj = SWIG_From_int(static_cast< int >(result));
16718 return resultobj;
16719fail:
16720 return NULL;
16721}
16722
16723
16724SWIGINTERN PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16725 PyObject *resultobj = 0;
16726 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16727 int arg2 ;
16728 void *argp1 = 0 ;
16729 int res1 = 0 ;
16730 int val2 ;
16731 int ecode2 = 0 ;
16732 PyObject * obj0 = 0 ;
16733 PyObject * obj1 = 0 ;
16734 char * kwnames[] = {
16735 (char *) "self",(char *) "stick", NULL
16736 };
16737
16738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) SWIG_fail;
16739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16740 if (!SWIG_IsOK(res1)) {
16741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetJoystick" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16742 }
16743 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16744 ecode2 = SWIG_AsVal_int(obj1, &val2);
16745 if (!SWIG_IsOK(ecode2)) {
16746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetJoystick" "', expected argument " "2"" of type '" "int""'");
16747 }
16748 arg2 = static_cast< int >(val2);
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 (arg1)->SetJoystick(arg2);
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_Py_Void();
16756 return resultobj;
16757fail:
16758 return NULL;
16759}
16760
16761
16762SWIGINTERN PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj = 0;
16764 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16765 int arg2 ;
16766 void *argp1 = 0 ;
16767 int res1 = 0 ;
16768 int val2 ;
16769 int ecode2 = 0 ;
16770 PyObject * obj0 = 0 ;
16771 PyObject * obj1 = 0 ;
16772 char * kwnames[] = {
16773 (char *) "self",(char *) "state", NULL
16774 };
16775
16776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) SWIG_fail;
16777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16778 if (!SWIG_IsOK(res1)) {
16779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetButtonState" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16780 }
16781 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16782 ecode2 = SWIG_AsVal_int(obj1, &val2);
16783 if (!SWIG_IsOK(ecode2)) {
16784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetButtonState" "', expected argument " "2"" of type '" "int""'");
16785 }
16786 arg2 = static_cast< int >(val2);
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 (arg1)->SetButtonState(arg2);
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 resultobj = SWIG_Py_Void();
16794 return resultobj;
16795fail:
16796 return NULL;
16797}
16798
16799
16800SWIGINTERN PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj = 0;
16802 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16803 int arg2 ;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 int val2 ;
16807 int ecode2 = 0 ;
16808 PyObject * obj0 = 0 ;
16809 PyObject * obj1 = 0 ;
16810 char * kwnames[] = {
16811 (char *) "self",(char *) "change", NULL
16812 };
16813
16814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) SWIG_fail;
16815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16816 if (!SWIG_IsOK(res1)) {
16817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetButtonChange" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16818 }
16819 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16820 ecode2 = SWIG_AsVal_int(obj1, &val2);
16821 if (!SWIG_IsOK(ecode2)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetButtonChange" "', expected argument " "2"" of type '" "int""'");
16823 }
16824 arg2 = static_cast< int >(val2);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 (arg1)->SetButtonChange(arg2);
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_Py_Void();
16832 return resultobj;
16833fail:
16834 return NULL;
16835}
16836
16837
16838SWIGINTERN PyObject *_wrap_JoystickEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj = 0;
16840 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16841 wxPoint *arg2 = 0 ;
16842 void *argp1 = 0 ;
16843 int res1 = 0 ;
16844 wxPoint temp2 ;
16845 PyObject * obj0 = 0 ;
16846 PyObject * obj1 = 0 ;
16847 char * kwnames[] = {
16848 (char *) "self",(char *) "pos", NULL
16849 };
16850
16851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16853 if (!SWIG_IsOK(res1)) {
16854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetPosition" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16855 }
16856 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16857 {
16858 arg2 = &temp2;
16859 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16860 }
16861 {
16862 PyThreadState* __tstate = wxPyBeginAllowThreads();
16863 (arg1)->SetPosition((wxPoint const &)*arg2);
16864 wxPyEndAllowThreads(__tstate);
16865 if (PyErr_Occurred()) SWIG_fail;
16866 }
16867 resultobj = SWIG_Py_Void();
16868 return resultobj;
16869fail:
16870 return NULL;
16871}
16872
16873
16874SWIGINTERN PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16875 PyObject *resultobj = 0;
16876 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16877 int arg2 ;
16878 void *argp1 = 0 ;
16879 int res1 = 0 ;
16880 int val2 ;
16881 int ecode2 = 0 ;
16882 PyObject * obj0 = 0 ;
16883 PyObject * obj1 = 0 ;
16884 char * kwnames[] = {
16885 (char *) "self",(char *) "zPos", NULL
16886 };
16887
16888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16890 if (!SWIG_IsOK(res1)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_SetZPosition" "', expected argument " "1"" of type '" "wxJoystickEvent *""'");
16892 }
16893 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16894 ecode2 = SWIG_AsVal_int(obj1, &val2);
16895 if (!SWIG_IsOK(ecode2)) {
16896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_SetZPosition" "', expected argument " "2"" of type '" "int""'");
16897 }
16898 arg2 = static_cast< int >(val2);
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 (arg1)->SetZPosition(arg2);
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 resultobj = SWIG_Py_Void();
16906 return resultobj;
16907fail:
16908 return NULL;
d55e5bfc
RD
16909}
16910
16911
554f62e9
RD
16912SWIGINTERN PyObject *_wrap_JoystickEvent_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16913 PyObject *resultobj = 0;
16914 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16915 bool result;
16916 void *argp1 = 0 ;
16917 int res1 = 0 ;
16918 PyObject *swig_obj[1] ;
16919
16920 if (!args) SWIG_fail;
16921 swig_obj[0] = args;
16922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16923 if (!SWIG_IsOK(res1)) {
16924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsButton" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16925 }
16926 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 {
16934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16935 }
16936 return resultobj;
16937fail:
16938 return NULL;
d55e5bfc
RD
16939}
16940
16941
554f62e9
RD
16942SWIGINTERN PyObject *_wrap_JoystickEvent_IsMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16943 PyObject *resultobj = 0;
16944 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16945 bool result;
16946 void *argp1 = 0 ;
16947 int res1 = 0 ;
16948 PyObject *swig_obj[1] ;
16949
16950 if (!args) SWIG_fail;
16951 swig_obj[0] = args;
16952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16953 if (!SWIG_IsOK(res1)) {
16954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsMove" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16955 }
16956 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 {
16964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16965 }
16966 return resultobj;
16967fail:
16968 return NULL;
d55e5bfc
RD
16969}
16970
16971
554f62e9
RD
16972SWIGINTERN PyObject *_wrap_JoystickEvent_IsZMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16973 PyObject *resultobj = 0;
16974 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
16975 bool result;
16976 void *argp1 = 0 ;
16977 int res1 = 0 ;
16978 PyObject *swig_obj[1] ;
16979
16980 if (!args) SWIG_fail;
16981 swig_obj[0] = args;
16982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
16983 if (!SWIG_IsOK(res1)) {
16984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_IsZMove" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
16985 }
16986 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 {
16994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16995 }
16996 return resultobj;
16997fail:
16998 return NULL;
16999}
17000
17001
17002SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17003 PyObject *resultobj = 0;
17004 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
17005 int arg2 = (int) wxJOY_BUTTON_ANY ;
17006 bool result;
17007 void *argp1 = 0 ;
17008 int res1 = 0 ;
17009 int val2 ;
17010 int ecode2 = 0 ;
17011 PyObject * obj0 = 0 ;
17012 PyObject * obj1 = 0 ;
17013 char * kwnames[] = {
17014 (char *) "self",(char *) "but", NULL
17015 };
17016
17017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) SWIG_fail;
17018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
17019 if (!SWIG_IsOK(res1)) {
17020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonDown" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
17021 }
17022 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
17023 if (obj1) {
17024 ecode2 = SWIG_AsVal_int(obj1, &val2);
17025 if (!SWIG_IsOK(ecode2)) {
17026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonDown" "', expected argument " "2"" of type '" "int""'");
17027 }
17028 arg2 = static_cast< int >(val2);
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 {
17037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17038 }
17039 return resultobj;
17040fail:
17041 return NULL;
17042}
17043
17044
17045SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj = 0;
17047 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
17048 int arg2 = (int) wxJOY_BUTTON_ANY ;
17049 bool result;
17050 void *argp1 = 0 ;
17051 int res1 = 0 ;
17052 int val2 ;
17053 int ecode2 = 0 ;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 char * kwnames[] = {
17057 (char *) "self",(char *) "but", NULL
17058 };
17059
17060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) SWIG_fail;
17061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
17062 if (!SWIG_IsOK(res1)) {
17063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonUp" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
17064 }
17065 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
17066 if (obj1) {
17067 ecode2 = SWIG_AsVal_int(obj1, &val2);
17068 if (!SWIG_IsOK(ecode2)) {
17069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonUp" "', expected argument " "2"" of type '" "int""'");
17070 }
17071 arg2 = static_cast< int >(val2);
17072 }
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
17075 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
17076 wxPyEndAllowThreads(__tstate);
17077 if (PyErr_Occurred()) SWIG_fail;
17078 }
17079 {
17080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17081 }
17082 return resultobj;
17083fail:
17084 return NULL;
17085}
17086
17087
17088SWIGINTERN PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj = 0;
17090 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
17091 int arg2 = (int) wxJOY_BUTTON_ANY ;
17092 bool result;
17093 void *argp1 = 0 ;
17094 int res1 = 0 ;
17095 int val2 ;
17096 int ecode2 = 0 ;
17097 PyObject * obj0 = 0 ;
17098 PyObject * obj1 = 0 ;
17099 char * kwnames[] = {
17100 (char *) "self",(char *) "but", NULL
17101 };
17102
17103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) SWIG_fail;
17104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxJoystickEvent, 0 | 0 );
17105 if (!SWIG_IsOK(res1)) {
17106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "JoystickEvent_ButtonIsDown" "', expected argument " "1"" of type '" "wxJoystickEvent const *""'");
17107 }
17108 arg1 = reinterpret_cast< wxJoystickEvent * >(argp1);
17109 if (obj1) {
17110 ecode2 = SWIG_AsVal_int(obj1, &val2);
17111 if (!SWIG_IsOK(ecode2)) {
17112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "JoystickEvent_ButtonIsDown" "', expected argument " "2"" of type '" "int""'");
17113 }
17114 arg2 = static_cast< int >(val2);
17115 }
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 {
17123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17124 }
17125 return resultobj;
17126fail:
17127 return NULL;
d55e5bfc
RD
17128}
17129
17130
554f62e9
RD
17131SWIGINTERN PyObject *JoystickEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17132 PyObject *obj;
17133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17134 SWIG_TypeNewClientData(SWIGTYPE_p_wxJoystickEvent, SWIG_NewClientData(obj));
17135 return SWIG_Py_Void();
d55e5bfc
RD
17136}
17137
554f62e9
RD
17138SWIGINTERN PyObject *JoystickEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17139 return SWIG_Python_InitShadowInstance(args);
17140}
d55e5bfc 17141
554f62e9
RD
17142SWIGINTERN PyObject *_wrap_new_Sound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17143 PyObject *resultobj = 0;
17144 wxString const &arg1_defvalue = wxPyEmptyString ;
17145 wxString *arg1 = (wxString *) &arg1_defvalue ;
17146 wxSound *result = 0 ;
17147 bool temp1 = false ;
17148 PyObject * obj0 = 0 ;
17149 char * kwnames[] = {
17150 (char *) "fileName", NULL
17151 };
17152
17153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) SWIG_fail;
17154 if (obj0) {
093d3ff1 17155 {
554f62e9
RD
17156 arg1 = wxString_in_helper(obj0);
17157 if (arg1 == NULL) SWIG_fail;
17158 temp1 = true;
093d3ff1 17159 }
554f62e9
RD
17160 }
17161 {
17162 if (!wxPyCheckForApp()) SWIG_fail;
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (wxSound *)new_wxSound((wxString const &)*arg1);
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSound, SWIG_POINTER_NEW | 0 );
17169 {
17170 if (temp1)
17171 delete arg1;
17172 }
17173 return resultobj;
17174fail:
17175 {
17176 if (temp1)
17177 delete arg1;
17178 }
17179 return NULL;
d55e5bfc
RD
17180}
17181
17182
554f62e9
RD
17183SWIGINTERN PyObject *_wrap_new_SoundFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17184 PyObject *resultobj = 0;
17185 PyObject *arg1 = (PyObject *) 0 ;
17186 wxSound *result = 0 ;
17187 PyObject * obj0 = 0 ;
17188 char * kwnames[] = {
17189 (char *) "data", NULL
17190 };
17191
17192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) SWIG_fail;
17193 arg1 = obj0;
17194 {
17195 if (!wxPyCheckForApp()) SWIG_fail;
17196 PyThreadState* __tstate = wxPyBeginAllowThreads();
17197 result = (wxSound *)new_wxSound(arg1);
17198 wxPyEndAllowThreads(__tstate);
17199 if (PyErr_Occurred()) SWIG_fail;
17200 }
17201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSound, SWIG_POINTER_OWN | 0 );
17202 return resultobj;
17203fail:
17204 return NULL;
d55e5bfc
RD
17205}
17206
17207
554f62e9
RD
17208SWIGINTERN PyObject *_wrap_delete_Sound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17209 PyObject *resultobj = 0;
17210 wxSound *arg1 = (wxSound *) 0 ;
17211 void *argp1 = 0 ;
17212 int res1 = 0 ;
17213 PyObject *swig_obj[1] ;
17214
17215 if (!args) SWIG_fail;
17216 swig_obj[0] = args;
17217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSound, SWIG_POINTER_DISOWN | 0 );
17218 if (!SWIG_IsOK(res1)) {
17219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sound" "', expected argument " "1"" of type '" "wxSound *""'");
17220 }
17221 arg1 = reinterpret_cast< wxSound * >(argp1);
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 delete arg1;
d55e5bfc 17225
554f62e9
RD
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = SWIG_Py_Void();
17230 return resultobj;
17231fail:
17232 return NULL;
17233}
17234
17235
17236SWIGINTERN PyObject *_wrap_Sound_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj = 0;
17238 wxSound *arg1 = (wxSound *) 0 ;
17239 wxString *arg2 = 0 ;
17240 bool result;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 bool temp2 = false ;
17244 PyObject * obj0 = 0 ;
17245 PyObject * obj1 = 0 ;
17246 char * kwnames[] = {
17247 (char *) "self",(char *) "fileName", NULL
17248 };
17249
17250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) SWIG_fail;
17251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17252 if (!SWIG_IsOK(res1)) {
17253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_Create" "', expected argument " "1"" of type '" "wxSound *""'");
17254 }
17255 arg1 = reinterpret_cast< wxSound * >(argp1);
17256 {
17257 arg2 = wxString_in_helper(obj1);
17258 if (arg2 == NULL) SWIG_fail;
17259 temp2 = true;
17260 }
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 result = (bool)(arg1)->Create((wxString const &)*arg2);
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 {
17268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17269 }
17270 {
17271 if (temp2)
17272 delete arg2;
17273 }
17274 return resultobj;
17275fail:
17276 {
17277 if (temp2)
17278 delete arg2;
17279 }
17280 return NULL;
d55e5bfc
RD
17281}
17282
17283
554f62e9
RD
17284SWIGINTERN PyObject *_wrap_Sound_CreateFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj = 0;
17286 wxSound *arg1 = (wxSound *) 0 ;
17287 PyObject *arg2 = (PyObject *) 0 ;
17288 bool result;
17289 void *argp1 = 0 ;
17290 int res1 = 0 ;
17291 PyObject * obj0 = 0 ;
17292 PyObject * obj1 = 0 ;
17293 char * kwnames[] = {
17294 (char *) "self",(char *) "data", NULL
17295 };
17296
17297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) SWIG_fail;
17298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17299 if (!SWIG_IsOK(res1)) {
17300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_CreateFromData" "', expected argument " "1"" of type '" "wxSound *""'");
17301 }
17302 arg1 = reinterpret_cast< wxSound * >(argp1);
17303 arg2 = obj1;
17304 {
17305 PyThreadState* __tstate = wxPyBeginAllowThreads();
17306 result = (bool)wxSound_CreateFromData(arg1,arg2);
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 {
17311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17312 }
17313 return resultobj;
17314fail:
17315 return NULL;
d55e5bfc
RD
17316}
17317
17318
554f62e9
RD
17319SWIGINTERN PyObject *_wrap_Sound_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17320 PyObject *resultobj = 0;
17321 wxSound *arg1 = (wxSound *) 0 ;
17322 bool result;
17323 void *argp1 = 0 ;
17324 int res1 = 0 ;
17325 PyObject *swig_obj[1] ;
17326
17327 if (!args) SWIG_fail;
17328 swig_obj[0] = args;
17329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17330 if (!SWIG_IsOK(res1)) {
17331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_IsOk" "', expected argument " "1"" of type '" "wxSound *""'");
17332 }
17333 arg1 = reinterpret_cast< wxSound * >(argp1);
17334 {
17335 PyThreadState* __tstate = wxPyBeginAllowThreads();
17336 result = (bool)(arg1)->IsOk();
17337 wxPyEndAllowThreads(__tstate);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 }
17340 {
17341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17342 }
17343 return resultobj;
17344fail:
17345 return NULL;
17346}
17347
17348
17349SWIGINTERN PyObject *_wrap_Sound_Play(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17350 PyObject *resultobj = 0;
17351 wxSound *arg1 = (wxSound *) 0 ;
17352 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
17353 bool result;
17354 void *argp1 = 0 ;
17355 int res1 = 0 ;
17356 unsigned int val2 ;
17357 int ecode2 = 0 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 char * kwnames[] = {
17361 (char *) "self",(char *) "flags", NULL
17362 };
17363
17364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) SWIG_fail;
17365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSound, 0 | 0 );
17366 if (!SWIG_IsOK(res1)) {
17367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sound_Play" "', expected argument " "1"" of type '" "wxSound const *""'");
17368 }
17369 arg1 = reinterpret_cast< wxSound * >(argp1);
17370 if (obj1) {
17371 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17372 if (!SWIG_IsOK(ecode2)) {
17373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sound_Play" "', expected argument " "2"" of type '" "unsigned int""'");
17374 }
17375 arg2 = static_cast< unsigned int >(val2);
17376 }
17377 {
17378 if (!wxPyCheckForApp()) SWIG_fail;
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 result = (bool)((wxSound const *)arg1)->Play(arg2);
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 {
17385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17386 }
17387 return resultobj;
17388fail:
17389 return NULL;
17390}
17391
17392
17393SWIGINTERN PyObject *_wrap_Sound_PlaySound(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj = 0;
17395 wxString *arg1 = 0 ;
17396 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
17397 bool result;
17398 bool temp1 = false ;
17399 unsigned int val2 ;
17400 int ecode2 = 0 ;
17401 PyObject * obj0 = 0 ;
17402 PyObject * obj1 = 0 ;
17403 char * kwnames[] = {
17404 (char *) "filename",(char *) "flags", NULL
17405 };
17406
17407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) SWIG_fail;
17408 {
17409 arg1 = wxString_in_helper(obj0);
17410 if (arg1 == NULL) SWIG_fail;
17411 temp1 = true;
17412 }
17413 if (obj1) {
17414 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17415 if (!SWIG_IsOK(ecode2)) {
17416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sound_PlaySound" "', expected argument " "2"" of type '" "unsigned int""'");
17417 }
17418 arg2 = static_cast< unsigned int >(val2);
17419 }
17420 {
17421 if (!wxPyCheckForApp()) SWIG_fail;
17422 PyThreadState* __tstate = wxPyBeginAllowThreads();
17423 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
17424 wxPyEndAllowThreads(__tstate);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 }
17427 {
17428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17429 }
17430 {
17431 if (temp1)
17432 delete arg1;
17433 }
17434 return resultobj;
17435fail:
17436 {
17437 if (temp1)
17438 delete arg1;
17439 }
17440 return NULL;
d55e5bfc
RD
17441}
17442
17443
554f62e9
RD
17444SWIGINTERN PyObject *_wrap_Sound_Stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17445 PyObject *resultobj = 0;
17446
17447 if (!SWIG_Python_UnpackTuple(args,"Sound_Stop",0,0,0)) SWIG_fail;
17448 {
17449 if (!wxPyCheckForApp()) SWIG_fail;
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
17451 wxSound::Stop();
17452 wxPyEndAllowThreads(__tstate);
17453 if (PyErr_Occurred()) SWIG_fail;
17454 }
17455 resultobj = SWIG_Py_Void();
17456 return resultobj;
17457fail:
17458 return NULL;
17459}
17460
17461
17462SWIGINTERN PyObject *Sound_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17463 PyObject *obj;
17464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17465 SWIG_TypeNewClientData(SWIGTYPE_p_wxSound, SWIG_NewClientData(obj));
17466 return SWIG_Py_Void();
17467}
17468
17469SWIGINTERN PyObject *Sound_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17470 return SWIG_Python_InitShadowInstance(args);
17471}
17472
17473SWIGINTERN PyObject *_wrap_new_FileTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj = 0;
17475 wxString *arg1 = 0 ;
17476 wxString *arg2 = 0 ;
17477 wxString *arg3 = 0 ;
17478 wxString *arg4 = 0 ;
17479 wxFileTypeInfo *result = 0 ;
17480 bool temp1 = false ;
17481 bool temp2 = false ;
17482 bool temp3 = false ;
17483 bool temp4 = false ;
17484 PyObject * obj0 = 0 ;
17485 PyObject * obj1 = 0 ;
17486 PyObject * obj2 = 0 ;
17487 PyObject * obj3 = 0 ;
17488 char * kwnames[] = {
17489 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
17490 };
17491
17492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17493 {
17494 arg1 = wxString_in_helper(obj0);
17495 if (arg1 == NULL) SWIG_fail;
17496 temp1 = true;
17497 }
17498 {
17499 arg2 = wxString_in_helper(obj1);
17500 if (arg2 == NULL) SWIG_fail;
17501 temp2 = true;
17502 }
17503 {
17504 arg3 = wxString_in_helper(obj2);
17505 if (arg3 == NULL) SWIG_fail;
17506 temp3 = true;
17507 }
17508 {
17509 arg4 = wxString_in_helper(obj3);
17510 if (arg4 == NULL) SWIG_fail;
17511 temp4 = true;
17512 }
17513 {
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_NEW | 0 );
17520 {
17521 if (temp1)
17522 delete arg1;
17523 }
17524 {
17525 if (temp2)
17526 delete arg2;
17527 }
17528 {
17529 if (temp3)
17530 delete arg3;
17531 }
17532 {
17533 if (temp4)
17534 delete arg4;
17535 }
17536 return resultobj;
17537fail:
17538 {
17539 if (temp1)
17540 delete arg1;
17541 }
17542 {
17543 if (temp2)
17544 delete arg2;
17545 }
17546 {
17547 if (temp3)
17548 delete arg3;
17549 }
17550 {
17551 if (temp4)
17552 delete arg4;
17553 }
17554 return NULL;
d55e5bfc
RD
17555}
17556
17557
554f62e9
RD
17558SWIGINTERN PyObject *_wrap_new_FileTypeInfoSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj = 0;
17560 wxArrayString *arg1 = 0 ;
17561 wxFileTypeInfo *result = 0 ;
17562 bool temp1 = false ;
17563 PyObject * obj0 = 0 ;
17564 char * kwnames[] = {
17565 (char *) "sArray", NULL
17566 };
17567
17568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) SWIG_fail;
17569 {
17570 if (! PySequence_Check(obj0)) {
17571 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
17572 SWIG_fail;
17573 }
17574 arg1 = new wxArrayString;
17575 temp1 = true;
17576 int i, len=PySequence_Length(obj0);
17577 for (i=0; i<len; i++) {
17578 PyObject* item = PySequence_GetItem(obj0, i);
17579 wxString* s = wxString_in_helper(item);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 arg1->Add(*s);
17582 delete s;
17583 Py_DECREF(item);
d55e5bfc 17584 }
554f62e9
RD
17585 }
17586 {
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_OWN | 0 );
17593 {
17594 if (temp1) delete arg1;
17595 }
17596 return resultobj;
17597fail:
17598 {
17599 if (temp1) delete arg1;
17600 }
17601 return NULL;
d55e5bfc
RD
17602}
17603
17604
554f62e9
RD
17605SWIGINTERN PyObject *_wrap_new_NullFileTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17606 PyObject *resultobj = 0;
17607 wxFileTypeInfo *result = 0 ;
17608
17609 if (!SWIG_Python_UnpackTuple(args,"new_NullFileTypeInfo",0,0,0)) SWIG_fail;
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
17612 result = (wxFileTypeInfo *)new wxFileTypeInfo();
17613 wxPyEndAllowThreads(__tstate);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileTypeInfo, SWIG_POINTER_OWN | 0 );
17617 return resultobj;
17618fail:
17619 return NULL;
d55e5bfc
RD
17620}
17621
17622
554f62e9
RD
17623SWIGINTERN PyObject *_wrap_FileTypeInfo_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17624 PyObject *resultobj = 0;
17625 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17626 bool result;
17627 void *argp1 = 0 ;
17628 int res1 = 0 ;
17629 PyObject *swig_obj[1] ;
17630
17631 if (!args) SWIG_fail;
17632 swig_obj[0] = args;
17633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17634 if (!SWIG_IsOK(res1)) {
17635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_IsValid" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17636 }
17637 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 {
17645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17646 }
17647 return resultobj;
17648fail:
17649 return NULL;
17650}
17651
17652
17653SWIGINTERN PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17654 PyObject *resultobj = 0;
17655 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17656 wxString *arg2 = 0 ;
17657 int arg3 = (int) 0 ;
17658 void *argp1 = 0 ;
17659 int res1 = 0 ;
17660 bool temp2 = false ;
17661 int val3 ;
17662 int ecode3 = 0 ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 PyObject * obj2 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_SetIcon" "', expected argument " "1"" of type '" "wxFileTypeInfo *""'");
17674 }
17675 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17676 {
17677 arg2 = wxString_in_helper(obj1);
17678 if (arg2 == NULL) SWIG_fail;
17679 temp2 = true;
17680 }
17681 if (obj2) {
17682 ecode3 = SWIG_AsVal_int(obj2, &val3);
17683 if (!SWIG_IsOK(ecode3)) {
17684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileTypeInfo_SetIcon" "', expected argument " "3"" of type '" "int""'");
17685 }
17686 arg3 = static_cast< int >(val3);
17687 }
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 (arg1)->SetIcon((wxString const &)*arg2,arg3);
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 resultobj = SWIG_Py_Void();
17695 {
17696 if (temp2)
17697 delete arg2;
17698 }
17699 return resultobj;
17700fail:
17701 {
17702 if (temp2)
17703 delete arg2;
17704 }
17705 return NULL;
d55e5bfc
RD
17706}
17707
17708
554f62e9
RD
17709SWIGINTERN PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17710 PyObject *resultobj = 0;
17711 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17712 wxString *arg2 = 0 ;
17713 void *argp1 = 0 ;
17714 int res1 = 0 ;
17715 bool temp2 = false ;
17716 PyObject * obj0 = 0 ;
17717 PyObject * obj1 = 0 ;
17718 char * kwnames[] = {
17719 (char *) "self",(char *) "shortDesc", NULL
17720 };
17721
17722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) SWIG_fail;
17723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17724 if (!SWIG_IsOK(res1)) {
17725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_SetShortDesc" "', expected argument " "1"" of type '" "wxFileTypeInfo *""'");
17726 }
17727 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17728 {
17729 arg2 = wxString_in_helper(obj1);
17730 if (arg2 == NULL) SWIG_fail;
17731 temp2 = true;
17732 }
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 (arg1)->SetShortDesc((wxString const &)*arg2);
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_Py_Void();
17740 {
17741 if (temp2)
17742 delete arg2;
17743 }
17744 return resultobj;
17745fail:
17746 {
17747 if (temp2)
17748 delete arg2;
17749 }
17750 return NULL;
d55e5bfc
RD
17751}
17752
17753
554f62e9
RD
17754SWIGINTERN PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17755 PyObject *resultobj = 0;
17756 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17757 wxString *result = 0 ;
17758 void *argp1 = 0 ;
17759 int res1 = 0 ;
17760 PyObject *swig_obj[1] ;
17761
17762 if (!args) SWIG_fail;
17763 swig_obj[0] = args;
17764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17765 if (!SWIG_IsOK(res1)) {
17766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetMimeType" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17767 }
17768 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17771 {
554f62e9
RD
17772 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
17773 result = (wxString *) &_result_ref;
093d3ff1 17774 }
554f62e9
RD
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 {
17779#if wxUSE_UNICODE
17780 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17781#else
17782 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17783#endif
17784 }
17785 return resultobj;
17786fail:
17787 return NULL;
d55e5bfc
RD
17788}
17789
17790
554f62e9
RD
17791SWIGINTERN PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17792 PyObject *resultobj = 0;
17793 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17794 wxString *result = 0 ;
17795 void *argp1 = 0 ;
17796 int res1 = 0 ;
17797 PyObject *swig_obj[1] ;
17798
17799 if (!args) SWIG_fail;
17800 swig_obj[0] = args;
17801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17802 if (!SWIG_IsOK(res1)) {
17803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetOpenCommand" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17804 }
17805 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17808 {
554f62e9
RD
17809 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
17810 result = (wxString *) &_result_ref;
093d3ff1 17811 }
554f62e9
RD
17812 wxPyEndAllowThreads(__tstate);
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 {
17816#if wxUSE_UNICODE
17817 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17818#else
17819 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17820#endif
17821 }
17822 return resultobj;
17823fail:
17824 return NULL;
d55e5bfc
RD
17825}
17826
17827
554f62e9
RD
17828SWIGINTERN PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17829 PyObject *resultobj = 0;
17830 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17831 wxString *result = 0 ;
17832 void *argp1 = 0 ;
17833 int res1 = 0 ;
17834 PyObject *swig_obj[1] ;
17835
17836 if (!args) SWIG_fail;
17837 swig_obj[0] = args;
17838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetPrintCommand" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17841 }
17842 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17843 {
17844 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17845 {
554f62e9
RD
17846 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
17847 result = (wxString *) &_result_ref;
093d3ff1 17848 }
554f62e9
RD
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 {
17853#if wxUSE_UNICODE
17854 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17855#else
17856 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17857#endif
17858 }
17859 return resultobj;
17860fail:
17861 return NULL;
d55e5bfc
RD
17862}
17863
17864
554f62e9
RD
17865SWIGINTERN PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17866 PyObject *resultobj = 0;
17867 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17868 wxString *result = 0 ;
17869 void *argp1 = 0 ;
17870 int res1 = 0 ;
17871 PyObject *swig_obj[1] ;
17872
17873 if (!args) SWIG_fail;
17874 swig_obj[0] = args;
17875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17876 if (!SWIG_IsOK(res1)) {
17877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetShortDesc" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17878 }
17879 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17880 {
17881 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17882 {
554f62e9
RD
17883 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
17884 result = (wxString *) &_result_ref;
093d3ff1 17885 }
554f62e9
RD
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 {
17890#if wxUSE_UNICODE
17891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17892#else
17893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17894#endif
17895 }
17896 return resultobj;
17897fail:
17898 return NULL;
d55e5bfc
RD
17899}
17900
17901
554f62e9
RD
17902SWIGINTERN PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17903 PyObject *resultobj = 0;
17904 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17905 wxString *result = 0 ;
17906 void *argp1 = 0 ;
17907 int res1 = 0 ;
17908 PyObject *swig_obj[1] ;
17909
17910 if (!args) SWIG_fail;
17911 swig_obj[0] = args;
17912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17913 if (!SWIG_IsOK(res1)) {
17914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetDescription" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17915 }
17916 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17919 {
554f62e9
RD
17920 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
17921 result = (wxString *) &_result_ref;
093d3ff1 17922 }
554f62e9
RD
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 {
17927#if wxUSE_UNICODE
17928 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17929#else
17930 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17931#endif
17932 }
17933 return resultobj;
17934fail:
17935 return NULL;
d55e5bfc
RD
17936}
17937
17938
554f62e9
RD
17939SWIGINTERN PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17940 PyObject *resultobj = 0;
17941 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17942 wxArrayString *result = 0 ;
17943 void *argp1 = 0 ;
17944 int res1 = 0 ;
17945 PyObject *swig_obj[1] ;
17946
17947 if (!args) SWIG_fail;
17948 swig_obj[0] = args;
17949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17950 if (!SWIG_IsOK(res1)) {
17951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetExtensions" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17952 }
17953 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 17956 {
554f62e9
RD
17957 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
17958 result = (wxArrayString *) &_result_ref;
093d3ff1 17959 }
554f62e9
RD
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 {
17964 resultobj = wxArrayString2PyList_helper(*result);
17965 }
17966 return resultobj;
17967fail:
17968 return NULL;
d55e5bfc
RD
17969}
17970
17971
554f62e9
RD
17972SWIGINTERN PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17973 PyObject *resultobj = 0;
17974 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
17975 size_t result;
17976 void *argp1 = 0 ;
17977 int res1 = 0 ;
17978 PyObject *swig_obj[1] ;
17979
17980 if (!args) SWIG_fail;
17981 swig_obj[0] = args;
17982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
17983 if (!SWIG_IsOK(res1)) {
17984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetExtensionsCount" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
17985 }
17986 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 result = (size_t)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
17994 return resultobj;
17995fail:
17996 return NULL;
d55e5bfc
RD
17997}
17998
17999
554f62e9
RD
18000SWIGINTERN PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18001 PyObject *resultobj = 0;
18002 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
18003 wxString *result = 0 ;
18004 void *argp1 = 0 ;
18005 int res1 = 0 ;
18006 PyObject *swig_obj[1] ;
18007
18008 if (!args) SWIG_fail;
18009 swig_obj[0] = args;
18010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
18011 if (!SWIG_IsOK(res1)) {
18012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetIconFile" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
18013 }
18014 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18017 {
554f62e9
RD
18018 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
18019 result = (wxString *) &_result_ref;
093d3ff1 18020 }
554f62e9
RD
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025#if wxUSE_UNICODE
18026 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18027#else
18028 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18029#endif
18030 }
18031 return resultobj;
18032fail:
18033 return NULL;
d55e5bfc
RD
18034}
18035
18036
554f62e9
RD
18037SWIGINTERN PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18038 PyObject *resultobj = 0;
18039 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
18040 int result;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 PyObject *swig_obj[1] ;
18044
18045 if (!args) SWIG_fail;
18046 swig_obj[0] = args;
18047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileTypeInfo, 0 | 0 );
18048 if (!SWIG_IsOK(res1)) {
18049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileTypeInfo_GetIconIndex" "', expected argument " "1"" of type '" "wxFileTypeInfo const *""'");
18050 }
18051 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
18052 {
18053 PyThreadState* __tstate = wxPyBeginAllowThreads();
18054 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
18055 wxPyEndAllowThreads(__tstate);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 }
18058 resultobj = SWIG_From_int(static_cast< int >(result));
18059 return resultobj;
18060fail:
18061 return NULL;
d55e5bfc
RD
18062}
18063
18064
554f62e9
RD
18065SWIGINTERN PyObject *FileTypeInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18066 PyObject *obj;
18067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18068 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileTypeInfo, SWIG_NewClientData(obj));
18069 return SWIG_Py_Void();
d55e5bfc
RD
18070}
18071
554f62e9
RD
18072SWIGINTERN PyObject *FileTypeInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18073 return SWIG_Python_InitShadowInstance(args);
18074}
d55e5bfc 18075
554f62e9
RD
18076SWIGINTERN PyObject *_wrap_new_FileType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18077 PyObject *resultobj = 0;
18078 wxFileTypeInfo *arg1 = 0 ;
18079 wxFileType *result = 0 ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 PyObject * obj0 = 0 ;
18083 char * kwnames[] = {
18084 (char *) "ftInfo", NULL
18085 };
18086
18087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) SWIG_fail;
18088 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
18089 if (!SWIG_IsOK(res1)) {
18090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileType" "', expected argument " "1"" of type '" "wxFileTypeInfo const &""'");
18091 }
18092 if (!argp1) {
18093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FileType" "', expected argument " "1"" of type '" "wxFileTypeInfo const &""'");
18094 }
18095 arg1 = reinterpret_cast< wxFileTypeInfo * >(argp1);
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_NEW | 0 );
18103 return resultobj;
18104fail:
18105 return NULL;
d55e5bfc
RD
18106}
18107
18108
554f62e9
RD
18109SWIGINTERN PyObject *_wrap_delete_FileType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18110 PyObject *resultobj = 0;
18111 wxFileType *arg1 = (wxFileType *) 0 ;
18112 void *argp1 = 0 ;
18113 int res1 = 0 ;
18114 PyObject *swig_obj[1] ;
18115
18116 if (!args) SWIG_fail;
18117 swig_obj[0] = args;
18118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, SWIG_POINTER_DISOWN | 0 );
18119 if (!SWIG_IsOK(res1)) {
18120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileType" "', expected argument " "1"" of type '" "wxFileType *""'");
18121 }
18122 arg1 = reinterpret_cast< wxFileType * >(argp1);
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 delete arg1;
d55e5bfc 18126
554f62e9
RD
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_Py_Void();
18131 return resultobj;
18132fail:
18133 return NULL;
d55e5bfc
RD
18134}
18135
18136
554f62e9
RD
18137SWIGINTERN PyObject *_wrap_FileType_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18138 PyObject *resultobj = 0;
18139 wxFileType *arg1 = (wxFileType *) 0 ;
18140 PyObject *result = 0 ;
18141 void *argp1 = 0 ;
18142 int res1 = 0 ;
18143 PyObject *swig_obj[1] ;
18144
18145 if (!args) SWIG_fail;
18146 swig_obj[0] = args;
18147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18148 if (!SWIG_IsOK(res1)) {
18149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetMimeType" "', expected argument " "1"" of type '" "wxFileType *""'");
18150 }
18151 arg1 = reinterpret_cast< wxFileType * >(argp1);
18152 {
18153 PyThreadState* __tstate = wxPyBeginAllowThreads();
18154 result = (PyObject *)wxFileType_GetMimeType(arg1);
18155 wxPyEndAllowThreads(__tstate);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 }
18158 resultobj = result;
18159 return resultobj;
18160fail:
18161 return NULL;
d55e5bfc
RD
18162}
18163
18164
554f62e9
RD
18165SWIGINTERN PyObject *_wrap_FileType_GetMimeTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18166 PyObject *resultobj = 0;
18167 wxFileType *arg1 = (wxFileType *) 0 ;
18168 PyObject *result = 0 ;
18169 void *argp1 = 0 ;
18170 int res1 = 0 ;
18171 PyObject *swig_obj[1] ;
18172
18173 if (!args) SWIG_fail;
18174 swig_obj[0] = args;
18175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetMimeTypes" "', expected argument " "1"" of type '" "wxFileType *""'");
18178 }
18179 arg1 = reinterpret_cast< wxFileType * >(argp1);
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = result;
18187 return resultobj;
18188fail:
18189 return NULL;
d55e5bfc
RD
18190}
18191
18192
554f62e9
RD
18193SWIGINTERN PyObject *_wrap_FileType_GetExtensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18194 PyObject *resultobj = 0;
18195 wxFileType *arg1 = (wxFileType *) 0 ;
18196 PyObject *result = 0 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 PyObject *swig_obj[1] ;
18200
18201 if (!args) SWIG_fail;
18202 swig_obj[0] = args;
18203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetExtensions" "', expected argument " "1"" of type '" "wxFileType *""'");
18206 }
18207 arg1 = reinterpret_cast< wxFileType * >(argp1);
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 result = (PyObject *)wxFileType_GetExtensions(arg1);
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = result;
18215 return resultobj;
18216fail:
18217 return NULL;
d55e5bfc
RD
18218}
18219
18220
554f62e9
RD
18221SWIGINTERN PyObject *_wrap_FileType_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18222 PyObject *resultobj = 0;
18223 wxFileType *arg1 = (wxFileType *) 0 ;
18224 wxIcon *result = 0 ;
18225 void *argp1 = 0 ;
18226 int res1 = 0 ;
18227 PyObject *swig_obj[1] ;
18228
18229 if (!args) SWIG_fail;
18230 swig_obj[0] = args;
18231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18232 if (!SWIG_IsOK(res1)) {
18233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetIcon" "', expected argument " "1"" of type '" "wxFileType *""'");
18234 }
18235 arg1 = reinterpret_cast< wxFileType * >(argp1);
18236 {
18237 PyThreadState* __tstate = wxPyBeginAllowThreads();
18238 result = (wxIcon *)wxFileType_GetIcon(arg1);
18239 wxPyEndAllowThreads(__tstate);
18240 if (PyErr_Occurred()) SWIG_fail;
18241 }
18242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
18243 return resultobj;
18244fail:
18245 return NULL;
d55e5bfc
RD
18246}
18247
18248
554f62e9
RD
18249SWIGINTERN PyObject *_wrap_FileType_GetIconInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18250 PyObject *resultobj = 0;
18251 wxFileType *arg1 = (wxFileType *) 0 ;
18252 PyObject *result = 0 ;
18253 void *argp1 = 0 ;
18254 int res1 = 0 ;
18255 PyObject *swig_obj[1] ;
18256
18257 if (!args) SWIG_fail;
18258 swig_obj[0] = args;
18259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetIconInfo" "', expected argument " "1"" of type '" "wxFileType *""'");
18262 }
18263 arg1 = reinterpret_cast< wxFileType * >(argp1);
18264 {
18265 PyThreadState* __tstate = wxPyBeginAllowThreads();
18266 result = (PyObject *)wxFileType_GetIconInfo(arg1);
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 resultobj = result;
18271 return resultobj;
18272fail:
18273 return NULL;
d55e5bfc
RD
18274}
18275
18276
554f62e9
RD
18277SWIGINTERN PyObject *_wrap_FileType_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18278 PyObject *resultobj = 0;
18279 wxFileType *arg1 = (wxFileType *) 0 ;
18280 PyObject *result = 0 ;
18281 void *argp1 = 0 ;
18282 int res1 = 0 ;
18283 PyObject *swig_obj[1] ;
18284
18285 if (!args) SWIG_fail;
18286 swig_obj[0] = args;
18287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18288 if (!SWIG_IsOK(res1)) {
18289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetDescription" "', expected argument " "1"" of type '" "wxFileType *""'");
18290 }
18291 arg1 = reinterpret_cast< wxFileType * >(argp1);
18292 {
18293 PyThreadState* __tstate = wxPyBeginAllowThreads();
18294 result = (PyObject *)wxFileType_GetDescription(arg1);
18295 wxPyEndAllowThreads(__tstate);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 resultobj = result;
18299 return resultobj;
18300fail:
18301 return NULL;
18302}
18303
18304
18305SWIGINTERN PyObject *_wrap_FileType_GetOpenCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj = 0;
18307 wxFileType *arg1 = (wxFileType *) 0 ;
18308 wxString *arg2 = 0 ;
18309 wxString const &arg3_defvalue = wxPyEmptyString ;
18310 wxString *arg3 = (wxString *) &arg3_defvalue ;
18311 PyObject *result = 0 ;
18312 void *argp1 = 0 ;
18313 int res1 = 0 ;
18314 bool temp2 = false ;
18315 bool temp3 = false ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 PyObject * obj2 = 0 ;
18319 char * kwnames[] = {
18320 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18321 };
18322
18323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18325 if (!SWIG_IsOK(res1)) {
18326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetOpenCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18327 }
18328 arg1 = reinterpret_cast< wxFileType * >(argp1);
18329 {
18330 arg2 = wxString_in_helper(obj1);
18331 if (arg2 == NULL) SWIG_fail;
18332 temp2 = true;
18333 }
18334 if (obj2) {
d55e5bfc 18335 {
554f62e9
RD
18336 arg3 = wxString_in_helper(obj2);
18337 if (arg3 == NULL) SWIG_fail;
18338 temp3 = true;
d55e5bfc 18339 }
554f62e9
RD
18340 }
18341 {
18342 PyThreadState* __tstate = wxPyBeginAllowThreads();
18343 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18344 wxPyEndAllowThreads(__tstate);
18345 if (PyErr_Occurred()) SWIG_fail;
18346 }
18347 resultobj = result;
18348 {
18349 if (temp2)
18350 delete arg2;
18351 }
18352 {
18353 if (temp3)
18354 delete arg3;
18355 }
18356 return resultobj;
18357fail:
18358 {
18359 if (temp2)
18360 delete arg2;
18361 }
18362 {
18363 if (temp3)
18364 delete arg3;
18365 }
18366 return NULL;
18367}
18368
18369
18370SWIGINTERN PyObject *_wrap_FileType_GetPrintCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18371 PyObject *resultobj = 0;
18372 wxFileType *arg1 = (wxFileType *) 0 ;
18373 wxString *arg2 = 0 ;
18374 wxString const &arg3_defvalue = wxPyEmptyString ;
18375 wxString *arg3 = (wxString *) &arg3_defvalue ;
18376 PyObject *result = 0 ;
18377 void *argp1 = 0 ;
18378 int res1 = 0 ;
18379 bool temp2 = false ;
18380 bool temp3 = false ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 PyObject * obj2 = 0 ;
18384 char * kwnames[] = {
18385 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18386 };
18387
18388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetPrintCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18392 }
18393 arg1 = reinterpret_cast< wxFileType * >(argp1);
18394 {
18395 arg2 = wxString_in_helper(obj1);
18396 if (arg2 == NULL) SWIG_fail;
18397 temp2 = true;
18398 }
18399 if (obj2) {
d55e5bfc 18400 {
554f62e9
RD
18401 arg3 = wxString_in_helper(obj2);
18402 if (arg3 == NULL) SWIG_fail;
18403 temp3 = true;
d55e5bfc 18404 }
554f62e9
RD
18405 }
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18409 wxPyEndAllowThreads(__tstate);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 }
18412 resultobj = result;
18413 {
18414 if (temp2)
18415 delete arg2;
18416 }
18417 {
18418 if (temp3)
18419 delete arg3;
18420 }
18421 return resultobj;
18422fail:
18423 {
18424 if (temp2)
18425 delete arg2;
18426 }
18427 {
18428 if (temp3)
18429 delete arg3;
18430 }
18431 return NULL;
18432}
18433
18434
18435SWIGINTERN PyObject *_wrap_FileType_GetAllCommands(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxFileType *arg1 = (wxFileType *) 0 ;
18438 wxString *arg2 = 0 ;
18439 wxString const &arg3_defvalue = wxPyEmptyString ;
18440 wxString *arg3 = (wxString *) &arg3_defvalue ;
18441 PyObject *result = 0 ;
18442 void *argp1 = 0 ;
18443 int res1 = 0 ;
18444 bool temp2 = false ;
18445 bool temp3 = false ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 char * kwnames[] = {
18450 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
18451 };
18452
18453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_GetAllCommands" "', expected argument " "1"" of type '" "wxFileType *""'");
18457 }
18458 arg1 = reinterpret_cast< wxFileType * >(argp1);
18459 {
18460 arg2 = wxString_in_helper(obj1);
18461 if (arg2 == NULL) SWIG_fail;
18462 temp2 = true;
18463 }
18464 if (obj2) {
d55e5bfc 18465 {
554f62e9
RD
18466 arg3 = wxString_in_helper(obj2);
18467 if (arg3 == NULL) SWIG_fail;
18468 temp3 = true;
d55e5bfc 18469 }
554f62e9
RD
18470 }
18471 {
18472 PyThreadState* __tstate = wxPyBeginAllowThreads();
18473 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 resultobj = result;
18478 {
18479 if (temp2)
18480 delete arg2;
18481 }
18482 {
18483 if (temp3)
18484 delete arg3;
18485 }
18486 return resultobj;
18487fail:
18488 {
18489 if (temp2)
18490 delete arg2;
18491 }
18492 {
18493 if (temp3)
18494 delete arg3;
18495 }
18496 return NULL;
18497}
18498
18499
18500SWIGINTERN PyObject *_wrap_FileType_SetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18501 PyObject *resultobj = 0;
18502 wxFileType *arg1 = (wxFileType *) 0 ;
18503 wxString *arg2 = 0 ;
18504 wxString *arg3 = 0 ;
18505 bool arg4 = (bool) true ;
18506 bool result;
18507 void *argp1 = 0 ;
18508 int res1 = 0 ;
18509 bool temp2 = false ;
18510 bool temp3 = false ;
18511 bool val4 ;
18512 int ecode4 = 0 ;
18513 PyObject * obj0 = 0 ;
18514 PyObject * obj1 = 0 ;
18515 PyObject * obj2 = 0 ;
18516 PyObject * obj3 = 0 ;
18517 char * kwnames[] = {
18518 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
18519 };
18520
18521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18523 if (!SWIG_IsOK(res1)) {
18524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_SetCommand" "', expected argument " "1"" of type '" "wxFileType *""'");
18525 }
18526 arg1 = reinterpret_cast< wxFileType * >(argp1);
18527 {
18528 arg2 = wxString_in_helper(obj1);
18529 if (arg2 == NULL) SWIG_fail;
18530 temp2 = true;
18531 }
18532 {
18533 arg3 = wxString_in_helper(obj2);
18534 if (arg3 == NULL) SWIG_fail;
18535 temp3 = true;
18536 }
18537 if (obj3) {
18538 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18539 if (!SWIG_IsOK(ecode4)) {
18540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileType_SetCommand" "', expected argument " "4"" of type '" "bool""'");
18541 }
18542 arg4 = static_cast< bool >(val4);
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 {
18551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18552 }
18553 {
18554 if (temp2)
18555 delete arg2;
18556 }
18557 {
18558 if (temp3)
18559 delete arg3;
18560 }
18561 return resultobj;
18562fail:
18563 {
18564 if (temp2)
18565 delete arg2;
18566 }
18567 {
18568 if (temp3)
18569 delete arg3;
18570 }
18571 return NULL;
18572}
18573
18574
18575SWIGINTERN PyObject *_wrap_FileType_SetDefaultIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18576 PyObject *resultobj = 0;
18577 wxFileType *arg1 = (wxFileType *) 0 ;
18578 wxString const &arg2_defvalue = wxPyEmptyString ;
18579 wxString *arg2 = (wxString *) &arg2_defvalue ;
18580 int arg3 = (int) 0 ;
18581 bool result;
18582 void *argp1 = 0 ;
18583 int res1 = 0 ;
18584 bool temp2 = false ;
18585 int val3 ;
18586 int ecode3 = 0 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 PyObject * obj2 = 0 ;
18590 char * kwnames[] = {
18591 (char *) "self",(char *) "cmd",(char *) "index", NULL
18592 };
18593
18594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18596 if (!SWIG_IsOK(res1)) {
18597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_SetDefaultIcon" "', expected argument " "1"" of type '" "wxFileType *""'");
18598 }
18599 arg1 = reinterpret_cast< wxFileType * >(argp1);
18600 if (obj1) {
d55e5bfc 18601 {
554f62e9
RD
18602 arg2 = wxString_in_helper(obj1);
18603 if (arg2 == NULL) SWIG_fail;
18604 temp2 = true;
d55e5bfc 18605 }
554f62e9
RD
18606 }
18607 if (obj2) {
18608 ecode3 = SWIG_AsVal_int(obj2, &val3);
18609 if (!SWIG_IsOK(ecode3)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileType_SetDefaultIcon" "', expected argument " "3"" of type '" "int""'");
18611 }
18612 arg3 = static_cast< int >(val3);
18613 }
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
18616 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 {
18621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18622 }
18623 {
18624 if (temp2)
18625 delete arg2;
18626 }
18627 return resultobj;
18628fail:
18629 {
18630 if (temp2)
18631 delete arg2;
18632 }
18633 return NULL;
d55e5bfc
RD
18634}
18635
18636
554f62e9
RD
18637SWIGINTERN PyObject *_wrap_FileType_Unassociate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18638 PyObject *resultobj = 0;
18639 wxFileType *arg1 = (wxFileType *) 0 ;
18640 bool result;
18641 void *argp1 = 0 ;
18642 int res1 = 0 ;
18643 PyObject *swig_obj[1] ;
18644
18645 if (!args) SWIG_fail;
18646 swig_obj[0] = args;
18647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileType, 0 | 0 );
18648 if (!SWIG_IsOK(res1)) {
18649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileType_Unassociate" "', expected argument " "1"" of type '" "wxFileType *""'");
18650 }
18651 arg1 = reinterpret_cast< wxFileType * >(argp1);
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 result = (bool)(arg1)->Unassociate();
18655 wxPyEndAllowThreads(__tstate);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 {
18659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18660 }
18661 return resultobj;
18662fail:
18663 return NULL;
18664}
18665
18666
18667SWIGINTERN PyObject *_wrap_FileType_ExpandCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18668 PyObject *resultobj = 0;
18669 wxString *arg1 = 0 ;
18670 wxString *arg2 = 0 ;
18671 wxString const &arg3_defvalue = wxPyEmptyString ;
18672 wxString *arg3 = (wxString *) &arg3_defvalue ;
18673 wxString result;
18674 bool temp1 = false ;
18675 bool temp2 = false ;
18676 bool temp3 = false ;
18677 PyObject * obj0 = 0 ;
18678 PyObject * obj1 = 0 ;
18679 PyObject * obj2 = 0 ;
18680 char * kwnames[] = {
18681 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
18682 };
18683
18684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18685 {
18686 arg1 = wxString_in_helper(obj0);
18687 if (arg1 == NULL) SWIG_fail;
18688 temp1 = true;
18689 }
18690 {
18691 arg2 = wxString_in_helper(obj1);
18692 if (arg2 == NULL) SWIG_fail;
18693 temp2 = true;
18694 }
18695 if (obj2) {
d55e5bfc 18696 {
554f62e9
RD
18697 arg3 = wxString_in_helper(obj2);
18698 if (arg3 == NULL) SWIG_fail;
18699 temp3 = true;
d55e5bfc 18700 }
554f62e9
RD
18701 }
18702 {
18703 PyThreadState* __tstate = wxPyBeginAllowThreads();
18704 result = wxFileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
18705 wxPyEndAllowThreads(__tstate);
18706 if (PyErr_Occurred()) SWIG_fail;
18707 }
18708 {
18709#if wxUSE_UNICODE
18710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18711#else
18712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18713#endif
18714 }
18715 {
18716 if (temp1)
18717 delete arg1;
18718 }
18719 {
18720 if (temp2)
18721 delete arg2;
18722 }
18723 {
18724 if (temp3)
18725 delete arg3;
18726 }
18727 return resultobj;
18728fail:
18729 {
18730 if (temp1)
18731 delete arg1;
18732 }
18733 {
18734 if (temp2)
18735 delete arg2;
18736 }
18737 {
18738 if (temp3)
18739 delete arg3;
18740 }
18741 return NULL;
d55e5bfc
RD
18742}
18743
18744
554f62e9
RD
18745SWIGINTERN PyObject *FileType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18746 PyObject *obj;
18747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18748 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileType, SWIG_NewClientData(obj));
18749 return SWIG_Py_Void();
d55e5bfc
RD
18750}
18751
554f62e9
RD
18752SWIGINTERN PyObject *FileType_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18753 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
18754}
18755
554f62e9
RD
18756SWIGINTERN int TheMimeTypesManager_set(PyObject *) {
18757 SWIG_Error(SWIG_AttributeError,"Variable TheMimeTypesManager is read-only.");
18758 return 1;
d55e5bfc
RD
18759}
18760
18761
554f62e9
RD
18762SWIGINTERN PyObject *TheMimeTypesManager_get(void) {
18763 PyObject *pyobj = 0;
18764
18765 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0 );
18766 return pyobj;
18767}
18768
18769
18770SWIGINTERN PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18771 PyObject *resultobj = 0;
18772 wxString *arg1 = 0 ;
18773 wxString *arg2 = 0 ;
18774 bool result;
18775 bool temp1 = false ;
18776 bool temp2 = false ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 char * kwnames[] = {
18780 (char *) "mimeType",(char *) "wildcard", NULL
18781 };
18782
18783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) SWIG_fail;
18784 {
18785 arg1 = wxString_in_helper(obj0);
18786 if (arg1 == NULL) SWIG_fail;
18787 temp1 = true;
18788 }
18789 {
18790 arg2 = wxString_in_helper(obj1);
18791 if (arg2 == NULL) SWIG_fail;
18792 temp2 = true;
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18802 }
18803 {
18804 if (temp1)
18805 delete arg1;
18806 }
18807 {
18808 if (temp2)
18809 delete arg2;
18810 }
18811 return resultobj;
18812fail:
18813 {
18814 if (temp1)
18815 delete arg1;
18816 }
18817 {
18818 if (temp2)
18819 delete arg2;
18820 }
18821 return NULL;
d55e5bfc
RD
18822}
18823
18824
554f62e9
RD
18825SWIGINTERN PyObject *_wrap_new_MimeTypesManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18826 PyObject *resultobj = 0;
18827 wxMimeTypesManager *result = 0 ;
18828
18829 if (!SWIG_Python_UnpackTuple(args,"new_MimeTypesManager",0,0,0)) SWIG_fail;
18830 {
18831 PyThreadState* __tstate = wxPyBeginAllowThreads();
18832 result = (wxMimeTypesManager *)new wxMimeTypesManager();
18833 wxPyEndAllowThreads(__tstate);
18834 if (PyErr_Occurred()) SWIG_fail;
18835 }
18836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_NEW | 0 );
18837 return resultobj;
18838fail:
18839 return NULL;
18840}
18841
18842
18843SWIGINTERN PyObject *_wrap_MimeTypesManager_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18844 PyObject *resultobj = 0;
18845 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18846 int arg2 = (int) wxMAILCAP_ALL ;
18847 wxString const &arg3_defvalue = wxPyEmptyString ;
18848 wxString *arg3 = (wxString *) &arg3_defvalue ;
18849 void *argp1 = 0 ;
18850 int res1 = 0 ;
18851 int val2 ;
18852 int ecode2 = 0 ;
18853 bool temp3 = false ;
18854 PyObject * obj0 = 0 ;
18855 PyObject * obj1 = 0 ;
18856 PyObject * obj2 = 0 ;
18857 char * kwnames[] = {
18858 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
18859 };
18860
18861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18863 if (!SWIG_IsOK(res1)) {
18864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Initialize" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18865 }
18866 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18867 if (obj1) {
18868 ecode2 = SWIG_AsVal_int(obj1, &val2);
18869 if (!SWIG_IsOK(ecode2)) {
18870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MimeTypesManager_Initialize" "', expected argument " "2"" of type '" "int""'");
18871 }
18872 arg2 = static_cast< int >(val2);
18873 }
18874 if (obj2) {
d55e5bfc 18875 {
554f62e9
RD
18876 arg3 = wxString_in_helper(obj2);
18877 if (arg3 == NULL) SWIG_fail;
18878 temp3 = true;
d55e5bfc 18879 }
554f62e9
RD
18880 }
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 (arg1)->Initialize(arg2,(wxString const &)*arg3);
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 resultobj = SWIG_Py_Void();
18888 {
18889 if (temp3)
18890 delete arg3;
18891 }
18892 return resultobj;
18893fail:
18894 {
18895 if (temp3)
18896 delete arg3;
18897 }
18898 return NULL;
d55e5bfc
RD
18899}
18900
18901
554f62e9
RD
18902SWIGINTERN PyObject *_wrap_MimeTypesManager_ClearData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18903 PyObject *resultobj = 0;
18904 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18905 void *argp1 = 0 ;
18906 int res1 = 0 ;
18907 PyObject *swig_obj[1] ;
18908
18909 if (!args) SWIG_fail;
18910 swig_obj[0] = args;
18911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18912 if (!SWIG_IsOK(res1)) {
18913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ClearData" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18914 }
18915 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 (arg1)->ClearData();
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_Py_Void();
18923 return resultobj;
18924fail:
18925 return NULL;
18926}
18927
18928
18929SWIGINTERN PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = 0;
18931 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18932 wxString *arg2 = 0 ;
18933 wxFileType *result = 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 bool temp2 = false ;
18937 PyObject * obj0 = 0 ;
18938 PyObject * obj1 = 0 ;
18939 char * kwnames[] = {
18940 (char *) "self",(char *) "ext", NULL
18941 };
18942
18943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) SWIG_fail;
18944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_GetFileTypeFromExtension" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
18947 }
18948 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
18949 {
18950 arg2 = wxString_in_helper(obj1);
18951 if (arg2 == NULL) SWIG_fail;
18952 temp2 = true;
18953 }
18954 {
18955 PyThreadState* __tstate = wxPyBeginAllowThreads();
18956 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
18957 wxPyEndAllowThreads(__tstate);
18958 if (PyErr_Occurred()) SWIG_fail;
18959 }
18960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
18961 {
18962 if (temp2)
18963 delete arg2;
18964 }
18965 return resultobj;
18966fail:
18967 {
18968 if (temp2)
18969 delete arg2;
18970 }
18971 return NULL;
18972}
18973
18974
18975SWIGINTERN PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18976 PyObject *resultobj = 0;
18977 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
18978 wxString *arg2 = 0 ;
18979 wxFileType *result = 0 ;
18980 void *argp1 = 0 ;
18981 int res1 = 0 ;
18982 bool temp2 = false ;
18983 PyObject * obj0 = 0 ;
18984 PyObject * obj1 = 0 ;
18985 char * kwnames[] = {
18986 (char *) "self",(char *) "mimeType", NULL
18987 };
18988
18989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) 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_GetFileTypeFromMimeType" "', 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 {
19001 PyThreadState* __tstate = wxPyBeginAllowThreads();
19002 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
19007 {
19008 if (temp2)
19009 delete arg2;
19010 }
19011 return resultobj;
19012fail:
19013 {
19014 if (temp2)
19015 delete arg2;
19016 }
19017 return NULL;
19018}
19019
19020
19021SWIGINTERN PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19022 PyObject *resultobj = 0;
19023 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19024 wxString *arg2 = 0 ;
19025 bool arg3 = (bool) false ;
19026 bool result;
19027 void *argp1 = 0 ;
19028 int res1 = 0 ;
19029 bool temp2 = false ;
19030 bool val3 ;
19031 int ecode3 = 0 ;
19032 PyObject * obj0 = 0 ;
19033 PyObject * obj1 = 0 ;
19034 PyObject * obj2 = 0 ;
19035 char * kwnames[] = {
19036 (char *) "self",(char *) "filename",(char *) "fallback", NULL
19037 };
19038
19039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19041 if (!SWIG_IsOK(res1)) {
19042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ReadMailcap" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19043 }
19044 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19045 {
19046 arg2 = wxString_in_helper(obj1);
19047 if (arg2 == NULL) SWIG_fail;
19048 temp2 = true;
19049 }
19050 if (obj2) {
19051 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19052 if (!SWIG_IsOK(ecode3)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MimeTypesManager_ReadMailcap" "', expected argument " "3"" of type '" "bool""'");
19054 }
19055 arg3 = static_cast< bool >(val3);
19056 }
19057 {
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 {
19064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19065 }
19066 {
19067 if (temp2)
19068 delete arg2;
19069 }
19070 return resultobj;
19071fail:
19072 {
19073 if (temp2)
19074 delete arg2;
19075 }
19076 return NULL;
19077}
19078
19079
19080SWIGINTERN PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19081 PyObject *resultobj = 0;
19082 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19083 wxString *arg2 = 0 ;
19084 bool result;
19085 void *argp1 = 0 ;
19086 int res1 = 0 ;
19087 bool temp2 = false ;
19088 PyObject * obj0 = 0 ;
19089 PyObject * obj1 = 0 ;
19090 char * kwnames[] = {
19091 (char *) "self",(char *) "filename", NULL
19092 };
19093
19094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) SWIG_fail;
19095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19096 if (!SWIG_IsOK(res1)) {
19097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_ReadMimeTypes" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19098 }
19099 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19100 {
19101 arg2 = wxString_in_helper(obj1);
19102 if (arg2 == NULL) SWIG_fail;
19103 temp2 = true;
19104 }
19105 {
19106 PyThreadState* __tstate = wxPyBeginAllowThreads();
19107 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
19108 wxPyEndAllowThreads(__tstate);
19109 if (PyErr_Occurred()) SWIG_fail;
19110 }
19111 {
19112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19113 }
19114 {
19115 if (temp2)
19116 delete arg2;
19117 }
19118 return resultobj;
19119fail:
19120 {
19121 if (temp2)
19122 delete arg2;
19123 }
19124 return NULL;
19125}
d55e5bfc
RD
19126
19127
554f62e9
RD
19128SWIGINTERN PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19129 PyObject *resultobj = 0;
19130 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19131 PyObject *result = 0 ;
19132 void *argp1 = 0 ;
19133 int res1 = 0 ;
19134 PyObject *swig_obj[1] ;
19135
19136 if (!args) SWIG_fail;
19137 swig_obj[0] = args;
19138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19139 if (!SWIG_IsOK(res1)) {
19140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_EnumAllFileTypes" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19141 }
19142 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = result;
19150 return resultobj;
19151fail:
19152 return NULL;
19153}
19154
19155
19156SWIGINTERN PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19157 PyObject *resultobj = 0;
19158 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19159 wxFileTypeInfo *arg2 = 0 ;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 void *argp2 = 0 ;
19163 int res2 = 0 ;
19164 PyObject * obj0 = 0 ;
19165 PyObject * obj1 = 0 ;
19166 char * kwnames[] = {
19167 (char *) "self",(char *) "ft", NULL
19168 };
19169
19170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) SWIG_fail;
19171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19172 if (!SWIG_IsOK(res1)) {
19173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_AddFallback" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19174 }
19175 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
19177 if (!SWIG_IsOK(res2)) {
19178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_AddFallback" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19179 }
19180 if (!argp2) {
19181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MimeTypesManager_AddFallback" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19182 }
19183 arg2 = reinterpret_cast< wxFileTypeInfo * >(argp2);
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_Py_Void();
19191 return resultobj;
19192fail:
19193 return NULL;
19194}
19195
19196
19197SWIGINTERN PyObject *_wrap_MimeTypesManager_Associate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj = 0;
19199 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19200 wxFileTypeInfo *arg2 = 0 ;
19201 wxFileType *result = 0 ;
19202 void *argp1 = 0 ;
19203 int res1 = 0 ;
19204 void *argp2 = 0 ;
19205 int res2 = 0 ;
19206 PyObject * obj0 = 0 ;
19207 PyObject * obj1 = 0 ;
19208 char * kwnames[] = {
19209 (char *) "self",(char *) "ftInfo", NULL
19210 };
19211
19212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) SWIG_fail;
19213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19214 if (!SWIG_IsOK(res1)) {
19215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Associate" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19216 }
19217 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileTypeInfo, 0 | 0);
19219 if (!SWIG_IsOK(res2)) {
19220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_Associate" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19221 }
19222 if (!argp2) {
19223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MimeTypesManager_Associate" "', expected argument " "2"" of type '" "wxFileTypeInfo const &""'");
19224 }
19225 arg2 = reinterpret_cast< wxFileTypeInfo * >(argp2);
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
19229 wxPyEndAllowThreads(__tstate);
19230 if (PyErr_Occurred()) SWIG_fail;
19231 }
19232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileType, SWIG_POINTER_OWN | 0 );
19233 return resultobj;
19234fail:
19235 return NULL;
19236}
19237
19238
19239SWIGINTERN PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19240 PyObject *resultobj = 0;
19241 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19242 wxFileType *arg2 = (wxFileType *) 0 ;
19243 bool result;
19244 void *argp1 = 0 ;
19245 int res1 = 0 ;
19246 void *argp2 = 0 ;
19247 int res2 = 0 ;
19248 PyObject * obj0 = 0 ;
19249 PyObject * obj1 = 0 ;
19250 char * kwnames[] = {
19251 (char *) "self",(char *) "ft", NULL
19252 };
19253
19254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) SWIG_fail;
19255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMimeTypesManager, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MimeTypesManager_Unassociate" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19258 }
19259 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFileType, 0 | 0 );
19261 if (!SWIG_IsOK(res2)) {
19262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MimeTypesManager_Unassociate" "', expected argument " "2"" of type '" "wxFileType *""'");
19263 }
19264 arg2 = reinterpret_cast< wxFileType * >(argp2);
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 result = (bool)(arg1)->Unassociate(arg2);
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 {
19272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19273 }
19274 return resultobj;
19275fail:
19276 return NULL;
d55e5bfc
RD
19277}
19278
19279
554f62e9
RD
19280SWIGINTERN PyObject *_wrap_delete_MimeTypesManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19281 PyObject *resultobj = 0;
19282 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
19283 void *argp1 = 0 ;
19284 int res1 = 0 ;
19285 PyObject *swig_obj[1] ;
19286
19287 if (!args) SWIG_fail;
19288 swig_obj[0] = args;
19289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMimeTypesManager, SWIG_POINTER_DISOWN | 0 );
19290 if (!SWIG_IsOK(res1)) {
19291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MimeTypesManager" "', expected argument " "1"" of type '" "wxMimeTypesManager *""'");
19292 }
19293 arg1 = reinterpret_cast< wxMimeTypesManager * >(argp1);
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 delete arg1;
d55e5bfc 19297
554f62e9
RD
19298 wxPyEndAllowThreads(__tstate);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 }
19301 resultobj = SWIG_Py_Void();
19302 return resultobj;
19303fail:
19304 return NULL;
d55e5bfc
RD
19305}
19306
19307
554f62e9
RD
19308SWIGINTERN PyObject *MimeTypesManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19309 PyObject *obj;
19310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19311 SWIG_TypeNewClientData(SWIGTYPE_p_wxMimeTypesManager, SWIG_NewClientData(obj));
19312 return SWIG_Py_Void();
d55e5bfc
RD
19313}
19314
554f62e9
RD
19315SWIGINTERN PyObject *MimeTypesManager_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19316 return SWIG_Python_InitShadowInstance(args);
19317}
d55e5bfc 19318
554f62e9
RD
19319SWIGINTERN int ART_TOOLBAR_set(PyObject *) {
19320 SWIG_Error(SWIG_AttributeError,"Variable ART_TOOLBAR is read-only.");
19321 return 1;
d55e5bfc
RD
19322}
19323
19324
554f62e9
RD
19325SWIGINTERN PyObject *ART_TOOLBAR_get(void) {
19326 PyObject *pyobj = 0;
19327
19328 {
19329#if wxUSE_UNICODE
19330 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
19331#else
19332 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
19333#endif
19334 }
19335 return pyobj;
d55e5bfc
RD
19336}
19337
19338
554f62e9
RD
19339SWIGINTERN int ART_MENU_set(PyObject *) {
19340 SWIG_Error(SWIG_AttributeError,"Variable ART_MENU is read-only.");
19341 return 1;
d55e5bfc
RD
19342}
19343
19344
554f62e9
RD
19345SWIGINTERN PyObject *ART_MENU_get(void) {
19346 PyObject *pyobj = 0;
19347
19348 {
19349#if wxUSE_UNICODE
19350 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
19351#else
19352 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
19353#endif
19354 }
19355 return pyobj;
d55e5bfc
RD
19356}
19357
19358
554f62e9
RD
19359SWIGINTERN int ART_FRAME_ICON_set(PyObject *) {
19360 SWIG_Error(SWIG_AttributeError,"Variable ART_FRAME_ICON is read-only.");
19361 return 1;
d55e5bfc
RD
19362}
19363
19364
554f62e9
RD
19365SWIGINTERN PyObject *ART_FRAME_ICON_get(void) {
19366 PyObject *pyobj = 0;
19367
19368 {
19369#if wxUSE_UNICODE
19370 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
19371#else
19372 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
19373#endif
19374 }
19375 return pyobj;
d55e5bfc
RD
19376}
19377
19378
554f62e9
RD
19379SWIGINTERN int ART_CMN_DIALOG_set(PyObject *) {
19380 SWIG_Error(SWIG_AttributeError,"Variable ART_CMN_DIALOG is read-only.");
19381 return 1;
d55e5bfc
RD
19382}
19383
19384
554f62e9
RD
19385SWIGINTERN PyObject *ART_CMN_DIALOG_get(void) {
19386 PyObject *pyobj = 0;
19387
19388 {
19389#if wxUSE_UNICODE
19390 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
19391#else
19392 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
19393#endif
19394 }
19395 return pyobj;
d55e5bfc
RD
19396}
19397
19398
554f62e9
RD
19399SWIGINTERN int ART_HELP_BROWSER_set(PyObject *) {
19400 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_BROWSER is read-only.");
19401 return 1;
d55e5bfc
RD
19402}
19403
19404
554f62e9
RD
19405SWIGINTERN PyObject *ART_HELP_BROWSER_get(void) {
19406 PyObject *pyobj = 0;
19407
19408 {
19409#if wxUSE_UNICODE
19410 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
19411#else
19412 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
19413#endif
19414 }
19415 return pyobj;
d55e5bfc
RD
19416}
19417
19418
554f62e9
RD
19419SWIGINTERN int ART_MESSAGE_BOX_set(PyObject *) {
19420 SWIG_Error(SWIG_AttributeError,"Variable ART_MESSAGE_BOX is read-only.");
19421 return 1;
d55e5bfc
RD
19422}
19423
19424
554f62e9
RD
19425SWIGINTERN PyObject *ART_MESSAGE_BOX_get(void) {
19426 PyObject *pyobj = 0;
19427
19428 {
19429#if wxUSE_UNICODE
19430 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
19431#else
19432 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
19433#endif
19434 }
19435 return pyobj;
d55e5bfc
RD
19436}
19437
19438
554f62e9
RD
19439SWIGINTERN int ART_BUTTON_set(PyObject *) {
19440 SWIG_Error(SWIG_AttributeError,"Variable ART_BUTTON is read-only.");
19441 return 1;
d55e5bfc
RD
19442}
19443
19444
554f62e9
RD
19445SWIGINTERN PyObject *ART_BUTTON_get(void) {
19446 PyObject *pyobj = 0;
19447
19448 {
19449#if wxUSE_UNICODE
19450 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
19451#else
19452 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
19453#endif
19454 }
19455 return pyobj;
d55e5bfc
RD
19456}
19457
19458
554f62e9
RD
19459SWIGINTERN int ART_OTHER_set(PyObject *) {
19460 SWIG_Error(SWIG_AttributeError,"Variable ART_OTHER is read-only.");
19461 return 1;
d55e5bfc
RD
19462}
19463
19464
554f62e9
RD
19465SWIGINTERN PyObject *ART_OTHER_get(void) {
19466 PyObject *pyobj = 0;
19467
19468 {
19469#if wxUSE_UNICODE
19470 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
19471#else
19472 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
19473#endif
19474 }
19475 return pyobj;
d55e5bfc
RD
19476}
19477
19478
554f62e9
RD
19479SWIGINTERN int ART_ADD_BOOKMARK_set(PyObject *) {
19480 SWIG_Error(SWIG_AttributeError,"Variable ART_ADD_BOOKMARK is read-only.");
19481 return 1;
d55e5bfc
RD
19482}
19483
19484
554f62e9
RD
19485SWIGINTERN PyObject *ART_ADD_BOOKMARK_get(void) {
19486 PyObject *pyobj = 0;
19487
19488 {
19489#if wxUSE_UNICODE
19490 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
19491#else
19492 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
19493#endif
19494 }
19495 return pyobj;
d55e5bfc
RD
19496}
19497
19498
554f62e9
RD
19499SWIGINTERN int ART_DEL_BOOKMARK_set(PyObject *) {
19500 SWIG_Error(SWIG_AttributeError,"Variable ART_DEL_BOOKMARK is read-only.");
19501 return 1;
d55e5bfc
RD
19502}
19503
19504
554f62e9
RD
19505SWIGINTERN PyObject *ART_DEL_BOOKMARK_get(void) {
19506 PyObject *pyobj = 0;
19507
19508 {
19509#if wxUSE_UNICODE
19510 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
19511#else
19512 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
19513#endif
19514 }
19515 return pyobj;
d55e5bfc
RD
19516}
19517
19518
554f62e9
RD
19519SWIGINTERN int ART_HELP_SIDE_PANEL_set(PyObject *) {
19520 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
19521 return 1;
d55e5bfc
RD
19522}
19523
19524
554f62e9
RD
19525SWIGINTERN PyObject *ART_HELP_SIDE_PANEL_get(void) {
19526 PyObject *pyobj = 0;
19527
19528 {
d55e5bfc 19529#if wxUSE_UNICODE
554f62e9 19530 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
d55e5bfc 19531#else
554f62e9 19532 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
d55e5bfc 19533#endif
554f62e9
RD
19534 }
19535 return pyobj;
d55e5bfc
RD
19536}
19537
19538
554f62e9
RD
19539SWIGINTERN int ART_HELP_SETTINGS_set(PyObject *) {
19540 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_SETTINGS is read-only.");
19541 return 1;
19542}
19543
19544
19545SWIGINTERN PyObject *ART_HELP_SETTINGS_get(void) {
19546 PyObject *pyobj = 0;
19547
19548 {
d55e5bfc 19549#if wxUSE_UNICODE
554f62e9 19550 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
d55e5bfc 19551#else
554f62e9 19552 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
d55e5bfc 19553#endif
554f62e9
RD
19554 }
19555 return pyobj;
d55e5bfc
RD
19556}
19557
19558
554f62e9
RD
19559SWIGINTERN int ART_HELP_BOOK_set(PyObject *) {
19560 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_BOOK is read-only.");
19561 return 1;
19562}
19563
19564
19565SWIGINTERN PyObject *ART_HELP_BOOK_get(void) {
19566 PyObject *pyobj = 0;
19567
19568 {
d55e5bfc 19569#if wxUSE_UNICODE
554f62e9 19570 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
d55e5bfc 19571#else
554f62e9 19572 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
d55e5bfc 19573#endif
554f62e9
RD
19574 }
19575 return pyobj;
d55e5bfc
RD
19576}
19577
19578
554f62e9
RD
19579SWIGINTERN int ART_HELP_FOLDER_set(PyObject *) {
19580 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_FOLDER is read-only.");
19581 return 1;
19582}
19583
19584
19585SWIGINTERN PyObject *ART_HELP_FOLDER_get(void) {
19586 PyObject *pyobj = 0;
19587
19588 {
d55e5bfc 19589#if wxUSE_UNICODE
554f62e9 19590 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
d55e5bfc 19591#else
554f62e9 19592 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
d55e5bfc 19593#endif
554f62e9
RD
19594 }
19595 return pyobj;
d55e5bfc
RD
19596}
19597
19598
554f62e9
RD
19599SWIGINTERN int ART_HELP_PAGE_set(PyObject *) {
19600 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP_PAGE is read-only.");
19601 return 1;
19602}
19603
19604
19605SWIGINTERN PyObject *ART_HELP_PAGE_get(void) {
19606 PyObject *pyobj = 0;
19607
19608 {
d55e5bfc 19609#if wxUSE_UNICODE
554f62e9 19610 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
d55e5bfc 19611#else
554f62e9 19612 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
d55e5bfc 19613#endif
554f62e9
RD
19614 }
19615 return pyobj;
d55e5bfc
RD
19616}
19617
19618
554f62e9
RD
19619SWIGINTERN int ART_GO_BACK_set(PyObject *) {
19620 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_BACK is read-only.");
19621 return 1;
d55e5bfc
RD
19622}
19623
19624
554f62e9
RD
19625SWIGINTERN PyObject *ART_GO_BACK_get(void) {
19626 PyObject *pyobj = 0;
19627
19628 {
19629#if wxUSE_UNICODE
19630 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
19631#else
19632 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
19633#endif
19634 }
19635 return pyobj;
d55e5bfc
RD
19636}
19637
19638
554f62e9
RD
19639SWIGINTERN int ART_GO_FORWARD_set(PyObject *) {
19640 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_FORWARD is read-only.");
19641 return 1;
19642}
19643
19644
19645SWIGINTERN PyObject *ART_GO_FORWARD_get(void) {
19646 PyObject *pyobj = 0;
19647
19648 {
d55e5bfc 19649#if wxUSE_UNICODE
554f62e9 19650 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
d55e5bfc 19651#else
554f62e9 19652 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
d55e5bfc 19653#endif
554f62e9
RD
19654 }
19655 return pyobj;
d55e5bfc
RD
19656}
19657
19658
554f62e9
RD
19659SWIGINTERN int ART_GO_UP_set(PyObject *) {
19660 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_UP is read-only.");
19661 return 1;
d55e5bfc
RD
19662}
19663
19664
554f62e9
RD
19665SWIGINTERN PyObject *ART_GO_UP_get(void) {
19666 PyObject *pyobj = 0;
19667
19668 {
19669#if wxUSE_UNICODE
19670 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
19671#else
19672 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
19673#endif
19674 }
19675 return pyobj;
d55e5bfc 19676}
554f62e9
RD
19677
19678
19679SWIGINTERN int ART_GO_DOWN_set(PyObject *) {
19680 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_DOWN is read-only.");
19681 return 1;
d55e5bfc
RD
19682}
19683
19684
554f62e9
RD
19685SWIGINTERN PyObject *ART_GO_DOWN_get(void) {
19686 PyObject *pyobj = 0;
19687
19688 {
19689#if wxUSE_UNICODE
19690 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
19691#else
19692 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
19693#endif
19694 }
19695 return pyobj;
d55e5bfc
RD
19696}
19697
19698
554f62e9
RD
19699SWIGINTERN int ART_GO_TO_PARENT_set(PyObject *) {
19700 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_TO_PARENT is read-only.");
19701 return 1;
d55e5bfc
RD
19702}
19703
19704
554f62e9
RD
19705SWIGINTERN PyObject *ART_GO_TO_PARENT_get(void) {
19706 PyObject *pyobj = 0;
19707
19708 {
19709#if wxUSE_UNICODE
19710 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
19711#else
19712 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
19713#endif
19714 }
19715 return pyobj;
d55e5bfc
RD
19716}
19717
19718
554f62e9
RD
19719SWIGINTERN int ART_GO_HOME_set(PyObject *) {
19720 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_HOME is read-only.");
19721 return 1;
d55e5bfc
RD
19722}
19723
19724
554f62e9
RD
19725SWIGINTERN PyObject *ART_GO_HOME_get(void) {
19726 PyObject *pyobj = 0;
19727
19728 {
19729#if wxUSE_UNICODE
19730 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
19731#else
19732 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
19733#endif
19734 }
19735 return pyobj;
d55e5bfc
RD
19736}
19737
19738
554f62e9
RD
19739SWIGINTERN int ART_FILE_OPEN_set(PyObject *) {
19740 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_OPEN is read-only.");
19741 return 1;
d55e5bfc
RD
19742}
19743
19744
554f62e9
RD
19745SWIGINTERN PyObject *ART_FILE_OPEN_get(void) {
19746 PyObject *pyobj = 0;
19747
19748 {
19749#if wxUSE_UNICODE
19750 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
19751#else
19752 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
19753#endif
19754 }
19755 return pyobj;
d55e5bfc
RD
19756}
19757
19758
554f62e9
RD
19759SWIGINTERN int ART_FILE_SAVE_set(PyObject *) {
19760 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_SAVE is read-only.");
19761 return 1;
d55e5bfc
RD
19762}
19763
19764
554f62e9
RD
19765SWIGINTERN PyObject *ART_FILE_SAVE_get(void) {
19766 PyObject *pyobj = 0;
19767
19768 {
19769#if wxUSE_UNICODE
19770 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
19771#else
19772 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE)->c_str(), (&wxPyART_FILE_SAVE)->Len());
19773#endif
19774 }
19775 return pyobj;
d55e5bfc
RD
19776}
19777
19778
554f62e9
RD
19779SWIGINTERN int ART_FILE_SAVE_AS_set(PyObject *) {
19780 SWIG_Error(SWIG_AttributeError,"Variable ART_FILE_SAVE_AS is read-only.");
19781 return 1;
d55e5bfc
RD
19782}
19783
19784
554f62e9
RD
19785SWIGINTERN PyObject *ART_FILE_SAVE_AS_get(void) {
19786 PyObject *pyobj = 0;
19787
19788 {
19789#if wxUSE_UNICODE
19790 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
19791#else
19792 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_SAVE_AS)->c_str(), (&wxPyART_FILE_SAVE_AS)->Len());
19793#endif
19794 }
19795 return pyobj;
d55e5bfc
RD
19796}
19797
19798
554f62e9
RD
19799SWIGINTERN int ART_PRINT_set(PyObject *) {
19800 SWIG_Error(SWIG_AttributeError,"Variable ART_PRINT is read-only.");
19801 return 1;
d55e5bfc
RD
19802}
19803
19804
554f62e9
RD
19805SWIGINTERN PyObject *ART_PRINT_get(void) {
19806 PyObject *pyobj = 0;
19807
19808 {
d55e5bfc 19809#if wxUSE_UNICODE
554f62e9 19810 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
d55e5bfc 19811#else
554f62e9 19812 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
d55e5bfc 19813#endif
554f62e9
RD
19814 }
19815 return pyobj;
d55e5bfc
RD
19816}
19817
19818
554f62e9
RD
19819SWIGINTERN int ART_HELP_set(PyObject *) {
19820 SWIG_Error(SWIG_AttributeError,"Variable ART_HELP is read-only.");
19821 return 1;
d55e5bfc
RD
19822}
19823
19824
554f62e9
RD
19825SWIGINTERN PyObject *ART_HELP_get(void) {
19826 PyObject *pyobj = 0;
19827
19828 {
19829#if wxUSE_UNICODE
19830 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
19831#else
19832 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
19833#endif
19834 }
19835 return pyobj;
d55e5bfc
RD
19836}
19837
19838
554f62e9
RD
19839SWIGINTERN int ART_TIP_set(PyObject *) {
19840 SWIG_Error(SWIG_AttributeError,"Variable ART_TIP is read-only.");
19841 return 1;
d55e5bfc
RD
19842}
19843
19844
554f62e9
RD
19845SWIGINTERN PyObject *ART_TIP_get(void) {
19846 PyObject *pyobj = 0;
19847
19848 {
19849#if wxUSE_UNICODE
19850 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
19851#else
19852 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
19853#endif
19854 }
19855 return pyobj;
d55e5bfc
RD
19856}
19857
19858
554f62e9
RD
19859SWIGINTERN int ART_REPORT_VIEW_set(PyObject *) {
19860 SWIG_Error(SWIG_AttributeError,"Variable ART_REPORT_VIEW is read-only.");
19861 return 1;
d55e5bfc
RD
19862}
19863
19864
554f62e9
RD
19865SWIGINTERN PyObject *ART_REPORT_VIEW_get(void) {
19866 PyObject *pyobj = 0;
19867
19868 {
19869#if wxUSE_UNICODE
19870 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
19871#else
19872 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
19873#endif
19874 }
19875 return pyobj;
d55e5bfc
RD
19876}
19877
19878
554f62e9
RD
19879SWIGINTERN int ART_LIST_VIEW_set(PyObject *) {
19880 SWIG_Error(SWIG_AttributeError,"Variable ART_LIST_VIEW is read-only.");
19881 return 1;
d55e5bfc
RD
19882}
19883
19884
554f62e9
RD
19885SWIGINTERN PyObject *ART_LIST_VIEW_get(void) {
19886 PyObject *pyobj = 0;
19887
19888 {
19889#if wxUSE_UNICODE
19890 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
19891#else
19892 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
19893#endif
19894 }
19895 return pyobj;
d55e5bfc
RD
19896}
19897
19898
554f62e9
RD
19899SWIGINTERN int ART_NEW_DIR_set(PyObject *) {
19900 SWIG_Error(SWIG_AttributeError,"Variable ART_NEW_DIR is read-only.");
19901 return 1;
d55e5bfc
RD
19902}
19903
19904
554f62e9
RD
19905SWIGINTERN PyObject *ART_NEW_DIR_get(void) {
19906 PyObject *pyobj = 0;
19907
19908 {
19909#if wxUSE_UNICODE
19910 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
19911#else
19912 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
19913#endif
19914 }
19915 return pyobj;
d55e5bfc
RD
19916}
19917
19918
554f62e9
RD
19919SWIGINTERN int ART_HARDDISK_set(PyObject *) {
19920 SWIG_Error(SWIG_AttributeError,"Variable ART_HARDDISK is read-only.");
19921 return 1;
d55e5bfc
RD
19922}
19923
19924
554f62e9
RD
19925SWIGINTERN PyObject *ART_HARDDISK_get(void) {
19926 PyObject *pyobj = 0;
19927
19928 {
19929#if wxUSE_UNICODE
19930 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
19931#else
19932 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
19933#endif
19934 }
19935 return pyobj;
d55e5bfc
RD
19936}
19937
19938
554f62e9
RD
19939SWIGINTERN int ART_FLOPPY_set(PyObject *) {
19940 SWIG_Error(SWIG_AttributeError,"Variable ART_FLOPPY is read-only.");
19941 return 1;
d55e5bfc
RD
19942}
19943
19944
554f62e9
RD
19945SWIGINTERN PyObject *ART_FLOPPY_get(void) {
19946 PyObject *pyobj = 0;
19947
19948 {
19949#if wxUSE_UNICODE
19950 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
19951#else
19952 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
19953#endif
19954 }
19955 return pyobj;
d55e5bfc
RD
19956}
19957
19958
554f62e9
RD
19959SWIGINTERN int ART_CDROM_set(PyObject *) {
19960 SWIG_Error(SWIG_AttributeError,"Variable ART_CDROM is read-only.");
19961 return 1;
d55e5bfc
RD
19962}
19963
19964
554f62e9
RD
19965SWIGINTERN PyObject *ART_CDROM_get(void) {
19966 PyObject *pyobj = 0;
19967
19968 {
d55e5bfc 19969#if wxUSE_UNICODE
554f62e9 19970 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
d55e5bfc 19971#else
554f62e9 19972 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
d55e5bfc 19973#endif
554f62e9
RD
19974 }
19975 return pyobj;
d55e5bfc
RD
19976}
19977
19978
554f62e9
RD
19979SWIGINTERN int ART_REMOVABLE_set(PyObject *) {
19980 SWIG_Error(SWIG_AttributeError,"Variable ART_REMOVABLE is read-only.");
19981 return 1;
d55e5bfc
RD
19982}
19983
19984
554f62e9
RD
19985SWIGINTERN PyObject *ART_REMOVABLE_get(void) {
19986 PyObject *pyobj = 0;
19987
19988 {
d55e5bfc 19989#if wxUSE_UNICODE
554f62e9 19990 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
d55e5bfc 19991#else
554f62e9 19992 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
d55e5bfc 19993#endif
554f62e9
RD
19994 }
19995 return pyobj;
d55e5bfc
RD
19996}
19997
19998
554f62e9
RD
19999SWIGINTERN int ART_FOLDER_set(PyObject *) {
20000 SWIG_Error(SWIG_AttributeError,"Variable ART_FOLDER is read-only.");
20001 return 1;
d55e5bfc
RD
20002}
20003
20004
554f62e9
RD
20005SWIGINTERN PyObject *ART_FOLDER_get(void) {
20006 PyObject *pyobj = 0;
20007
20008 {
d55e5bfc 20009#if wxUSE_UNICODE
554f62e9 20010 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
d55e5bfc 20011#else
554f62e9 20012 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
d55e5bfc 20013#endif
554f62e9
RD
20014 }
20015 return pyobj;
d55e5bfc
RD
20016}
20017
20018
554f62e9
RD
20019SWIGINTERN int ART_FOLDER_OPEN_set(PyObject *) {
20020 SWIG_Error(SWIG_AttributeError,"Variable ART_FOLDER_OPEN is read-only.");
20021 return 1;
d55e5bfc
RD
20022}
20023
20024
554f62e9
RD
20025SWIGINTERN PyObject *ART_FOLDER_OPEN_get(void) {
20026 PyObject *pyobj = 0;
20027
20028 {
d55e5bfc 20029#if wxUSE_UNICODE
554f62e9 20030 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
d55e5bfc 20031#else
554f62e9 20032 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
d55e5bfc 20033#endif
554f62e9
RD
20034 }
20035 return pyobj;
d55e5bfc
RD
20036}
20037
20038
554f62e9
RD
20039SWIGINTERN int ART_GO_DIR_UP_set(PyObject *) {
20040 SWIG_Error(SWIG_AttributeError,"Variable ART_GO_DIR_UP is read-only.");
20041 return 1;
d55e5bfc
RD
20042}
20043
20044
554f62e9
RD
20045SWIGINTERN PyObject *ART_GO_DIR_UP_get(void) {
20046 PyObject *pyobj = 0;
20047
20048 {
d55e5bfc 20049#if wxUSE_UNICODE
554f62e9 20050 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
d55e5bfc 20051#else
554f62e9 20052 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
d55e5bfc 20053#endif
554f62e9
RD
20054 }
20055 return pyobj;
d55e5bfc
RD
20056}
20057
20058
554f62e9
RD
20059SWIGINTERN int ART_EXECUTABLE_FILE_set(PyObject *) {
20060 SWIG_Error(SWIG_AttributeError,"Variable ART_EXECUTABLE_FILE is read-only.");
20061 return 1;
d55e5bfc
RD
20062}
20063
20064
554f62e9
RD
20065SWIGINTERN PyObject *ART_EXECUTABLE_FILE_get(void) {
20066 PyObject *pyobj = 0;
20067
20068 {
d55e5bfc 20069#if wxUSE_UNICODE
554f62e9 20070 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
d55e5bfc 20071#else
554f62e9 20072 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
d55e5bfc 20073#endif
554f62e9
RD
20074 }
20075 return pyobj;
d55e5bfc
RD
20076}
20077
20078
554f62e9
RD
20079SWIGINTERN int ART_NORMAL_FILE_set(PyObject *) {
20080 SWIG_Error(SWIG_AttributeError,"Variable ART_NORMAL_FILE is read-only.");
20081 return 1;
4cf4100f
RD
20082}
20083
20084
554f62e9
RD
20085SWIGINTERN PyObject *ART_NORMAL_FILE_get(void) {
20086 PyObject *pyobj = 0;
20087
20088 {
4cf4100f 20089#if wxUSE_UNICODE
554f62e9 20090 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
4cf4100f 20091#else
554f62e9 20092 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
4cf4100f 20093#endif
554f62e9
RD
20094 }
20095 return pyobj;
4cf4100f
RD
20096}
20097
20098
554f62e9
RD
20099SWIGINTERN int ART_TICK_MARK_set(PyObject *) {
20100 SWIG_Error(SWIG_AttributeError,"Variable ART_TICK_MARK is read-only.");
20101 return 1;
d55e5bfc
RD
20102}
20103
20104
554f62e9
RD
20105SWIGINTERN PyObject *ART_TICK_MARK_get(void) {
20106 PyObject *pyobj = 0;
20107
20108 {
d55e5bfc 20109#if wxUSE_UNICODE
554f62e9 20110 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
d55e5bfc 20111#else
554f62e9 20112 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
d55e5bfc 20113#endif
554f62e9
RD
20114 }
20115 return pyobj;
d55e5bfc
RD
20116}
20117
20118
554f62e9
RD
20119SWIGINTERN int ART_CROSS_MARK_set(PyObject *) {
20120 SWIG_Error(SWIG_AttributeError,"Variable ART_CROSS_MARK is read-only.");
20121 return 1;
d55e5bfc
RD
20122}
20123
20124
554f62e9
RD
20125SWIGINTERN PyObject *ART_CROSS_MARK_get(void) {
20126 PyObject *pyobj = 0;
20127
20128 {
d55e5bfc 20129#if wxUSE_UNICODE
554f62e9 20130 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
d55e5bfc 20131#else
554f62e9 20132 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
d55e5bfc 20133#endif
554f62e9
RD
20134 }
20135 return pyobj;
d55e5bfc
RD
20136}
20137
20138
554f62e9
RD
20139SWIGINTERN int ART_ERROR_set(PyObject *) {
20140 SWIG_Error(SWIG_AttributeError,"Variable ART_ERROR is read-only.");
20141 return 1;
d55e5bfc
RD
20142}
20143
20144
554f62e9
RD
20145SWIGINTERN PyObject *ART_ERROR_get(void) {
20146 PyObject *pyobj = 0;
20147
20148 {
d55e5bfc 20149#if wxUSE_UNICODE
554f62e9 20150 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
d55e5bfc 20151#else
554f62e9 20152 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
d55e5bfc 20153#endif
554f62e9
RD
20154 }
20155 return pyobj;
d55e5bfc
RD
20156}
20157
20158
554f62e9
RD
20159SWIGINTERN int ART_QUESTION_set(PyObject *) {
20160 SWIG_Error(SWIG_AttributeError,"Variable ART_QUESTION is read-only.");
20161 return 1;
d55e5bfc
RD
20162}
20163
20164
554f62e9
RD
20165SWIGINTERN PyObject *ART_QUESTION_get(void) {
20166 PyObject *pyobj = 0;
20167
20168 {
d55e5bfc 20169#if wxUSE_UNICODE
554f62e9 20170 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
d55e5bfc 20171#else
554f62e9 20172 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
d55e5bfc 20173#endif
554f62e9
RD
20174 }
20175 return pyobj;
d55e5bfc
RD
20176}
20177
20178
554f62e9
RD
20179SWIGINTERN int ART_WARNING_set(PyObject *) {
20180 SWIG_Error(SWIG_AttributeError,"Variable ART_WARNING is read-only.");
20181 return 1;
d55e5bfc
RD
20182}
20183
20184
554f62e9
RD
20185SWIGINTERN PyObject *ART_WARNING_get(void) {
20186 PyObject *pyobj = 0;
20187
20188 {
d55e5bfc 20189#if wxUSE_UNICODE
554f62e9 20190 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
d55e5bfc 20191#else
554f62e9 20192 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
d55e5bfc 20193#endif
554f62e9
RD
20194 }
20195 return pyobj;
d55e5bfc
RD
20196}
20197
20198
554f62e9
RD
20199SWIGINTERN int ART_INFORMATION_set(PyObject *) {
20200 SWIG_Error(SWIG_AttributeError,"Variable ART_INFORMATION is read-only.");
20201 return 1;
d55e5bfc
RD
20202}
20203
20204
554f62e9
RD
20205SWIGINTERN PyObject *ART_INFORMATION_get(void) {
20206 PyObject *pyobj = 0;
20207
20208 {
d55e5bfc 20209#if wxUSE_UNICODE
554f62e9 20210 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
d55e5bfc 20211#else
554f62e9 20212 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
d55e5bfc 20213#endif
554f62e9
RD
20214 }
20215 return pyobj;
d55e5bfc
RD
20216}
20217
20218
554f62e9
RD
20219SWIGINTERN int ART_MISSING_IMAGE_set(PyObject *) {
20220 SWIG_Error(SWIG_AttributeError,"Variable ART_MISSING_IMAGE is read-only.");
20221 return 1;
d55e5bfc
RD
20222}
20223
20224
554f62e9
RD
20225SWIGINTERN PyObject *ART_MISSING_IMAGE_get(void) {
20226 PyObject *pyobj = 0;
20227
20228 {
d55e5bfc 20229#if wxUSE_UNICODE
554f62e9 20230 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
d55e5bfc 20231#else
554f62e9 20232 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
d55e5bfc 20233#endif
554f62e9
RD
20234 }
20235 return pyobj;
d55e5bfc
RD
20236}
20237
20238
554f62e9
RD
20239SWIGINTERN int ART_COPY_set(PyObject *) {
20240 SWIG_Error(SWIG_AttributeError,"Variable ART_COPY is read-only.");
20241 return 1;
d55e5bfc
RD
20242}
20243
20244
554f62e9
RD
20245SWIGINTERN PyObject *ART_COPY_get(void) {
20246 PyObject *pyobj = 0;
20247
20248 {
d55e5bfc 20249#if wxUSE_UNICODE
554f62e9 20250 pyobj = PyUnicode_FromWideChar((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
d55e5bfc 20251#else
554f62e9 20252 pyobj = PyString_FromStringAndSize((&wxPyART_COPY)->c_str(), (&wxPyART_COPY)->Len());
d55e5bfc 20253#endif
554f62e9
RD
20254 }
20255 return pyobj;
d55e5bfc
RD
20256}
20257
20258
554f62e9
RD
20259SWIGINTERN int ART_CUT_set(PyObject *) {
20260 SWIG_Error(SWIG_AttributeError,"Variable ART_CUT is read-only.");
20261 return 1;
d55e5bfc
RD
20262}
20263
20264
554f62e9
RD
20265SWIGINTERN PyObject *ART_CUT_get(void) {
20266 PyObject *pyobj = 0;
20267
20268 {
d55e5bfc 20269#if wxUSE_UNICODE
554f62e9 20270 pyobj = PyUnicode_FromWideChar((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
d55e5bfc 20271#else
554f62e9 20272 pyobj = PyString_FromStringAndSize((&wxPyART_CUT)->c_str(), (&wxPyART_CUT)->Len());
d55e5bfc 20273#endif
554f62e9
RD
20274 }
20275 return pyobj;
d55e5bfc
RD
20276}
20277
20278
554f62e9
RD
20279SWIGINTERN int ART_PASTE_set(PyObject *) {
20280 SWIG_Error(SWIG_AttributeError,"Variable ART_PASTE is read-only.");
20281 return 1;
d55e5bfc
RD
20282}
20283
20284
554f62e9
RD
20285SWIGINTERN PyObject *ART_PASTE_get(void) {
20286 PyObject *pyobj = 0;
20287
20288 {
d55e5bfc 20289#if wxUSE_UNICODE
554f62e9 20290 pyobj = PyUnicode_FromWideChar((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
d55e5bfc 20291#else
554f62e9 20292 pyobj = PyString_FromStringAndSize((&wxPyART_PASTE)->c_str(), (&wxPyART_PASTE)->Len());
d55e5bfc 20293#endif
554f62e9
RD
20294 }
20295 return pyobj;
d55e5bfc
RD
20296}
20297
20298
554f62e9
RD
20299SWIGINTERN int ART_DELETE_set(PyObject *) {
20300 SWIG_Error(SWIG_AttributeError,"Variable ART_DELETE is read-only.");
20301 return 1;
d55e5bfc
RD
20302}
20303
20304
554f62e9
RD
20305SWIGINTERN PyObject *ART_DELETE_get(void) {
20306 PyObject *pyobj = 0;
20307
20308 {
d55e5bfc 20309#if wxUSE_UNICODE
554f62e9 20310 pyobj = PyUnicode_FromWideChar((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
d55e5bfc 20311#else
554f62e9 20312 pyobj = PyString_FromStringAndSize((&wxPyART_DELETE)->c_str(), (&wxPyART_DELETE)->Len());
d55e5bfc 20313#endif
554f62e9
RD
20314 }
20315 return pyobj;
d55e5bfc
RD
20316}
20317
20318
554f62e9
RD
20319SWIGINTERN int ART_NEW_set(PyObject *) {
20320 SWIG_Error(SWIG_AttributeError,"Variable ART_NEW is read-only.");
20321 return 1;
d55e5bfc
RD
20322}
20323
20324
554f62e9
RD
20325SWIGINTERN PyObject *ART_NEW_get(void) {
20326 PyObject *pyobj = 0;
20327
20328 {
d55e5bfc 20329#if wxUSE_UNICODE
554f62e9 20330 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
d55e5bfc 20331#else
554f62e9 20332 pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len());
d55e5bfc 20333#endif
554f62e9
RD
20334 }
20335 return pyobj;
d55e5bfc
RD
20336}
20337
20338
554f62e9
RD
20339SWIGINTERN int ART_UNDO_set(PyObject *) {
20340 SWIG_Error(SWIG_AttributeError,"Variable ART_UNDO is read-only.");
20341 return 1;
d55e5bfc
RD
20342}
20343
20344
554f62e9
RD
20345SWIGINTERN PyObject *ART_UNDO_get(void) {
20346 PyObject *pyobj = 0;
20347
20348 {
d55e5bfc 20349#if wxUSE_UNICODE
554f62e9 20350 pyobj = PyUnicode_FromWideChar((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
d55e5bfc 20351#else
554f62e9 20352 pyobj = PyString_FromStringAndSize((&wxPyART_UNDO)->c_str(), (&wxPyART_UNDO)->Len());
d55e5bfc 20353#endif
554f62e9
RD
20354 }
20355 return pyobj;
d55e5bfc
RD
20356}
20357
20358
554f62e9
RD
20359SWIGINTERN int ART_REDO_set(PyObject *) {
20360 SWIG_Error(SWIG_AttributeError,"Variable ART_REDO is read-only.");
20361 return 1;
d55e5bfc
RD
20362}
20363
20364
554f62e9
RD
20365SWIGINTERN PyObject *ART_REDO_get(void) {
20366 PyObject *pyobj = 0;
20367
20368 {
d55e5bfc 20369#if wxUSE_UNICODE
554f62e9 20370 pyobj = PyUnicode_FromWideChar((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
d55e5bfc 20371#else
554f62e9 20372 pyobj = PyString_FromStringAndSize((&wxPyART_REDO)->c_str(), (&wxPyART_REDO)->Len());
d55e5bfc 20373#endif
554f62e9
RD
20374 }
20375 return pyobj;
d55e5bfc
RD
20376}
20377
20378
554f62e9
RD
20379SWIGINTERN int ART_QUIT_set(PyObject *) {
20380 SWIG_Error(SWIG_AttributeError,"Variable ART_QUIT is read-only.");
20381 return 1;
d55e5bfc
RD
20382}
20383
20384
554f62e9
RD
20385SWIGINTERN PyObject *ART_QUIT_get(void) {
20386 PyObject *pyobj = 0;
20387
20388 {
d55e5bfc 20389#if wxUSE_UNICODE
554f62e9 20390 pyobj = PyUnicode_FromWideChar((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
d55e5bfc 20391#else
554f62e9 20392 pyobj = PyString_FromStringAndSize((&wxPyART_QUIT)->c_str(), (&wxPyART_QUIT)->Len());
d55e5bfc 20393#endif
554f62e9
RD
20394 }
20395 return pyobj;
d55e5bfc
RD
20396}
20397
20398
554f62e9
RD
20399SWIGINTERN int ART_FIND_set(PyObject *) {
20400 SWIG_Error(SWIG_AttributeError,"Variable ART_FIND is read-only.");
20401 return 1;
68350608
RD
20402}
20403
20404
554f62e9
RD
20405SWIGINTERN PyObject *ART_FIND_get(void) {
20406 PyObject *pyobj = 0;
20407
20408 {
68350608 20409#if wxUSE_UNICODE
554f62e9 20410 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
68350608 20411#else
554f62e9 20412 pyobj = PyString_FromStringAndSize((&wxPyART_FIND)->c_str(), (&wxPyART_FIND)->Len());
68350608 20413#endif
554f62e9
RD
20414 }
20415 return pyobj;
68350608
RD
20416}
20417
20418
554f62e9
RD
20419SWIGINTERN int ART_FIND_AND_REPLACE_set(PyObject *) {
20420 SWIG_Error(SWIG_AttributeError,"Variable ART_FIND_AND_REPLACE is read-only.");
20421 return 1;
68350608
RD
20422}
20423
20424
554f62e9
RD
20425SWIGINTERN PyObject *ART_FIND_AND_REPLACE_get(void) {
20426 PyObject *pyobj = 0;
20427
20428 {
68350608 20429#if wxUSE_UNICODE
554f62e9 20430 pyobj = PyUnicode_FromWideChar((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
68350608 20431#else
554f62e9 20432 pyobj = PyString_FromStringAndSize((&wxPyART_FIND_AND_REPLACE)->c_str(), (&wxPyART_FIND_AND_REPLACE)->Len());
68350608 20433#endif
554f62e9
RD
20434 }
20435 return pyobj;
68350608
RD
20436}
20437
20438
554f62e9
RD
20439SWIGINTERN PyObject *_wrap_new_ArtProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20440 PyObject *resultobj = 0;
20441 wxPyArtProvider *result = 0 ;
20442
20443 if (!SWIG_Python_UnpackTuple(args,"new_ArtProvider",0,0,0)) SWIG_fail;
20444 {
20445 if (!wxPyCheckForApp()) SWIG_fail;
20446 PyThreadState* __tstate = wxPyBeginAllowThreads();
20447 result = (wxPyArtProvider *)new wxPyArtProvider();
20448 wxPyEndAllowThreads(__tstate);
20449 if (PyErr_Occurred()) SWIG_fail;
20450 }
20451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_NEW | 0 );
20452 return resultobj;
20453fail:
20454 return NULL;
d55e5bfc
RD
20455}
20456
20457
554f62e9
RD
20458SWIGINTERN PyObject *_wrap_delete_ArtProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20459 PyObject *resultobj = 0;
20460 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20461 void *argp1 = 0 ;
20462 int res1 = 0 ;
20463 PyObject *swig_obj[1] ;
20464
20465 if (!args) SWIG_fail;
20466 swig_obj[0] = args;
20467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20468 if (!SWIG_IsOK(res1)) {
20469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ArtProvider" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20470 }
20471 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 delete arg1;
d55e5bfc 20475
554f62e9
RD
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 resultobj = SWIG_Py_Void();
20480 return resultobj;
20481fail:
20482 return NULL;
20483}
20484
20485
20486SWIGINTERN PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20487 PyObject *resultobj = 0;
20488 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20489 PyObject *arg2 = (PyObject *) 0 ;
20490 PyObject *arg3 = (PyObject *) 0 ;
20491 void *argp1 = 0 ;
20492 int res1 = 0 ;
20493 PyObject * obj0 = 0 ;
20494 PyObject * obj1 = 0 ;
20495 PyObject * obj2 = 0 ;
20496 char * kwnames[] = {
20497 (char *) "self",(char *) "self",(char *) "_class", NULL
20498 };
20499
20500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20502 if (!SWIG_IsOK(res1)) {
20503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20504 }
20505 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20506 arg2 = obj1;
20507 arg3 = obj2;
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 (arg1)->_setCallbackInfo(arg2,arg3);
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_Py_Void();
20515 return resultobj;
20516fail:
20517 return NULL;
d55e5bfc
RD
20518}
20519
20520
4391d97b 20521SWIGINTERN PyObject *_wrap_ArtProvider_Push(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
20522 PyObject *resultobj = 0;
20523 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20524 int res1 = 0 ;
20525 PyObject * obj0 = 0 ;
20526 char * kwnames[] = {
20527 (char *) "provider", NULL
20528 };
20529
4391d97b 20530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Push",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
20531 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20532 if (!SWIG_IsOK(res1)) {
4391d97b 20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Push" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
554f62e9
RD
20534 }
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20537 wxPyArtProvider::Push(arg1);
554f62e9
RD
20538 wxPyEndAllowThreads(__tstate);
20539 if (PyErr_Occurred()) SWIG_fail;
20540 }
20541 resultobj = SWIG_Py_Void();
20542 return resultobj;
20543fail:
20544 return NULL;
d55e5bfc
RD
20545}
20546
20547
4391d97b 20548SWIGINTERN PyObject *_wrap_ArtProvider_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
226118fc
RD
20549 PyObject *resultobj = 0;
20550 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20551 int res1 = 0 ;
20552 PyObject * obj0 = 0 ;
20553 char * kwnames[] = {
20554 (char *) "provider", NULL
20555 };
20556
4391d97b 20557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Insert",kwnames,&obj0)) SWIG_fail;
226118fc
RD
20558 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
20559 if (!SWIG_IsOK(res1)) {
4391d97b 20560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Insert" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
226118fc
RD
20561 }
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20564 wxPyArtProvider::Insert(arg1);
226118fc
RD
20565 wxPyEndAllowThreads(__tstate);
20566 if (PyErr_Occurred()) SWIG_fail;
20567 }
20568 resultobj = SWIG_Py_Void();
20569 return resultobj;
20570fail:
20571 return NULL;
20572}
20573
20574
4391d97b 20575SWIGINTERN PyObject *_wrap_ArtProvider_Pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
20576 PyObject *resultobj = 0;
20577 bool result;
20578
4391d97b 20579 if (!SWIG_Python_UnpackTuple(args,"ArtProvider_Pop",0,0,0)) SWIG_fail;
554f62e9
RD
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20582 result = (bool)wxPyArtProvider::Pop();
554f62e9
RD
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 {
20587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20588 }
20589 return resultobj;
20590fail:
20591 return NULL;
d55e5bfc
RD
20592}
20593
20594
4391d97b 20595SWIGINTERN PyObject *_wrap_ArtProvider_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
20596 PyObject *resultobj = 0;
20597 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20598 bool result;
20599 void *argp1 = 0 ;
20600 int res1 = 0 ;
20601 PyObject * obj0 = 0 ;
20602 char * kwnames[] = {
20603 (char *) "provider", NULL
20604 };
20605
4391d97b 20606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Delete",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
20607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20608 if (!SWIG_IsOK(res1)) {
4391d97b 20609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Delete" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
554f62e9
RD
20610 }
20611 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391d97b 20614 result = (bool)wxPyArtProvider::Delete(arg1);
554f62e9
RD
20615 wxPyEndAllowThreads(__tstate);
20616 if (PyErr_Occurred()) SWIG_fail;
20617 }
20618 {
20619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20620 }
20621 return resultobj;
20622fail:
20623 return NULL;
20624}
20625
20626
20627SWIGINTERN PyObject *_wrap_ArtProvider_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20628 PyObject *resultobj = 0;
20629 wxString *arg1 = 0 ;
20630 wxString const &arg2_defvalue = wxPyART_OTHER ;
20631 wxString *arg2 = (wxString *) &arg2_defvalue ;
20632 wxSize const &arg3_defvalue = wxDefaultSize ;
20633 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
20634 wxBitmap result;
20635 bool temp1 = false ;
20636 bool temp2 = false ;
20637 wxSize temp3 ;
20638 PyObject * obj0 = 0 ;
20639 PyObject * obj1 = 0 ;
20640 PyObject * obj2 = 0 ;
20641 char * kwnames[] = {
20642 (char *) "id",(char *) "client",(char *) "size", NULL
20643 };
20644
20645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20646 {
20647 arg1 = wxString_in_helper(obj0);
20648 if (arg1 == NULL) SWIG_fail;
20649 temp1 = true;
20650 }
20651 if (obj1) {
d55e5bfc 20652 {
554f62e9
RD
20653 arg2 = wxString_in_helper(obj1);
20654 if (arg2 == NULL) SWIG_fail;
20655 temp2 = true;
d55e5bfc 20656 }
554f62e9
RD
20657 }
20658 if (obj2) {
d55e5bfc 20659 {
554f62e9
RD
20660 arg3 = &temp3;
20661 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20662 }
554f62e9
RD
20663 }
20664 {
20665 if (!wxPyCheckForApp()) SWIG_fail;
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20672 {
20673 if (temp1)
20674 delete arg1;
20675 }
20676 {
20677 if (temp2)
20678 delete arg2;
20679 }
20680 return resultobj;
20681fail:
20682 {
20683 if (temp1)
20684 delete arg1;
20685 }
20686 {
20687 if (temp2)
20688 delete arg2;
20689 }
20690 return NULL;
20691}
20692
20693
20694SWIGINTERN PyObject *_wrap_ArtProvider_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20695 PyObject *resultobj = 0;
20696 wxString *arg1 = 0 ;
20697 wxString const &arg2_defvalue = wxPyART_OTHER ;
20698 wxString *arg2 = (wxString *) &arg2_defvalue ;
20699 wxSize const &arg3_defvalue = wxDefaultSize ;
20700 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
20701 wxIcon result;
20702 bool temp1 = false ;
20703 bool temp2 = false ;
20704 wxSize temp3 ;
20705 PyObject * obj0 = 0 ;
20706 PyObject * obj1 = 0 ;
20707 PyObject * obj2 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "id",(char *) "client",(char *) "size", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20713 {
20714 arg1 = wxString_in_helper(obj0);
20715 if (arg1 == NULL) SWIG_fail;
20716 temp1 = true;
20717 }
20718 if (obj1) {
d55e5bfc 20719 {
554f62e9
RD
20720 arg2 = wxString_in_helper(obj1);
20721 if (arg2 == NULL) SWIG_fail;
20722 temp2 = true;
d55e5bfc 20723 }
554f62e9
RD
20724 }
20725 if (obj2) {
d55e5bfc 20726 {
554f62e9
RD
20727 arg3 = &temp3;
20728 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20729 }
554f62e9
RD
20730 }
20731 {
20732 if (!wxPyCheckForApp()) SWIG_fail;
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
20735 wxPyEndAllowThreads(__tstate);
20736 if (PyErr_Occurred()) SWIG_fail;
20737 }
20738 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
20739 {
20740 if (temp1)
20741 delete arg1;
20742 }
20743 {
20744 if (temp2)
20745 delete arg2;
20746 }
20747 return resultobj;
20748fail:
20749 {
20750 if (temp1)
20751 delete arg1;
20752 }
20753 {
20754 if (temp2)
20755 delete arg2;
20756 }
20757 return NULL;
20758}
20759
20760
20761SWIGINTERN PyObject *_wrap_ArtProvider_GetSizeHint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20762 PyObject *resultobj = 0;
20763 wxString *arg1 = 0 ;
20764 bool arg2 = (bool) false ;
20765 wxSize result;
20766 bool temp1 = false ;
20767 bool val2 ;
20768 int ecode2 = 0 ;
20769 PyObject * obj0 = 0 ;
20770 PyObject * obj1 = 0 ;
20771 char * kwnames[] = {
20772 (char *) "client",(char *) "platform_dependent", NULL
20773 };
20774
20775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ArtProvider_GetSizeHint",kwnames,&obj0,&obj1)) SWIG_fail;
20776 {
20777 arg1 = wxString_in_helper(obj0);
20778 if (arg1 == NULL) SWIG_fail;
20779 temp1 = true;
20780 }
20781 if (obj1) {
20782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20783 if (!SWIG_IsOK(ecode2)) {
20784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ArtProvider_GetSizeHint" "', expected argument " "2"" of type '" "bool""'");
20785 }
20786 arg2 = static_cast< bool >(val2);
20787 }
20788 {
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 result = wxPyArtProvider::GetSizeHint((wxString const &)*arg1,arg2);
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20795 {
20796 if (temp1)
20797 delete arg1;
20798 }
20799 return resultobj;
20800fail:
20801 {
20802 if (temp1)
20803 delete arg1;
20804 }
20805 return NULL;
d55e5bfc
RD
20806}
20807
20808
554f62e9
RD
20809SWIGINTERN PyObject *_wrap_ArtProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20810 PyObject *resultobj = 0;
20811 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 PyObject *swig_obj[1] ;
20815
20816 if (!args) SWIG_fail;
20817 swig_obj[0] = args;
20818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Destroy" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
20821 }
20822 arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
20823 {
20824 PyThreadState* __tstate = wxPyBeginAllowThreads();
20825 wxPyArtProvider_Destroy(arg1);
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 resultobj = SWIG_Py_Void();
20830 return resultobj;
20831fail:
20832 return NULL;
f78cc896
RD
20833}
20834
20835
554f62e9
RD
20836SWIGINTERN PyObject *ArtProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20837 PyObject *obj;
20838 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20839 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyArtProvider, SWIG_NewClientData(obj));
20840 return SWIG_Py_Void();
f78cc896
RD
20841}
20842
554f62e9
RD
20843SWIGINTERN PyObject *ArtProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20844 return SWIG_Python_InitShadowInstance(args);
f78cc896
RD
20845}
20846
554f62e9
RD
20847SWIGINTERN PyObject *_wrap_delete_ConfigBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20848 PyObject *resultobj = 0;
20849 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20850 void *argp1 = 0 ;
20851 int res1 = 0 ;
20852 PyObject *swig_obj[1] ;
20853
20854 if (!args) SWIG_fail;
20855 swig_obj[0] = args;
20856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, SWIG_POINTER_DISOWN | 0 );
20857 if (!SWIG_IsOK(res1)) {
20858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigBase" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20859 }
20860 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
20861 {
20862 PyThreadState* __tstate = wxPyBeginAllowThreads();
20863 delete arg1;
f78cc896 20864
554f62e9
RD
20865 wxPyEndAllowThreads(__tstate);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 }
20868 resultobj = SWIG_Py_Void();
20869 return resultobj;
20870fail:
20871 return NULL;
f78cc896
RD
20872}
20873
20874
554f62e9
RD
20875SWIGINTERN PyObject *_wrap_ConfigBase_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20876 PyObject *resultobj = 0;
20877 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20878 wxConfigBase *result = 0 ;
20879 int res1 = 0 ;
20880 PyObject * obj0 = 0 ;
20881 char * kwnames[] = {
20882 (char *) "config", NULL
20883 };
20884
20885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) SWIG_fail;
20886 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxConfigBase, SWIG_POINTER_DISOWN | 0 );
20887 if (!SWIG_IsOK(res1)) {
20888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Set" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20889 }
20890 {
20891 PyThreadState* __tstate = wxPyBeginAllowThreads();
20892 result = (wxConfigBase *)wxConfigBase::Set(arg1);
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;
20900}
20901
20902
20903SWIGINTERN PyObject *_wrap_ConfigBase_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20904 PyObject *resultobj = 0;
20905 bool arg1 = (bool) true ;
20906 wxConfigBase *result = 0 ;
20907 bool val1 ;
20908 int ecode1 = 0 ;
20909 PyObject * obj0 = 0 ;
20910 char * kwnames[] = {
20911 (char *) "createOnDemand", NULL
20912 };
20913
20914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) SWIG_fail;
20915 if (obj0) {
20916 ecode1 = SWIG_AsVal_bool(obj0, &val1);
20917 if (!SWIG_IsOK(ecode1)) {
20918 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ConfigBase_Get" "', expected argument " "1"" of type '" "bool""'");
20919 }
20920 arg1 = static_cast< bool >(val1);
20921 }
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 result = (wxConfigBase *)wxConfigBase::Get(arg1);
20925 wxPyEndAllowThreads(__tstate);
20926 if (PyErr_Occurred()) SWIG_fail;
20927 }
20928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigBase, 0 | 0 );
20929 return resultobj;
20930fail:
20931 return NULL;
f78cc896
RD
20932}
20933
20934
554f62e9
RD
20935SWIGINTERN PyObject *_wrap_ConfigBase_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20936 PyObject *resultobj = 0;
20937 wxConfigBase *result = 0 ;
20938
20939 if (!SWIG_Python_UnpackTuple(args,"ConfigBase_Create",0,0,0)) SWIG_fail;
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 result = (wxConfigBase *)wxConfigBase::Create();
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigBase, 0 | 0 );
20947 return resultobj;
20948fail:
20949 return NULL;
f78cc896
RD
20950}
20951
20952
554f62e9
RD
20953SWIGINTERN PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20954 PyObject *resultobj = 0;
20955
20956 if (!SWIG_Python_UnpackTuple(args,"ConfigBase_DontCreateOnDemand",0,0,0)) SWIG_fail;
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 wxConfigBase::DontCreateOnDemand();
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = SWIG_Py_Void();
20964 return resultobj;
20965fail:
20966 return NULL;
20967}
20968
20969
20970SWIGINTERN PyObject *_wrap_ConfigBase_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20971 PyObject *resultobj = 0;
20972 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
20973 wxString *arg2 = 0 ;
20974 void *argp1 = 0 ;
20975 int res1 = 0 ;
20976 bool temp2 = false ;
20977 PyObject * obj0 = 0 ;
20978 PyObject * obj1 = 0 ;
20979 char * kwnames[] = {
20980 (char *) "self",(char *) "path", NULL
20981 };
20982
20983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
20984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
20985 if (!SWIG_IsOK(res1)) {
20986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetPath" "', expected argument " "1"" of type '" "wxConfigBase *""'");
20987 }
20988 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
20989 {
20990 arg2 = wxString_in_helper(obj1);
20991 if (arg2 == NULL) SWIG_fail;
20992 temp2 = true;
20993 }
20994 {
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 (arg1)->SetPath((wxString const &)*arg2);
20997 wxPyEndAllowThreads(__tstate);
20998 if (PyErr_Occurred()) SWIG_fail;
20999 }
21000 resultobj = SWIG_Py_Void();
21001 {
21002 if (temp2)
21003 delete arg2;
21004 }
21005 return resultobj;
21006fail:
21007 {
21008 if (temp2)
21009 delete arg2;
21010 }
21011 return NULL;
f78cc896
RD
21012}
21013
21014
554f62e9
RD
21015SWIGINTERN PyObject *_wrap_ConfigBase_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21016 PyObject *resultobj = 0;
21017 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21018 wxString *result = 0 ;
21019 void *argp1 = 0 ;
21020 int res1 = 0 ;
21021 PyObject *swig_obj[1] ;
21022
21023 if (!args) SWIG_fail;
21024 swig_obj[0] = args;
21025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21026 if (!SWIG_IsOK(res1)) {
21027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetPath" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21028 }
21029 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21030 {
21031 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 21032 {
554f62e9
RD
21033 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
21034 result = (wxString *) &_result_ref;
21035 }
21036 wxPyEndAllowThreads(__tstate);
21037 if (PyErr_Occurred()) SWIG_fail;
21038 }
21039 {
f78cc896 21040#if wxUSE_UNICODE
554f62e9 21041 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
f78cc896 21042#else
554f62e9 21043 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
f78cc896 21044#endif
554f62e9
RD
21045 }
21046 return resultobj;
21047fail:
21048 return NULL;
f78cc896
RD
21049}
21050
21051
554f62e9
RD
21052SWIGINTERN PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21053 PyObject *resultobj = 0;
21054 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21055 PyObject *result = 0 ;
21056 void *argp1 = 0 ;
21057 int res1 = 0 ;
21058 PyObject *swig_obj[1] ;
21059
21060 if (!args) SWIG_fail;
21061 swig_obj[0] = args;
21062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21063 if (!SWIG_IsOK(res1)) {
21064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetFirstGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21065 }
21066 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = result;
21074 return resultobj;
21075fail:
21076 return NULL;
21077}
21078
21079
21080SWIGINTERN PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21081 PyObject *resultobj = 0;
21082 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21083 long arg2 ;
21084 PyObject *result = 0 ;
21085 void *argp1 = 0 ;
21086 int res1 = 0 ;
21087 long val2 ;
21088 int ecode2 = 0 ;
21089 PyObject * obj0 = 0 ;
21090 PyObject * obj1 = 0 ;
21091 char * kwnames[] = {
21092 (char *) "self",(char *) "index", NULL
21093 };
21094
21095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) SWIG_fail;
21096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21097 if (!SWIG_IsOK(res1)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNextGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21099 }
21100 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21101 ecode2 = SWIG_AsVal_long(obj1, &val2);
21102 if (!SWIG_IsOK(ecode2)) {
21103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNextGroup" "', expected argument " "2"" of type '" "long""'");
21104 }
21105 arg2 = static_cast< long >(val2);
21106 {
21107 PyThreadState* __tstate = wxPyBeginAllowThreads();
21108 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
21109 wxPyEndAllowThreads(__tstate);
21110 if (PyErr_Occurred()) SWIG_fail;
21111 }
21112 resultobj = result;
21113 return resultobj;
21114fail:
21115 return NULL;
d55e5bfc
RD
21116}
21117
21118
554f62e9
RD
21119SWIGINTERN PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21120 PyObject *resultobj = 0;
21121 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21122 PyObject *result = 0 ;
21123 void *argp1 = 0 ;
21124 int res1 = 0 ;
21125 PyObject *swig_obj[1] ;
21126
21127 if (!args) SWIG_fail;
21128 swig_obj[0] = args;
21129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21130 if (!SWIG_IsOK(res1)) {
21131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetFirstEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21132 }
21133 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21134 {
21135 PyThreadState* __tstate = wxPyBeginAllowThreads();
21136 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 resultobj = result;
21141 return resultobj;
21142fail:
21143 return NULL;
21144}
21145
21146
21147SWIGINTERN PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21148 PyObject *resultobj = 0;
21149 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21150 long arg2 ;
21151 PyObject *result = 0 ;
21152 void *argp1 = 0 ;
21153 int res1 = 0 ;
21154 long val2 ;
21155 int ecode2 = 0 ;
21156 PyObject * obj0 = 0 ;
21157 PyObject * obj1 = 0 ;
21158 char * kwnames[] = {
21159 (char *) "self",(char *) "index", NULL
21160 };
21161
21162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) SWIG_fail;
21163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21164 if (!SWIG_IsOK(res1)) {
21165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNextEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21166 }
21167 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21168 ecode2 = SWIG_AsVal_long(obj1, &val2);
21169 if (!SWIG_IsOK(ecode2)) {
21170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNextEntry" "', expected argument " "2"" of type '" "long""'");
21171 }
21172 arg2 = static_cast< long >(val2);
21173 {
21174 PyThreadState* __tstate = wxPyBeginAllowThreads();
21175 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
21176 wxPyEndAllowThreads(__tstate);
21177 if (PyErr_Occurred()) SWIG_fail;
21178 }
21179 resultobj = result;
21180 return resultobj;
21181fail:
21182 return NULL;
21183}
21184
21185
21186SWIGINTERN PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21187 PyObject *resultobj = 0;
21188 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21189 bool arg2 = (bool) false ;
21190 size_t result;
21191 void *argp1 = 0 ;
21192 int res1 = 0 ;
21193 bool val2 ;
21194 int ecode2 = 0 ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 char * kwnames[] = {
21198 (char *) "self",(char *) "recursive", NULL
21199 };
21200
21201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) SWIG_fail;
21202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21203 if (!SWIG_IsOK(res1)) {
21204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNumberOfEntries" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21205 }
21206 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21207 if (obj1) {
21208 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21209 if (!SWIG_IsOK(ecode2)) {
21210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNumberOfEntries" "', expected argument " "2"" of type '" "bool""'");
21211 }
21212 arg2 = static_cast< bool >(val2);
21213 }
21214 {
21215 PyThreadState* __tstate = wxPyBeginAllowThreads();
21216 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
21217 wxPyEndAllowThreads(__tstate);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21221 return resultobj;
21222fail:
21223 return NULL;
21224}
21225
21226
21227SWIGINTERN PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj = 0;
21229 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21230 bool arg2 = (bool) false ;
21231 size_t result;
21232 void *argp1 = 0 ;
21233 int res1 = 0 ;
21234 bool val2 ;
21235 int ecode2 = 0 ;
21236 PyObject * obj0 = 0 ;
21237 PyObject * obj1 = 0 ;
21238 char * kwnames[] = {
21239 (char *) "self",(char *) "recursive", NULL
21240 };
21241
21242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) SWIG_fail;
21243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21244 if (!SWIG_IsOK(res1)) {
21245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetNumberOfGroups" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21246 }
21247 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21248 if (obj1) {
21249 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21250 if (!SWIG_IsOK(ecode2)) {
21251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_GetNumberOfGroups" "', expected argument " "2"" of type '" "bool""'");
21252 }
21253 arg2 = static_cast< bool >(val2);
21254 }
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
21258 wxPyEndAllowThreads(__tstate);
21259 if (PyErr_Occurred()) SWIG_fail;
21260 }
21261 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21262 return resultobj;
21263fail:
21264 return NULL;
21265}
21266
21267
21268SWIGINTERN PyObject *_wrap_ConfigBase_HasGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21269 PyObject *resultobj = 0;
21270 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21271 wxString *arg2 = 0 ;
21272 bool result;
21273 void *argp1 = 0 ;
21274 int res1 = 0 ;
21275 bool temp2 = false ;
21276 PyObject * obj0 = 0 ;
21277 PyObject * obj1 = 0 ;
21278 char * kwnames[] = {
21279 (char *) "self",(char *) "name", NULL
21280 };
21281
21282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) SWIG_fail;
21283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21284 if (!SWIG_IsOK(res1)) {
21285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_HasGroup" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21286 }
21287 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21288 {
21289 arg2 = wxString_in_helper(obj1);
21290 if (arg2 == NULL) SWIG_fail;
21291 temp2 = true;
21292 }
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 {
21300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21301 }
21302 {
21303 if (temp2)
21304 delete arg2;
21305 }
21306 return resultobj;
21307fail:
21308 {
21309 if (temp2)
21310 delete arg2;
21311 }
21312 return NULL;
21313}
21314
21315
21316SWIGINTERN PyObject *_wrap_ConfigBase_HasEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj = 0;
21318 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21319 wxString *arg2 = 0 ;
21320 bool result;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 bool temp2 = false ;
21324 PyObject * obj0 = 0 ;
21325 PyObject * obj1 = 0 ;
21326 char * kwnames[] = {
21327 (char *) "self",(char *) "name", NULL
21328 };
21329
21330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) SWIG_fail;
21331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_HasEntry" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21334 }
21335 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21336 {
21337 arg2 = wxString_in_helper(obj1);
21338 if (arg2 == NULL) SWIG_fail;
21339 temp2 = true;
21340 }
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 {
21348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21349 }
21350 {
21351 if (temp2)
21352 delete arg2;
21353 }
21354 return resultobj;
21355fail:
21356 {
21357 if (temp2)
21358 delete arg2;
21359 }
21360 return NULL;
21361}
21362
21363
21364SWIGINTERN PyObject *_wrap_ConfigBase_Exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21365 PyObject *resultobj = 0;
21366 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21367 wxString *arg2 = 0 ;
21368 bool result;
21369 void *argp1 = 0 ;
21370 int res1 = 0 ;
21371 bool temp2 = false ;
21372 PyObject * obj0 = 0 ;
21373 PyObject * obj1 = 0 ;
21374 char * kwnames[] = {
21375 (char *) "self",(char *) "name", NULL
21376 };
21377
21378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) SWIG_fail;
21379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21380 if (!SWIG_IsOK(res1)) {
21381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Exists" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
21382 }
21383 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21384 {
21385 arg2 = wxString_in_helper(obj1);
21386 if (arg2 == NULL) SWIG_fail;
21387 temp2 = true;
21388 }
21389 {
21390 PyThreadState* __tstate = wxPyBeginAllowThreads();
21391 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21397 }
21398 {
21399 if (temp2)
21400 delete arg2;
21401 }
21402 return resultobj;
21403fail:
21404 {
21405 if (temp2)
21406 delete arg2;
21407 }
21408 return NULL;
21409}
21410
21411
21412SWIGINTERN PyObject *_wrap_ConfigBase_GetEntryType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21413 PyObject *resultobj = 0;
21414 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21415 wxString *arg2 = 0 ;
21416 wxConfigBase::EntryType result;
21417 void *argp1 = 0 ;
21418 int res1 = 0 ;
21419 bool temp2 = false ;
21420 PyObject * obj0 = 0 ;
21421 PyObject * obj1 = 0 ;
21422 char * kwnames[] = {
21423 (char *) "self",(char *) "name", NULL
21424 };
21425
21426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) 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_GetEntryType" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
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 {
21438 PyThreadState* __tstate = wxPyBeginAllowThreads();
21439 result = (wxConfigBase::EntryType)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
21440 wxPyEndAllowThreads(__tstate);
21441 if (PyErr_Occurred()) SWIG_fail;
21442 }
21443 resultobj = SWIG_From_int(static_cast< int >(result));
21444 {
21445 if (temp2)
21446 delete arg2;
21447 }
21448 return resultobj;
21449fail:
21450 {
21451 if (temp2)
21452 delete arg2;
21453 }
21454 return NULL;
21455}
21456
21457
21458SWIGINTERN PyObject *_wrap_ConfigBase_Read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21459 PyObject *resultobj = 0;
21460 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21461 wxString *arg2 = 0 ;
21462 wxString const &arg3_defvalue = wxPyEmptyString ;
21463 wxString *arg3 = (wxString *) &arg3_defvalue ;
21464 wxString result;
21465 void *argp1 = 0 ;
21466 int res1 = 0 ;
21467 bool temp2 = false ;
21468 bool temp3 = false ;
21469 PyObject * obj0 = 0 ;
21470 PyObject * obj1 = 0 ;
21471 PyObject * obj2 = 0 ;
21472 char * kwnames[] = {
21473 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21474 };
21475
21476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21478 if (!SWIG_IsOK(res1)) {
21479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Read" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21480 }
21481 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21482 {
21483 arg2 = wxString_in_helper(obj1);
21484 if (arg2 == NULL) SWIG_fail;
21485 temp2 = true;
21486 }
21487 if (obj2) {
68350608 21488 {
554f62e9
RD
21489 arg3 = wxString_in_helper(obj2);
21490 if (arg3 == NULL) SWIG_fail;
21491 temp3 = true;
68350608 21492 }
554f62e9
RD
21493 }
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 {
68350608 21501#if wxUSE_UNICODE
554f62e9 21502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
68350608 21503#else
554f62e9 21504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
68350608 21505#endif
554f62e9
RD
21506 }
21507 {
21508 if (temp2)
21509 delete arg2;
21510 }
21511 {
21512 if (temp3)
21513 delete arg3;
21514 }
21515 return resultobj;
21516fail:
21517 {
21518 if (temp2)
21519 delete arg2;
21520 }
21521 {
21522 if (temp3)
21523 delete arg3;
21524 }
21525 return NULL;
21526}
21527
21528
21529SWIGINTERN PyObject *_wrap_ConfigBase_ReadInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21530 PyObject *resultobj = 0;
21531 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21532 wxString *arg2 = 0 ;
21533 long arg3 = (long) 0 ;
21534 long result;
21535 void *argp1 = 0 ;
21536 int res1 = 0 ;
21537 bool temp2 = false ;
21538 long val3 ;
21539 int ecode3 = 0 ;
21540 PyObject * obj0 = 0 ;
21541 PyObject * obj1 = 0 ;
21542 PyObject * obj2 = 0 ;
21543 char * kwnames[] = {
21544 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21545 };
21546
21547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21549 if (!SWIG_IsOK(res1)) {
21550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadInt" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21551 }
21552 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21553 {
21554 arg2 = wxString_in_helper(obj1);
21555 if (arg2 == NULL) SWIG_fail;
21556 temp2 = true;
21557 }
21558 if (obj2) {
21559 ecode3 = SWIG_AsVal_long(obj2, &val3);
21560 if (!SWIG_IsOK(ecode3)) {
21561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadInt" "', expected argument " "3"" of type '" "long""'");
21562 }
21563 arg3 = static_cast< long >(val3);
21564 }
21565 {
21566 PyThreadState* __tstate = wxPyBeginAllowThreads();
21567 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
21568 wxPyEndAllowThreads(__tstate);
21569 if (PyErr_Occurred()) SWIG_fail;
21570 }
21571 resultobj = SWIG_From_long(static_cast< long >(result));
21572 {
21573 if (temp2)
21574 delete arg2;
21575 }
21576 return resultobj;
21577fail:
21578 {
21579 if (temp2)
21580 delete arg2;
21581 }
21582 return NULL;
21583}
21584
21585
21586SWIGINTERN PyObject *_wrap_ConfigBase_ReadFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj = 0;
21588 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21589 wxString *arg2 = 0 ;
21590 double arg3 = (double) 0.0 ;
21591 double result;
21592 void *argp1 = 0 ;
21593 int res1 = 0 ;
21594 bool temp2 = false ;
21595 double val3 ;
21596 int ecode3 = 0 ;
21597 PyObject * obj0 = 0 ;
21598 PyObject * obj1 = 0 ;
21599 PyObject * obj2 = 0 ;
21600 char * kwnames[] = {
21601 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21602 };
21603
21604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21606 if (!SWIG_IsOK(res1)) {
21607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadFloat" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21608 }
21609 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21610 {
21611 arg2 = wxString_in_helper(obj1);
21612 if (arg2 == NULL) SWIG_fail;
21613 temp2 = true;
21614 }
21615 if (obj2) {
21616 ecode3 = SWIG_AsVal_double(obj2, &val3);
21617 if (!SWIG_IsOK(ecode3)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadFloat" "', expected argument " "3"" of type '" "double""'");
21619 }
21620 arg3 = static_cast< double >(val3);
21621 }
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_From_double(static_cast< double >(result));
21629 {
21630 if (temp2)
21631 delete arg2;
21632 }
21633 return resultobj;
21634fail:
21635 {
21636 if (temp2)
21637 delete arg2;
21638 }
21639 return NULL;
21640}
21641
21642
21643SWIGINTERN PyObject *_wrap_ConfigBase_ReadBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21644 PyObject *resultobj = 0;
21645 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21646 wxString *arg2 = 0 ;
21647 bool arg3 = (bool) false ;
21648 bool result;
21649 void *argp1 = 0 ;
21650 int res1 = 0 ;
21651 bool temp2 = false ;
21652 bool val3 ;
21653 int ecode3 = 0 ;
21654 PyObject * obj0 = 0 ;
21655 PyObject * obj1 = 0 ;
21656 PyObject * obj2 = 0 ;
21657 char * kwnames[] = {
21658 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
21659 };
21660
21661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21663 if (!SWIG_IsOK(res1)) {
21664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ReadBool" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21665 }
21666 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21667 {
21668 arg2 = wxString_in_helper(obj1);
21669 if (arg2 == NULL) SWIG_fail;
21670 temp2 = true;
21671 }
21672 if (obj2) {
21673 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21674 if (!SWIG_IsOK(ecode3)) {
21675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_ReadBool" "', expected argument " "3"" of type '" "bool""'");
21676 }
21677 arg3 = static_cast< bool >(val3);
21678 }
21679 {
21680 PyThreadState* __tstate = wxPyBeginAllowThreads();
21681 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
21682 wxPyEndAllowThreads(__tstate);
21683 if (PyErr_Occurred()) SWIG_fail;
21684 }
21685 {
21686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21687 }
21688 {
21689 if (temp2)
21690 delete arg2;
21691 }
21692 return resultobj;
21693fail:
21694 {
21695 if (temp2)
21696 delete arg2;
21697 }
21698 return NULL;
21699}
21700
21701
21702SWIGINTERN PyObject *_wrap_ConfigBase_Write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj = 0;
21704 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21705 wxString *arg2 = 0 ;
21706 wxString *arg3 = 0 ;
21707 bool result;
21708 void *argp1 = 0 ;
21709 int res1 = 0 ;
21710 bool temp2 = false ;
21711 bool temp3 = false ;
21712 PyObject * obj0 = 0 ;
21713 PyObject * obj1 = 0 ;
21714 PyObject * obj2 = 0 ;
21715 char * kwnames[] = {
21716 (char *) "self",(char *) "key",(char *) "value", NULL
21717 };
21718
21719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21721 if (!SWIG_IsOK(res1)) {
21722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Write" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21723 }
21724 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21725 {
21726 arg2 = wxString_in_helper(obj1);
21727 if (arg2 == NULL) SWIG_fail;
21728 temp2 = true;
21729 }
21730 {
21731 arg3 = wxString_in_helper(obj2);
21732 if (arg3 == NULL) SWIG_fail;
21733 temp3 = true;
21734 }
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
21737 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
21738 wxPyEndAllowThreads(__tstate);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 }
21741 {
21742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21743 }
21744 {
21745 if (temp2)
21746 delete arg2;
21747 }
21748 {
21749 if (temp3)
21750 delete arg3;
21751 }
21752 return resultobj;
21753fail:
21754 {
21755 if (temp2)
21756 delete arg2;
21757 }
21758 {
21759 if (temp3)
21760 delete arg3;
21761 }
21762 return NULL;
21763}
21764
21765
21766SWIGINTERN PyObject *_wrap_ConfigBase_WriteInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj = 0;
21768 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21769 wxString *arg2 = 0 ;
21770 long arg3 ;
21771 bool result;
21772 void *argp1 = 0 ;
21773 int res1 = 0 ;
21774 bool temp2 = false ;
21775 long val3 ;
21776 int ecode3 = 0 ;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 PyObject * obj2 = 0 ;
21780 char * kwnames[] = {
21781 (char *) "self",(char *) "key",(char *) "value", NULL
21782 };
21783
21784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21786 if (!SWIG_IsOK(res1)) {
21787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteInt" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21788 }
21789 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21790 {
21791 arg2 = wxString_in_helper(obj1);
21792 if (arg2 == NULL) SWIG_fail;
21793 temp2 = true;
21794 }
21795 ecode3 = SWIG_AsVal_long(obj2, &val3);
21796 if (!SWIG_IsOK(ecode3)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteInt" "', expected argument " "3"" of type '" "long""'");
21798 }
21799 arg3 = static_cast< long >(val3);
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 {
21807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21808 }
21809 {
21810 if (temp2)
21811 delete arg2;
21812 }
21813 return resultobj;
21814fail:
21815 {
21816 if (temp2)
21817 delete arg2;
21818 }
21819 return NULL;
21820}
21821
21822
21823SWIGINTERN PyObject *_wrap_ConfigBase_WriteFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21824 PyObject *resultobj = 0;
21825 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21826 wxString *arg2 = 0 ;
21827 double arg3 ;
21828 bool result;
21829 void *argp1 = 0 ;
21830 int res1 = 0 ;
21831 bool temp2 = false ;
21832 double val3 ;
21833 int ecode3 = 0 ;
21834 PyObject * obj0 = 0 ;
21835 PyObject * obj1 = 0 ;
21836 PyObject * obj2 = 0 ;
21837 char * kwnames[] = {
21838 (char *) "self",(char *) "key",(char *) "value", NULL
21839 };
21840
21841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21843 if (!SWIG_IsOK(res1)) {
21844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteFloat" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21845 }
21846 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21847 {
21848 arg2 = wxString_in_helper(obj1);
21849 if (arg2 == NULL) SWIG_fail;
21850 temp2 = true;
21851 }
21852 ecode3 = SWIG_AsVal_double(obj2, &val3);
21853 if (!SWIG_IsOK(ecode3)) {
21854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteFloat" "', expected argument " "3"" of type '" "double""'");
21855 }
21856 arg3 = static_cast< double >(val3);
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 {
21864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21865 }
21866 {
21867 if (temp2)
21868 delete arg2;
21869 }
21870 return resultobj;
21871fail:
21872 {
21873 if (temp2)
21874 delete arg2;
21875 }
21876 return NULL;
21877}
21878
21879
21880SWIGINTERN PyObject *_wrap_ConfigBase_WriteBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21881 PyObject *resultobj = 0;
21882 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21883 wxString *arg2 = 0 ;
21884 bool arg3 ;
21885 bool result;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 bool temp2 = false ;
21889 bool val3 ;
21890 int ecode3 = 0 ;
21891 PyObject * obj0 = 0 ;
21892 PyObject * obj1 = 0 ;
21893 PyObject * obj2 = 0 ;
21894 char * kwnames[] = {
21895 (char *) "self",(char *) "key",(char *) "value", NULL
21896 };
21897
21898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21900 if (!SWIG_IsOK(res1)) {
21901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_WriteBool" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21902 }
21903 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21904 {
21905 arg2 = wxString_in_helper(obj1);
21906 if (arg2 == NULL) SWIG_fail;
21907 temp2 = true;
21908 }
21909 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21910 if (!SWIG_IsOK(ecode3)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_WriteBool" "', expected argument " "3"" of type '" "bool""'");
21912 }
21913 arg3 = static_cast< bool >(val3);
21914 {
21915 PyThreadState* __tstate = wxPyBeginAllowThreads();
21916 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 {
21921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21922 }
21923 {
21924 if (temp2)
21925 delete arg2;
21926 }
21927 return resultobj;
21928fail:
21929 {
21930 if (temp2)
21931 delete arg2;
21932 }
21933 return NULL;
21934}
21935
21936
21937SWIGINTERN PyObject *_wrap_ConfigBase_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21938 PyObject *resultobj = 0;
21939 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21940 bool arg2 = (bool) false ;
21941 bool result;
21942 void *argp1 = 0 ;
21943 int res1 = 0 ;
21944 bool val2 ;
21945 int ecode2 = 0 ;
21946 PyObject * obj0 = 0 ;
21947 PyObject * obj1 = 0 ;
21948 char * kwnames[] = {
21949 (char *) "self",(char *) "currentOnly", NULL
21950 };
21951
21952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) SWIG_fail;
21953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21954 if (!SWIG_IsOK(res1)) {
21955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_Flush" "', expected argument " "1"" of type '" "wxConfigBase *""'");
21956 }
21957 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
21958 if (obj1) {
21959 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21960 if (!SWIG_IsOK(ecode2)) {
21961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_Flush" "', expected argument " "2"" of type '" "bool""'");
21962 }
21963 arg2 = static_cast< bool >(val2);
21964 }
21965 {
21966 PyThreadState* __tstate = wxPyBeginAllowThreads();
21967 result = (bool)(arg1)->Flush(arg2);
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 {
21972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21973 }
21974 return resultobj;
21975fail:
21976 return NULL;
21977}
21978
21979
21980SWIGINTERN PyObject *_wrap_ConfigBase_RenameEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21981 PyObject *resultobj = 0;
21982 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
21983 wxString *arg2 = 0 ;
21984 wxString *arg3 = 0 ;
21985 bool result;
21986 void *argp1 = 0 ;
21987 int res1 = 0 ;
21988 bool temp2 = false ;
21989 bool temp3 = false ;
21990 PyObject * obj0 = 0 ;
21991 PyObject * obj1 = 0 ;
21992 PyObject * obj2 = 0 ;
21993 char * kwnames[] = {
21994 (char *) "self",(char *) "oldName",(char *) "newName", NULL
21995 };
21996
21997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
21999 if (!SWIG_IsOK(res1)) {
22000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_RenameEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22001 }
22002 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22003 {
22004 arg2 = wxString_in_helper(obj1);
22005 if (arg2 == NULL) SWIG_fail;
22006 temp2 = true;
22007 }
22008 {
22009 arg3 = wxString_in_helper(obj2);
22010 if (arg3 == NULL) SWIG_fail;
22011 temp3 = true;
22012 }
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 {
22020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22021 }
22022 {
22023 if (temp2)
22024 delete arg2;
22025 }
22026 {
22027 if (temp3)
22028 delete arg3;
22029 }
22030 return resultobj;
22031fail:
22032 {
22033 if (temp2)
22034 delete arg2;
22035 }
22036 {
22037 if (temp3)
22038 delete arg3;
22039 }
22040 return NULL;
22041}
22042
22043
22044SWIGINTERN PyObject *_wrap_ConfigBase_RenameGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj = 0;
22046 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22047 wxString *arg2 = 0 ;
22048 wxString *arg3 = 0 ;
22049 bool result;
22050 void *argp1 = 0 ;
22051 int res1 = 0 ;
22052 bool temp2 = false ;
22053 bool temp3 = false ;
22054 PyObject * obj0 = 0 ;
22055 PyObject * obj1 = 0 ;
22056 PyObject * obj2 = 0 ;
22057 char * kwnames[] = {
22058 (char *) "self",(char *) "oldName",(char *) "newName", NULL
22059 };
22060
22061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22063 if (!SWIG_IsOK(res1)) {
22064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_RenameGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22065 }
22066 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22067 {
22068 arg2 = wxString_in_helper(obj1);
22069 if (arg2 == NULL) SWIG_fail;
22070 temp2 = true;
22071 }
22072 {
22073 arg3 = wxString_in_helper(obj2);
22074 if (arg3 == NULL) SWIG_fail;
22075 temp3 = true;
22076 }
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 {
22084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22085 }
22086 {
22087 if (temp2)
22088 delete arg2;
22089 }
22090 {
22091 if (temp3)
22092 delete arg3;
22093 }
22094 return resultobj;
22095fail:
22096 {
22097 if (temp2)
22098 delete arg2;
22099 }
22100 {
22101 if (temp3)
22102 delete arg3;
22103 }
22104 return NULL;
22105}
22106
22107
22108SWIGINTERN PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj = 0;
22110 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22111 wxString *arg2 = 0 ;
22112 bool arg3 = (bool) true ;
22113 bool result;
22114 void *argp1 = 0 ;
22115 int res1 = 0 ;
22116 bool temp2 = false ;
22117 bool val3 ;
22118 int ecode3 = 0 ;
22119 PyObject * obj0 = 0 ;
22120 PyObject * obj1 = 0 ;
22121 PyObject * obj2 = 0 ;
22122 char * kwnames[] = {
22123 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
22124 };
22125
22126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22128 if (!SWIG_IsOK(res1)) {
22129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteEntry" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22130 }
22131 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22132 {
22133 arg2 = wxString_in_helper(obj1);
22134 if (arg2 == NULL) SWIG_fail;
22135 temp2 = true;
22136 }
22137 if (obj2) {
22138 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22139 if (!SWIG_IsOK(ecode3)) {
22140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigBase_DeleteEntry" "', expected argument " "3"" of type '" "bool""'");
22141 }
22142 arg3 = static_cast< bool >(val3);
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22152 }
22153 {
22154 if (temp2)
22155 delete arg2;
22156 }
22157 return resultobj;
22158fail:
22159 {
22160 if (temp2)
22161 delete arg2;
22162 }
22163 return NULL;
22164}
22165
22166
22167SWIGINTERN PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj = 0;
22169 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22170 wxString *arg2 = 0 ;
22171 bool result;
22172 void *argp1 = 0 ;
22173 int res1 = 0 ;
22174 bool temp2 = false ;
22175 PyObject * obj0 = 0 ;
22176 PyObject * obj1 = 0 ;
22177 char * kwnames[] = {
22178 (char *) "self",(char *) "key", NULL
22179 };
22180
22181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) SWIG_fail;
22182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22183 if (!SWIG_IsOK(res1)) {
22184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteGroup" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22185 }
22186 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22187 {
22188 arg2 = wxString_in_helper(obj1);
22189 if (arg2 == NULL) SWIG_fail;
22190 temp2 = true;
22191 }
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 {
22199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22200 }
22201 {
22202 if (temp2)
22203 delete arg2;
22204 }
22205 return resultobj;
22206fail:
22207 {
22208 if (temp2)
22209 delete arg2;
22210 }
22211 return NULL;
22212}
68350608
RD
22213
22214
554f62e9
RD
22215SWIGINTERN PyObject *_wrap_ConfigBase_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22216 PyObject *resultobj = 0;
22217 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22218 bool result;
22219 void *argp1 = 0 ;
22220 int res1 = 0 ;
22221 PyObject *swig_obj[1] ;
22222
22223 if (!args) SWIG_fail;
22224 swig_obj[0] = args;
22225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_DeleteAll" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22228 }
22229 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 result = (bool)(arg1)->DeleteAll();
22233 wxPyEndAllowThreads(__tstate);
22234 if (PyErr_Occurred()) SWIG_fail;
22235 }
22236 {
22237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22238 }
22239 return resultobj;
22240fail:
22241 return NULL;
22242}
22243
22244
22245SWIGINTERN PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22246 PyObject *resultobj = 0;
22247 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22248 bool arg2 = (bool) true ;
22249 void *argp1 = 0 ;
22250 int res1 = 0 ;
22251 bool val2 ;
22252 int ecode2 = 0 ;
22253 PyObject * obj0 = 0 ;
22254 PyObject * obj1 = 0 ;
22255 char * kwnames[] = {
22256 (char *) "self",(char *) "doIt", NULL
22257 };
22258
22259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) SWIG_fail;
22260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22261 if (!SWIG_IsOK(res1)) {
22262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetExpandEnvVars" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22263 }
22264 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22265 if (obj1) {
22266 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22267 if (!SWIG_IsOK(ecode2)) {
22268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetExpandEnvVars" "', expected argument " "2"" of type '" "bool""'");
22269 }
22270 arg2 = static_cast< bool >(val2);
22271 }
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 (arg1)->SetExpandEnvVars(arg2);
22275 wxPyEndAllowThreads(__tstate);
22276 if (PyErr_Occurred()) SWIG_fail;
22277 }
22278 resultobj = SWIG_Py_Void();
22279 return resultobj;
22280fail:
22281 return NULL;
68350608
RD
22282}
22283
22284
554f62e9
RD
22285SWIGINTERN PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22286 PyObject *resultobj = 0;
22287 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22288 bool result;
22289 void *argp1 = 0 ;
22290 int res1 = 0 ;
22291 PyObject *swig_obj[1] ;
22292
22293 if (!args) SWIG_fail;
22294 swig_obj[0] = args;
22295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22296 if (!SWIG_IsOK(res1)) {
22297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_IsExpandingEnvVars" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22298 }
22299 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
22303 wxPyEndAllowThreads(__tstate);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 }
22306 {
22307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22308 }
22309 return resultobj;
22310fail:
22311 return NULL;
22312}
22313
22314
22315SWIGINTERN PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22316 PyObject *resultobj = 0;
22317 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22318 bool arg2 = (bool) true ;
22319 void *argp1 = 0 ;
22320 int res1 = 0 ;
22321 bool val2 ;
22322 int ecode2 = 0 ;
22323 PyObject * obj0 = 0 ;
22324 PyObject * obj1 = 0 ;
22325 char * kwnames[] = {
22326 (char *) "self",(char *) "doIt", NULL
22327 };
22328
22329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) SWIG_fail;
22330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetRecordDefaults" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22333 }
22334 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22335 if (obj1) {
22336 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22337 if (!SWIG_IsOK(ecode2)) {
22338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetRecordDefaults" "', expected argument " "2"" of type '" "bool""'");
22339 }
22340 arg2 = static_cast< bool >(val2);
22341 }
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 (arg1)->SetRecordDefaults(arg2);
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 resultobj = SWIG_Py_Void();
22349 return resultobj;
22350fail:
22351 return NULL;
68350608
RD
22352}
22353
22354
554f62e9
RD
22355SWIGINTERN PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 PyObject *resultobj = 0;
22357 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22358 bool result;
22359 void *argp1 = 0 ;
22360 int res1 = 0 ;
22361 PyObject *swig_obj[1] ;
22362
22363 if (!args) SWIG_fail;
22364 swig_obj[0] = args;
22365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_IsRecordingDefaults" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22368 }
22369 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 {
22377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22378 }
22379 return resultobj;
22380fail:
22381 return NULL;
22382}
22383
22384
22385SWIGINTERN PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22386 PyObject *resultobj = 0;
22387 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22388 wxString *arg2 = 0 ;
22389 wxString result;
22390 void *argp1 = 0 ;
22391 int res1 = 0 ;
22392 bool temp2 = false ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char * kwnames[] = {
22396 (char *) "self",(char *) "str", NULL
22397 };
22398
22399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) SWIG_fail;
22400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22401 if (!SWIG_IsOK(res1)) {
22402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_ExpandEnvVars" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22403 }
22404 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22405 {
22406 arg2 = wxString_in_helper(obj1);
22407 if (arg2 == NULL) SWIG_fail;
22408 temp2 = true;
22409 }
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
68350608 22417#if wxUSE_UNICODE
554f62e9 22418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
68350608 22419#else
554f62e9 22420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
68350608 22421#endif
554f62e9
RD
22422 }
22423 {
22424 if (temp2)
22425 delete arg2;
22426 }
22427 return resultobj;
22428fail:
22429 {
22430 if (temp2)
22431 delete arg2;
22432 }
22433 return NULL;
a187dc0b
RD
22434}
22435
22436
554f62e9
RD
22437SWIGINTERN PyObject *_wrap_ConfigBase_GetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22438 PyObject *resultobj = 0;
22439 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22440 wxString result;
22441 void *argp1 = 0 ;
22442 int res1 = 0 ;
22443 PyObject *swig_obj[1] ;
22444
22445 if (!args) SWIG_fail;
22446 swig_obj[0] = args;
22447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22448 if (!SWIG_IsOK(res1)) {
22449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetAppName" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22450 }
22451 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22452 {
22453 PyThreadState* __tstate = wxPyBeginAllowThreads();
22454 result = ((wxConfigBase const *)arg1)->GetAppName();
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 {
a187dc0b 22459#if wxUSE_UNICODE
554f62e9 22460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
a187dc0b 22461#else
554f62e9 22462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
a187dc0b 22463#endif
554f62e9
RD
22464 }
22465 return resultobj;
22466fail:
22467 return NULL;
68350608
RD
22468}
22469
22470
554f62e9
RD
22471SWIGINTERN PyObject *_wrap_ConfigBase_GetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22472 PyObject *resultobj = 0;
22473 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22474 wxString result;
22475 void *argp1 = 0 ;
22476 int res1 = 0 ;
22477 PyObject *swig_obj[1] ;
22478
22479 if (!args) SWIG_fail;
22480 swig_obj[0] = args;
22481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22482 if (!SWIG_IsOK(res1)) {
22483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetVendorName" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22484 }
22485 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 result = ((wxConfigBase const *)arg1)->GetVendorName();
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 {
22493#if wxUSE_UNICODE
22494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22495#else
22496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
68350608 22497#endif
554f62e9
RD
22498 }
22499 return resultobj;
22500fail:
22501 return NULL;
22502}
22503
22504
22505SWIGINTERN PyObject *_wrap_ConfigBase_SetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22506 PyObject *resultobj = 0;
22507 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22508 wxString *arg2 = 0 ;
22509 void *argp1 = 0 ;
22510 int res1 = 0 ;
22511 bool temp2 = false ;
22512 PyObject * obj0 = 0 ;
22513 PyObject * obj1 = 0 ;
22514 char * kwnames[] = {
22515 (char *) "self",(char *) "appName", NULL
22516 };
22517
22518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) SWIG_fail;
22519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22520 if (!SWIG_IsOK(res1)) {
22521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetAppName" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22522 }
22523 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22524 {
22525 arg2 = wxString_in_helper(obj1);
22526 if (arg2 == NULL) SWIG_fail;
22527 temp2 = true;
22528 }
22529 {
22530 PyThreadState* __tstate = wxPyBeginAllowThreads();
22531 (arg1)->SetAppName((wxString const &)*arg2);
22532 wxPyEndAllowThreads(__tstate);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 }
22535 resultobj = SWIG_Py_Void();
22536 {
22537 if (temp2)
22538 delete arg2;
22539 }
22540 return resultobj;
22541fail:
22542 {
22543 if (temp2)
22544 delete arg2;
22545 }
22546 return NULL;
68350608
RD
22547}
22548
22549
554f62e9
RD
22550SWIGINTERN PyObject *_wrap_ConfigBase_SetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj = 0;
22552 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22553 wxString *arg2 = 0 ;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 bool temp2 = false ;
22557 PyObject * obj0 = 0 ;
22558 PyObject * obj1 = 0 ;
22559 char * kwnames[] = {
22560 (char *) "self",(char *) "vendorName", NULL
22561 };
22562
22563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) SWIG_fail;
22564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22565 if (!SWIG_IsOK(res1)) {
22566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetVendorName" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22567 }
22568 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22569 {
22570 arg2 = wxString_in_helper(obj1);
22571 if (arg2 == NULL) SWIG_fail;
22572 temp2 = true;
22573 }
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 (arg1)->SetVendorName((wxString const &)*arg2);
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_Py_Void();
22581 {
22582 if (temp2)
22583 delete arg2;
22584 }
22585 return resultobj;
22586fail:
22587 {
22588 if (temp2)
22589 delete arg2;
22590 }
22591 return NULL;
22592}
22593
22594
22595SWIGINTERN PyObject *_wrap_ConfigBase_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22596 PyObject *resultobj = 0;
22597 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22598 long arg2 ;
22599 void *argp1 = 0 ;
22600 int res1 = 0 ;
22601 long val2 ;
22602 int ecode2 = 0 ;
22603 PyObject * obj0 = 0 ;
22604 PyObject * obj1 = 0 ;
22605 char * kwnames[] = {
22606 (char *) "self",(char *) "style", NULL
22607 };
22608
22609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
22610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22611 if (!SWIG_IsOK(res1)) {
22612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_SetStyle" "', expected argument " "1"" of type '" "wxConfigBase *""'");
22613 }
22614 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22615 ecode2 = SWIG_AsVal_long(obj1, &val2);
22616 if (!SWIG_IsOK(ecode2)) {
22617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigBase_SetStyle" "', expected argument " "2"" of type '" "long""'");
22618 }
22619 arg2 = static_cast< long >(val2);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 (arg1)->SetStyle(arg2);
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_Py_Void();
22627 return resultobj;
22628fail:
22629 return NULL;
68350608
RD
22630}
22631
22632
554f62e9
RD
22633SWIGINTERN PyObject *_wrap_ConfigBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22636 long result;
22637 void *argp1 = 0 ;
22638 int res1 = 0 ;
22639 PyObject *swig_obj[1] ;
22640
22641 if (!args) SWIG_fail;
22642 swig_obj[0] = args;
22643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigBase_GetStyle" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22646 }
22647 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22648 {
22649 PyThreadState* __tstate = wxPyBeginAllowThreads();
22650 result = (long)((wxConfigBase const *)arg1)->GetStyle();
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 resultobj = SWIG_From_long(static_cast< long >(result));
22655 return resultobj;
22656fail:
22657 return NULL;
22658}
22659
22660
22661SWIGINTERN PyObject *ConfigBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22662 PyObject *obj;
22663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22664 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfigBase, SWIG_NewClientData(obj));
22665 return SWIG_Py_Void();
22666}
22667
22668SWIGINTERN PyObject *_wrap_new_Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj = 0;
22670 wxString const &arg1_defvalue = wxPyEmptyString ;
22671 wxString *arg1 = (wxString *) &arg1_defvalue ;
22672 wxString const &arg2_defvalue = wxPyEmptyString ;
22673 wxString *arg2 = (wxString *) &arg2_defvalue ;
22674 wxString const &arg3_defvalue = wxPyEmptyString ;
22675 wxString *arg3 = (wxString *) &arg3_defvalue ;
22676 wxString const &arg4_defvalue = wxPyEmptyString ;
22677 wxString *arg4 = (wxString *) &arg4_defvalue ;
22678 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
22679 wxConfig *result = 0 ;
22680 bool temp1 = false ;
22681 bool temp2 = false ;
22682 bool temp3 = false ;
22683 bool temp4 = false ;
22684 long val5 ;
22685 int ecode5 = 0 ;
22686 PyObject * obj0 = 0 ;
22687 PyObject * obj1 = 0 ;
22688 PyObject * obj2 = 0 ;
22689 PyObject * obj3 = 0 ;
22690 PyObject * obj4 = 0 ;
22691 char * kwnames[] = {
22692 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
22693 };
22694
22695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22696 if (obj0) {
68350608 22697 {
554f62e9
RD
22698 arg1 = wxString_in_helper(obj0);
22699 if (arg1 == NULL) SWIG_fail;
22700 temp1 = true;
68350608 22701 }
554f62e9
RD
22702 }
22703 if (obj1) {
22704 {
22705 arg2 = wxString_in_helper(obj1);
22706 if (arg2 == NULL) SWIG_fail;
22707 temp2 = true;
22708 }
22709 }
22710 if (obj2) {
22711 {
22712 arg3 = wxString_in_helper(obj2);
22713 if (arg3 == NULL) SWIG_fail;
22714 temp3 = true;
22715 }
22716 }
22717 if (obj3) {
22718 {
22719 arg4 = wxString_in_helper(obj3);
22720 if (arg4 == NULL) SWIG_fail;
22721 temp4 = true;
22722 }
22723 }
22724 if (obj4) {
22725 ecode5 = SWIG_AsVal_long(obj4, &val5);
22726 if (!SWIG_IsOK(ecode5)) {
22727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Config" "', expected argument " "5"" of type '" "long""'");
22728 }
22729 arg5 = static_cast< long >(val5);
22730 }
22731 {
22732 PyThreadState* __tstate = wxPyBeginAllowThreads();
22733 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfig, SWIG_POINTER_NEW | 0 );
22738 {
22739 if (temp1)
22740 delete arg1;
22741 }
22742 {
22743 if (temp2)
22744 delete arg2;
22745 }
22746 {
22747 if (temp3)
22748 delete arg3;
22749 }
22750 {
22751 if (temp4)
22752 delete arg4;
22753 }
22754 return resultobj;
22755fail:
22756 {
22757 if (temp1)
22758 delete arg1;
22759 }
22760 {
22761 if (temp2)
22762 delete arg2;
22763 }
22764 {
22765 if (temp3)
22766 delete arg3;
22767 }
22768 {
22769 if (temp4)
22770 delete arg4;
22771 }
22772 return NULL;
68350608
RD
22773}
22774
22775
554f62e9
RD
22776SWIGINTERN PyObject *_wrap_delete_Config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22777 PyObject *resultobj = 0;
22778 wxConfig *arg1 = (wxConfig *) 0 ;
22779 void *argp1 = 0 ;
22780 int res1 = 0 ;
22781 PyObject *swig_obj[1] ;
22782
22783 if (!args) SWIG_fail;
22784 swig_obj[0] = args;
22785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfig, SWIG_POINTER_DISOWN | 0 );
22786 if (!SWIG_IsOK(res1)) {
22787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Config" "', expected argument " "1"" of type '" "wxConfig *""'");
22788 }
22789 arg1 = reinterpret_cast< wxConfig * >(argp1);
22790 {
22791 PyThreadState* __tstate = wxPyBeginAllowThreads();
22792 delete arg1;
22793
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 resultobj = SWIG_Py_Void();
22798 return resultobj;
22799fail:
22800 return NULL;
22801}
22802
22803
22804SWIGINTERN PyObject *Config_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22805 PyObject *obj;
22806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22807 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfig, SWIG_NewClientData(obj));
22808 return SWIG_Py_Void();
22809}
22810
22811SWIGINTERN PyObject *Config_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22812 return SWIG_Python_InitShadowInstance(args);
22813}
22814
22815SWIGINTERN PyObject *_wrap_new_FileConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22816 PyObject *resultobj = 0;
22817 wxString const &arg1_defvalue = wxPyEmptyString ;
22818 wxString *arg1 = (wxString *) &arg1_defvalue ;
22819 wxString const &arg2_defvalue = wxPyEmptyString ;
22820 wxString *arg2 = (wxString *) &arg2_defvalue ;
22821 wxString const &arg3_defvalue = wxPyEmptyString ;
22822 wxString *arg3 = (wxString *) &arg3_defvalue ;
22823 wxString const &arg4_defvalue = wxPyEmptyString ;
22824 wxString *arg4 = (wxString *) &arg4_defvalue ;
22825 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
22826 wxFileConfig *result = 0 ;
22827 bool temp1 = false ;
22828 bool temp2 = false ;
22829 bool temp3 = false ;
22830 bool temp4 = false ;
22831 long val5 ;
22832 int ecode5 = 0 ;
22833 PyObject * obj0 = 0 ;
22834 PyObject * obj1 = 0 ;
22835 PyObject * obj2 = 0 ;
22836 PyObject * obj3 = 0 ;
22837 PyObject * obj4 = 0 ;
22838 char * kwnames[] = {
22839 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
22840 };
22841
22842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22843 if (obj0) {
22844 {
22845 arg1 = wxString_in_helper(obj0);
22846 if (arg1 == NULL) SWIG_fail;
22847 temp1 = true;
22848 }
22849 }
22850 if (obj1) {
22851 {
22852 arg2 = wxString_in_helper(obj1);
22853 if (arg2 == NULL) SWIG_fail;
22854 temp2 = true;
22855 }
22856 }
22857 if (obj2) {
22858 {
22859 arg3 = wxString_in_helper(obj2);
22860 if (arg3 == NULL) SWIG_fail;
22861 temp3 = true;
22862 }
22863 }
22864 if (obj3) {
22865 {
22866 arg4 = wxString_in_helper(obj3);
22867 if (arg4 == NULL) SWIG_fail;
22868 temp4 = true;
22869 }
22870 }
22871 if (obj4) {
22872 ecode5 = SWIG_AsVal_long(obj4, &val5);
22873 if (!SWIG_IsOK(ecode5)) {
22874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FileConfig" "', expected argument " "5"" of type '" "long""'");
22875 }
22876 arg5 = static_cast< long >(val5);
22877 }
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileConfig, SWIG_POINTER_NEW | 0 );
22885 {
22886 if (temp1)
22887 delete arg1;
22888 }
22889 {
22890 if (temp2)
22891 delete arg2;
22892 }
22893 {
22894 if (temp3)
22895 delete arg3;
22896 }
22897 {
22898 if (temp4)
22899 delete arg4;
22900 }
22901 return resultobj;
22902fail:
22903 {
22904 if (temp1)
22905 delete arg1;
22906 }
22907 {
22908 if (temp2)
22909 delete arg2;
22910 }
22911 {
22912 if (temp3)
22913 delete arg3;
22914 }
22915 {
22916 if (temp4)
22917 delete arg4;
22918 }
22919 return NULL;
68350608
RD
22920}
22921
22922
554f62e9
RD
22923SWIGINTERN PyObject *_wrap_delete_FileConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22924 PyObject *resultobj = 0;
22925 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 PyObject *swig_obj[1] ;
22929
22930 if (!args) SWIG_fail;
22931 swig_obj[0] = args;
22932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileConfig, SWIG_POINTER_DISOWN | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileConfig" "', expected argument " "1"" of type '" "wxFileConfig *""'");
22935 }
22936 arg1 = reinterpret_cast< wxFileConfig * >(argp1);
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 delete arg1;
68350608 22940
554f62e9
RD
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 resultobj = SWIG_Py_Void();
22945 return resultobj;
22946fail:
22947 return NULL;
68350608
RD
22948}
22949
22950
554f62e9
RD
22951SWIGINTERN PyObject *FileConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22952 PyObject *obj;
22953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22954 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileConfig, SWIG_NewClientData(obj));
22955 return SWIG_Py_Void();
22956}
22957
22958SWIGINTERN PyObject *FileConfig_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 return SWIG_Python_InitShadowInstance(args);
68350608
RD
22960}
22961
554f62e9
RD
22962SWIGINTERN PyObject *_wrap_new_ConfigPathChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22963 PyObject *resultobj = 0;
22964 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
22965 wxString *arg2 = 0 ;
22966 wxConfigPathChanger *result = 0 ;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 bool temp2 = false ;
22970 PyObject * obj0 = 0 ;
22971 PyObject * obj1 = 0 ;
22972 char * kwnames[] = {
22973 (char *) "config",(char *) "entry", NULL
22974 };
22975
22976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) SWIG_fail;
22977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxConfigBase, 0 | 0 );
22978 if (!SWIG_IsOK(res1)) {
22979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigPathChanger" "', expected argument " "1"" of type '" "wxConfigBase const *""'");
22980 }
22981 arg1 = reinterpret_cast< wxConfigBase * >(argp1);
22982 {
22983 arg2 = wxString_in_helper(obj1);
22984 if (arg2 == NULL) SWIG_fail;
22985 temp2 = true;
22986 }
22987 {
22988 PyThreadState* __tstate = wxPyBeginAllowThreads();
22989 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_NEW | 0 );
22994 {
22995 if (temp2)
22996 delete arg2;
22997 }
22998 return resultobj;
22999fail:
23000 {
23001 if (temp2)
23002 delete arg2;
23003 }
23004 return NULL;
23005}
68350608 23006
554f62e9
RD
23007
23008SWIGINTERN PyObject *_wrap_delete_ConfigPathChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 PyObject *swig_obj[1] ;
23014
23015 if (!args) SWIG_fail;
23016 swig_obj[0] = args;
23017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigPathChanger, SWIG_POINTER_DISOWN | 0 );
23018 if (!SWIG_IsOK(res1)) {
23019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigPathChanger" "', expected argument " "1"" of type '" "wxConfigPathChanger *""'");
23020 }
23021 arg1 = reinterpret_cast< wxConfigPathChanger * >(argp1);
23022 {
23023 PyThreadState* __tstate = wxPyBeginAllowThreads();
23024 delete arg1;
68350608 23025
554f62e9
RD
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_Py_Void();
23030 return resultobj;
23031fail:
23032 return NULL;
23033}
23034
23035
23036SWIGINTERN PyObject *_wrap_ConfigPathChanger_Name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037 PyObject *resultobj = 0;
23038 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
23039 wxString *result = 0 ;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxConfigPathChanger, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigPathChanger_Name" "', expected argument " "1"" of type '" "wxConfigPathChanger const *""'");
23049 }
23050 arg1 = reinterpret_cast< wxConfigPathChanger * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
68350608 23053 {
554f62e9
RD
23054 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
23055 result = (wxString *) &_result_ref;
23056 }
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 {
68350608 23061#if wxUSE_UNICODE
554f62e9 23062 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
68350608 23063#else
554f62e9 23064 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
68350608 23065#endif
554f62e9
RD
23066 }
23067 return resultobj;
23068fail:
23069 return NULL;
68350608
RD
23070}
23071
23072
554f62e9
RD
23073SWIGINTERN PyObject *ConfigPathChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23074 PyObject *obj;
23075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23076 SWIG_TypeNewClientData(SWIGTYPE_p_wxConfigPathChanger, SWIG_NewClientData(obj));
23077 return SWIG_Py_Void();
68350608
RD
23078}
23079
554f62e9
RD
23080SWIGINTERN PyObject *ConfigPathChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23081 return SWIG_Python_InitShadowInstance(args);
23082}
68350608 23083
554f62e9
RD
23084SWIGINTERN PyObject *_wrap_ExpandEnvVars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj = 0;
23086 wxString *arg1 = 0 ;
23087 wxString result;
23088 bool temp1 = false ;
23089 PyObject * obj0 = 0 ;
23090 char * kwnames[] = {
23091 (char *) "sz", NULL
23092 };
23093
23094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) SWIG_fail;
23095 {
23096 arg1 = wxString_in_helper(obj0);
23097 if (arg1 == NULL) SWIG_fail;
23098 temp1 = true;
23099 }
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = wxExpandEnvVars((wxString const &)*arg1);
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
68350608 23107#if wxUSE_UNICODE
554f62e9 23108 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
68350608 23109#else
554f62e9 23110 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
68350608 23111#endif
554f62e9
RD
23112 }
23113 {
23114 if (temp1)
23115 delete arg1;
23116 }
23117 return resultobj;
23118fail:
23119 {
23120 if (temp1)
23121 delete arg1;
23122 }
23123 return NULL;
68350608
RD
23124}
23125
23126
554f62e9
RD
23127SWIGINTERN int DefaultDateTimeFormat_set(PyObject *) {
23128 SWIG_Error(SWIG_AttributeError,"Variable DefaultDateTimeFormat is read-only.");
23129 return 1;
d55e5bfc
RD
23130}
23131
23132
554f62e9
RD
23133SWIGINTERN PyObject *DefaultDateTimeFormat_get(void) {
23134 PyObject *pyobj = 0;
23135
23136 {
23137#if wxUSE_UNICODE
23138 pyobj = PyUnicode_FromWideChar((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
23139#else
23140 pyobj = PyString_FromStringAndSize((&wxPyDefaultDateTimeFormat)->c_str(), (&wxPyDefaultDateTimeFormat)->Len());
23141#endif
23142 }
23143 return pyobj;
7e08d4ef
RD
23144}
23145
23146
554f62e9
RD
23147SWIGINTERN int DefaultTimeSpanFormat_set(PyObject *) {
23148 SWIG_Error(SWIG_AttributeError,"Variable DefaultTimeSpanFormat is read-only.");
23149 return 1;
d55e5bfc
RD
23150}
23151
23152
554f62e9
RD
23153SWIGINTERN PyObject *DefaultTimeSpanFormat_get(void) {
23154 PyObject *pyobj = 0;
23155
23156 {
23157#if wxUSE_UNICODE
23158 pyobj = PyUnicode_FromWideChar((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
23159#else
23160 pyobj = PyString_FromStringAndSize((&wxPyDefaultTimeSpanFormat)->c_str(), (&wxPyDefaultTimeSpanFormat)->Len());
23161#endif
23162 }
23163 return pyobj;
d55e5bfc
RD
23164}
23165
23166
554f62e9
RD
23167SWIGINTERN PyObject *_wrap_DateTime_SetCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23168 PyObject *resultobj = 0;
23169 wxDateTime::Country arg1 ;
23170 int val1 ;
23171 int ecode1 = 0 ;
23172 PyObject * obj0 = 0 ;
23173 char * kwnames[] = {
23174 (char *) "country", NULL
23175 };
23176
23177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) SWIG_fail;
23178 ecode1 = SWIG_AsVal_int(obj0, &val1);
23179 if (!SWIG_IsOK(ecode1)) {
23180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_SetCountry" "', expected argument " "1"" of type '" "wxDateTime::Country""'");
23181 }
23182 arg1 = static_cast< wxDateTime::Country >(val1);
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 wxDateTime::SetCountry(arg1);
23186 wxPyEndAllowThreads(__tstate);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 }
23189 resultobj = SWIG_Py_Void();
23190 return resultobj;
23191fail:
23192 return NULL;
d55e5bfc
RD
23193}
23194
23195
554f62e9
RD
23196SWIGINTERN PyObject *_wrap_DateTime_GetCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23197 PyObject *resultobj = 0;
23198 wxDateTime::Country result;
23199
23200 if (!SWIG_Python_UnpackTuple(args,"DateTime_GetCountry",0,0,0)) SWIG_fail;
23201 {
23202 PyThreadState* __tstate = wxPyBeginAllowThreads();
23203 result = (wxDateTime::Country)wxDateTime::GetCountry();
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 resultobj = SWIG_From_int(static_cast< int >(result));
23208 return resultobj;
23209fail:
23210 return NULL;
23211}
23212
23213
23214SWIGINTERN PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj = 0;
23216 wxDateTime::Country arg1 = (wxDateTime::Country) wxDateTime::Country_Default ;
23217 bool result;
23218 int val1 ;
23219 int ecode1 = 0 ;
23220 PyObject * obj0 = 0 ;
23221 char * kwnames[] = {
23222 (char *) "country", NULL
23223 };
23224
23225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) SWIG_fail;
23226 if (obj0) {
23227 ecode1 = SWIG_AsVal_int(obj0, &val1);
23228 if (!SWIG_IsOK(ecode1)) {
23229 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsWestEuropeanCountry" "', expected argument " "1"" of type '" "wxDateTime::Country""'");
23230 }
23231 arg1 = static_cast< wxDateTime::Country >(val1);
23232 }
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 result = (bool)wxDateTime::IsWestEuropeanCountry(arg1);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 {
23240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23241 }
23242 return resultobj;
23243fail:
23244 return NULL;
d55e5bfc
RD
23245}
23246
23247
554f62e9
RD
23248SWIGINTERN PyObject *_wrap_DateTime_GetCurrentYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23249 PyObject *resultobj = 0;
23250 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23251 int result;
23252 int val1 ;
23253 int ecode1 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 char * kwnames[] = {
23256 (char *) "cal", NULL
23257 };
23258
23259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) SWIG_fail;
23260 if (obj0) {
23261 ecode1 = SWIG_AsVal_int(obj0, &val1);
23262 if (!SWIG_IsOK(ecode1)) {
23263 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCurrentYear" "', expected argument " "1"" of type '" "wxDateTime::Calendar""'");
23264 }
23265 arg1 = static_cast< wxDateTime::Calendar >(val1);
23266 }
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 result = (int)wxDateTime::GetCurrentYear(arg1);
23270 wxPyEndAllowThreads(__tstate);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 }
23273 resultobj = SWIG_From_int(static_cast< int >(result));
23274 return resultobj;
23275fail:
23276 return NULL;
23277}
23278
23279
23280SWIGINTERN PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23281 PyObject *resultobj = 0;
23282 int arg1 ;
23283 int result;
23284 int val1 ;
23285 int ecode1 = 0 ;
23286 PyObject * obj0 = 0 ;
23287 char * kwnames[] = {
23288 (char *) "year", NULL
23289 };
23290
23291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) SWIG_fail;
23292 ecode1 = SWIG_AsVal_int(obj0, &val1);
23293 if (!SWIG_IsOK(ecode1)) {
23294 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_ConvertYearToBC" "', expected argument " "1"" of type '" "int""'");
23295 }
23296 arg1 = static_cast< int >(val1);
23297 {
23298 PyThreadState* __tstate = wxPyBeginAllowThreads();
23299 result = (int)wxDateTime::ConvertYearToBC(arg1);
23300 wxPyEndAllowThreads(__tstate);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 }
23303 resultobj = SWIG_From_int(static_cast< int >(result));
23304 return resultobj;
23305fail:
23306 return NULL;
23307}
23308
23309
23310SWIGINTERN PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxDateTime::Calendar arg1 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23313 wxDateTime::Month result;
23314 int val1 ;
23315 int ecode1 = 0 ;
23316 PyObject * obj0 = 0 ;
23317 char * kwnames[] = {
23318 (char *) "cal", NULL
23319 };
23320
23321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) SWIG_fail;
23322 if (obj0) {
23323 ecode1 = SWIG_AsVal_int(obj0, &val1);
23324 if (!SWIG_IsOK(ecode1)) {
23325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCurrentMonth" "', expected argument " "1"" of type '" "wxDateTime::Calendar""'");
23326 }
23327 arg1 = static_cast< wxDateTime::Calendar >(val1);
23328 }
23329 {
23330 PyThreadState* __tstate = wxPyBeginAllowThreads();
23331 result = (wxDateTime::Month)wxDateTime::GetCurrentMonth(arg1);
23332 wxPyEndAllowThreads(__tstate);
23333 if (PyErr_Occurred()) SWIG_fail;
23334 }
23335 resultobj = SWIG_From_int(static_cast< int >(result));
23336 return resultobj;
23337fail:
23338 return NULL;
23339}
23340
23341
23342SWIGINTERN PyObject *_wrap_DateTime_IsLeapYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23343 PyObject *resultobj = 0;
23344 int arg1 = (int) wxDateTime::Inv_Year ;
23345 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23346 bool result;
23347 int val1 ;
23348 int ecode1 = 0 ;
23349 int val2 ;
23350 int ecode2 = 0 ;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "year",(char *) "cal", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) SWIG_fail;
23358 if (obj0) {
23359 ecode1 = SWIG_AsVal_int(obj0, &val1);
23360 if (!SWIG_IsOK(ecode1)) {
23361 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsLeapYear" "', expected argument " "1"" of type '" "int""'");
23362 }
23363 arg1 = static_cast< int >(val1);
23364 }
23365 if (obj1) {
23366 ecode2 = SWIG_AsVal_int(obj1, &val2);
23367 if (!SWIG_IsOK(ecode2)) {
23368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsLeapYear" "', expected argument " "2"" of type '" "wxDateTime::Calendar""'");
23369 }
23370 arg2 = static_cast< wxDateTime::Calendar >(val2);
23371 }
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (bool)wxDateTime::IsLeapYear(arg1,arg2);
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 {
23379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23380 }
23381 return resultobj;
23382fail:
23383 return NULL;
d55e5bfc
RD
23384}
23385
23386
554f62e9
RD
23387SWIGINTERN PyObject *_wrap_DateTime_GetCentury(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23388 PyObject *resultobj = 0;
23389 int arg1 = (int) wxDateTime::Inv_Year ;
23390 int result;
23391 int val1 ;
23392 int ecode1 = 0 ;
23393 PyObject * obj0 = 0 ;
23394 char * kwnames[] = {
23395 (char *) "year", NULL
23396 };
23397
23398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) SWIG_fail;
23399 if (obj0) {
23400 ecode1 = SWIG_AsVal_int(obj0, &val1);
23401 if (!SWIG_IsOK(ecode1)) {
23402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetCentury" "', expected argument " "1"" of type '" "int""'");
23403 }
23404 arg1 = static_cast< int >(val1);
23405 }
23406 {
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 result = (int)wxDateTime::GetCentury(arg1);
23409 wxPyEndAllowThreads(__tstate);
23410 if (PyErr_Occurred()) SWIG_fail;
23411 }
23412 resultobj = SWIG_From_int(static_cast< int >(result));
23413 return resultobj;
23414fail:
23415 return NULL;
23416}
23417
23418
23419SWIGINTERN PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23420 PyObject *resultobj = 0;
23421 int arg1 ;
23422 wxDateTime::Calendar arg2 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23423 int result;
23424 int val1 ;
23425 int ecode1 = 0 ;
23426 int val2 ;
23427 int ecode2 = 0 ;
23428 PyObject * obj0 = 0 ;
23429 PyObject * obj1 = 0 ;
23430 char * kwnames[] = {
23431 (char *) "year",(char *) "cal", NULL
23432 };
23433
23434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) SWIG_fail;
23435 ecode1 = SWIG_AsVal_int(obj0, &val1);
23436 if (!SWIG_IsOK(ecode1)) {
23437 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetNumberOfDaysinYear" "', expected argument " "1"" of type '" "int""'");
23438 }
23439 arg1 = static_cast< int >(val1);
23440 if (obj1) {
23441 ecode2 = SWIG_AsVal_int(obj1, &val2);
23442 if (!SWIG_IsOK(ecode2)) {
23443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNumberOfDaysinYear" "', expected argument " "2"" of type '" "wxDateTime::Calendar""'");
23444 }
23445 arg2 = static_cast< wxDateTime::Calendar >(val2);
23446 }
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2);
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_From_int(static_cast< int >(result));
23454 return resultobj;
23455fail:
23456 return NULL;
23457}
23458
23459
23460SWIGINTERN PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj = 0;
23462 wxDateTime::Month arg1 ;
23463 int arg2 = (int) wxDateTime::Inv_Year ;
23464 wxDateTime::Calendar arg3 = (wxDateTime::Calendar) wxDateTime::Gregorian ;
23465 int result;
23466 int val1 ;
23467 int ecode1 = 0 ;
23468 int val2 ;
23469 int ecode2 = 0 ;
23470 int val3 ;
23471 int ecode3 = 0 ;
23472 PyObject * obj0 = 0 ;
23473 PyObject * obj1 = 0 ;
23474 PyObject * obj2 = 0 ;
23475 char * kwnames[] = {
23476 (char *) "month",(char *) "year",(char *) "cal", NULL
23477 };
23478
23479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23480 ecode1 = SWIG_AsVal_int(obj0, &val1);
23481 if (!SWIG_IsOK(ecode1)) {
23482 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "1"" of type '" "wxDateTime::Month""'");
23483 }
23484 arg1 = static_cast< wxDateTime::Month >(val1);
23485 if (obj1) {
23486 ecode2 = SWIG_AsVal_int(obj1, &val2);
23487 if (!SWIG_IsOK(ecode2)) {
23488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "2"" of type '" "int""'");
23489 }
23490 arg2 = static_cast< int >(val2);
23491 }
23492 if (obj2) {
23493 ecode3 = SWIG_AsVal_int(obj2, &val3);
23494 if (!SWIG_IsOK(ecode3)) {
23495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetNumberOfDaysInMonth" "', expected argument " "3"" of type '" "wxDateTime::Calendar""'");
23496 }
23497 arg3 = static_cast< wxDateTime::Calendar >(val3);
23498 }
23499 {
23500 PyThreadState* __tstate = wxPyBeginAllowThreads();
23501 result = (int)wxDateTime::GetNumberOfDays(arg1,arg2,arg3);
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 resultobj = SWIG_From_int(static_cast< int >(result));
23506 return resultobj;
23507fail:
23508 return NULL;
23509}
23510
23511
23512SWIGINTERN PyObject *_wrap_DateTime_GetMonthName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23513 PyObject *resultobj = 0;
23514 wxDateTime::Month arg1 ;
23515 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
23516 wxString result;
23517 int val1 ;
23518 int ecode1 = 0 ;
23519 int val2 ;
23520 int ecode2 = 0 ;
23521 PyObject * obj0 = 0 ;
23522 PyObject * obj1 = 0 ;
23523 char * kwnames[] = {
23524 (char *) "month",(char *) "flags", NULL
23525 };
23526
23527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) SWIG_fail;
23528 ecode1 = SWIG_AsVal_int(obj0, &val1);
23529 if (!SWIG_IsOK(ecode1)) {
23530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetMonthName" "', expected argument " "1"" of type '" "wxDateTime::Month""'");
23531 }
23532 arg1 = static_cast< wxDateTime::Month >(val1);
23533 if (obj1) {
23534 ecode2 = SWIG_AsVal_int(obj1, &val2);
23535 if (!SWIG_IsOK(ecode2)) {
23536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetMonthName" "', expected argument " "2"" of type '" "wxDateTime::NameFlags""'");
23537 }
23538 arg2 = static_cast< wxDateTime::NameFlags >(val2);
23539 }
23540 {
23541 PyThreadState* __tstate = wxPyBeginAllowThreads();
23542 result = wxDateTime::GetMonthName(arg1,arg2);
23543 wxPyEndAllowThreads(__tstate);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 }
23546 {
23547#if wxUSE_UNICODE
23548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23549#else
23550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23551#endif
23552 }
23553 return resultobj;
23554fail:
23555 return NULL;
23556}
23557
23558
23559SWIGINTERN PyObject *_wrap_DateTime_GetWeekDayName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj = 0;
23561 wxDateTime::WeekDay arg1 ;
23562 wxDateTime::NameFlags arg2 = (wxDateTime::NameFlags) wxDateTime::Name_Full ;
23563 wxString result;
23564 int val1 ;
23565 int ecode1 = 0 ;
23566 int val2 ;
23567 int ecode2 = 0 ;
23568 PyObject * obj0 = 0 ;
23569 PyObject * obj1 = 0 ;
23570 char * kwnames[] = {
23571 (char *) "weekday",(char *) "flags", NULL
23572 };
23573
23574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) SWIG_fail;
23575 ecode1 = SWIG_AsVal_int(obj0, &val1);
23576 if (!SWIG_IsOK(ecode1)) {
23577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetWeekDayName" "', expected argument " "1"" of type '" "wxDateTime::WeekDay""'");
23578 }
23579 arg1 = static_cast< wxDateTime::WeekDay >(val1);
23580 if (obj1) {
23581 ecode2 = SWIG_AsVal_int(obj1, &val2);
23582 if (!SWIG_IsOK(ecode2)) {
23583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekDayName" "', expected argument " "2"" of type '" "wxDateTime::NameFlags""'");
23584 }
23585 arg2 = static_cast< wxDateTime::NameFlags >(val2);
23586 }
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 result = wxDateTime::GetWeekDayName(arg1,arg2);
23590 wxPyEndAllowThreads(__tstate);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 }
23593 {
23594#if wxUSE_UNICODE
23595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23596#else
23597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23598#endif
23599 }
23600 return resultobj;
23601fail:
23602 return NULL;
d55e5bfc
RD
23603}
23604
23605
554f62e9
RD
23606SWIGINTERN PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23607 PyObject *resultobj = 0;
23608 PyObject *result = 0 ;
23609
23610 if (!SWIG_Python_UnpackTuple(args,"DateTime_GetAmPmStrings",0,0,0)) SWIG_fail;
23611 {
23612 PyThreadState* __tstate = wxPyBeginAllowThreads();
23613 result = (PyObject *)wxDateTime_GetAmPmStrings();
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 resultobj = result;
23618 return resultobj;
23619fail:
23620 return NULL;
23621}
23622
23623
23624SWIGINTERN PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23625 PyObject *resultobj = 0;
23626 int arg1 = (int) wxDateTime::Inv_Year ;
23627 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23628 bool result;
23629 int val1 ;
23630 int ecode1 = 0 ;
23631 int val2 ;
23632 int ecode2 = 0 ;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635 char * kwnames[] = {
23636 (char *) "year",(char *) "country", NULL
23637 };
23638
23639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) SWIG_fail;
23640 if (obj0) {
23641 ecode1 = SWIG_AsVal_int(obj0, &val1);
23642 if (!SWIG_IsOK(ecode1)) {
23643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_IsDSTApplicable" "', expected argument " "1"" of type '" "int""'");
23644 }
23645 arg1 = static_cast< int >(val1);
23646 }
23647 if (obj1) {
23648 ecode2 = SWIG_AsVal_int(obj1, &val2);
23649 if (!SWIG_IsOK(ecode2)) {
23650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsDSTApplicable" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23651 }
23652 arg2 = static_cast< wxDateTime::Country >(val2);
23653 }
23654 {
23655 PyThreadState* __tstate = wxPyBeginAllowThreads();
23656 result = (bool)wxDateTime::IsDSTApplicable(arg1,arg2);
23657 wxPyEndAllowThreads(__tstate);
23658 if (PyErr_Occurred()) SWIG_fail;
23659 }
23660 {
23661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23662 }
23663 return resultobj;
23664fail:
23665 return NULL;
23666}
23667
23668
23669SWIGINTERN PyObject *_wrap_DateTime_GetBeginDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj = 0;
23671 int arg1 = (int) wxDateTime::Inv_Year ;
23672 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23673 wxDateTime result;
23674 int val1 ;
23675 int ecode1 = 0 ;
23676 int val2 ;
23677 int ecode2 = 0 ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 char * kwnames[] = {
23681 (char *) "year",(char *) "country", NULL
23682 };
23683
23684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) SWIG_fail;
23685 if (obj0) {
23686 ecode1 = SWIG_AsVal_int(obj0, &val1);
23687 if (!SWIG_IsOK(ecode1)) {
23688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetBeginDST" "', expected argument " "1"" of type '" "int""'");
23689 }
23690 arg1 = static_cast< int >(val1);
23691 }
23692 if (obj1) {
23693 ecode2 = SWIG_AsVal_int(obj1, &val2);
23694 if (!SWIG_IsOK(ecode2)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetBeginDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23696 }
23697 arg2 = static_cast< wxDateTime::Country >(val2);
23698 }
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 result = wxDateTime::GetBeginDST(arg1,arg2);
23702 wxPyEndAllowThreads(__tstate);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 }
23705 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23706 return resultobj;
23707fail:
23708 return NULL;
23709}
23710
23711
23712SWIGINTERN PyObject *_wrap_DateTime_GetEndDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23713 PyObject *resultobj = 0;
23714 int arg1 = (int) wxDateTime::Inv_Year ;
23715 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
23716 wxDateTime result;
23717 int val1 ;
23718 int ecode1 = 0 ;
23719 int val2 ;
23720 int ecode2 = 0 ;
23721 PyObject * obj0 = 0 ;
23722 PyObject * obj1 = 0 ;
23723 char * kwnames[] = {
23724 (char *) "year",(char *) "country", NULL
23725 };
23726
23727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) SWIG_fail;
23728 if (obj0) {
23729 ecode1 = SWIG_AsVal_int(obj0, &val1);
23730 if (!SWIG_IsOK(ecode1)) {
23731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_GetEndDST" "', expected argument " "1"" of type '" "int""'");
23732 }
23733 arg1 = static_cast< int >(val1);
23734 }
23735 if (obj1) {
23736 ecode2 = SWIG_AsVal_int(obj1, &val2);
23737 if (!SWIG_IsOK(ecode2)) {
23738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetEndDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
23739 }
23740 arg2 = static_cast< wxDateTime::Country >(val2);
23741 }
23742 {
23743 PyThreadState* __tstate = wxPyBeginAllowThreads();
23744 result = wxDateTime::GetEndDST(arg1,arg2);
23745 wxPyEndAllowThreads(__tstate);
23746 if (PyErr_Occurred()) SWIG_fail;
23747 }
23748 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23749 return resultobj;
23750fail:
23751 return NULL;
9c874b48
RD
23752}
23753
23754
554f62e9
RD
23755SWIGINTERN PyObject *_wrap_DateTime_Now(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23756 PyObject *resultobj = 0;
23757 wxDateTime result;
23758
23759 if (!SWIG_Python_UnpackTuple(args,"DateTime_Now",0,0,0)) SWIG_fail;
23760 {
23761 PyThreadState* __tstate = wxPyBeginAllowThreads();
23762 result = wxDateTime::Now();
23763 wxPyEndAllowThreads(__tstate);
23764 if (PyErr_Occurred()) SWIG_fail;
23765 }
23766 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23767 return resultobj;
23768fail:
23769 return NULL;
d55e5bfc
RD
23770}
23771
23772
554f62e9
RD
23773SWIGINTERN PyObject *_wrap_DateTime_UNow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23774 PyObject *resultobj = 0;
23775 wxDateTime result;
23776
23777 if (!SWIG_Python_UnpackTuple(args,"DateTime_UNow",0,0,0)) SWIG_fail;
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 result = wxDateTime::UNow();
23781 wxPyEndAllowThreads(__tstate);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 }
23784 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23785 return resultobj;
23786fail:
23787 return NULL;
d55e5bfc
RD
23788}
23789
23790
554f62e9
RD
23791SWIGINTERN PyObject *_wrap_DateTime_Today(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23792 PyObject *resultobj = 0;
23793 wxDateTime result;
23794
23795 if (!SWIG_Python_UnpackTuple(args,"DateTime_Today",0,0,0)) SWIG_fail;
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 result = wxDateTime::Today();
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23803 return resultobj;
23804fail:
23805 return NULL;
d55e5bfc
RD
23806}
23807
23808
554f62e9
RD
23809SWIGINTERN PyObject *_wrap_new_DateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23810 PyObject *resultobj = 0;
23811 wxDateTime *result = 0 ;
23812
23813 if (!SWIG_Python_UnpackTuple(args,"new_DateTime",0,0,0)) SWIG_fail;
23814 {
23815 PyThreadState* __tstate = wxPyBeginAllowThreads();
23816 result = (wxDateTime *)new wxDateTime();
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_NEW | 0 );
23821 return resultobj;
23822fail:
23823 return NULL;
23824}
23825
23826
23827SWIGINTERN PyObject *_wrap_new_DateTimeFromTimeT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23828 PyObject *resultobj = 0;
23829 time_t arg1 ;
23830 wxDateTime *result = 0 ;
23831 unsigned int val1 ;
23832 int ecode1 = 0 ;
23833 PyObject * obj0 = 0 ;
23834 char * kwnames[] = {
23835 (char *) "timet", NULL
23836 };
23837
23838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) SWIG_fail;
23839 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
23840 if (!SWIG_IsOK(ecode1)) {
23841 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromTimeT" "', expected argument " "1"" of type '" "time_t""'");
23842 }
23843 arg1 = static_cast< time_t >(val1);
23844 {
23845 PyThreadState* __tstate = wxPyBeginAllowThreads();
23846 result = (wxDateTime *)new wxDateTime(arg1);
23847 wxPyEndAllowThreads(__tstate);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 }
23850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23851 return resultobj;
23852fail:
23853 return NULL;
23854}
23855
23856
23857SWIGINTERN PyObject *_wrap_new_DateTimeFromJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23858 PyObject *resultobj = 0;
23859 double arg1 ;
23860 wxDateTime *result = 0 ;
23861 double val1 ;
23862 int ecode1 = 0 ;
23863 PyObject * obj0 = 0 ;
23864 char * kwnames[] = {
23865 (char *) "jdn", NULL
23866 };
23867
23868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) SWIG_fail;
23869 ecode1 = SWIG_AsVal_double(obj0, &val1);
23870 if (!SWIG_IsOK(ecode1)) {
23871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromJDN" "', expected argument " "1"" of type '" "double""'");
23872 }
23873 arg1 = static_cast< double >(val1);
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 result = (wxDateTime *)new wxDateTime(arg1);
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23881 return resultobj;
23882fail:
23883 return NULL;
23884}
23885
23886
23887SWIGINTERN PyObject *_wrap_new_DateTimeFromHMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23888 PyObject *resultobj = 0;
23889 int arg1 ;
23890 int arg2 = (int) 0 ;
23891 int arg3 = (int) 0 ;
23892 int arg4 = (int) 0 ;
23893 wxDateTime *result = 0 ;
23894 int val1 ;
23895 int ecode1 = 0 ;
23896 int val2 ;
23897 int ecode2 = 0 ;
23898 int val3 ;
23899 int ecode3 = 0 ;
23900 int val4 ;
23901 int ecode4 = 0 ;
23902 PyObject * obj0 = 0 ;
23903 PyObject * obj1 = 0 ;
23904 PyObject * obj2 = 0 ;
23905 PyObject * obj3 = 0 ;
23906 char * kwnames[] = {
23907 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
23908 };
23909
23910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23911 ecode1 = SWIG_AsVal_int(obj0, &val1);
23912 if (!SWIG_IsOK(ecode1)) {
23913 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromHMS" "', expected argument " "1"" of type '" "int""'");
23914 }
23915 arg1 = static_cast< int >(val1);
23916 if (obj1) {
23917 ecode2 = SWIG_AsVal_int(obj1, &val2);
23918 if (!SWIG_IsOK(ecode2)) {
23919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateTimeFromHMS" "', expected argument " "2"" of type '" "int""'");
23920 }
23921 arg2 = static_cast< int >(val2);
23922 }
23923 if (obj2) {
23924 ecode3 = SWIG_AsVal_int(obj2, &val3);
23925 if (!SWIG_IsOK(ecode3)) {
23926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateTimeFromHMS" "', expected argument " "3"" of type '" "int""'");
23927 }
23928 arg3 = static_cast< int >(val3);
23929 }
23930 if (obj3) {
23931 ecode4 = SWIG_AsVal_int(obj3, &val4);
23932 if (!SWIG_IsOK(ecode4)) {
23933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateTimeFromHMS" "', expected argument " "4"" of type '" "int""'");
23934 }
23935 arg4 = static_cast< int >(val4);
23936 }
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
23944 return resultobj;
23945fail:
23946 return NULL;
23947}
23948
23949
23950SWIGINTERN PyObject *_wrap_new_DateTimeFromDMY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23951 PyObject *resultobj = 0;
23952 int arg1 ;
23953 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
23954 int arg3 = (int) wxDateTime::Inv_Year ;
23955 int arg4 = (int) 0 ;
23956 int arg5 = (int) 0 ;
23957 int arg6 = (int) 0 ;
23958 int arg7 = (int) 0 ;
23959 wxDateTime *result = 0 ;
23960 int val1 ;
23961 int ecode1 = 0 ;
23962 int val2 ;
23963 int ecode2 = 0 ;
23964 int val3 ;
23965 int ecode3 = 0 ;
23966 int val4 ;
23967 int ecode4 = 0 ;
23968 int val5 ;
23969 int ecode5 = 0 ;
23970 int val6 ;
23971 int ecode6 = 0 ;
23972 int val7 ;
23973 int ecode7 = 0 ;
23974 PyObject * obj0 = 0 ;
23975 PyObject * obj1 = 0 ;
23976 PyObject * obj2 = 0 ;
23977 PyObject * obj3 = 0 ;
23978 PyObject * obj4 = 0 ;
23979 PyObject * obj5 = 0 ;
23980 PyObject * obj6 = 0 ;
23981 char * kwnames[] = {
23982 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
23983 };
23984
23985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
23986 ecode1 = SWIG_AsVal_int(obj0, &val1);
23987 if (!SWIG_IsOK(ecode1)) {
23988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateTimeFromDMY" "', expected argument " "1"" of type '" "int""'");
23989 }
23990 arg1 = static_cast< int >(val1);
23991 if (obj1) {
23992 ecode2 = SWIG_AsVal_int(obj1, &val2);
23993 if (!SWIG_IsOK(ecode2)) {
23994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateTimeFromDMY" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
23995 }
23996 arg2 = static_cast< wxDateTime::Month >(val2);
23997 }
23998 if (obj2) {
23999 ecode3 = SWIG_AsVal_int(obj2, &val3);
24000 if (!SWIG_IsOK(ecode3)) {
24001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateTimeFromDMY" "', expected argument " "3"" of type '" "int""'");
24002 }
24003 arg3 = static_cast< int >(val3);
24004 }
24005 if (obj3) {
24006 ecode4 = SWIG_AsVal_int(obj3, &val4);
24007 if (!SWIG_IsOK(ecode4)) {
24008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateTimeFromDMY" "', expected argument " "4"" of type '" "int""'");
24009 }
24010 arg4 = static_cast< int >(val4);
24011 }
24012 if (obj4) {
24013 ecode5 = SWIG_AsVal_int(obj4, &val5);
24014 if (!SWIG_IsOK(ecode5)) {
24015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DateTimeFromDMY" "', expected argument " "5"" of type '" "int""'");
24016 }
24017 arg5 = static_cast< int >(val5);
24018 }
24019 if (obj5) {
24020 ecode6 = SWIG_AsVal_int(obj5, &val6);
24021 if (!SWIG_IsOK(ecode6)) {
24022 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DateTimeFromDMY" "', expected argument " "6"" of type '" "int""'");
24023 }
24024 arg6 = static_cast< int >(val6);
24025 }
24026 if (obj6) {
24027 ecode7 = SWIG_AsVal_int(obj6, &val7);
24028 if (!SWIG_IsOK(ecode7)) {
24029 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DateTimeFromDMY" "', expected argument " "7"" of type '" "int""'");
24030 }
24031 arg7 = static_cast< int >(val7);
24032 }
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24040 return resultobj;
24041fail:
24042 return NULL;
24043}
24044
24045
24046SWIGINTERN PyObject *_wrap_new_DateTimeFromDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24047 PyObject *resultobj = 0;
24048 wxDateTime *arg1 = 0 ;
24049 wxDateTime *result = 0 ;
24050 void *argp1 = 0 ;
24051 int res1 = 0 ;
24052 PyObject * obj0 = 0 ;
24053 char * kwnames[] = {
24054 (char *) "date", NULL
24055 };
24056
24057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromDateTime",kwnames,&obj0)) SWIG_fail;
24058 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDateTime, 0 | 0);
24059 if (!SWIG_IsOK(res1)) {
24060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateTimeFromDateTime" "', expected argument " "1"" of type '" "wxDateTime const &""'");
24061 }
24062 if (!argp1) {
24063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateTimeFromDateTime" "', expected argument " "1"" of type '" "wxDateTime const &""'");
24064 }
24065 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24066 {
24067 PyThreadState* __tstate = wxPyBeginAllowThreads();
24068 result = (wxDateTime *)new wxDateTime((wxDateTime const &)*arg1);
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24073 return resultobj;
24074fail:
24075 return NULL;
d55e5bfc
RD
24076}
24077
24078
554f62e9
RD
24079SWIGINTERN PyObject *_wrap_delete_DateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24080 PyObject *resultobj = 0;
24081 wxDateTime *arg1 = (wxDateTime *) 0 ;
24082 void *argp1 = 0 ;
24083 int res1 = 0 ;
24084 PyObject *swig_obj[1] ;
24085
24086 if (!args) SWIG_fail;
24087 swig_obj[0] = args;
24088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
24089 if (!SWIG_IsOK(res1)) {
24090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
24091 }
24092 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24093 {
24094 PyThreadState* __tstate = wxPyBeginAllowThreads();
24095 delete arg1;
d55e5bfc 24096
554f62e9
RD
24097 wxPyEndAllowThreads(__tstate);
24098 if (PyErr_Occurred()) SWIG_fail;
24099 }
24100 resultobj = SWIG_Py_Void();
24101 return resultobj;
24102fail:
24103 return NULL;
d55e5bfc
RD
24104}
24105
24106
554f62e9
RD
24107SWIGINTERN PyObject *_wrap_DateTime_SetToCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24108 PyObject *resultobj = 0;
24109 wxDateTime *arg1 = (wxDateTime *) 0 ;
24110 wxDateTime *result = 0 ;
24111 void *argp1 = 0 ;
24112 int res1 = 0 ;
24113 PyObject *swig_obj[1] ;
24114
24115 if (!args) SWIG_fail;
24116 swig_obj[0] = args;
24117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToCurrent" "', expected argument " "1"" of type '" "wxDateTime *""'");
24120 }
24121 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24124 {
554f62e9
RD
24125 wxDateTime &_result_ref = (arg1)->SetToCurrent();
24126 result = (wxDateTime *) &_result_ref;
d55e5bfc 24127 }
554f62e9
RD
24128 wxPyEndAllowThreads(__tstate);
24129 if (PyErr_Occurred()) SWIG_fail;
24130 }
24131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24132 return resultobj;
24133fail:
24134 return NULL;
24135}
24136
24137
24138SWIGINTERN PyObject *_wrap_DateTime_SetTimeT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj = 0;
24140 wxDateTime *arg1 = (wxDateTime *) 0 ;
24141 time_t arg2 ;
24142 wxDateTime *result = 0 ;
24143 void *argp1 = 0 ;
24144 int res1 = 0 ;
24145 unsigned int val2 ;
24146 int ecode2 = 0 ;
24147 PyObject * obj0 = 0 ;
24148 PyObject * obj1 = 0 ;
24149 char * kwnames[] = {
24150 (char *) "self",(char *) "timet", NULL
24151 };
24152
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetTimeT" "', expected argument " "1"" of type '" "wxDateTime *""'");
24157 }
24158 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24159 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24160 if (!SWIG_IsOK(ecode2)) {
24161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetTimeT" "', expected argument " "2"" of type '" "time_t""'");
24162 }
24163 arg2 = static_cast< time_t >(val2);
24164 {
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24166 {
554f62e9
RD
24167 wxDateTime &_result_ref = (arg1)->Set(arg2);
24168 result = (wxDateTime *) &_result_ref;
d55e5bfc 24169 }
554f62e9
RD
24170 wxPyEndAllowThreads(__tstate);
24171 if (PyErr_Occurred()) SWIG_fail;
24172 }
24173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24174 return resultobj;
24175fail:
24176 return NULL;
24177}
24178
24179
24180SWIGINTERN PyObject *_wrap_DateTime_SetJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24181 PyObject *resultobj = 0;
24182 wxDateTime *arg1 = (wxDateTime *) 0 ;
24183 double arg2 ;
24184 wxDateTime *result = 0 ;
24185 void *argp1 = 0 ;
24186 int res1 = 0 ;
24187 double val2 ;
24188 int ecode2 = 0 ;
24189 PyObject * obj0 = 0 ;
24190 PyObject * obj1 = 0 ;
24191 char * kwnames[] = {
24192 (char *) "self",(char *) "jdn", NULL
24193 };
24194
24195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) SWIG_fail;
24196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetJDN" "', expected argument " "1"" of type '" "wxDateTime *""'");
24199 }
24200 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24201 ecode2 = SWIG_AsVal_double(obj1, &val2);
24202 if (!SWIG_IsOK(ecode2)) {
24203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetJDN" "', expected argument " "2"" of type '" "double""'");
24204 }
24205 arg2 = static_cast< double >(val2);
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24208 {
554f62e9
RD
24209 wxDateTime &_result_ref = (arg1)->Set(arg2);
24210 result = (wxDateTime *) &_result_ref;
d55e5bfc 24211 }
554f62e9
RD
24212 wxPyEndAllowThreads(__tstate);
24213 if (PyErr_Occurred()) SWIG_fail;
24214 }
24215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24216 return resultobj;
24217fail:
24218 return NULL;
24219}
24220
24221
24222SWIGINTERN PyObject *_wrap_DateTime_SetHMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24223 PyObject *resultobj = 0;
24224 wxDateTime *arg1 = (wxDateTime *) 0 ;
24225 int arg2 ;
24226 int arg3 = (int) 0 ;
24227 int arg4 = (int) 0 ;
24228 int arg5 = (int) 0 ;
24229 wxDateTime *result = 0 ;
24230 void *argp1 = 0 ;
24231 int res1 = 0 ;
24232 int val2 ;
24233 int ecode2 = 0 ;
24234 int val3 ;
24235 int ecode3 = 0 ;
24236 int val4 ;
24237 int ecode4 = 0 ;
24238 int val5 ;
24239 int ecode5 = 0 ;
24240 PyObject * obj0 = 0 ;
24241 PyObject * obj1 = 0 ;
24242 PyObject * obj2 = 0 ;
24243 PyObject * obj3 = 0 ;
24244 PyObject * obj4 = 0 ;
24245 char * kwnames[] = {
24246 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
24247 };
24248
24249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24251 if (!SWIG_IsOK(res1)) {
24252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetHMS" "', expected argument " "1"" of type '" "wxDateTime *""'");
24253 }
24254 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24255 ecode2 = SWIG_AsVal_int(obj1, &val2);
24256 if (!SWIG_IsOK(ecode2)) {
24257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetHMS" "', expected argument " "2"" of type '" "int""'");
24258 }
24259 arg2 = static_cast< int >(val2);
24260 if (obj2) {
24261 ecode3 = SWIG_AsVal_int(obj2, &val3);
24262 if (!SWIG_IsOK(ecode3)) {
24263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetHMS" "', expected argument " "3"" of type '" "int""'");
24264 }
24265 arg3 = static_cast< int >(val3);
24266 }
24267 if (obj3) {
24268 ecode4 = SWIG_AsVal_int(obj3, &val4);
24269 if (!SWIG_IsOK(ecode4)) {
24270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetHMS" "', expected argument " "4"" of type '" "int""'");
24271 }
24272 arg4 = static_cast< int >(val4);
24273 }
24274 if (obj4) {
24275 ecode5 = SWIG_AsVal_int(obj4, &val5);
24276 if (!SWIG_IsOK(ecode5)) {
24277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_SetHMS" "', expected argument " "5"" of type '" "int""'");
24278 }
24279 arg5 = static_cast< int >(val5);
24280 }
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24283 {
554f62e9
RD
24284 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
24285 result = (wxDateTime *) &_result_ref;
d55e5bfc 24286 }
554f62e9
RD
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24291 return resultobj;
24292fail:
24293 return NULL;
24294}
24295
24296
24297SWIGINTERN PyObject *_wrap_DateTime_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj = 0;
24299 wxDateTime *arg1 = (wxDateTime *) 0 ;
24300 int arg2 ;
24301 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
24302 int arg4 = (int) wxDateTime::Inv_Year ;
24303 int arg5 = (int) 0 ;
24304 int arg6 = (int) 0 ;
24305 int arg7 = (int) 0 ;
24306 int arg8 = (int) 0 ;
24307 wxDateTime *result = 0 ;
24308 void *argp1 = 0 ;
24309 int res1 = 0 ;
24310 int val2 ;
24311 int ecode2 = 0 ;
24312 int val3 ;
24313 int ecode3 = 0 ;
24314 int val4 ;
24315 int ecode4 = 0 ;
24316 int val5 ;
24317 int ecode5 = 0 ;
24318 int val6 ;
24319 int ecode6 = 0 ;
24320 int val7 ;
24321 int ecode7 = 0 ;
24322 int val8 ;
24323 int ecode8 = 0 ;
24324 PyObject * obj0 = 0 ;
24325 PyObject * obj1 = 0 ;
24326 PyObject * obj2 = 0 ;
24327 PyObject * obj3 = 0 ;
24328 PyObject * obj4 = 0 ;
24329 PyObject * obj5 = 0 ;
24330 PyObject * obj6 = 0 ;
24331 PyObject * obj7 = 0 ;
24332 char * kwnames[] = {
24333 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
24334 };
24335
24336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
24337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24338 if (!SWIG_IsOK(res1)) {
24339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Set" "', expected argument " "1"" of type '" "wxDateTime *""'");
24340 }
24341 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24342 ecode2 = SWIG_AsVal_int(obj1, &val2);
24343 if (!SWIG_IsOK(ecode2)) {
24344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_Set" "', expected argument " "2"" of type '" "int""'");
24345 }
24346 arg2 = static_cast< int >(val2);
24347 if (obj2) {
24348 ecode3 = SWIG_AsVal_int(obj2, &val3);
24349 if (!SWIG_IsOK(ecode3)) {
24350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_Set" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
24351 }
24352 arg3 = static_cast< wxDateTime::Month >(val3);
24353 }
24354 if (obj3) {
24355 ecode4 = SWIG_AsVal_int(obj3, &val4);
24356 if (!SWIG_IsOK(ecode4)) {
24357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_Set" "', expected argument " "4"" of type '" "int""'");
24358 }
24359 arg4 = static_cast< int >(val4);
24360 }
24361 if (obj4) {
24362 ecode5 = SWIG_AsVal_int(obj4, &val5);
24363 if (!SWIG_IsOK(ecode5)) {
24364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_Set" "', expected argument " "5"" of type '" "int""'");
24365 }
24366 arg5 = static_cast< int >(val5);
24367 }
24368 if (obj5) {
24369 ecode6 = SWIG_AsVal_int(obj5, &val6);
24370 if (!SWIG_IsOK(ecode6)) {
24371 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DateTime_Set" "', expected argument " "6"" of type '" "int""'");
24372 }
24373 arg6 = static_cast< int >(val6);
24374 }
24375 if (obj6) {
24376 ecode7 = SWIG_AsVal_int(obj6, &val7);
24377 if (!SWIG_IsOK(ecode7)) {
24378 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DateTime_Set" "', expected argument " "7"" of type '" "int""'");
24379 }
24380 arg7 = static_cast< int >(val7);
24381 }
24382 if (obj7) {
24383 ecode8 = SWIG_AsVal_int(obj7, &val8);
24384 if (!SWIG_IsOK(ecode8)) {
24385 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DateTime_Set" "', expected argument " "8"" of type '" "int""'");
24386 }
24387 arg8 = static_cast< int >(val8);
24388 }
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24391 {
554f62e9
RD
24392 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
24393 result = (wxDateTime *) &_result_ref;
d55e5bfc 24394 }
554f62e9
RD
24395 wxPyEndAllowThreads(__tstate);
24396 if (PyErr_Occurred()) SWIG_fail;
24397 }
24398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24399 return resultobj;
24400fail:
24401 return NULL;
d55e5bfc
RD
24402}
24403
24404
554f62e9
RD
24405SWIGINTERN PyObject *_wrap_DateTime_ResetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24406 PyObject *resultobj = 0;
24407 wxDateTime *arg1 = (wxDateTime *) 0 ;
24408 wxDateTime *result = 0 ;
24409 void *argp1 = 0 ;
24410 int res1 = 0 ;
24411 PyObject *swig_obj[1] ;
24412
24413 if (!args) SWIG_fail;
24414 swig_obj[0] = args;
24415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24416 if (!SWIG_IsOK(res1)) {
24417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ResetTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
24418 }
24419 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24420 {
24421 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24422 {
554f62e9
RD
24423 wxDateTime &_result_ref = (arg1)->ResetTime();
24424 result = (wxDateTime *) &_result_ref;
d55e5bfc 24425 }
554f62e9
RD
24426 wxPyEndAllowThreads(__tstate);
24427 if (PyErr_Occurred()) SWIG_fail;
24428 }
24429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24430 return resultobj;
24431fail:
24432 return NULL;
24433}
24434
24435
24436SWIGINTERN PyObject *_wrap_DateTime_SetYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24437 PyObject *resultobj = 0;
24438 wxDateTime *arg1 = (wxDateTime *) 0 ;
24439 int arg2 ;
24440 wxDateTime *result = 0 ;
24441 void *argp1 = 0 ;
24442 int res1 = 0 ;
24443 int val2 ;
24444 int ecode2 = 0 ;
24445 PyObject * obj0 = 0 ;
24446 PyObject * obj1 = 0 ;
24447 char * kwnames[] = {
24448 (char *) "self",(char *) "year", NULL
24449 };
24450
24451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) SWIG_fail;
24452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24453 if (!SWIG_IsOK(res1)) {
24454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetYear" "', expected argument " "1"" of type '" "wxDateTime *""'");
24455 }
24456 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24457 ecode2 = SWIG_AsVal_int(obj1, &val2);
24458 if (!SWIG_IsOK(ecode2)) {
24459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetYear" "', expected argument " "2"" of type '" "int""'");
24460 }
24461 arg2 = static_cast< int >(val2);
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24464 {
554f62e9
RD
24465 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
24466 result = (wxDateTime *) &_result_ref;
d55e5bfc 24467 }
554f62e9
RD
24468 wxPyEndAllowThreads(__tstate);
24469 if (PyErr_Occurred()) SWIG_fail;
24470 }
24471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24472 return resultobj;
24473fail:
24474 return NULL;
24475}
24476
24477
24478SWIGINTERN PyObject *_wrap_DateTime_SetMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24479 PyObject *resultobj = 0;
24480 wxDateTime *arg1 = (wxDateTime *) 0 ;
24481 wxDateTime::Month arg2 ;
24482 wxDateTime *result = 0 ;
24483 void *argp1 = 0 ;
24484 int res1 = 0 ;
24485 int val2 ;
24486 int ecode2 = 0 ;
24487 PyObject * obj0 = 0 ;
24488 PyObject * obj1 = 0 ;
24489 char * kwnames[] = {
24490 (char *) "self",(char *) "month", NULL
24491 };
24492
24493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) SWIG_fail;
24494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24495 if (!SWIG_IsOK(res1)) {
24496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMonth" "', expected argument " "1"" of type '" "wxDateTime *""'");
24497 }
24498 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24499 ecode2 = SWIG_AsVal_int(obj1, &val2);
24500 if (!SWIG_IsOK(ecode2)) {
24501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMonth" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
24502 }
24503 arg2 = static_cast< wxDateTime::Month >(val2);
24504 {
24505 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24506 {
554f62e9
RD
24507 wxDateTime &_result_ref = (arg1)->SetMonth(arg2);
24508 result = (wxDateTime *) &_result_ref;
d55e5bfc 24509 }
554f62e9
RD
24510 wxPyEndAllowThreads(__tstate);
24511 if (PyErr_Occurred()) SWIG_fail;
24512 }
24513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24514 return resultobj;
24515fail:
24516 return NULL;
24517}
24518
24519
24520SWIGINTERN PyObject *_wrap_DateTime_SetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24521 PyObject *resultobj = 0;
24522 wxDateTime *arg1 = (wxDateTime *) 0 ;
24523 int arg2 ;
24524 wxDateTime *result = 0 ;
24525 void *argp1 = 0 ;
24526 int res1 = 0 ;
24527 int val2 ;
24528 int ecode2 = 0 ;
24529 PyObject * obj0 = 0 ;
24530 PyObject * obj1 = 0 ;
24531 char * kwnames[] = {
24532 (char *) "self",(char *) "day", NULL
24533 };
24534
24535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) SWIG_fail;
24536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24537 if (!SWIG_IsOK(res1)) {
24538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24539 }
24540 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24541 ecode2 = SWIG_AsVal_int(obj1, &val2);
24542 if (!SWIG_IsOK(ecode2)) {
24543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetDay" "', expected argument " "2"" of type '" "int""'");
24544 }
24545 arg2 = static_cast< int >(val2);
24546 {
24547 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24548 {
554f62e9
RD
24549 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
24550 result = (wxDateTime *) &_result_ref;
093d3ff1 24551 }
554f62e9
RD
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24556 return resultobj;
24557fail:
24558 return NULL;
24559}
24560
24561
24562SWIGINTERN PyObject *_wrap_DateTime_SetHour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24563 PyObject *resultobj = 0;
24564 wxDateTime *arg1 = (wxDateTime *) 0 ;
24565 int arg2 ;
24566 wxDateTime *result = 0 ;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 int val2 ;
24570 int ecode2 = 0 ;
24571 PyObject * obj0 = 0 ;
24572 PyObject * obj1 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "self",(char *) "hour", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetHour" "', expected argument " "1"" of type '" "wxDateTime *""'");
24581 }
24582 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24583 ecode2 = SWIG_AsVal_int(obj1, &val2);
24584 if (!SWIG_IsOK(ecode2)) {
24585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetHour" "', expected argument " "2"" of type '" "int""'");
24586 }
24587 arg2 = static_cast< int >(val2);
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24590 {
554f62e9
RD
24591 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
24592 result = (wxDateTime *) &_result_ref;
d55e5bfc 24593 }
554f62e9
RD
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24598 return resultobj;
24599fail:
24600 return NULL;
24601}
24602
24603
24604SWIGINTERN PyObject *_wrap_DateTime_SetMinute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24605 PyObject *resultobj = 0;
24606 wxDateTime *arg1 = (wxDateTime *) 0 ;
24607 int arg2 ;
24608 wxDateTime *result = 0 ;
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 int val2 ;
24612 int ecode2 = 0 ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "self",(char *) "minute", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) SWIG_fail;
24620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMinute" "', expected argument " "1"" of type '" "wxDateTime *""'");
24623 }
24624 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24625 ecode2 = SWIG_AsVal_int(obj1, &val2);
24626 if (!SWIG_IsOK(ecode2)) {
24627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMinute" "', expected argument " "2"" of type '" "int""'");
24628 }
24629 arg2 = static_cast< int >(val2);
24630 {
24631 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24632 {
554f62e9
RD
24633 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
24634 result = (wxDateTime *) &_result_ref;
d55e5bfc 24635 }
554f62e9
RD
24636 wxPyEndAllowThreads(__tstate);
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24640 return resultobj;
24641fail:
24642 return NULL;
24643}
24644
24645
24646SWIGINTERN PyObject *_wrap_DateTime_SetSecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxDateTime *arg1 = (wxDateTime *) 0 ;
24649 int arg2 ;
24650 wxDateTime *result = 0 ;
24651 void *argp1 = 0 ;
24652 int res1 = 0 ;
24653 int val2 ;
24654 int ecode2 = 0 ;
24655 PyObject * obj0 = 0 ;
24656 PyObject * obj1 = 0 ;
24657 char * kwnames[] = {
24658 (char *) "self",(char *) "second", NULL
24659 };
24660
24661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) SWIG_fail;
24662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24663 if (!SWIG_IsOK(res1)) {
24664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetSecond" "', expected argument " "1"" of type '" "wxDateTime *""'");
24665 }
24666 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24667 ecode2 = SWIG_AsVal_int(obj1, &val2);
24668 if (!SWIG_IsOK(ecode2)) {
24669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetSecond" "', expected argument " "2"" of type '" "int""'");
24670 }
24671 arg2 = static_cast< int >(val2);
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24674 {
554f62e9
RD
24675 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
24676 result = (wxDateTime *) &_result_ref;
093d3ff1 24677 }
554f62e9
RD
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24682 return resultobj;
24683fail:
24684 return NULL;
24685}
24686
24687
24688SWIGINTERN PyObject *_wrap_DateTime_SetMillisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj = 0;
24690 wxDateTime *arg1 = (wxDateTime *) 0 ;
24691 int arg2 ;
24692 wxDateTime *result = 0 ;
24693 void *argp1 = 0 ;
24694 int res1 = 0 ;
24695 int val2 ;
24696 int ecode2 = 0 ;
24697 PyObject * obj0 = 0 ;
24698 PyObject * obj1 = 0 ;
24699 char * kwnames[] = {
24700 (char *) "self",(char *) "millisecond", NULL
24701 };
24702
24703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) SWIG_fail;
24704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetMillisecond" "', expected argument " "1"" of type '" "wxDateTime *""'");
24707 }
24708 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24709 ecode2 = SWIG_AsVal_int(obj1, &val2);
24710 if (!SWIG_IsOK(ecode2)) {
24711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetMillisecond" "', expected argument " "2"" of type '" "int""'");
24712 }
24713 arg2 = static_cast< int >(val2);
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24716 {
554f62e9
RD
24717 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
24718 result = (wxDateTime *) &_result_ref;
d55e5bfc 24719 }
554f62e9
RD
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24724 return resultobj;
24725fail:
24726 return NULL;
24727}
24728
24729
24730SWIGINTERN PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = 0;
24732 wxDateTime *arg1 = (wxDateTime *) 0 ;
24733 wxDateTime::WeekDay arg2 ;
24734 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
24735 wxDateTime *result = 0 ;
24736 void *argp1 = 0 ;
24737 int res1 = 0 ;
24738 int val2 ;
24739 int ecode2 = 0 ;
24740 int val3 ;
24741 int ecode3 = 0 ;
24742 PyObject * obj0 = 0 ;
24743 PyObject * obj1 = 0 ;
24744 PyObject * obj2 = 0 ;
24745 char * kwnames[] = {
24746 (char *) "self",(char *) "weekday",(char *) "flags", NULL
24747 };
24748
24749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24751 if (!SWIG_IsOK(res1)) {
24752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
24753 }
24754 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24755 ecode2 = SWIG_AsVal_int(obj1, &val2);
24756 if (!SWIG_IsOK(ecode2)) {
24757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24758 }
24759 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24760 if (obj2) {
24761 ecode3 = SWIG_AsVal_int(obj2, &val3);
24762 if (!SWIG_IsOK(ecode3)) {
24763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekDayInSameWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekFlags""'");
24764 }
24765 arg3 = static_cast< wxDateTime::WeekFlags >(val3);
24766 }
24767 {
24768 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24769 {
554f62e9
RD
24770 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek(arg2,arg3);
24771 result = (wxDateTime *) &_result_ref;
d55e5bfc 24772 }
554f62e9
RD
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24777 return resultobj;
24778fail:
24779 return NULL;
24780}
24781
24782
24783SWIGINTERN PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj = 0;
24785 wxDateTime *arg1 = (wxDateTime *) 0 ;
24786 wxDateTime::WeekDay arg2 ;
24787 wxDateTime::WeekFlags arg3 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
24788 wxDateTime result;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 int val2 ;
24792 int ecode2 = 0 ;
24793 int val3 ;
24794 int ecode3 = 0 ;
24795 PyObject * obj0 = 0 ;
24796 PyObject * obj1 = 0 ;
24797 PyObject * obj2 = 0 ;
24798 char * kwnames[] = {
24799 (char *) "self",(char *) "weekday",(char *) "flags", NULL
24800 };
24801
24802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24804 if (!SWIG_IsOK(res1)) {
24805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
24806 }
24807 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24808 ecode2 = SWIG_AsVal_int(obj1, &val2);
24809 if (!SWIG_IsOK(ecode2)) {
24810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24811 }
24812 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24813 if (obj2) {
24814 ecode3 = SWIG_AsVal_int(obj2, &val3);
24815 if (!SWIG_IsOK(ecode3)) {
24816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetWeekDayInSameWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekFlags""'");
24817 }
24818 arg3 = static_cast< wxDateTime::WeekFlags >(val3);
24819 }
24820 {
24821 PyThreadState* __tstate = wxPyBeginAllowThreads();
24822 result = (arg1)->GetWeekDayInSameWeek(arg2,arg3);
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24827 return resultobj;
24828fail:
24829 return NULL;
24830}
24831
24832
24833SWIGINTERN PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24834 PyObject *resultobj = 0;
24835 wxDateTime *arg1 = (wxDateTime *) 0 ;
24836 wxDateTime::WeekDay arg2 ;
24837 wxDateTime *result = 0 ;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 int val2 ;
24841 int ecode2 = 0 ;
24842 PyObject * obj0 = 0 ;
24843 PyObject * obj1 = 0 ;
24844 char * kwnames[] = {
24845 (char *) "self",(char *) "weekday", NULL
24846 };
24847
24848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24850 if (!SWIG_IsOK(res1)) {
24851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToNextWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24852 }
24853 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24854 ecode2 = SWIG_AsVal_int(obj1, &val2);
24855 if (!SWIG_IsOK(ecode2)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToNextWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24857 }
24858 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24859 {
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24861 {
554f62e9
RD
24862 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay(arg2);
24863 result = (wxDateTime *) &_result_ref;
093d3ff1 24864 }
554f62e9
RD
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24869 return resultobj;
24870fail:
24871 return NULL;
24872}
24873
24874
24875SWIGINTERN PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24876 PyObject *resultobj = 0;
24877 wxDateTime *arg1 = (wxDateTime *) 0 ;
24878 wxDateTime::WeekDay arg2 ;
24879 wxDateTime result;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 int val2 ;
24883 int ecode2 = 0 ;
24884 PyObject * obj0 = 0 ;
24885 PyObject * obj1 = 0 ;
24886 char * kwnames[] = {
24887 (char *) "self",(char *) "weekday", NULL
24888 };
24889
24890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24892 if (!SWIG_IsOK(res1)) {
24893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetNextWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24894 }
24895 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24896 ecode2 = SWIG_AsVal_int(obj1, &val2);
24897 if (!SWIG_IsOK(ecode2)) {
24898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetNextWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24899 }
24900 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24901 {
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 result = (arg1)->GetNextWeekDay(arg2);
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24908 return resultobj;
24909fail:
24910 return NULL;
24911}
24912
24913
24914SWIGINTERN PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24915 PyObject *resultobj = 0;
24916 wxDateTime *arg1 = (wxDateTime *) 0 ;
24917 wxDateTime::WeekDay arg2 ;
24918 wxDateTime *result = 0 ;
24919 void *argp1 = 0 ;
24920 int res1 = 0 ;
24921 int val2 ;
24922 int ecode2 = 0 ;
24923 PyObject * obj0 = 0 ;
24924 PyObject * obj1 = 0 ;
24925 char * kwnames[] = {
24926 (char *) "self",(char *) "weekday", NULL
24927 };
24928
24929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24931 if (!SWIG_IsOK(res1)) {
24932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToPrevWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24933 }
24934 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24935 ecode2 = SWIG_AsVal_int(obj1, &val2);
24936 if (!SWIG_IsOK(ecode2)) {
24937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToPrevWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24938 }
24939 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24940 {
24941 PyThreadState* __tstate = wxPyBeginAllowThreads();
24942 {
24943 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay(arg2);
24944 result = (wxDateTime *) &_result_ref;
d55e5bfc 24945 }
554f62e9
RD
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
24950 return resultobj;
24951fail:
24952 return NULL;
24953}
24954
24955
24956SWIGINTERN PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24957 PyObject *resultobj = 0;
24958 wxDateTime *arg1 = (wxDateTime *) 0 ;
24959 wxDateTime::WeekDay arg2 ;
24960 wxDateTime result;
24961 void *argp1 = 0 ;
24962 int res1 = 0 ;
24963 int val2 ;
24964 int ecode2 = 0 ;
24965 PyObject * obj0 = 0 ;
24966 PyObject * obj1 = 0 ;
24967 char * kwnames[] = {
24968 (char *) "self",(char *) "weekday", NULL
24969 };
24970
24971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
24972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
24973 if (!SWIG_IsOK(res1)) {
24974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetPrevWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
24975 }
24976 arg1 = reinterpret_cast< wxDateTime * >(argp1);
24977 ecode2 = SWIG_AsVal_int(obj1, &val2);
24978 if (!SWIG_IsOK(ecode2)) {
24979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetPrevWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
24980 }
24981 arg2 = static_cast< wxDateTime::WeekDay >(val2);
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 result = (arg1)->GetPrevWeekDay(arg2);
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
24989 return resultobj;
24990fail:
24991 return NULL;
24992}
24993
24994
24995SWIGINTERN PyObject *_wrap_DateTime_SetToWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24996 PyObject *resultobj = 0;
24997 wxDateTime *arg1 = (wxDateTime *) 0 ;
24998 wxDateTime::WeekDay arg2 ;
24999 int arg3 = (int) 1 ;
25000 wxDateTime::Month arg4 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25001 int arg5 = (int) wxDateTime::Inv_Year ;
25002 bool result;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 int val2 ;
25006 int ecode2 = 0 ;
25007 int val3 ;
25008 int ecode3 = 0 ;
25009 int val4 ;
25010 int ecode4 = 0 ;
25011 int val5 ;
25012 int ecode5 = 0 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 PyObject * obj2 = 0 ;
25016 PyObject * obj3 = 0 ;
25017 PyObject * obj4 = 0 ;
25018 char * kwnames[] = {
25019 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
25020 };
25021
25022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25024 if (!SWIG_IsOK(res1)) {
25025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25026 }
25027 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25028 ecode2 = SWIG_AsVal_int(obj1, &val2);
25029 if (!SWIG_IsOK(ecode2)) {
25030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
25031 }
25032 arg2 = static_cast< wxDateTime::WeekDay >(val2);
25033 if (obj2) {
25034 ecode3 = SWIG_AsVal_int(obj2, &val3);
25035 if (!SWIG_IsOK(ecode3)) {
25036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekDay" "', expected argument " "3"" of type '" "int""'");
25037 }
25038 arg3 = static_cast< int >(val3);
25039 }
25040 if (obj3) {
25041 ecode4 = SWIG_AsVal_int(obj3, &val4);
25042 if (!SWIG_IsOK(ecode4)) {
25043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToWeekDay" "', expected argument " "4"" of type '" "wxDateTime::Month""'");
25044 }
25045 arg4 = static_cast< wxDateTime::Month >(val4);
25046 }
25047 if (obj4) {
25048 ecode5 = SWIG_AsVal_int(obj4, &val5);
25049 if (!SWIG_IsOK(ecode5)) {
25050 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DateTime_SetToWeekDay" "', expected argument " "5"" of type '" "int""'");
25051 }
25052 arg5 = static_cast< int >(val5);
25053 }
25054 {
25055 PyThreadState* __tstate = wxPyBeginAllowThreads();
25056 result = (bool)(arg1)->SetToWeekDay(arg2,arg3,arg4,arg5);
25057 wxPyEndAllowThreads(__tstate);
25058 if (PyErr_Occurred()) SWIG_fail;
25059 }
25060 {
25061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25062 }
25063 return resultobj;
25064fail:
25065 return NULL;
25066}
25067
25068
25069SWIGINTERN PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25070 PyObject *resultobj = 0;
25071 wxDateTime *arg1 = (wxDateTime *) 0 ;
25072 wxDateTime::WeekDay arg2 ;
25073 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25074 int arg4 = (int) wxDateTime::Inv_Year ;
25075 bool result;
25076 void *argp1 = 0 ;
25077 int res1 = 0 ;
25078 int val2 ;
25079 int ecode2 = 0 ;
25080 int val3 ;
25081 int ecode3 = 0 ;
25082 int val4 ;
25083 int ecode4 = 0 ;
25084 PyObject * obj0 = 0 ;
25085 PyObject * obj1 = 0 ;
25086 PyObject * obj2 = 0 ;
25087 PyObject * obj3 = 0 ;
25088 char * kwnames[] = {
25089 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
25090 };
25091
25092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25094 if (!SWIG_IsOK(res1)) {
25095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25096 }
25097 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25098 ecode2 = SWIG_AsVal_int(obj1, &val2);
25099 if (!SWIG_IsOK(ecode2)) {
25100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
25101 }
25102 arg2 = static_cast< wxDateTime::WeekDay >(val2);
25103 if (obj2) {
25104 ecode3 = SWIG_AsVal_int(obj2, &val3);
25105 if (!SWIG_IsOK(ecode3)) {
25106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
25107 }
25108 arg3 = static_cast< wxDateTime::Month >(val3);
25109 }
25110 if (obj3) {
25111 ecode4 = SWIG_AsVal_int(obj3, &val4);
25112 if (!SWIG_IsOK(ecode4)) {
25113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToLastWeekDay" "', expected argument " "4"" of type '" "int""'");
25114 }
25115 arg4 = static_cast< int >(val4);
25116 }
25117 {
25118 PyThreadState* __tstate = wxPyBeginAllowThreads();
25119 result = (bool)(arg1)->SetToLastWeekDay(arg2,arg3,arg4);
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 {
25124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25125 }
25126 return resultobj;
25127fail:
25128 return NULL;
25129}
25130
25131
25132SWIGINTERN PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25133 PyObject *resultobj = 0;
25134 wxDateTime *arg1 = (wxDateTime *) 0 ;
25135 wxDateTime::WeekDay arg2 ;
25136 wxDateTime::Month arg3 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25137 int arg4 = (int) wxDateTime::Inv_Year ;
25138 wxDateTime result;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 int val2 ;
25142 int ecode2 = 0 ;
25143 int val3 ;
25144 int ecode3 = 0 ;
25145 int val4 ;
25146 int ecode4 = 0 ;
25147 PyObject * obj0 = 0 ;
25148 PyObject * obj1 = 0 ;
25149 PyObject * obj2 = 0 ;
25150 PyObject * obj3 = 0 ;
25151 char * kwnames[] = {
25152 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
25153 };
25154
25155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25157 if (!SWIG_IsOK(res1)) {
25158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25159 }
25160 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25161 ecode2 = SWIG_AsVal_int(obj1, &val2);
25162 if (!SWIG_IsOK(ecode2)) {
25163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "2"" of type '" "wxDateTime::WeekDay""'");
25164 }
25165 arg2 = static_cast< wxDateTime::WeekDay >(val2);
25166 if (obj2) {
25167 ecode3 = SWIG_AsVal_int(obj2, &val3);
25168 if (!SWIG_IsOK(ecode3)) {
25169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "3"" of type '" "wxDateTime::Month""'");
25170 }
25171 arg3 = static_cast< wxDateTime::Month >(val3);
25172 }
25173 if (obj3) {
25174 ecode4 = SWIG_AsVal_int(obj3, &val4);
25175 if (!SWIG_IsOK(ecode4)) {
25176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_GetLastWeekDay" "', expected argument " "4"" of type '" "int""'");
25177 }
25178 arg4 = static_cast< int >(val4);
25179 }
25180 {
25181 PyThreadState* __tstate = wxPyBeginAllowThreads();
25182 result = (arg1)->GetLastWeekDay(arg2,arg3,arg4);
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25187 return resultobj;
25188fail:
25189 return NULL;
25190}
25191
25192
25193SWIGINTERN PyObject *_wrap_DateTime_SetToTheWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj = 0;
25195 wxDateTime *arg1 = (wxDateTime *) 0 ;
25196 int arg2 ;
25197 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25198 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
25199 bool result;
25200 void *argp1 = 0 ;
25201 int res1 = 0 ;
25202 int val2 ;
25203 int ecode2 = 0 ;
25204 int val3 ;
25205 int ecode3 = 0 ;
25206 int val4 ;
25207 int ecode4 = 0 ;
25208 PyObject * obj0 = 0 ;
25209 PyObject * obj1 = 0 ;
25210 PyObject * obj2 = 0 ;
25211 PyObject * obj3 = 0 ;
25212 char * kwnames[] = {
25213 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
25214 };
25215
25216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25218 if (!SWIG_IsOK(res1)) {
25219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToTheWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
25220 }
25221 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25222 ecode2 = SWIG_AsVal_int(obj1, &val2);
25223 if (!SWIG_IsOK(ecode2)) {
25224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToTheWeek" "', expected argument " "2"" of type '" "int""'");
25225 }
25226 arg2 = static_cast< int >(val2);
25227 if (obj2) {
25228 ecode3 = SWIG_AsVal_int(obj2, &val3);
25229 if (!SWIG_IsOK(ecode3)) {
25230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToTheWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25231 }
25232 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25233 }
25234 if (obj3) {
25235 ecode4 = SWIG_AsVal_int(obj3, &val4);
25236 if (!SWIG_IsOK(ecode4)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_SetToTheWeek" "', expected argument " "4"" of type '" "wxDateTime::WeekFlags""'");
25238 }
25239 arg4 = static_cast< wxDateTime::WeekFlags >(val4);
25240 }
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 result = (bool)(arg1)->SetToTheWeek(arg2,arg3,arg4);
25244 wxPyEndAllowThreads(__tstate);
25245 if (PyErr_Occurred()) SWIG_fail;
25246 }
25247 {
25248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25249 }
25250 return resultobj;
25251fail:
25252 return NULL;
25253}
25254
25255
25256SWIGINTERN PyObject *_wrap_DateTime_GetWeek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25257 PyObject *resultobj = 0;
25258 wxDateTime *arg1 = (wxDateTime *) 0 ;
25259 int arg2 ;
25260 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25261 wxDateTime::WeekFlags arg4 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
25262 wxDateTime result;
25263 void *argp1 = 0 ;
25264 int res1 = 0 ;
25265 int val2 ;
25266 int ecode2 = 0 ;
25267 int val3 ;
25268 int ecode3 = 0 ;
25269 int val4 ;
25270 int ecode4 = 0 ;
25271 PyObject * obj0 = 0 ;
25272 PyObject * obj1 = 0 ;
25273 PyObject * obj2 = 0 ;
25274 PyObject * obj3 = 0 ;
25275 char * kwnames[] = {
25276 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
25277 };
25278
25279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25281 if (!SWIG_IsOK(res1)) {
25282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeek" "', expected argument " "1"" of type '" "wxDateTime *""'");
25283 }
25284 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25285 ecode2 = SWIG_AsVal_int(obj1, &val2);
25286 if (!SWIG_IsOK(ecode2)) {
25287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeek" "', expected argument " "2"" of type '" "int""'");
25288 }
25289 arg2 = static_cast< int >(val2);
25290 if (obj2) {
25291 ecode3 = SWIG_AsVal_int(obj2, &val3);
25292 if (!SWIG_IsOK(ecode3)) {
25293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetWeek" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25294 }
25295 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25296 }
25297 if (obj3) {
25298 ecode4 = SWIG_AsVal_int(obj3, &val4);
25299 if (!SWIG_IsOK(ecode4)) {
25300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DateTime_GetWeek" "', expected argument " "4"" of type '" "wxDateTime::WeekFlags""'");
25301 }
25302 arg4 = static_cast< wxDateTime::WeekFlags >(val4);
25303 }
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 result = (arg1)->GetWeek(arg2,arg3,arg4);
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_SetToWeekOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 int arg1 ;
25320 int arg2 ;
25321 wxDateTime::WeekDay arg3 = (wxDateTime::WeekDay) wxDateTime::Mon ;
25322 wxDateTime result;
25323 int val1 ;
25324 int ecode1 = 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 *) "year",(char *) "numWeek",(char *) "weekday", NULL
25334 };
25335
25336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25337 ecode1 = SWIG_AsVal_int(obj0, &val1);
25338 if (!SWIG_IsOK(ecode1)) {
25339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "1"" of type '" "int""'");
25340 }
25341 arg1 = static_cast< int >(val1);
25342 ecode2 = SWIG_AsVal_int(obj1, &val2);
25343 if (!SWIG_IsOK(ecode2)) {
25344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "2"" of type '" "int""'");
25345 }
25346 arg2 = static_cast< int >(val2);
25347 if (obj2) {
25348 ecode3 = SWIG_AsVal_int(obj2, &val3);
25349 if (!SWIG_IsOK(ecode3)) {
25350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToWeekOfYear" "', expected argument " "3"" of type '" "wxDateTime::WeekDay""'");
25351 }
25352 arg3 = static_cast< wxDateTime::WeekDay >(val3);
25353 }
25354 {
25355 PyThreadState* __tstate = wxPyBeginAllowThreads();
25356 result = wxDateTime::SetToWeekOfYear(arg1,arg2,arg3);
25357 wxPyEndAllowThreads(__tstate);
25358 if (PyErr_Occurred()) SWIG_fail;
25359 }
25360 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25361 return resultobj;
25362fail:
25363 return NULL;
25364}
25365
25366
25367SWIGINTERN PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25368 PyObject *resultobj = 0;
25369 wxDateTime *arg1 = (wxDateTime *) 0 ;
25370 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25371 int arg3 = (int) wxDateTime::Inv_Year ;
25372 wxDateTime *result = 0 ;
25373 void *argp1 = 0 ;
25374 int res1 = 0 ;
25375 int val2 ;
25376 int ecode2 = 0 ;
25377 int val3 ;
25378 int ecode3 = 0 ;
25379 PyObject * obj0 = 0 ;
25380 PyObject * obj1 = 0 ;
25381 PyObject * obj2 = 0 ;
25382 char * kwnames[] = {
25383 (char *) "self",(char *) "month",(char *) "year", NULL
25384 };
25385
25386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25388 if (!SWIG_IsOK(res1)) {
25389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25390 }
25391 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25392 if (obj1) {
25393 ecode2 = SWIG_AsVal_int(obj1, &val2);
25394 if (!SWIG_IsOK(ecode2)) {
25395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
25396 }
25397 arg2 = static_cast< wxDateTime::Month >(val2);
25398 }
25399 if (obj2) {
25400 ecode3 = SWIG_AsVal_int(obj2, &val3);
25401 if (!SWIG_IsOK(ecode3)) {
25402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_SetToLastMonthDay" "', expected argument " "3"" of type '" "int""'");
25403 }
25404 arg3 = static_cast< int >(val3);
25405 }
25406 {
25407 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 25408 {
554f62e9
RD
25409 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay(arg2,arg3);
25410 result = (wxDateTime *) &_result_ref;
d55e5bfc 25411 }
554f62e9
RD
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25416 return resultobj;
25417fail:
25418 return NULL;
25419}
25420
25421
25422SWIGINTERN PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj = 0;
25424 wxDateTime *arg1 = (wxDateTime *) 0 ;
25425 wxDateTime::Month arg2 = (wxDateTime::Month) wxDateTime::Inv_Month ;
25426 int arg3 = (int) wxDateTime::Inv_Year ;
25427 wxDateTime result;
25428 void *argp1 = 0 ;
25429 int res1 = 0 ;
25430 int val2 ;
25431 int ecode2 = 0 ;
25432 int val3 ;
25433 int ecode3 = 0 ;
25434 PyObject * obj0 = 0 ;
25435 PyObject * obj1 = 0 ;
25436 PyObject * obj2 = 0 ;
25437 char * kwnames[] = {
25438 (char *) "self",(char *) "month",(char *) "year", NULL
25439 };
25440
25441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25443 if (!SWIG_IsOK(res1)) {
25444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25445 }
25446 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25447 if (obj1) {
25448 ecode2 = SWIG_AsVal_int(obj1, &val2);
25449 if (!SWIG_IsOK(ecode2)) {
25450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "2"" of type '" "wxDateTime::Month""'");
25451 }
25452 arg2 = static_cast< wxDateTime::Month >(val2);
25453 }
25454 if (obj2) {
25455 ecode3 = SWIG_AsVal_int(obj2, &val3);
25456 if (!SWIG_IsOK(ecode3)) {
25457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_GetLastMonthDay" "', expected argument " "3"" of type '" "int""'");
25458 }
25459 arg3 = static_cast< int >(val3);
25460 }
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (arg1)->GetLastMonthDay(arg2,arg3);
25464 wxPyEndAllowThreads(__tstate);
25465 if (PyErr_Occurred()) SWIG_fail;
25466 }
25467 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25468 return resultobj;
25469fail:
25470 return NULL;
25471}
25472
25473
25474SWIGINTERN PyObject *_wrap_DateTime_SetToYearDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25475 PyObject *resultobj = 0;
25476 wxDateTime *arg1 = (wxDateTime *) 0 ;
25477 int arg2 ;
25478 wxDateTime *result = 0 ;
25479 void *argp1 = 0 ;
25480 int res1 = 0 ;
25481 int val2 ;
25482 int ecode2 = 0 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "self",(char *) "yday", NULL
25487 };
25488
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SetToYearDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25493 }
25494 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25495 ecode2 = SWIG_AsVal_int(obj1, &val2);
25496 if (!SWIG_IsOK(ecode2)) {
25497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_SetToYearDay" "', expected argument " "2"" of type '" "int""'");
25498 }
25499 arg2 = static_cast< int >(val2);
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25502 {
554f62e9
RD
25503 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
25504 result = (wxDateTime *) &_result_ref;
093d3ff1 25505 }
554f62e9
RD
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25510 return resultobj;
25511fail:
25512 return NULL;
25513}
25514
25515
25516SWIGINTERN PyObject *_wrap_DateTime_GetYearDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25517 PyObject *resultobj = 0;
25518 wxDateTime *arg1 = (wxDateTime *) 0 ;
25519 int arg2 ;
25520 wxDateTime result;
25521 void *argp1 = 0 ;
25522 int res1 = 0 ;
25523 int val2 ;
25524 int ecode2 = 0 ;
25525 PyObject * obj0 = 0 ;
25526 PyObject * obj1 = 0 ;
25527 char * kwnames[] = {
25528 (char *) "self",(char *) "yday", NULL
25529 };
25530
25531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) SWIG_fail;
25532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25533 if (!SWIG_IsOK(res1)) {
25534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetYearDay" "', expected argument " "1"" of type '" "wxDateTime *""'");
25535 }
25536 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25537 ecode2 = SWIG_AsVal_int(obj1, &val2);
25538 if (!SWIG_IsOK(ecode2)) {
25539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetYearDay" "', expected argument " "2"" of type '" "int""'");
25540 }
25541 arg2 = static_cast< int >(val2);
25542 {
25543 PyThreadState* __tstate = wxPyBeginAllowThreads();
25544 result = (arg1)->GetYearDay(arg2);
25545 wxPyEndAllowThreads(__tstate);
25546 if (PyErr_Occurred()) SWIG_fail;
25547 }
25548 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25549 return resultobj;
25550fail:
25551 return NULL;
d55e5bfc
RD
25552}
25553
25554
554f62e9
RD
25555SWIGINTERN PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25556 PyObject *resultobj = 0;
25557 wxDateTime *arg1 = (wxDateTime *) 0 ;
25558 double result;
25559 void *argp1 = 0 ;
25560 int res1 = 0 ;
25561 PyObject *swig_obj[1] ;
25562
25563 if (!args) SWIG_fail;
25564 swig_obj[0] = args;
25565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25566 if (!SWIG_IsOK(res1)) {
25567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetJulianDayNumber" "', expected argument " "1"" of type '" "wxDateTime *""'");
25568 }
25569 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25570 {
25571 PyThreadState* __tstate = wxPyBeginAllowThreads();
25572 result = (double)(arg1)->GetJulianDayNumber();
25573 wxPyEndAllowThreads(__tstate);
25574 if (PyErr_Occurred()) SWIG_fail;
25575 }
25576 resultobj = SWIG_From_double(static_cast< double >(result));
25577 return resultobj;
25578fail:
25579 return NULL;
d55e5bfc
RD
25580}
25581
25582
554f62e9
RD
25583SWIGINTERN PyObject *_wrap_DateTime_GetJDN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25584 PyObject *resultobj = 0;
25585 wxDateTime *arg1 = (wxDateTime *) 0 ;
25586 double result;
25587 void *argp1 = 0 ;
25588 int res1 = 0 ;
25589 PyObject *swig_obj[1] ;
25590
25591 if (!args) SWIG_fail;
25592 swig_obj[0] = args;
25593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25594 if (!SWIG_IsOK(res1)) {
25595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetJDN" "', expected argument " "1"" of type '" "wxDateTime *""'");
25596 }
25597 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25598 {
25599 PyThreadState* __tstate = wxPyBeginAllowThreads();
25600 result = (double)(arg1)->GetJDN();
25601 wxPyEndAllowThreads(__tstate);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 }
25604 resultobj = SWIG_From_double(static_cast< double >(result));
25605 return resultobj;
25606fail:
25607 return NULL;
d55e5bfc
RD
25608}
25609
25610
554f62e9
RD
25611SWIGINTERN PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25612 PyObject *resultobj = 0;
25613 wxDateTime *arg1 = (wxDateTime *) 0 ;
25614 double result;
25615 void *argp1 = 0 ;
25616 int res1 = 0 ;
25617 PyObject *swig_obj[1] ;
25618
25619 if (!args) SWIG_fail;
25620 swig_obj[0] = args;
25621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25622 if (!SWIG_IsOK(res1)) {
25623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetModifiedJulianDayNumber" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25624 }
25625 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25626 {
25627 PyThreadState* __tstate = wxPyBeginAllowThreads();
25628 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
25629 wxPyEndAllowThreads(__tstate);
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 resultobj = SWIG_From_double(static_cast< double >(result));
25633 return resultobj;
25634fail:
25635 return NULL;
d55e5bfc
RD
25636}
25637
25638
554f62e9
RD
25639SWIGINTERN PyObject *_wrap_DateTime_GetMJD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25640 PyObject *resultobj = 0;
25641 wxDateTime *arg1 = (wxDateTime *) 0 ;
25642 double result;
25643 void *argp1 = 0 ;
25644 int res1 = 0 ;
25645 PyObject *swig_obj[1] ;
25646
25647 if (!args) SWIG_fail;
25648 swig_obj[0] = args;
25649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25650 if (!SWIG_IsOK(res1)) {
25651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMJD" "', expected argument " "1"" of type '" "wxDateTime *""'");
25652 }
25653 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25654 {
25655 PyThreadState* __tstate = wxPyBeginAllowThreads();
25656 result = (double)(arg1)->GetMJD();
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 resultobj = SWIG_From_double(static_cast< double >(result));
25661 return resultobj;
25662fail:
25663 return NULL;
d55e5bfc
RD
25664}
25665
25666
554f62e9
RD
25667SWIGINTERN PyObject *_wrap_DateTime_GetRataDie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25668 PyObject *resultobj = 0;
25669 wxDateTime *arg1 = (wxDateTime *) 0 ;
25670 double result;
25671 void *argp1 = 0 ;
25672 int res1 = 0 ;
25673 PyObject *swig_obj[1] ;
25674
25675 if (!args) SWIG_fail;
25676 swig_obj[0] = args;
25677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25678 if (!SWIG_IsOK(res1)) {
25679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetRataDie" "', expected argument " "1"" of type '" "wxDateTime *""'");
25680 }
25681 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 result = (double)(arg1)->GetRataDie();
25685 wxPyEndAllowThreads(__tstate);
25686 if (PyErr_Occurred()) SWIG_fail;
25687 }
25688 resultobj = SWIG_From_double(static_cast< double >(result));
25689 return resultobj;
25690fail:
25691 return NULL;
25692}
25693
25694
25695SWIGINTERN PyObject *_wrap_DateTime_ToTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25696 PyObject *resultobj = 0;
25697 wxDateTime *arg1 = (wxDateTime *) 0 ;
25698 wxDateTime::TimeZone *arg2 = 0 ;
25699 bool arg3 = (bool) false ;
25700 wxDateTime result;
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 bool temp2 = false ;
25704 bool val3 ;
25705 int ecode3 = 0 ;
25706 PyObject * obj0 = 0 ;
25707 PyObject * obj1 = 0 ;
25708 PyObject * obj2 = 0 ;
25709 char * kwnames[] = {
25710 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25711 };
25712
25713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25715 if (!SWIG_IsOK(res1)) {
25716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25717 }
25718 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25719 {
25720 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25721 temp2 = true;
25722 }
25723 if (obj2) {
25724 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25725 if (!SWIG_IsOK(ecode3)) {
25726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_ToTimezone" "', expected argument " "3"" of type '" "bool""'");
25727 }
25728 arg3 = static_cast< bool >(val3);
25729 }
25730 {
25731 PyThreadState* __tstate = wxPyBeginAllowThreads();
25732 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25733 wxPyEndAllowThreads(__tstate);
25734 if (PyErr_Occurred()) SWIG_fail;
25735 }
25736 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25737 {
25738 if (temp2) delete arg2;
25739 }
25740 return resultobj;
25741fail:
25742 {
25743 if (temp2) delete arg2;
25744 }
25745 return NULL;
25746}
25747
25748
25749SWIGINTERN PyObject *_wrap_DateTime_MakeTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25750 PyObject *resultobj = 0;
25751 wxDateTime *arg1 = (wxDateTime *) 0 ;
25752 wxDateTime::TimeZone *arg2 = 0 ;
25753 bool arg3 = (bool) false ;
25754 wxDateTime *result = 0 ;
25755 void *argp1 = 0 ;
25756 int res1 = 0 ;
25757 bool temp2 = false ;
25758 bool val3 ;
25759 int ecode3 = 0 ;
25760 PyObject * obj0 = 0 ;
25761 PyObject * obj1 = 0 ;
25762 PyObject * obj2 = 0 ;
25763 char * kwnames[] = {
25764 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25765 };
25766
25767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25769 if (!SWIG_IsOK(res1)) {
25770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25771 }
25772 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25773 {
25774 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25775 temp2 = true;
25776 }
25777 if (obj2) {
25778 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25779 if (!SWIG_IsOK(ecode3)) {
25780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_MakeTimezone" "', expected argument " "3"" of type '" "bool""'");
25781 }
25782 arg3 = static_cast< bool >(val3);
25783 }
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 25786 {
554f62e9
RD
25787 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25788 result = (wxDateTime *) &_result_ref;
d55e5bfc 25789 }
554f62e9
RD
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25794 {
25795 if (temp2) delete arg2;
25796 }
25797 return resultobj;
25798fail:
25799 {
25800 if (temp2) delete arg2;
25801 }
25802 return NULL;
25803}
25804
25805
25806SWIGINTERN PyObject *_wrap_DateTime_FromTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25807 PyObject *resultobj = 0;
25808 wxDateTime *arg1 = (wxDateTime *) 0 ;
25809 wxDateTime::TimeZone *arg2 = 0 ;
25810 bool arg3 = (bool) false ;
25811 wxDateTime result;
25812 void *argp1 = 0 ;
25813 int res1 = 0 ;
25814 bool temp2 = false ;
25815 bool val3 ;
25816 int ecode3 = 0 ;
25817 PyObject * obj0 = 0 ;
25818 PyObject * obj1 = 0 ;
25819 PyObject * obj2 = 0 ;
25820 char * kwnames[] = {
25821 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25822 };
25823
25824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_FromTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25826 if (!SWIG_IsOK(res1)) {
25827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FromTimezone" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25828 }
25829 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25830 {
25831 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25832 temp2 = true;
25833 }
25834 if (obj2) {
25835 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25836 if (!SWIG_IsOK(ecode3)) {
25837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_FromTimezone" "', expected argument " "3"" of type '" "bool""'");
25838 }
25839 arg3 = static_cast< bool >(val3);
25840 }
25841 {
25842 PyThreadState* __tstate = wxPyBeginAllowThreads();
25843 result = ((wxDateTime const *)arg1)->FromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25844 wxPyEndAllowThreads(__tstate);
25845 if (PyErr_Occurred()) SWIG_fail;
25846 }
25847 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25848 {
25849 if (temp2) delete arg2;
25850 }
25851 return resultobj;
25852fail:
25853 {
25854 if (temp2) delete arg2;
25855 }
25856 return NULL;
25857}
25858
25859
25860SWIGINTERN PyObject *_wrap_DateTime_MakeFromTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25861 PyObject *resultobj = 0;
25862 wxDateTime *arg1 = (wxDateTime *) 0 ;
25863 wxDateTime::TimeZone *arg2 = 0 ;
25864 bool arg3 = (bool) false ;
25865 wxDateTime *result = 0 ;
25866 void *argp1 = 0 ;
25867 int res1 = 0 ;
25868 bool temp2 = false ;
25869 bool val3 ;
25870 int ecode3 = 0 ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 PyObject * obj2 = 0 ;
25874 char * kwnames[] = {
25875 (char *) "self",(char *) "tz",(char *) "noDST", NULL
25876 };
25877
25878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeFromTimezone",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25880 if (!SWIG_IsOK(res1)) {
25881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeFromTimezone" "', expected argument " "1"" of type '" "wxDateTime *""'");
25882 }
25883 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25884 {
25885 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
25886 temp2 = true;
25887 }
25888 if (obj2) {
25889 ecode3 = SWIG_AsVal_bool(obj2, &val3);
25890 if (!SWIG_IsOK(ecode3)) {
25891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateTime_MakeFromTimezone" "', expected argument " "3"" of type '" "bool""'");
25892 }
25893 arg3 = static_cast< bool >(val3);
25894 }
25895 {
25896 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 25897 {
554f62e9
RD
25898 wxDateTime &_result_ref = (arg1)->MakeFromTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
25899 result = (wxDateTime *) &_result_ref;
d55e5bfc 25900 }
554f62e9
RD
25901 wxPyEndAllowThreads(__tstate);
25902 if (PyErr_Occurred()) SWIG_fail;
25903 }
25904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25905 {
25906 if (temp2) delete arg2;
25907 }
25908 return resultobj;
25909fail:
25910 {
25911 if (temp2) delete arg2;
25912 }
25913 return NULL;
25914}
25915
25916
25917SWIGINTERN PyObject *_wrap_DateTime_ToUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25918 PyObject *resultobj = 0;
25919 wxDateTime *arg1 = (wxDateTime *) 0 ;
25920 bool arg2 = (bool) false ;
25921 wxDateTime result;
25922 void *argp1 = 0 ;
25923 int res1 = 0 ;
25924 bool val2 ;
25925 int ecode2 = 0 ;
25926 PyObject * obj0 = 0 ;
25927 PyObject * obj1 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "self",(char *) "noDST", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToUTC",kwnames,&obj0,&obj1)) SWIG_fail;
25933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25934 if (!SWIG_IsOK(res1)) {
25935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToUTC" "', expected argument " "1"" of type '" "wxDateTime const *""'");
25936 }
25937 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25938 if (obj1) {
25939 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25940 if (!SWIG_IsOK(ecode2)) {
25941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_ToUTC" "', expected argument " "2"" of type '" "bool""'");
25942 }
25943 arg2 = static_cast< bool >(val2);
25944 }
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = ((wxDateTime const *)arg1)->ToUTC(arg2);
25948 wxPyEndAllowThreads(__tstate);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
25952 return resultobj;
25953fail:
25954 return NULL;
25955}
25956
25957
25958SWIGINTERN PyObject *_wrap_DateTime_MakeUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25959 PyObject *resultobj = 0;
25960 wxDateTime *arg1 = (wxDateTime *) 0 ;
25961 bool arg2 = (bool) false ;
25962 wxDateTime *result = 0 ;
25963 void *argp1 = 0 ;
25964 int res1 = 0 ;
25965 bool val2 ;
25966 int ecode2 = 0 ;
25967 PyObject * obj0 = 0 ;
25968 PyObject * obj1 = 0 ;
25969 char * kwnames[] = {
25970 (char *) "self",(char *) "noDST", NULL
25971 };
25972
25973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeUTC",kwnames,&obj0,&obj1)) SWIG_fail;
25974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeUTC" "', expected argument " "1"" of type '" "wxDateTime *""'");
25977 }
25978 arg1 = reinterpret_cast< wxDateTime * >(argp1);
25979 if (obj1) {
25980 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25981 if (!SWIG_IsOK(ecode2)) {
25982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeUTC" "', expected argument " "2"" of type '" "bool""'");
25983 }
25984 arg2 = static_cast< bool >(val2);
25985 }
25986 {
25987 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 25988 {
554f62e9
RD
25989 wxDateTime &_result_ref = (arg1)->MakeUTC(arg2);
25990 result = (wxDateTime *) &_result_ref;
d55e5bfc 25991 }
554f62e9
RD
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
25996 return resultobj;
25997fail:
25998 return NULL;
25999}
26000
26001
26002SWIGINTERN PyObject *_wrap_DateTime_ToGMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26003 PyObject *resultobj = 0;
26004 wxDateTime *arg1 = (wxDateTime *) 0 ;
26005 bool arg2 = (bool) false ;
26006 wxDateTime result;
26007 void *argp1 = 0 ;
26008 int res1 = 0 ;
26009 bool val2 ;
26010 int ecode2 = 0 ;
26011 PyObject * obj0 = 0 ;
26012 PyObject * obj1 = 0 ;
26013 char * kwnames[] = {
26014 (char *) "self",(char *) "noDST", NULL
26015 };
26016
26017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) SWIG_fail;
26018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26019 if (!SWIG_IsOK(res1)) {
26020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ToGMT" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26021 }
26022 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26023 if (obj1) {
26024 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26025 if (!SWIG_IsOK(ecode2)) {
26026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_ToGMT" "', expected argument " "2"" of type '" "bool""'");
26027 }
26028 arg2 = static_cast< bool >(val2);
26029 }
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 result = ((wxDateTime const *)arg1)->ToGMT(arg2);
26033 wxPyEndAllowThreads(__tstate);
26034 if (PyErr_Occurred()) SWIG_fail;
26035 }
26036 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
26037 return resultobj;
26038fail:
26039 return NULL;
26040}
26041
26042
26043SWIGINTERN PyObject *_wrap_DateTime_MakeGMT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26044 PyObject *resultobj = 0;
26045 wxDateTime *arg1 = (wxDateTime *) 0 ;
26046 bool arg2 = (bool) false ;
26047 wxDateTime *result = 0 ;
26048 void *argp1 = 0 ;
26049 int res1 = 0 ;
26050 bool val2 ;
26051 int ecode2 = 0 ;
26052 PyObject * obj0 = 0 ;
26053 PyObject * obj1 = 0 ;
26054 char * kwnames[] = {
26055 (char *) "self",(char *) "noDST", NULL
26056 };
26057
26058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) SWIG_fail;
26059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26060 if (!SWIG_IsOK(res1)) {
26061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeGMT" "', expected argument " "1"" of type '" "wxDateTime *""'");
26062 }
26063 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26064 if (obj1) {
26065 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26066 if (!SWIG_IsOK(ecode2)) {
26067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeGMT" "', expected argument " "2"" of type '" "bool""'");
26068 }
26069 arg2 = static_cast< bool >(val2);
26070 }
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 26073 {
554f62e9
RD
26074 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
26075 result = (wxDateTime *) &_result_ref;
d55e5bfc 26076 }
554f62e9
RD
26077 wxPyEndAllowThreads(__tstate);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
26081 return resultobj;
26082fail:
26083 return NULL;
26084}
26085
26086
26087SWIGINTERN PyObject *_wrap_DateTime_FromUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26088 PyObject *resultobj = 0;
26089 wxDateTime *arg1 = (wxDateTime *) 0 ;
26090 bool arg2 = (bool) false ;
26091 wxDateTime result;
26092 void *argp1 = 0 ;
26093 int res1 = 0 ;
26094 bool val2 ;
26095 int ecode2 = 0 ;
26096 PyObject * obj0 = 0 ;
26097 PyObject * obj1 = 0 ;
26098 char * kwnames[] = {
26099 (char *) "self",(char *) "noDST", NULL
26100 };
26101
26102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_FromUTC",kwnames,&obj0,&obj1)) SWIG_fail;
26103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26104 if (!SWIG_IsOK(res1)) {
26105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FromUTC" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26106 }
26107 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26108 if (obj1) {
26109 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26110 if (!SWIG_IsOK(ecode2)) {
26111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_FromUTC" "', expected argument " "2"" of type '" "bool""'");
26112 }
26113 arg2 = static_cast< bool >(val2);
26114 }
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 result = ((wxDateTime const *)arg1)->FromUTC(arg2);
26118 wxPyEndAllowThreads(__tstate);
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
26122 return resultobj;
26123fail:
26124 return NULL;
26125}
26126
26127
26128SWIGINTERN PyObject *_wrap_DateTime_MakeFromUTC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26129 PyObject *resultobj = 0;
26130 wxDateTime *arg1 = (wxDateTime *) 0 ;
26131 bool arg2 = (bool) false ;
26132 wxDateTime *result = 0 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 bool val2 ;
26136 int ecode2 = 0 ;
26137 PyObject * obj0 = 0 ;
26138 PyObject * obj1 = 0 ;
26139 char * kwnames[] = {
26140 (char *) "self",(char *) "noDST", NULL
26141 };
26142
26143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeFromUTC",kwnames,&obj0,&obj1)) SWIG_fail;
26144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26145 if (!SWIG_IsOK(res1)) {
26146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_MakeFromUTC" "', expected argument " "1"" of type '" "wxDateTime *""'");
26147 }
26148 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26149 if (obj1) {
26150 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26151 if (!SWIG_IsOK(ecode2)) {
26152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_MakeFromUTC" "', expected argument " "2"" of type '" "bool""'");
26153 }
26154 arg2 = static_cast< bool >(val2);
26155 }
26156 {
26157 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 26158 {
554f62e9
RD
26159 wxDateTime &_result_ref = (arg1)->MakeFromUTC(arg2);
26160 result = (wxDateTime *) &_result_ref;
d55e5bfc 26161 }
554f62e9
RD
26162 wxPyEndAllowThreads(__tstate);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
26166 return resultobj;
26167fail:
26168 return NULL;
26169}
26170
26171
26172SWIGINTERN PyObject *_wrap_DateTime_IsDST(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26173 PyObject *resultobj = 0;
26174 wxDateTime *arg1 = (wxDateTime *) 0 ;
26175 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
26176 int result;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 int val2 ;
26180 int ecode2 = 0 ;
26181 PyObject * obj0 = 0 ;
26182 PyObject * obj1 = 0 ;
26183 char * kwnames[] = {
26184 (char *) "self",(char *) "country", NULL
26185 };
26186
26187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) SWIG_fail;
26188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26189 if (!SWIG_IsOK(res1)) {
26190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsDST" "', expected argument " "1"" of type '" "wxDateTime *""'");
26191 }
26192 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26193 if (obj1) {
26194 ecode2 = SWIG_AsVal_int(obj1, &val2);
26195 if (!SWIG_IsOK(ecode2)) {
26196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsDST" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
26197 }
26198 arg2 = static_cast< wxDateTime::Country >(val2);
26199 }
26200 {
26201 PyThreadState* __tstate = wxPyBeginAllowThreads();
26202 result = (int)(arg1)->IsDST(arg2);
26203 wxPyEndAllowThreads(__tstate);
26204 if (PyErr_Occurred()) SWIG_fail;
26205 }
26206 resultobj = SWIG_From_int(static_cast< int >(result));
26207 return resultobj;
26208fail:
26209 return NULL;
d55e5bfc
RD
26210}
26211
26212
554f62e9
RD
26213SWIGINTERN PyObject *_wrap_DateTime_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26214 PyObject *resultobj = 0;
26215 wxDateTime *arg1 = (wxDateTime *) 0 ;
26216 bool result;
26217 void *argp1 = 0 ;
26218 int res1 = 0 ;
26219 PyObject *swig_obj[1] ;
26220
26221 if (!args) SWIG_fail;
26222 swig_obj[0] = args;
26223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26224 if (!SWIG_IsOK(res1)) {
26225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsValid" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26226 }
26227 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26228 {
26229 PyThreadState* __tstate = wxPyBeginAllowThreads();
26230 result = (bool)((wxDateTime const *)arg1)->IsValid();
26231 wxPyEndAllowThreads(__tstate);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 {
26235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26236 }
26237 return resultobj;
26238fail:
26239 return NULL;
d55e5bfc
RD
26240}
26241
26242
554f62e9
RD
26243SWIGINTERN PyObject *_wrap_DateTime_GetTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26244 PyObject *resultobj = 0;
26245 wxDateTime *arg1 = (wxDateTime *) 0 ;
26246 time_t result;
26247 void *argp1 = 0 ;
26248 int res1 = 0 ;
26249 PyObject *swig_obj[1] ;
26250
26251 if (!args) SWIG_fail;
26252 swig_obj[0] = args;
26253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26254 if (!SWIG_IsOK(res1)) {
26255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetTicks" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26256 }
26257 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26258 {
26259 PyThreadState* __tstate = wxPyBeginAllowThreads();
26260 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
26265 return resultobj;
26266fail:
26267 return NULL;
26268}
26269
26270
26271SWIGINTERN PyObject *_wrap_DateTime_GetYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26272 PyObject *resultobj = 0;
26273 wxDateTime *arg1 = (wxDateTime *) 0 ;
26274 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26275 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26276 int result;
26277 void *argp1 = 0 ;
26278 int res1 = 0 ;
26279 bool temp2 = false ;
26280 PyObject * obj0 = 0 ;
26281 PyObject * obj1 = 0 ;
26282 char * kwnames[] = {
26283 (char *) "self",(char *) "tz", NULL
26284 };
26285
26286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) SWIG_fail;
26287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26288 if (!SWIG_IsOK(res1)) {
26289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26290 }
26291 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26292 if (obj1) {
d55e5bfc 26293 {
554f62e9
RD
26294 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26295 temp2 = true;
d55e5bfc 26296 }
554f62e9
RD
26297 }
26298 {
26299 PyThreadState* __tstate = wxPyBeginAllowThreads();
26300 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
26301 wxPyEndAllowThreads(__tstate);
26302 if (PyErr_Occurred()) SWIG_fail;
26303 }
26304 resultobj = SWIG_From_int(static_cast< int >(result));
26305 {
26306 if (temp2) delete arg2;
26307 }
26308 return resultobj;
26309fail:
26310 {
26311 if (temp2) delete arg2;
26312 }
26313 return NULL;
26314}
26315
26316
26317SWIGINTERN PyObject *_wrap_DateTime_GetMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26318 PyObject *resultobj = 0;
26319 wxDateTime *arg1 = (wxDateTime *) 0 ;
26320 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26321 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26322 wxDateTime::Month result;
26323 void *argp1 = 0 ;
26324 int res1 = 0 ;
26325 bool temp2 = false ;
26326 PyObject * obj0 = 0 ;
26327 PyObject * obj1 = 0 ;
26328 char * kwnames[] = {
26329 (char *) "self",(char *) "tz", NULL
26330 };
26331
26332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) SWIG_fail;
26333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26334 if (!SWIG_IsOK(res1)) {
26335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMonth" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26336 }
26337 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26338 if (obj1) {
d55e5bfc 26339 {
554f62e9
RD
26340 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26341 temp2 = true;
d55e5bfc 26342 }
554f62e9
RD
26343 }
26344 {
26345 PyThreadState* __tstate = wxPyBeginAllowThreads();
26346 result = (wxDateTime::Month)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
26347 wxPyEndAllowThreads(__tstate);
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
26350 resultobj = SWIG_From_int(static_cast< int >(result));
26351 {
26352 if (temp2) delete arg2;
26353 }
26354 return resultobj;
26355fail:
26356 {
26357 if (temp2) delete arg2;
26358 }
26359 return NULL;
26360}
26361
26362
26363SWIGINTERN PyObject *_wrap_DateTime_GetDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26364 PyObject *resultobj = 0;
26365 wxDateTime *arg1 = (wxDateTime *) 0 ;
26366 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26367 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26368 int result;
26369 void *argp1 = 0 ;
26370 int res1 = 0 ;
26371 bool temp2 = false ;
26372 PyObject * obj0 = 0 ;
26373 PyObject * obj1 = 0 ;
26374 char * kwnames[] = {
26375 (char *) "self",(char *) "tz", NULL
26376 };
26377
26378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) SWIG_fail;
26379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26380 if (!SWIG_IsOK(res1)) {
26381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26382 }
26383 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26384 if (obj1) {
d55e5bfc 26385 {
554f62e9
RD
26386 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26387 temp2 = true;
d55e5bfc 26388 }
554f62e9
RD
26389 }
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
26393 wxPyEndAllowThreads(__tstate);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 }
26396 resultobj = SWIG_From_int(static_cast< int >(result));
26397 {
26398 if (temp2) delete arg2;
26399 }
26400 return resultobj;
26401fail:
26402 {
26403 if (temp2) delete arg2;
26404 }
26405 return NULL;
26406}
26407
26408
26409SWIGINTERN PyObject *_wrap_DateTime_GetWeekDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj = 0;
26411 wxDateTime *arg1 = (wxDateTime *) 0 ;
26412 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26413 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26414 wxDateTime::WeekDay result;
26415 void *argp1 = 0 ;
26416 int res1 = 0 ;
26417 bool temp2 = false ;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 char * kwnames[] = {
26421 (char *) "self",(char *) "tz", NULL
26422 };
26423
26424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) SWIG_fail;
26425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26426 if (!SWIG_IsOK(res1)) {
26427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26428 }
26429 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26430 if (obj1) {
d55e5bfc 26431 {
554f62e9
RD
26432 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26433 temp2 = true;
d55e5bfc 26434 }
554f62e9
RD
26435 }
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 result = (wxDateTime::WeekDay)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_From_int(static_cast< int >(result));
26443 {
26444 if (temp2) delete arg2;
26445 }
26446 return resultobj;
26447fail:
26448 {
26449 if (temp2) delete arg2;
26450 }
26451 return NULL;
26452}
26453
26454
26455SWIGINTERN PyObject *_wrap_DateTime_GetHour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26456 PyObject *resultobj = 0;
26457 wxDateTime *arg1 = (wxDateTime *) 0 ;
26458 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26459 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26460 int result;
26461 void *argp1 = 0 ;
26462 int res1 = 0 ;
26463 bool temp2 = false ;
26464 PyObject * obj0 = 0 ;
26465 PyObject * obj1 = 0 ;
26466 char * kwnames[] = {
26467 (char *) "self",(char *) "tz", NULL
26468 };
26469
26470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) SWIG_fail;
26471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26472 if (!SWIG_IsOK(res1)) {
26473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetHour" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26474 }
26475 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26476 if (obj1) {
d55e5bfc 26477 {
554f62e9
RD
26478 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26479 temp2 = true;
d55e5bfc 26480 }
554f62e9
RD
26481 }
26482 {
26483 PyThreadState* __tstate = wxPyBeginAllowThreads();
26484 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
26485 wxPyEndAllowThreads(__tstate);
26486 if (PyErr_Occurred()) SWIG_fail;
26487 }
26488 resultobj = SWIG_From_int(static_cast< int >(result));
26489 {
26490 if (temp2) delete arg2;
26491 }
26492 return resultobj;
26493fail:
26494 {
26495 if (temp2) delete arg2;
26496 }
26497 return NULL;
26498}
26499
26500
26501SWIGINTERN PyObject *_wrap_DateTime_GetMinute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26502 PyObject *resultobj = 0;
26503 wxDateTime *arg1 = (wxDateTime *) 0 ;
26504 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26505 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26506 int result;
26507 void *argp1 = 0 ;
26508 int res1 = 0 ;
26509 bool temp2 = false ;
26510 PyObject * obj0 = 0 ;
26511 PyObject * obj1 = 0 ;
26512 char * kwnames[] = {
26513 (char *) "self",(char *) "tz", NULL
26514 };
26515
26516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) SWIG_fail;
26517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26518 if (!SWIG_IsOK(res1)) {
26519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMinute" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26520 }
26521 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26522 if (obj1) {
d55e5bfc 26523 {
554f62e9
RD
26524 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26525 temp2 = true;
d55e5bfc 26526 }
554f62e9
RD
26527 }
26528 {
26529 PyThreadState* __tstate = wxPyBeginAllowThreads();
26530 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 resultobj = SWIG_From_int(static_cast< int >(result));
26535 {
26536 if (temp2) delete arg2;
26537 }
26538 return resultobj;
26539fail:
26540 {
26541 if (temp2) delete arg2;
26542 }
26543 return NULL;
26544}
26545
26546
26547SWIGINTERN PyObject *_wrap_DateTime_GetSecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26548 PyObject *resultobj = 0;
26549 wxDateTime *arg1 = (wxDateTime *) 0 ;
26550 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26551 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26552 int result;
26553 void *argp1 = 0 ;
26554 int res1 = 0 ;
26555 bool temp2 = false ;
26556 PyObject * obj0 = 0 ;
26557 PyObject * obj1 = 0 ;
26558 char * kwnames[] = {
26559 (char *) "self",(char *) "tz", NULL
26560 };
26561
26562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) SWIG_fail;
26563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26564 if (!SWIG_IsOK(res1)) {
26565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetSecond" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26566 }
26567 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26568 if (obj1) {
d55e5bfc 26569 {
554f62e9
RD
26570 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26571 temp2 = true;
d55e5bfc 26572 }
554f62e9
RD
26573 }
26574 {
26575 PyThreadState* __tstate = wxPyBeginAllowThreads();
26576 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
26577 wxPyEndAllowThreads(__tstate);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 }
26580 resultobj = SWIG_From_int(static_cast< int >(result));
26581 {
26582 if (temp2) delete arg2;
26583 }
26584 return resultobj;
26585fail:
26586 {
26587 if (temp2) delete arg2;
26588 }
26589 return NULL;
26590}
26591
26592
26593SWIGINTERN PyObject *_wrap_DateTime_GetMillisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26594 PyObject *resultobj = 0;
26595 wxDateTime *arg1 = (wxDateTime *) 0 ;
26596 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26597 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26598 int result;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 bool temp2 = false ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "tz", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetMillisecond" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26612 }
26613 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26614 if (obj1) {
d55e5bfc 26615 {
554f62e9
RD
26616 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26617 temp2 = true;
d55e5bfc 26618 }
554f62e9
RD
26619 }
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_From_int(static_cast< int >(result));
26627 {
26628 if (temp2) delete arg2;
26629 }
26630 return resultobj;
26631fail:
26632 {
26633 if (temp2) delete arg2;
26634 }
26635 return NULL;
26636}
26637
26638
26639SWIGINTERN PyObject *_wrap_DateTime_GetDayOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26640 PyObject *resultobj = 0;
26641 wxDateTime *arg1 = (wxDateTime *) 0 ;
26642 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
26643 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
26644 int result;
26645 void *argp1 = 0 ;
26646 int res1 = 0 ;
26647 bool temp2 = false ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "tz", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) 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_GetDayOfYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26658 }
26659 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26660 if (obj1) {
d55e5bfc 26661 {
554f62e9
RD
26662 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
26663 temp2 = true;
d55e5bfc 26664 }
554f62e9
RD
26665 }
26666 {
26667 PyThreadState* __tstate = wxPyBeginAllowThreads();
26668 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
26669 wxPyEndAllowThreads(__tstate);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 }
26672 resultobj = SWIG_From_int(static_cast< int >(result));
26673 {
26674 if (temp2) delete arg2;
26675 }
26676 return resultobj;
26677fail:
26678 {
26679 if (temp2) delete arg2;
26680 }
26681 return NULL;
26682}
26683
26684
26685SWIGINTERN PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26686 PyObject *resultobj = 0;
26687 wxDateTime *arg1 = (wxDateTime *) 0 ;
26688 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
26689 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
26690 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
26691 int result;
26692 void *argp1 = 0 ;
26693 int res1 = 0 ;
26694 int val2 ;
26695 int ecode2 = 0 ;
26696 bool temp3 = false ;
26697 PyObject * obj0 = 0 ;
26698 PyObject * obj1 = 0 ;
26699 PyObject * obj2 = 0 ;
26700 char * kwnames[] = {
26701 (char *) "self",(char *) "flags",(char *) "tz", NULL
26702 };
26703
26704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26706 if (!SWIG_IsOK(res1)) {
26707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekOfYear" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26708 }
26709 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26710 if (obj1) {
26711 ecode2 = SWIG_AsVal_int(obj1, &val2);
26712 if (!SWIG_IsOK(ecode2)) {
26713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekOfYear" "', expected argument " "2"" of type '" "wxDateTime::WeekFlags""'");
26714 }
26715 arg2 = static_cast< wxDateTime::WeekFlags >(val2);
26716 }
26717 if (obj2) {
d55e5bfc 26718 {
554f62e9
RD
26719 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
26720 temp3 = true;
d55e5bfc 26721 }
554f62e9
RD
26722 }
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear(arg2,(wxDateTime::TimeZone const &)*arg3);
26726 wxPyEndAllowThreads(__tstate);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 resultobj = SWIG_From_int(static_cast< int >(result));
26730 {
26731 if (temp3) delete arg3;
26732 }
26733 return resultobj;
26734fail:
26735 {
26736 if (temp3) delete arg3;
26737 }
26738 return NULL;
26739}
26740
26741
26742SWIGINTERN PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj = 0;
26744 wxDateTime *arg1 = (wxDateTime *) 0 ;
26745 wxDateTime::WeekFlags arg2 = (wxDateTime::WeekFlags) wxDateTime::Monday_First ;
26746 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
26747 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
26748 int result;
26749 void *argp1 = 0 ;
26750 int res1 = 0 ;
26751 int val2 ;
26752 int ecode2 = 0 ;
26753 bool temp3 = false ;
26754 PyObject * obj0 = 0 ;
26755 PyObject * obj1 = 0 ;
26756 PyObject * obj2 = 0 ;
26757 char * kwnames[] = {
26758 (char *) "self",(char *) "flags",(char *) "tz", NULL
26759 };
26760
26761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_GetWeekOfMonth" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26765 }
26766 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26767 if (obj1) {
26768 ecode2 = SWIG_AsVal_int(obj1, &val2);
26769 if (!SWIG_IsOK(ecode2)) {
26770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_GetWeekOfMonth" "', expected argument " "2"" of type '" "wxDateTime::WeekFlags""'");
26771 }
26772 arg2 = static_cast< wxDateTime::WeekFlags >(val2);
26773 }
26774 if (obj2) {
d55e5bfc 26775 {
554f62e9
RD
26776 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
26777 temp3 = true;
d55e5bfc 26778 }
554f62e9
RD
26779 }
26780 {
26781 PyThreadState* __tstate = wxPyBeginAllowThreads();
26782 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth(arg2,(wxDateTime::TimeZone const &)*arg3);
26783 wxPyEndAllowThreads(__tstate);
26784 if (PyErr_Occurred()) SWIG_fail;
26785 }
26786 resultobj = SWIG_From_int(static_cast< int >(result));
26787 {
26788 if (temp3) delete arg3;
26789 }
26790 return resultobj;
26791fail:
26792 {
26793 if (temp3) delete arg3;
26794 }
26795 return NULL;
26796}
26797
26798
26799SWIGINTERN PyObject *_wrap_DateTime_IsWorkDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26800 PyObject *resultobj = 0;
26801 wxDateTime *arg1 = (wxDateTime *) 0 ;
26802 wxDateTime::Country arg2 = (wxDateTime::Country) wxDateTime::Country_Default ;
26803 bool result;
26804 void *argp1 = 0 ;
26805 int res1 = 0 ;
26806 int val2 ;
26807 int ecode2 = 0 ;
26808 PyObject * obj0 = 0 ;
26809 PyObject * obj1 = 0 ;
26810 char * kwnames[] = {
26811 (char *) "self",(char *) "country", NULL
26812 };
26813
26814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) SWIG_fail;
26815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26816 if (!SWIG_IsOK(res1)) {
26817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsWorkDay" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26818 }
26819 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26820 if (obj1) {
26821 ecode2 = SWIG_AsVal_int(obj1, &val2);
26822 if (!SWIG_IsOK(ecode2)) {
26823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateTime_IsWorkDay" "', expected argument " "2"" of type '" "wxDateTime::Country""'");
26824 }
26825 arg2 = static_cast< wxDateTime::Country >(val2);
26826 }
26827 {
26828 PyThreadState* __tstate = wxPyBeginAllowThreads();
26829 result = (bool)((wxDateTime const *)arg1)->IsWorkDay(arg2);
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 {
26834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26835 }
26836 return resultobj;
26837fail:
26838 return NULL;
26839}
26840
26841
26842SWIGINTERN PyObject *_wrap_DateTime_IsEqualTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26843 PyObject *resultobj = 0;
26844 wxDateTime *arg1 = (wxDateTime *) 0 ;
26845 wxDateTime *arg2 = 0 ;
26846 bool result;
26847 void *argp1 = 0 ;
26848 int res1 = 0 ;
26849 void *argp2 = 0 ;
26850 int res2 = 0 ;
26851 PyObject * obj0 = 0 ;
26852 PyObject * obj1 = 0 ;
26853 char * kwnames[] = {
26854 (char *) "self",(char *) "datetime", NULL
26855 };
26856
26857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) SWIG_fail;
26858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26859 if (!SWIG_IsOK(res1)) {
26860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEqualTo" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26861 }
26862 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26864 if (!SWIG_IsOK(res2)) {
26865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEqualTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26866 }
26867 if (!argp2) {
26868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26869 }
26870 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26871 {
26872 PyThreadState* __tstate = wxPyBeginAllowThreads();
26873 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
26874 wxPyEndAllowThreads(__tstate);
26875 if (PyErr_Occurred()) SWIG_fail;
26876 }
26877 {
26878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26879 }
26880 return resultobj;
26881fail:
26882 return NULL;
26883}
26884
26885
26886SWIGINTERN PyObject *_wrap_DateTime_IsEarlierThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26887 PyObject *resultobj = 0;
26888 wxDateTime *arg1 = (wxDateTime *) 0 ;
26889 wxDateTime *arg2 = 0 ;
26890 bool result;
26891 void *argp1 = 0 ;
26892 int res1 = 0 ;
26893 void *argp2 = 0 ;
26894 int res2 = 0 ;
26895 PyObject * obj0 = 0 ;
26896 PyObject * obj1 = 0 ;
26897 char * kwnames[] = {
26898 (char *) "self",(char *) "datetime", NULL
26899 };
26900
26901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) SWIG_fail;
26902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26903 if (!SWIG_IsOK(res1)) {
26904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEarlierThan" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26905 }
26906 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26908 if (!SWIG_IsOK(res2)) {
26909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEarlierThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26910 }
26911 if (!argp2) {
26912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEarlierThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26913 }
26914 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26915 {
26916 PyThreadState* __tstate = wxPyBeginAllowThreads();
26917 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
26918 wxPyEndAllowThreads(__tstate);
26919 if (PyErr_Occurred()) SWIG_fail;
26920 }
26921 {
26922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26923 }
26924 return resultobj;
26925fail:
26926 return NULL;
26927}
26928
26929
26930SWIGINTERN PyObject *_wrap_DateTime_IsLaterThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26931 PyObject *resultobj = 0;
26932 wxDateTime *arg1 = (wxDateTime *) 0 ;
26933 wxDateTime *arg2 = 0 ;
26934 bool result;
26935 void *argp1 = 0 ;
26936 int res1 = 0 ;
26937 void *argp2 = 0 ;
26938 int res2 = 0 ;
26939 PyObject * obj0 = 0 ;
26940 PyObject * obj1 = 0 ;
26941 char * kwnames[] = {
26942 (char *) "self",(char *) "datetime", NULL
26943 };
26944
26945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) SWIG_fail;
26946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26947 if (!SWIG_IsOK(res1)) {
26948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsLaterThan" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26949 }
26950 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
26952 if (!SWIG_IsOK(res2)) {
26953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsLaterThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26954 }
26955 if (!argp2) {
26956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsLaterThan" "', expected argument " "2"" of type '" "wxDateTime const &""'");
26957 }
26958 arg2 = reinterpret_cast< wxDateTime * >(argp2);
26959 {
26960 PyThreadState* __tstate = wxPyBeginAllowThreads();
26961 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
26962 wxPyEndAllowThreads(__tstate);
26963 if (PyErr_Occurred()) SWIG_fail;
26964 }
26965 {
26966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26967 }
26968 return resultobj;
26969fail:
26970 return NULL;
26971}
26972
26973
26974SWIGINTERN PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26975 PyObject *resultobj = 0;
26976 wxDateTime *arg1 = (wxDateTime *) 0 ;
26977 wxDateTime *arg2 = 0 ;
26978 wxDateTime *arg3 = 0 ;
26979 bool result;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 void *argp2 = 0 ;
26983 int res2 = 0 ;
26984 void *argp3 = 0 ;
26985 int res3 = 0 ;
26986 PyObject * obj0 = 0 ;
26987 PyObject * obj1 = 0 ;
26988 PyObject * obj2 = 0 ;
26989 char * kwnames[] = {
26990 (char *) "self",(char *) "t1",(char *) "t2", NULL
26991 };
26992
26993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
26995 if (!SWIG_IsOK(res1)) {
26996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "1"" of type '" "wxDateTime const *""'");
26997 }
26998 arg1 = reinterpret_cast< wxDateTime * >(argp1);
26999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27000 if (!SWIG_IsOK(res2)) {
27001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27002 }
27003 if (!argp2) {
27004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27005 }
27006 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
27008 if (!SWIG_IsOK(res3)) {
27009 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27010 }
27011 if (!argp3) {
27012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsStrictlyBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27013 }
27014 arg3 = reinterpret_cast< wxDateTime * >(argp3);
27015 {
27016 PyThreadState* __tstate = wxPyBeginAllowThreads();
27017 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
27018 wxPyEndAllowThreads(__tstate);
27019 if (PyErr_Occurred()) SWIG_fail;
27020 }
27021 {
27022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27023 }
27024 return resultobj;
27025fail:
27026 return NULL;
27027}
27028
27029
27030SWIGINTERN PyObject *_wrap_DateTime_IsBetween(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27031 PyObject *resultobj = 0;
27032 wxDateTime *arg1 = (wxDateTime *) 0 ;
27033 wxDateTime *arg2 = 0 ;
27034 wxDateTime *arg3 = 0 ;
27035 bool result;
27036 void *argp1 = 0 ;
27037 int res1 = 0 ;
27038 void *argp2 = 0 ;
27039 int res2 = 0 ;
27040 void *argp3 = 0 ;
27041 int res3 = 0 ;
27042 PyObject * obj0 = 0 ;
27043 PyObject * obj1 = 0 ;
27044 PyObject * obj2 = 0 ;
27045 char * kwnames[] = {
27046 (char *) "self",(char *) "t1",(char *) "t2", NULL
27047 };
27048
27049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27051 if (!SWIG_IsOK(res1)) {
27052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsBetween" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27053 }
27054 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27056 if (!SWIG_IsOK(res2)) {
27057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27058 }
27059 if (!argp2) {
27060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsBetween" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27061 }
27062 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27063 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
27064 if (!SWIG_IsOK(res3)) {
27065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27066 }
27067 if (!argp3) {
27068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsBetween" "', expected argument " "3"" of type '" "wxDateTime const &""'");
27069 }
27070 arg3 = reinterpret_cast< wxDateTime * >(argp3);
27071 {
27072 PyThreadState* __tstate = wxPyBeginAllowThreads();
27073 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
27074 wxPyEndAllowThreads(__tstate);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
27077 {
27078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27079 }
27080 return resultobj;
27081fail:
27082 return NULL;
27083}
27084
27085
27086SWIGINTERN PyObject *_wrap_DateTime_IsSameDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27087 PyObject *resultobj = 0;
27088 wxDateTime *arg1 = (wxDateTime *) 0 ;
27089 wxDateTime *arg2 = 0 ;
27090 bool result;
27091 void *argp1 = 0 ;
27092 int res1 = 0 ;
27093 void *argp2 = 0 ;
27094 int res2 = 0 ;
27095 PyObject * obj0 = 0 ;
27096 PyObject * obj1 = 0 ;
27097 char * kwnames[] = {
27098 (char *) "self",(char *) "dt", NULL
27099 };
27100
27101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) SWIG_fail;
27102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27103 if (!SWIG_IsOK(res1)) {
27104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsSameDate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27105 }
27106 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27108 if (!SWIG_IsOK(res2)) {
27109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsSameDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27110 }
27111 if (!argp2) {
27112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsSameDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27113 }
27114 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27115 {
27116 PyThreadState* __tstate = wxPyBeginAllowThreads();
27117 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
27118 wxPyEndAllowThreads(__tstate);
27119 if (PyErr_Occurred()) SWIG_fail;
27120 }
27121 {
27122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27123 }
27124 return resultobj;
27125fail:
27126 return NULL;
27127}
27128
27129
27130SWIGINTERN PyObject *_wrap_DateTime_IsSameTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27131 PyObject *resultobj = 0;
27132 wxDateTime *arg1 = (wxDateTime *) 0 ;
27133 wxDateTime *arg2 = 0 ;
27134 bool result;
27135 void *argp1 = 0 ;
27136 int res1 = 0 ;
27137 void *argp2 = 0 ;
27138 int res2 = 0 ;
27139 PyObject * obj0 = 0 ;
27140 PyObject * obj1 = 0 ;
27141 char * kwnames[] = {
27142 (char *) "self",(char *) "dt", NULL
27143 };
27144
27145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) SWIG_fail;
27146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27147 if (!SWIG_IsOK(res1)) {
27148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsSameTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27149 }
27150 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27152 if (!SWIG_IsOK(res2)) {
27153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsSameTime" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27154 }
27155 if (!argp2) {
27156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsSameTime" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27157 }
27158 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27159 {
27160 PyThreadState* __tstate = wxPyBeginAllowThreads();
27161 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
27162 wxPyEndAllowThreads(__tstate);
27163 if (PyErr_Occurred()) SWIG_fail;
27164 }
27165 {
27166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27167 }
27168 return resultobj;
27169fail:
27170 return NULL;
27171}
27172
27173
27174SWIGINTERN PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27175 PyObject *resultobj = 0;
27176 wxDateTime *arg1 = (wxDateTime *) 0 ;
27177 wxDateTime *arg2 = 0 ;
27178 wxTimeSpan *arg3 = 0 ;
27179 bool result;
27180 void *argp1 = 0 ;
27181 int res1 = 0 ;
27182 void *argp2 = 0 ;
27183 int res2 = 0 ;
27184 void *argp3 = 0 ;
27185 int res3 = 0 ;
27186 PyObject * obj0 = 0 ;
27187 PyObject * obj1 = 0 ;
27188 PyObject * obj2 = 0 ;
27189 char * kwnames[] = {
27190 (char *) "self",(char *) "dt",(char *) "ts", NULL
27191 };
27192
27193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27197 }
27198 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27200 if (!SWIG_IsOK(res2)) {
27201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27202 }
27203 if (!argp2) {
27204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualUpTo" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27205 }
27206 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27207 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27208 if (!SWIG_IsOK(res3)) {
27209 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateTime_IsEqualUpTo" "', expected argument " "3"" of type '" "wxTimeSpan const &""'");
27210 }
27211 if (!argp3) {
27212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_IsEqualUpTo" "', expected argument " "3"" of type '" "wxTimeSpan const &""'");
27213 }
27214 arg3 = reinterpret_cast< wxTimeSpan * >(argp3);
27215 {
27216 PyThreadState* __tstate = wxPyBeginAllowThreads();
27217 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
27218 wxPyEndAllowThreads(__tstate);
27219 if (PyErr_Occurred()) SWIG_fail;
27220 }
27221 {
27222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27223 }
27224 return resultobj;
27225fail:
27226 return NULL;
27227}
27228
27229
27230SWIGINTERN PyObject *_wrap_DateTime_AddTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj = 0;
27232 wxDateTime *arg1 = (wxDateTime *) 0 ;
27233 wxTimeSpan *arg2 = 0 ;
27234 wxDateTime *result = 0 ;
27235 void *argp1 = 0 ;
27236 int res1 = 0 ;
27237 void *argp2 = 0 ;
27238 int res2 = 0 ;
27239 PyObject * obj0 = 0 ;
27240 PyObject * obj1 = 0 ;
27241 char * kwnames[] = {
27242 (char *) "self",(char *) "diff", NULL
27243 };
27244
27245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) SWIG_fail;
27246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27247 if (!SWIG_IsOK(res1)) {
27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_AddTS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27249 }
27250 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27252 if (!SWIG_IsOK(res2)) {
27253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_AddTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27254 }
27255 if (!argp2) {
27256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_AddTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27257 }
27258 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27261 {
554f62e9
RD
27262 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
27263 result = (wxDateTime *) &_result_ref;
d55e5bfc 27264 }
554f62e9
RD
27265 wxPyEndAllowThreads(__tstate);
27266 if (PyErr_Occurred()) SWIG_fail;
27267 }
27268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27269 return resultobj;
27270fail:
27271 return NULL;
27272}
27273
27274
27275SWIGINTERN PyObject *_wrap_DateTime_AddDS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27276 PyObject *resultobj = 0;
27277 wxDateTime *arg1 = (wxDateTime *) 0 ;
27278 wxDateSpan *arg2 = 0 ;
27279 wxDateTime *result = 0 ;
27280 void *argp1 = 0 ;
27281 int res1 = 0 ;
27282 void *argp2 = 0 ;
27283 int res2 = 0 ;
27284 PyObject * obj0 = 0 ;
27285 PyObject * obj1 = 0 ;
27286 char * kwnames[] = {
27287 (char *) "self",(char *) "diff", NULL
27288 };
27289
27290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) SWIG_fail;
27291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27292 if (!SWIG_IsOK(res1)) {
27293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_AddDS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27294 }
27295 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27297 if (!SWIG_IsOK(res2)) {
27298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_AddDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27299 }
27300 if (!argp2) {
27301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_AddDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27302 }
27303 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 27306 {
554f62e9
RD
27307 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
27308 result = (wxDateTime *) &_result_ref;
093d3ff1 27309 }
554f62e9
RD
27310 wxPyEndAllowThreads(__tstate);
27311 if (PyErr_Occurred()) SWIG_fail;
27312 }
27313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27314 return resultobj;
27315fail:
27316 return NULL;
27317}
27318
27319
27320SWIGINTERN PyObject *_wrap_DateTime_SubtractTS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27321 PyObject *resultobj = 0;
27322 wxDateTime *arg1 = (wxDateTime *) 0 ;
27323 wxTimeSpan *arg2 = 0 ;
27324 wxDateTime *result = 0 ;
27325 void *argp1 = 0 ;
27326 int res1 = 0 ;
27327 void *argp2 = 0 ;
27328 int res2 = 0 ;
27329 PyObject * obj0 = 0 ;
27330 PyObject * obj1 = 0 ;
27331 char * kwnames[] = {
27332 (char *) "self",(char *) "diff", NULL
27333 };
27334
27335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) SWIG_fail;
27336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27337 if (!SWIG_IsOK(res1)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SubtractTS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27339 }
27340 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27342 if (!SWIG_IsOK(res2)) {
27343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_SubtractTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27344 }
27345 if (!argp2) {
27346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_SubtractTS" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27347 }
27348 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27349 {
27350 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27351 {
554f62e9
RD
27352 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
27353 result = (wxDateTime *) &_result_ref;
d55e5bfc 27354 }
554f62e9
RD
27355 wxPyEndAllowThreads(__tstate);
27356 if (PyErr_Occurred()) SWIG_fail;
27357 }
27358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27359 return resultobj;
27360fail:
27361 return NULL;
27362}
27363
27364
27365SWIGINTERN PyObject *_wrap_DateTime_SubtractDS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27366 PyObject *resultobj = 0;
27367 wxDateTime *arg1 = (wxDateTime *) 0 ;
27368 wxDateSpan *arg2 = 0 ;
27369 wxDateTime *result = 0 ;
27370 void *argp1 = 0 ;
27371 int res1 = 0 ;
27372 void *argp2 = 0 ;
27373 int res2 = 0 ;
27374 PyObject * obj0 = 0 ;
27375 PyObject * obj1 = 0 ;
27376 char * kwnames[] = {
27377 (char *) "self",(char *) "diff", NULL
27378 };
27379
27380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) SWIG_fail;
27381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27382 if (!SWIG_IsOK(res1)) {
27383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_SubtractDS" "', expected argument " "1"" of type '" "wxDateTime *""'");
27384 }
27385 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27387 if (!SWIG_IsOK(res2)) {
27388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_SubtractDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27389 }
27390 if (!argp2) {
27391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_SubtractDS" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27392 }
27393 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27394 {
27395 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27396 {
554f62e9
RD
27397 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
27398 result = (wxDateTime *) &_result_ref;
d55e5bfc 27399 }
554f62e9
RD
27400 wxPyEndAllowThreads(__tstate);
27401 if (PyErr_Occurred()) SWIG_fail;
27402 }
27403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
27404 return resultobj;
27405fail:
27406 return NULL;
27407}
27408
27409
27410SWIGINTERN PyObject *_wrap_DateTime_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27411 PyObject *resultobj = 0;
27412 wxDateTime *arg1 = (wxDateTime *) 0 ;
27413 wxDateTime *arg2 = 0 ;
27414 wxTimeSpan result;
27415 void *argp1 = 0 ;
27416 int res1 = 0 ;
27417 void *argp2 = 0 ;
27418 int res2 = 0 ;
27419 PyObject * obj0 = 0 ;
27420 PyObject * obj1 = 0 ;
27421 char * kwnames[] = {
27422 (char *) "self",(char *) "dt", NULL
27423 };
27424
27425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
27426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27427 if (!SWIG_IsOK(res1)) {
27428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Subtract" "', expected argument " "1"" of type '" "wxDateTime const *""'");
27429 }
27430 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27432 if (!SWIG_IsOK(res2)) {
27433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime_Subtract" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27434 }
27435 if (!argp2) {
27436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_Subtract" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27437 }
27438 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27439 {
27440 PyThreadState* __tstate = wxPyBeginAllowThreads();
27441 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
27442 wxPyEndAllowThreads(__tstate);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
27446 return resultobj;
27447fail:
27448 return NULL;
27449}
27450
27451
27452SWIGINTERN PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27453 PyObject *resultobj = 0;
27454 wxDateTime *arg1 = (wxDateTime *) 0 ;
27455 wxTimeSpan *arg2 = 0 ;
27456 wxDateTime *result = 0 ;
27457 void *argp1 = 0 ;
27458 int res1 = 0 ;
27459 void *argp2 = 0 ;
27460 int res2 = 0 ;
27461
27462 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27464 if (!SWIG_IsOK(res1)) {
27465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___iadd__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27466 }
27467 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27468 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27469 if (!SWIG_IsOK(res2)) {
27470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27471 }
27472 if (!argp2) {
27473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27474 }
27475 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27476 {
27477 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27478 {
554f62e9
RD
27479 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
27480 result = (wxDateTime *) &_result_ref;
d55e5bfc 27481 }
554f62e9
RD
27482 wxPyEndAllowThreads(__tstate);
27483 if (PyErr_Occurred()) SWIG_fail;
27484 }
27485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27486 return resultobj;
27487fail:
27488 return NULL;
27489}
27490
27491
27492SWIGINTERN PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27493 PyObject *resultobj = 0;
27494 wxDateTime *arg1 = (wxDateTime *) 0 ;
27495 wxDateSpan *arg2 = 0 ;
27496 wxDateTime *result = 0 ;
27497 void *argp1 = 0 ;
27498 int res1 = 0 ;
27499 void *argp2 = 0 ;
27500 int res2 = 0 ;
27501
27502 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___iadd__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27506 }
27507 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27508 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27509 if (!SWIG_IsOK(res2)) {
27510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27511 }
27512 if (!argp2) {
27513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27514 }
27515 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27516 {
27517 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27518 {
554f62e9
RD
27519 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
27520 result = (wxDateTime *) &_result_ref;
d55e5bfc 27521 }
554f62e9
RD
27522 wxPyEndAllowThreads(__tstate);
27523 if (PyErr_Occurred()) SWIG_fail;
27524 }
27525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27526 return resultobj;
27527fail:
27528 return NULL;
d55e5bfc
RD
27529}
27530
27531
554f62e9
RD
27532SWIGINTERN PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
27533 int argc;
27534 PyObject *argv[3];
27535
27536 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___iadd__",0,2,argv))) SWIG_fail;
27537 --argc;
27538 if (argc == 2) {
27539 int _v = 0;
d55e5bfc 27540 {
554f62e9
RD
27541 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27542 _v = SWIG_CheckState(res);
d55e5bfc 27543 }
554f62e9
RD
27544 if (!_v) goto check_1;
27545 return _wrap_DateTime___iadd____SWIG_0(self, argc, argv);
27546 }
27547check_1:
27548
27549 if (argc == 2) {
27550 return _wrap_DateTime___iadd____SWIG_1(self, argc, argv);
27551 }
27552
27553fail:
27554 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___iadd__'");
27555 return NULL;
d55e5bfc
RD
27556}
27557
27558
554f62e9
RD
27559SWIGINTERN PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27560 PyObject *resultobj = 0;
27561 wxDateTime *arg1 = (wxDateTime *) 0 ;
27562 wxTimeSpan *arg2 = 0 ;
27563 wxDateTime *result = 0 ;
27564 void *argp1 = 0 ;
27565 int res1 = 0 ;
27566 void *argp2 = 0 ;
27567 int res2 = 0 ;
27568
27569 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27571 if (!SWIG_IsOK(res1)) {
27572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___isub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27573 }
27574 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27575 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27576 if (!SWIG_IsOK(res2)) {
27577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27578 }
27579 if (!argp2) {
27580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27581 }
27582 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27583 {
27584 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27585 {
554f62e9
RD
27586 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
27587 result = (wxDateTime *) &_result_ref;
d55e5bfc 27588 }
554f62e9
RD
27589 wxPyEndAllowThreads(__tstate);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27593 return resultobj;
27594fail:
27595 return NULL;
27596}
27597
27598
27599SWIGINTERN PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27600 PyObject *resultobj = 0;
27601 wxDateTime *arg1 = (wxDateTime *) 0 ;
27602 wxDateSpan *arg2 = 0 ;
27603 wxDateTime *result = 0 ;
27604 void *argp1 = 0 ;
27605 int res1 = 0 ;
27606 void *argp2 = 0 ;
27607 int res2 = 0 ;
27608
27609 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, SWIG_POINTER_DISOWN | 0 );
27611 if (!SWIG_IsOK(res1)) {
27612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___isub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27613 }
27614 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27615 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27616 if (!SWIG_IsOK(res2)) {
27617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27618 }
27619 if (!argp2) {
27620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27621 }
27622 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27623 {
27624 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27625 {
554f62e9
RD
27626 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
27627 result = (wxDateTime *) &_result_ref;
d55e5bfc 27628 }
554f62e9
RD
27629 wxPyEndAllowThreads(__tstate);
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
27632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27633 return resultobj;
27634fail:
27635 return NULL;
d55e5bfc
RD
27636}
27637
27638
554f62e9
RD
27639SWIGINTERN PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
27640 int argc;
27641 PyObject *argv[3];
27642
27643 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___isub__",0,2,argv))) SWIG_fail;
27644 --argc;
27645 if (argc == 2) {
27646 int _v = 0;
d55e5bfc 27647 {
554f62e9
RD
27648 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27649 _v = SWIG_CheckState(res);
d55e5bfc 27650 }
554f62e9
RD
27651 if (!_v) goto check_1;
27652 return _wrap_DateTime___isub____SWIG_0(self, argc, argv);
27653 }
27654check_1:
27655
27656 if (argc == 2) {
27657 return _wrap_DateTime___isub____SWIG_1(self, argc, argv);
27658 }
27659
27660fail:
27661 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'DateTime___isub__'");
27662 return NULL;
d55e5bfc
RD
27663}
27664
27665
554f62e9
RD
27666SWIGINTERN PyObject *_wrap_DateTime___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27667 PyObject *resultobj = 0;
27668 wxDateTime *arg1 = (wxDateTime *) 0 ;
27669 wxTimeSpan *arg2 = 0 ;
27670 wxDateTime result;
27671 void *argp1 = 0 ;
27672 int res1 = 0 ;
27673 void *argp2 = 0 ;
27674 int res2 = 0 ;
27675
27676 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27678 if (!SWIG_IsOK(res1)) {
27679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___add__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27680 }
27681 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27682 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27683 if (!SWIG_IsOK(res2)) {
27684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27685 }
27686 if (!argp2) {
27687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27688 }
27689 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27690 {
27691 PyThreadState* __tstate = wxPyBeginAllowThreads();
27692 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
27693 wxPyEndAllowThreads(__tstate);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27697 return resultobj;
27698fail:
27699 return NULL;
27700}
27701
27702
27703SWIGINTERN PyObject *_wrap_DateTime___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27704 PyObject *resultobj = 0;
27705 wxDateTime *arg1 = (wxDateTime *) 0 ;
27706 wxDateSpan *arg2 = 0 ;
27707 wxDateTime result;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 void *argp2 = 0 ;
27711 int res2 = 0 ;
27712
27713 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27715 if (!SWIG_IsOK(res1)) {
27716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___add__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27717 }
27718 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27720 if (!SWIG_IsOK(res2)) {
27721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27722 }
27723 if (!argp2) {
27724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27725 }
27726 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27727 {
27728 PyThreadState* __tstate = wxPyBeginAllowThreads();
27729 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
27730 wxPyEndAllowThreads(__tstate);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 }
27733 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27734 return resultobj;
27735fail:
27736 return NULL;
d55e5bfc
RD
27737}
27738
27739
554f62e9
RD
27740SWIGINTERN PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
27741 int argc;
27742 PyObject *argv[3];
27743
27744 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___add__",0,2,argv))) SWIG_fail;
27745 --argc;
27746 if (argc == 2) {
27747 int _v = 0;
d55e5bfc 27748 {
554f62e9
RD
27749 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27750 _v = SWIG_CheckState(res);
d55e5bfc 27751 }
554f62e9
RD
27752 if (!_v) goto check_1;
27753 return _wrap_DateTime___add____SWIG_0(self, argc, argv);
27754 }
27755check_1:
27756
27757 if (argc == 2) {
27758 return _wrap_DateTime___add____SWIG_1(self, argc, argv);
27759 }
27760
27761fail:
27762 Py_INCREF(Py_NotImplemented);
27763 return Py_NotImplemented;
d55e5bfc
RD
27764}
27765
27766
554f62e9
RD
27767SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27768 PyObject *resultobj = 0;
27769 wxDateTime *arg1 = (wxDateTime *) 0 ;
27770 wxDateTime *arg2 = 0 ;
27771 wxTimeSpan result;
27772 void *argp1 = 0 ;
27773 int res1 = 0 ;
27774 void *argp2 = 0 ;
27775 int res2 = 0 ;
27776
27777 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27779 if (!SWIG_IsOK(res1)) {
27780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27781 }
27782 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27783 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
27784 if (!SWIG_IsOK(res2)) {
27785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27786 }
27787 if (!argp2) {
27788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateTime const &""'");
27789 }
27790 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27791 {
27792 PyThreadState* __tstate = wxPyBeginAllowThreads();
27793 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
27794 wxPyEndAllowThreads(__tstate);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
27798 return resultobj;
27799fail:
27800 return NULL;
27801}
27802
27803
27804SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27805 PyObject *resultobj = 0;
27806 wxDateTime *arg1 = (wxDateTime *) 0 ;
27807 wxTimeSpan *arg2 = 0 ;
27808 wxDateTime result;
27809 void *argp1 = 0 ;
27810 int res1 = 0 ;
27811 void *argp2 = 0 ;
27812 int res2 = 0 ;
27813
27814 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27816 if (!SWIG_IsOK(res1)) {
27817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27818 }
27819 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27820 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
27821 if (!SWIG_IsOK(res2)) {
27822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27823 }
27824 if (!argp2) {
27825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
27826 }
27827 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
27828 {
27829 PyThreadState* __tstate = wxPyBeginAllowThreads();
27830 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
27831 wxPyEndAllowThreads(__tstate);
27832 if (PyErr_Occurred()) SWIG_fail;
27833 }
27834 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27835 return resultobj;
27836fail:
27837 return NULL;
27838}
27839
27840
27841SWIGINTERN PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27842 PyObject *resultobj = 0;
27843 wxDateTime *arg1 = (wxDateTime *) 0 ;
27844 wxDateSpan *arg2 = 0 ;
27845 wxDateTime result;
27846 void *argp1 = 0 ;
27847 int res1 = 0 ;
27848 void *argp2 = 0 ;
27849 int res2 = 0 ;
27850
27851 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27853 if (!SWIG_IsOK(res1)) {
27854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___sub__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27855 }
27856 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27857 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
27858 if (!SWIG_IsOK(res2)) {
27859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27860 }
27861 if (!argp2) {
27862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
27863 }
27864 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
27865 {
27866 PyThreadState* __tstate = wxPyBeginAllowThreads();
27867 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
27868 wxPyEndAllowThreads(__tstate);
27869 if (PyErr_Occurred()) SWIG_fail;
27870 }
27871 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
27872 return resultobj;
27873fail:
27874 return NULL;
d55e5bfc
RD
27875}
27876
27877
554f62e9
RD
27878SWIGINTERN PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
27879 int argc;
27880 PyObject *argv[3];
27881
27882 if (!(argc = SWIG_Python_UnpackTuple(args,"DateTime___sub__",0,2,argv))) SWIG_fail;
27883 --argc;
27884 if (argc == 2) {
27885 int _v = 0;
d55e5bfc 27886 {
554f62e9
RD
27887 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDateTime, 0);
27888 _v = SWIG_CheckState(res);
d55e5bfc 27889 }
554f62e9
RD
27890 if (!_v) goto check_1;
27891 return _wrap_DateTime___sub____SWIG_0(self, argc, argv);
27892 }
27893check_1:
27894
27895 if (argc == 2) {
27896 int _v = 0;
d55e5bfc 27897 {
554f62e9
RD
27898 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxTimeSpan, 0);
27899 _v = SWIG_CheckState(res);
d55e5bfc 27900 }
554f62e9
RD
27901 if (!_v) goto check_2;
27902 return _wrap_DateTime___sub____SWIG_1(self, argc, argv);
27903 }
27904check_2:
27905
27906 if (argc == 2) {
27907 return _wrap_DateTime___sub____SWIG_2(self, argc, argv);
27908 }
27909
27910fail:
27911 Py_INCREF(Py_NotImplemented);
27912 return Py_NotImplemented;
27913}
27914
27915
27916SWIGINTERN PyObject *_wrap_DateTime___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27917 PyObject *resultobj = 0;
27918 wxDateTime *arg1 = (wxDateTime *) 0 ;
27919 wxDateTime *arg2 = (wxDateTime *) 0 ;
27920 bool result;
27921 void *argp1 = 0 ;
27922 int res1 = 0 ;
27923 void *argp2 = 0 ;
27924 int res2 = 0 ;
27925 PyObject * obj0 = 0 ;
27926 PyObject * obj1 = 0 ;
27927 char * kwnames[] = {
27928 (char *) "self",(char *) "other", NULL
27929 };
27930
27931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___lt__",kwnames,&obj0,&obj1)) SWIG_fail;
27932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27933 if (!SWIG_IsOK(res1)) {
27934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___lt__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27935 }
27936 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
27938 if (!SWIG_IsOK(res2)) {
27939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___lt__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
27940 }
27941 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27942 {
27943 PyThreadState* __tstate = wxPyBeginAllowThreads();
27944 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
27945 wxPyEndAllowThreads(__tstate);
27946 if (PyErr_Occurred()) SWIG_fail;
27947 }
27948 {
27949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27950 }
27951 return resultobj;
27952fail:
27953 return NULL;
27954}
27955
27956
27957SWIGINTERN PyObject *_wrap_DateTime___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27958 PyObject *resultobj = 0;
27959 wxDateTime *arg1 = (wxDateTime *) 0 ;
27960 wxDateTime *arg2 = (wxDateTime *) 0 ;
27961 bool result;
27962 void *argp1 = 0 ;
27963 int res1 = 0 ;
27964 void *argp2 = 0 ;
27965 int res2 = 0 ;
27966 PyObject * obj0 = 0 ;
27967 PyObject * obj1 = 0 ;
27968 char * kwnames[] = {
27969 (char *) "self",(char *) "other", NULL
27970 };
27971
27972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___le__",kwnames,&obj0,&obj1)) SWIG_fail;
27973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
27974 if (!SWIG_IsOK(res1)) {
27975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___le__" "', expected argument " "1"" of type '" "wxDateTime *""'");
27976 }
27977 arg1 = reinterpret_cast< wxDateTime * >(argp1);
27978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
27979 if (!SWIG_IsOK(res2)) {
27980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___le__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
27981 }
27982 arg2 = reinterpret_cast< wxDateTime * >(argp2);
27983 {
27984 PyThreadState* __tstate = wxPyBeginAllowThreads();
27985 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
27986 wxPyEndAllowThreads(__tstate);
27987 if (PyErr_Occurred()) SWIG_fail;
27988 }
27989 {
27990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27991 }
27992 return resultobj;
27993fail:
27994 return NULL;
27995}
27996
27997
27998SWIGINTERN PyObject *_wrap_DateTime___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27999 PyObject *resultobj = 0;
28000 wxDateTime *arg1 = (wxDateTime *) 0 ;
28001 wxDateTime *arg2 = (wxDateTime *) 0 ;
28002 bool result;
28003 void *argp1 = 0 ;
28004 int res1 = 0 ;
28005 void *argp2 = 0 ;
28006 int res2 = 0 ;
28007 PyObject * obj0 = 0 ;
28008 PyObject * obj1 = 0 ;
28009 char * kwnames[] = {
28010 (char *) "self",(char *) "other", NULL
28011 };
28012
28013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___gt__",kwnames,&obj0,&obj1)) SWIG_fail;
28014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28015 if (!SWIG_IsOK(res1)) {
28016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___gt__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28017 }
28018 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28019 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28020 if (!SWIG_IsOK(res2)) {
28021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___gt__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28022 }
28023 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28024 {
28025 PyThreadState* __tstate = wxPyBeginAllowThreads();
28026 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
28027 wxPyEndAllowThreads(__tstate);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 {
28031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28032 }
28033 return resultobj;
28034fail:
28035 return NULL;
28036}
28037
28038
28039SWIGINTERN PyObject *_wrap_DateTime___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28040 PyObject *resultobj = 0;
28041 wxDateTime *arg1 = (wxDateTime *) 0 ;
28042 wxDateTime *arg2 = (wxDateTime *) 0 ;
28043 bool result;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 void *argp2 = 0 ;
28047 int res2 = 0 ;
28048 PyObject * obj0 = 0 ;
28049 PyObject * obj1 = 0 ;
28050 char * kwnames[] = {
28051 (char *) "self",(char *) "other", NULL
28052 };
28053
28054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ge__",kwnames,&obj0,&obj1)) SWIG_fail;
28055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28056 if (!SWIG_IsOK(res1)) {
28057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___ge__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28058 }
28059 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28061 if (!SWIG_IsOK(res2)) {
28062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___ge__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28063 }
28064 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28065 {
28066 PyThreadState* __tstate = wxPyBeginAllowThreads();
28067 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
28068 wxPyEndAllowThreads(__tstate);
28069 if (PyErr_Occurred()) SWIG_fail;
28070 }
28071 {
28072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28073 }
28074 return resultobj;
28075fail:
28076 return NULL;
28077}
28078
28079
28080SWIGINTERN PyObject *_wrap_DateTime___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28081 PyObject *resultobj = 0;
28082 wxDateTime *arg1 = (wxDateTime *) 0 ;
28083 wxDateTime *arg2 = (wxDateTime *) 0 ;
28084 bool result;
28085 void *argp1 = 0 ;
28086 int res1 = 0 ;
28087 void *argp2 = 0 ;
28088 int res2 = 0 ;
28089 PyObject * obj0 = 0 ;
28090 PyObject * obj1 = 0 ;
28091 char * kwnames[] = {
28092 (char *) "self",(char *) "other", NULL
28093 };
28094
28095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
28096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28097 if (!SWIG_IsOK(res1)) {
28098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___eq__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28099 }
28100 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28102 if (!SWIG_IsOK(res2)) {
28103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___eq__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28104 }
28105 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
28109 wxPyEndAllowThreads(__tstate);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 {
28113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28114 }
28115 return resultobj;
28116fail:
28117 return NULL;
28118}
28119
28120
28121SWIGINTERN PyObject *_wrap_DateTime___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28122 PyObject *resultobj = 0;
28123 wxDateTime *arg1 = (wxDateTime *) 0 ;
28124 wxDateTime *arg2 = (wxDateTime *) 0 ;
28125 bool result;
28126 void *argp1 = 0 ;
28127 int res1 = 0 ;
28128 void *argp2 = 0 ;
28129 int res2 = 0 ;
28130 PyObject * obj0 = 0 ;
28131 PyObject * obj1 = 0 ;
28132 char * kwnames[] = {
28133 (char *) "self",(char *) "other", NULL
28134 };
28135
28136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
28137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28138 if (!SWIG_IsOK(res1)) {
28139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime___ne__" "', expected argument " "1"" of type '" "wxDateTime *""'");
28140 }
28141 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateTime, 0 | 0 );
28143 if (!SWIG_IsOK(res2)) {
28144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateTime___ne__" "', expected argument " "2"" of type '" "wxDateTime const *""'");
28145 }
28146 arg2 = reinterpret_cast< wxDateTime * >(argp2);
28147 {
28148 PyThreadState* __tstate = wxPyBeginAllowThreads();
28149 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
28150 wxPyEndAllowThreads(__tstate);
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
28153 {
28154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28155 }
28156 return resultobj;
28157fail:
28158 return NULL;
28159}
28160
28161
28162SWIGINTERN PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28163 PyObject *resultobj = 0;
28164 wxDateTime *arg1 = (wxDateTime *) 0 ;
28165 wxString *arg2 = 0 ;
28166 int result;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 bool temp2 = false ;
28170 PyObject * obj0 = 0 ;
28171 PyObject * obj1 = 0 ;
28172 char * kwnames[] = {
28173 (char *) "self",(char *) "date", NULL
28174 };
28175
28176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) SWIG_fail;
28177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28178 if (!SWIG_IsOK(res1)) {
28179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseRfc822Date" "', expected argument " "1"" of type '" "wxDateTime *""'");
28180 }
28181 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28182 {
28183 arg2 = wxString_in_helper(obj1);
28184 if (arg2 == NULL) SWIG_fail;
28185 temp2 = true;
28186 }
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 resultobj = SWIG_From_int(static_cast< int >(result));
28194 {
28195 if (temp2)
28196 delete arg2;
28197 }
28198 return resultobj;
28199fail:
28200 {
28201 if (temp2)
28202 delete arg2;
28203 }
28204 return NULL;
28205}
28206
28207
28208SWIGINTERN PyObject *_wrap_DateTime_ParseFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28209 PyObject *resultobj = 0;
28210 wxDateTime *arg1 = (wxDateTime *) 0 ;
28211 wxString *arg2 = 0 ;
28212 wxString const &arg3_defvalue = wxPyDefaultDateTimeFormat ;
28213 wxString *arg3 = (wxString *) &arg3_defvalue ;
28214 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
28215 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
28216 int result;
28217 void *argp1 = 0 ;
28218 int res1 = 0 ;
28219 bool temp2 = false ;
28220 bool temp3 = false ;
28221 void *argp4 = 0 ;
28222 int res4 = 0 ;
28223 PyObject * obj0 = 0 ;
28224 PyObject * obj1 = 0 ;
28225 PyObject * obj2 = 0 ;
28226 PyObject * obj3 = 0 ;
28227 char * kwnames[] = {
28228 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
28229 };
28230
28231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28233 if (!SWIG_IsOK(res1)) {
28234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseFormat" "', expected argument " "1"" of type '" "wxDateTime *""'");
28235 }
28236 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28237 {
28238 arg2 = wxString_in_helper(obj1);
28239 if (arg2 == NULL) SWIG_fail;
28240 temp2 = true;
28241 }
28242 if (obj2) {
d55e5bfc 28243 {
554f62e9
RD
28244 arg3 = wxString_in_helper(obj2);
28245 if (arg3 == NULL) SWIG_fail;
28246 temp3 = true;
28247 }
28248 }
28249 if (obj3) {
28250 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
28251 if (!SWIG_IsOK(res4)) {
28252 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DateTime_ParseFormat" "', expected argument " "4"" of type '" "wxDateTime const &""'");
28253 }
28254 if (!argp4) {
28255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateTime_ParseFormat" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 28256 }
554f62e9
RD
28257 arg4 = reinterpret_cast< wxDateTime * >(argp4);
28258 }
28259 {
28260 PyThreadState* __tstate = wxPyBeginAllowThreads();
28261 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
28262 wxPyEndAllowThreads(__tstate);
28263 if (PyErr_Occurred()) SWIG_fail;
28264 }
28265 resultobj = SWIG_From_int(static_cast< int >(result));
28266 {
28267 if (temp2)
28268 delete arg2;
28269 }
28270 {
28271 if (temp3)
28272 delete arg3;
28273 }
28274 return resultobj;
28275fail:
28276 {
28277 if (temp2)
28278 delete arg2;
28279 }
28280 {
28281 if (temp3)
28282 delete arg3;
28283 }
28284 return NULL;
28285}
28286
28287
28288SWIGINTERN PyObject *_wrap_DateTime_ParseDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28289 PyObject *resultobj = 0;
28290 wxDateTime *arg1 = (wxDateTime *) 0 ;
28291 wxString *arg2 = 0 ;
28292 int result;
28293 void *argp1 = 0 ;
28294 int res1 = 0 ;
28295 bool temp2 = false ;
28296 PyObject * obj0 = 0 ;
28297 PyObject * obj1 = 0 ;
28298 char * kwnames[] = {
28299 (char *) "self",(char *) "datetime", NULL
28300 };
28301
28302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) SWIG_fail;
28303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28304 if (!SWIG_IsOK(res1)) {
28305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseDateTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
28306 }
28307 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28308 {
28309 arg2 = wxString_in_helper(obj1);
28310 if (arg2 == NULL) SWIG_fail;
28311 temp2 = true;
28312 }
28313 {
28314 PyThreadState* __tstate = wxPyBeginAllowThreads();
28315 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
28316 wxPyEndAllowThreads(__tstate);
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 resultobj = SWIG_From_int(static_cast< int >(result));
28320 {
28321 if (temp2)
28322 delete arg2;
28323 }
28324 return resultobj;
28325fail:
28326 {
28327 if (temp2)
28328 delete arg2;
28329 }
28330 return NULL;
28331}
28332
28333
28334SWIGINTERN PyObject *_wrap_DateTime_ParseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28335 PyObject *resultobj = 0;
28336 wxDateTime *arg1 = (wxDateTime *) 0 ;
28337 wxString *arg2 = 0 ;
28338 int result;
28339 void *argp1 = 0 ;
28340 int res1 = 0 ;
28341 bool temp2 = false ;
28342 PyObject * obj0 = 0 ;
28343 PyObject * obj1 = 0 ;
28344 char * kwnames[] = {
28345 (char *) "self",(char *) "date", NULL
28346 };
28347
28348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) SWIG_fail;
28349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28350 if (!SWIG_IsOK(res1)) {
28351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseDate" "', expected argument " "1"" of type '" "wxDateTime *""'");
28352 }
28353 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28354 {
28355 arg2 = wxString_in_helper(obj1);
28356 if (arg2 == NULL) SWIG_fail;
28357 temp2 = true;
28358 }
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 resultobj = SWIG_From_int(static_cast< int >(result));
28366 {
28367 if (temp2)
28368 delete arg2;
28369 }
28370 return resultobj;
28371fail:
28372 {
28373 if (temp2)
28374 delete arg2;
28375 }
28376 return NULL;
28377}
28378
28379
28380SWIGINTERN PyObject *_wrap_DateTime_ParseTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28381 PyObject *resultobj = 0;
28382 wxDateTime *arg1 = (wxDateTime *) 0 ;
28383 wxString *arg2 = 0 ;
28384 int result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 bool temp2 = false ;
28388 PyObject * obj0 = 0 ;
28389 PyObject * obj1 = 0 ;
28390 char * kwnames[] = {
28391 (char *) "self",(char *) "time", NULL
28392 };
28393
28394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) SWIG_fail;
28395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28396 if (!SWIG_IsOK(res1)) {
28397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_ParseTime" "', expected argument " "1"" of type '" "wxDateTime *""'");
28398 }
28399 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28400 {
28401 arg2 = wxString_in_helper(obj1);
28402 if (arg2 == NULL) SWIG_fail;
28403 temp2 = true;
28404 }
28405 {
28406 PyThreadState* __tstate = wxPyBeginAllowThreads();
28407 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
28408 wxPyEndAllowThreads(__tstate);
28409 if (PyErr_Occurred()) SWIG_fail;
28410 }
28411 resultobj = SWIG_From_int(static_cast< int >(result));
28412 {
28413 if (temp2)
28414 delete arg2;
28415 }
28416 return resultobj;
28417fail:
28418 {
28419 if (temp2)
28420 delete arg2;
28421 }
28422 return NULL;
28423}
28424
28425
28426SWIGINTERN PyObject *_wrap_DateTime_Format(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28427 PyObject *resultobj = 0;
28428 wxDateTime *arg1 = (wxDateTime *) 0 ;
28429 wxString const &arg2_defvalue = wxPyDefaultDateTimeFormat ;
28430 wxString *arg2 = (wxString *) &arg2_defvalue ;
28431 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
28432 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
28433 wxString result;
28434 void *argp1 = 0 ;
28435 int res1 = 0 ;
28436 bool temp2 = false ;
28437 bool temp3 = false ;
28438 PyObject * obj0 = 0 ;
28439 PyObject * obj1 = 0 ;
28440 PyObject * obj2 = 0 ;
28441 char * kwnames[] = {
28442 (char *) "self",(char *) "format",(char *) "tz", NULL
28443 };
28444
28445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28447 if (!SWIG_IsOK(res1)) {
28448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_Format" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28449 }
28450 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28451 if (obj1) {
d55e5bfc 28452 {
554f62e9
RD
28453 arg2 = wxString_in_helper(obj1);
28454 if (arg2 == NULL) SWIG_fail;
28455 temp2 = true;
d55e5bfc 28456 }
554f62e9
RD
28457 }
28458 if (obj2) {
d55e5bfc 28459 {
554f62e9
RD
28460 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
28461 temp3 = true;
d55e5bfc 28462 }
554f62e9
RD
28463 }
28464 {
28465 PyThreadState* __tstate = wxPyBeginAllowThreads();
28466 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
28467 wxPyEndAllowThreads(__tstate);
28468 if (PyErr_Occurred()) SWIG_fail;
28469 }
28470 {
28471#if wxUSE_UNICODE
28472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28473#else
28474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28475#endif
28476 }
28477 {
28478 if (temp2)
28479 delete arg2;
28480 }
28481 {
28482 if (temp3) delete arg3;
28483 }
28484 return resultobj;
28485fail:
28486 {
28487 if (temp2)
28488 delete arg2;
28489 }
28490 {
28491 if (temp3) delete arg3;
28492 }
28493 return NULL;
d55e5bfc
RD
28494}
28495
28496
554f62e9
RD
28497SWIGINTERN PyObject *_wrap_DateTime_FormatDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28498 PyObject *resultobj = 0;
28499 wxDateTime *arg1 = (wxDateTime *) 0 ;
28500 wxString result;
28501 void *argp1 = 0 ;
28502 int res1 = 0 ;
28503 PyObject *swig_obj[1] ;
28504
28505 if (!args) SWIG_fail;
28506 swig_obj[0] = args;
28507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28508 if (!SWIG_IsOK(res1)) {
28509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatDate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28510 }
28511 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 result = ((wxDateTime const *)arg1)->FormatDate();
28515 wxPyEndAllowThreads(__tstate);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 {
28519#if wxUSE_UNICODE
28520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28521#else
28522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28523#endif
28524 }
28525 return resultobj;
28526fail:
28527 return NULL;
d55e5bfc
RD
28528}
28529
28530
554f62e9
RD
28531SWIGINTERN PyObject *_wrap_DateTime_FormatTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28532 PyObject *resultobj = 0;
28533 wxDateTime *arg1 = (wxDateTime *) 0 ;
28534 wxString result;
28535 void *argp1 = 0 ;
28536 int res1 = 0 ;
28537 PyObject *swig_obj[1] ;
28538
28539 if (!args) SWIG_fail;
28540 swig_obj[0] = args;
28541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28542 if (!SWIG_IsOK(res1)) {
28543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28544 }
28545 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 result = ((wxDateTime const *)arg1)->FormatTime();
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 {
28553#if wxUSE_UNICODE
28554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28555#else
28556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28557#endif
28558 }
28559 return resultobj;
28560fail:
28561 return NULL;
d55e5bfc
RD
28562}
28563
28564
554f62e9
RD
28565SWIGINTERN PyObject *_wrap_DateTime_FormatISODate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28566 PyObject *resultobj = 0;
28567 wxDateTime *arg1 = (wxDateTime *) 0 ;
28568 wxString result;
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
28571 PyObject *swig_obj[1] ;
28572
28573 if (!args) SWIG_fail;
28574 swig_obj[0] = args;
28575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28576 if (!SWIG_IsOK(res1)) {
28577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatISODate" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28578 }
28579 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28580 {
28581 PyThreadState* __tstate = wxPyBeginAllowThreads();
28582 result = ((wxDateTime const *)arg1)->FormatISODate();
28583 wxPyEndAllowThreads(__tstate);
28584 if (PyErr_Occurred()) SWIG_fail;
28585 }
28586 {
28587#if wxUSE_UNICODE
28588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28589#else
28590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28591#endif
28592 }
28593 return resultobj;
28594fail:
28595 return NULL;
d55e5bfc
RD
28596}
28597
28598
554f62e9
RD
28599SWIGINTERN PyObject *_wrap_DateTime_FormatISOTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28600 PyObject *resultobj = 0;
28601 wxDateTime *arg1 = (wxDateTime *) 0 ;
28602 wxString result;
28603 void *argp1 = 0 ;
28604 int res1 = 0 ;
28605 PyObject *swig_obj[1] ;
28606
28607 if (!args) SWIG_fail;
28608 swig_obj[0] = args;
28609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateTime, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateTime_FormatISOTime" "', expected argument " "1"" of type '" "wxDateTime const *""'");
28612 }
28613 arg1 = reinterpret_cast< wxDateTime * >(argp1);
28614 {
28615 PyThreadState* __tstate = wxPyBeginAllowThreads();
28616 result = ((wxDateTime const *)arg1)->FormatISOTime();
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 {
28621#if wxUSE_UNICODE
28622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28623#else
28624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28625#endif
28626 }
28627 return resultobj;
28628fail:
28629 return NULL;
d55e5bfc
RD
28630}
28631
28632
554f62e9
RD
28633SWIGINTERN PyObject *DateTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28634 PyObject *obj;
28635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28636 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateTime, SWIG_NewClientData(obj));
28637 return SWIG_Py_Void();
d55e5bfc
RD
28638}
28639
554f62e9
RD
28640SWIGINTERN PyObject *DateTime_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28641 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
28642}
28643
e9d6f3a4
RD
28644SWIGINTERN PyObject *_wrap_TimeSpan_Milliseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28645 PyObject *resultobj = 0;
28646 long arg1 ;
28647 wxTimeSpan result;
28648 long val1 ;
28649 int ecode1 = 0 ;
28650 PyObject * obj0 = 0 ;
28651 char * kwnames[] = {
28652 (char *) "ms", NULL
28653 };
28654
28655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Milliseconds",kwnames,&obj0)) SWIG_fail;
28656 ecode1 = SWIG_AsVal_long(obj0, &val1);
28657 if (!SWIG_IsOK(ecode1)) {
28658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Milliseconds" "', expected argument " "1"" of type '" "long""'");
28659 }
28660 arg1 = static_cast< long >(val1);
28661 {
28662 PyThreadState* __tstate = wxPyBeginAllowThreads();
28663 result = wxTimeSpan::Milliseconds(arg1);
28664 wxPyEndAllowThreads(__tstate);
28665 if (PyErr_Occurred()) SWIG_fail;
28666 }
28667 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28668 return resultobj;
28669fail:
28670 return NULL;
28671}
28672
28673
28674SWIGINTERN PyObject *_wrap_TimeSpan_Millisecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28675 PyObject *resultobj = 0;
28676 wxTimeSpan result;
28677
28678 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Millisecond",0,0,0)) SWIG_fail;
28679 {
28680 PyThreadState* __tstate = wxPyBeginAllowThreads();
28681 result = wxTimeSpan::Millisecond();
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28686 return resultobj;
28687fail:
28688 return NULL;
28689}
28690
28691
554f62e9
RD
28692SWIGINTERN PyObject *_wrap_TimeSpan_Seconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28693 PyObject *resultobj = 0;
28694 long arg1 ;
28695 wxTimeSpan result;
28696 long val1 ;
28697 int ecode1 = 0 ;
28698 PyObject * obj0 = 0 ;
28699 char * kwnames[] = {
28700 (char *) "sec", NULL
28701 };
28702
28703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) SWIG_fail;
28704 ecode1 = SWIG_AsVal_long(obj0, &val1);
28705 if (!SWIG_IsOK(ecode1)) {
28706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Seconds" "', expected argument " "1"" of type '" "long""'");
28707 }
28708 arg1 = static_cast< long >(val1);
28709 {
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
28711 result = wxTimeSpan::Seconds(arg1);
28712 wxPyEndAllowThreads(__tstate);
28713 if (PyErr_Occurred()) SWIG_fail;
28714 }
28715 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28716 return resultobj;
28717fail:
28718 return NULL;
d55e5bfc
RD
28719}
28720
28721
554f62e9
RD
28722SWIGINTERN PyObject *_wrap_TimeSpan_Second(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28723 PyObject *resultobj = 0;
28724 wxTimeSpan result;
28725
28726 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Second",0,0,0)) SWIG_fail;
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = wxTimeSpan::Second();
28730 wxPyEndAllowThreads(__tstate);
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28734 return resultobj;
28735fail:
28736 return NULL;
28737}
28738
28739
28740SWIGINTERN PyObject *_wrap_TimeSpan_Minutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28741 PyObject *resultobj = 0;
28742 long arg1 ;
28743 wxTimeSpan result;
28744 long val1 ;
28745 int ecode1 = 0 ;
28746 PyObject * obj0 = 0 ;
28747 char * kwnames[] = {
28748 (char *) "min", NULL
28749 };
28750
28751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) SWIG_fail;
28752 ecode1 = SWIG_AsVal_long(obj0, &val1);
28753 if (!SWIG_IsOK(ecode1)) {
28754 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Minutes" "', expected argument " "1"" of type '" "long""'");
28755 }
28756 arg1 = static_cast< long >(val1);
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 result = wxTimeSpan::Minutes(arg1);
28760 wxPyEndAllowThreads(__tstate);
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28764 return resultobj;
28765fail:
28766 return NULL;
d55e5bfc
RD
28767}
28768
28769
554f62e9
RD
28770SWIGINTERN PyObject *_wrap_TimeSpan_Minute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28771 PyObject *resultobj = 0;
28772 wxTimeSpan result;
28773
28774 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Minute",0,0,0)) SWIG_fail;
28775 {
28776 PyThreadState* __tstate = wxPyBeginAllowThreads();
28777 result = wxTimeSpan::Minute();
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28782 return resultobj;
28783fail:
28784 return NULL;
28785}
28786
28787
28788SWIGINTERN PyObject *_wrap_TimeSpan_Hours(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28789 PyObject *resultobj = 0;
28790 long arg1 ;
28791 wxTimeSpan result;
28792 long val1 ;
28793 int ecode1 = 0 ;
28794 PyObject * obj0 = 0 ;
28795 char * kwnames[] = {
28796 (char *) "hours", NULL
28797 };
28798
28799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) SWIG_fail;
28800 ecode1 = SWIG_AsVal_long(obj0, &val1);
28801 if (!SWIG_IsOK(ecode1)) {
28802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Hours" "', expected argument " "1"" of type '" "long""'");
28803 }
28804 arg1 = static_cast< long >(val1);
28805 {
28806 PyThreadState* __tstate = wxPyBeginAllowThreads();
28807 result = wxTimeSpan::Hours(arg1);
28808 wxPyEndAllowThreads(__tstate);
28809 if (PyErr_Occurred()) SWIG_fail;
28810 }
28811 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28812 return resultobj;
28813fail:
28814 return NULL;
d55e5bfc
RD
28815}
28816
28817
554f62e9
RD
28818SWIGINTERN PyObject *_wrap_TimeSpan_Hour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28819 PyObject *resultobj = 0;
28820 wxTimeSpan result;
28821
28822 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Hour",0,0,0)) SWIG_fail;
28823 {
28824 PyThreadState* __tstate = wxPyBeginAllowThreads();
28825 result = wxTimeSpan::Hour();
28826 wxPyEndAllowThreads(__tstate);
28827 if (PyErr_Occurred()) SWIG_fail;
28828 }
28829 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28830 return resultobj;
28831fail:
28832 return NULL;
28833}
28834
28835
28836SWIGINTERN PyObject *_wrap_TimeSpan_Days(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28837 PyObject *resultobj = 0;
28838 long arg1 ;
28839 wxTimeSpan result;
28840 long val1 ;
28841 int ecode1 = 0 ;
28842 PyObject * obj0 = 0 ;
28843 char * kwnames[] = {
28844 (char *) "days", NULL
28845 };
28846
28847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) SWIG_fail;
28848 ecode1 = SWIG_AsVal_long(obj0, &val1);
28849 if (!SWIG_IsOK(ecode1)) {
28850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Days" "', expected argument " "1"" of type '" "long""'");
28851 }
28852 arg1 = static_cast< long >(val1);
28853 {
28854 PyThreadState* __tstate = wxPyBeginAllowThreads();
28855 result = wxTimeSpan::Days(arg1);
28856 wxPyEndAllowThreads(__tstate);
28857 if (PyErr_Occurred()) SWIG_fail;
28858 }
28859 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28860 return resultobj;
28861fail:
28862 return NULL;
d55e5bfc
RD
28863}
28864
28865
554f62e9
RD
28866SWIGINTERN PyObject *_wrap_TimeSpan_Day(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28867 PyObject *resultobj = 0;
28868 wxTimeSpan result;
28869
28870 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Day",0,0,0)) SWIG_fail;
28871 {
28872 PyThreadState* __tstate = wxPyBeginAllowThreads();
28873 result = wxTimeSpan::Day();
28874 wxPyEndAllowThreads(__tstate);
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28878 return resultobj;
28879fail:
28880 return NULL;
28881}
28882
28883
28884SWIGINTERN PyObject *_wrap_TimeSpan_Weeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj = 0;
28886 long arg1 ;
28887 wxTimeSpan result;
28888 long val1 ;
28889 int ecode1 = 0 ;
28890 PyObject * obj0 = 0 ;
28891 char * kwnames[] = {
28892 (char *) "days", NULL
28893 };
28894
28895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) SWIG_fail;
28896 ecode1 = SWIG_AsVal_long(obj0, &val1);
28897 if (!SWIG_IsOK(ecode1)) {
28898 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TimeSpan_Weeks" "', expected argument " "1"" of type '" "long""'");
28899 }
28900 arg1 = static_cast< long >(val1);
28901 {
28902 PyThreadState* __tstate = wxPyBeginAllowThreads();
28903 result = wxTimeSpan::Weeks(arg1);
28904 wxPyEndAllowThreads(__tstate);
28905 if (PyErr_Occurred()) SWIG_fail;
28906 }
28907 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28908 return resultobj;
28909fail:
28910 return NULL;
d55e5bfc
RD
28911}
28912
28913
554f62e9
RD
28914SWIGINTERN PyObject *_wrap_TimeSpan_Week(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28915 PyObject *resultobj = 0;
28916 wxTimeSpan result;
28917
28918 if (!SWIG_Python_UnpackTuple(args,"TimeSpan_Week",0,0,0)) SWIG_fail;
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 result = wxTimeSpan::Week();
28922 wxPyEndAllowThreads(__tstate);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 }
28925 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
28926 return resultobj;
28927fail:
28928 return NULL;
28929}
28930
28931
28932SWIGINTERN PyObject *_wrap_new_TimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28933 PyObject *resultobj = 0;
28934 long arg1 = (long) 0 ;
28935 long arg2 = (long) 0 ;
28936 long arg3 = (long) 0 ;
28937 long arg4 = (long) 0 ;
28938 wxTimeSpan *result = 0 ;
28939 long val1 ;
28940 int ecode1 = 0 ;
28941 long val2 ;
28942 int ecode2 = 0 ;
28943 long val3 ;
28944 int ecode3 = 0 ;
28945 long val4 ;
28946 int ecode4 = 0 ;
28947 PyObject * obj0 = 0 ;
28948 PyObject * obj1 = 0 ;
28949 PyObject * obj2 = 0 ;
28950 PyObject * obj3 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28956 if (obj0) {
28957 ecode1 = SWIG_AsVal_long(obj0, &val1);
28958 if (!SWIG_IsOK(ecode1)) {
28959 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimeSpan" "', expected argument " "1"" of type '" "long""'");
28960 }
28961 arg1 = static_cast< long >(val1);
28962 }
28963 if (obj1) {
28964 ecode2 = SWIG_AsVal_long(obj1, &val2);
28965 if (!SWIG_IsOK(ecode2)) {
28966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimeSpan" "', expected argument " "2"" of type '" "long""'");
28967 }
28968 arg2 = static_cast< long >(val2);
28969 }
28970 if (obj2) {
28971 ecode3 = SWIG_AsVal_long(obj2, &val3);
28972 if (!SWIG_IsOK(ecode3)) {
28973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TimeSpan" "', expected argument " "3"" of type '" "long""'");
28974 }
28975 arg3 = static_cast< long >(val3);
28976 }
28977 if (obj3) {
28978 ecode4 = SWIG_AsVal_long(obj3, &val4);
28979 if (!SWIG_IsOK(ecode4)) {
28980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TimeSpan" "', expected argument " "4"" of type '" "long""'");
28981 }
28982 arg4 = static_cast< long >(val4);
28983 }
28984 {
28985 PyThreadState* __tstate = wxPyBeginAllowThreads();
28986 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
28987 wxPyEndAllowThreads(__tstate);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 }
28990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_NEW | 0 );
28991 return resultobj;
28992fail:
28993 return NULL;
d55e5bfc
RD
28994}
28995
28996
554f62e9
RD
28997SWIGINTERN PyObject *_wrap_delete_TimeSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28998 PyObject *resultobj = 0;
28999 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29000 void *argp1 = 0 ;
29001 int res1 = 0 ;
29002 PyObject *swig_obj[1] ;
29003
29004 if (!args) SWIG_fail;
29005 swig_obj[0] = args;
29006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29007 if (!SWIG_IsOK(res1)) {
29008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeSpan" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29009 }
29010 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29011 {
29012 PyThreadState* __tstate = wxPyBeginAllowThreads();
29013 delete arg1;
d55e5bfc 29014
554f62e9
RD
29015 wxPyEndAllowThreads(__tstate);
29016 if (PyErr_Occurred()) SWIG_fail;
29017 }
29018 resultobj = SWIG_Py_Void();
29019 return resultobj;
29020fail:
29021 return NULL;
29022}
29023
29024
29025SWIGINTERN PyObject *_wrap_TimeSpan_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29026 PyObject *resultobj = 0;
29027 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29028 wxTimeSpan *arg2 = 0 ;
29029 wxTimeSpan *result = 0 ;
29030 void *argp1 = 0 ;
29031 int res1 = 0 ;
29032 void *argp2 = 0 ;
29033 int res2 = 0 ;
29034 PyObject * obj0 = 0 ;
29035 PyObject * obj1 = 0 ;
29036 char * kwnames[] = {
29037 (char *) "self",(char *) "diff", NULL
29038 };
29039
29040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) SWIG_fail;
29041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29042 if (!SWIG_IsOK(res1)) {
29043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Add" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29044 }
29045 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29047 if (!SWIG_IsOK(res2)) {
29048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_Add" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29049 }
29050 if (!argp2) {
29051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_Add" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29052 }
29053 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29054 {
29055 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29056 {
554f62e9
RD
29057 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
29058 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29059 }
554f62e9
RD
29060 wxPyEndAllowThreads(__tstate);
29061 if (PyErr_Occurred()) SWIG_fail;
29062 }
29063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29064 return resultobj;
29065fail:
29066 return NULL;
29067}
29068
29069
29070SWIGINTERN PyObject *_wrap_TimeSpan_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29071 PyObject *resultobj = 0;
29072 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29073 wxTimeSpan *arg2 = 0 ;
29074 wxTimeSpan *result = 0 ;
29075 void *argp1 = 0 ;
29076 int res1 = 0 ;
29077 void *argp2 = 0 ;
29078 int res2 = 0 ;
29079 PyObject * obj0 = 0 ;
29080 PyObject * obj1 = 0 ;
29081 char * kwnames[] = {
29082 (char *) "self",(char *) "diff", NULL
29083 };
29084
29085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
29086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29087 if (!SWIG_IsOK(res1)) {
29088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Subtract" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29089 }
29090 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29092 if (!SWIG_IsOK(res2)) {
29093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_Subtract" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29094 }
29095 if (!argp2) {
29096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_Subtract" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29097 }
29098 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29099 {
29100 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29101 {
554f62e9
RD
29102 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
29103 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29104 }
554f62e9
RD
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29109 return resultobj;
29110fail:
29111 return NULL;
29112}
29113
29114
29115SWIGINTERN PyObject *_wrap_TimeSpan_Multiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29116 PyObject *resultobj = 0;
29117 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29118 int arg2 ;
29119 wxTimeSpan *result = 0 ;
29120 void *argp1 = 0 ;
29121 int res1 = 0 ;
29122 int val2 ;
29123 int ecode2 = 0 ;
29124 PyObject * obj0 = 0 ;
29125 PyObject * obj1 = 0 ;
29126 char * kwnames[] = {
29127 (char *) "self",(char *) "n", NULL
29128 };
29129
29130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) SWIG_fail;
29131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29132 if (!SWIG_IsOK(res1)) {
29133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Multiply" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29134 }
29135 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29136 ecode2 = SWIG_AsVal_int(obj1, &val2);
29137 if (!SWIG_IsOK(ecode2)) {
29138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan_Multiply" "', expected argument " "2"" of type '" "int""'");
29139 }
29140 arg2 = static_cast< int >(val2);
29141 {
29142 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29143 {
554f62e9
RD
29144 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
29145 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29146 }
554f62e9
RD
29147 wxPyEndAllowThreads(__tstate);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29151 return resultobj;
29152fail:
29153 return NULL;
d55e5bfc
RD
29154}
29155
29156
554f62e9
RD
29157SWIGINTERN PyObject *_wrap_TimeSpan_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29158 PyObject *resultobj = 0;
29159 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29160 wxTimeSpan *result = 0 ;
29161 void *argp1 = 0 ;
29162 int res1 = 0 ;
29163 PyObject *swig_obj[1] ;
29164
29165 if (!args) SWIG_fail;
29166 swig_obj[0] = args;
29167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29168 if (!SWIG_IsOK(res1)) {
29169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Neg" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29170 }
29171 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29172 {
29173 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29174 {
554f62e9
RD
29175 wxTimeSpan &_result_ref = (arg1)->Neg();
29176 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29177 }
554f62e9
RD
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29182 return resultobj;
29183fail:
29184 return NULL;
d55e5bfc
RD
29185}
29186
29187
554f62e9
RD
29188SWIGINTERN PyObject *_wrap_TimeSpan_Abs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29189 PyObject *resultobj = 0;
29190 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29191 wxTimeSpan result;
29192 void *argp1 = 0 ;
29193 int res1 = 0 ;
29194 PyObject *swig_obj[1] ;
29195
29196 if (!args) SWIG_fail;
29197 swig_obj[0] = args;
29198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29199 if (!SWIG_IsOK(res1)) {
29200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Abs" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29201 }
29202 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29203 {
29204 PyThreadState* __tstate = wxPyBeginAllowThreads();
29205 result = ((wxTimeSpan const *)arg1)->Abs();
29206 wxPyEndAllowThreads(__tstate);
29207 if (PyErr_Occurred()) SWIG_fail;
29208 }
29209 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29210 return resultobj;
29211fail:
29212 return NULL;
29213}
29214
29215
29216SWIGINTERN PyObject *_wrap_TimeSpan___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29217 PyObject *resultobj = 0;
29218 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29219 wxTimeSpan *arg2 = 0 ;
29220 wxTimeSpan *result = 0 ;
29221 void *argp1 = 0 ;
29222 int res1 = 0 ;
29223 void *argp2 = 0 ;
29224 int res2 = 0 ;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29227 char * kwnames[] = {
29228 (char *) "self",(char *) "diff", NULL
29229 };
29230
29231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
29232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29233 if (!SWIG_IsOK(res1)) {
29234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___iadd__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29235 }
29236 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29238 if (!SWIG_IsOK(res2)) {
29239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29240 }
29241 if (!argp2) {
29242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___iadd__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29243 }
29244 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29245 {
29246 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29247 {
554f62e9
RD
29248 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
29249 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29250 }
554f62e9
RD
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29255 return resultobj;
29256fail:
29257 return NULL;
29258}
29259
29260
29261SWIGINTERN PyObject *_wrap_TimeSpan___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj = 0;
29263 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29264 wxTimeSpan *arg2 = 0 ;
29265 wxTimeSpan *result = 0 ;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 void *argp2 = 0 ;
29269 int res2 = 0 ;
29270 PyObject * obj0 = 0 ;
29271 PyObject * obj1 = 0 ;
29272 char * kwnames[] = {
29273 (char *) "self",(char *) "diff", NULL
29274 };
29275
29276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
29277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29278 if (!SWIG_IsOK(res1)) {
29279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___isub__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29280 }
29281 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29283 if (!SWIG_IsOK(res2)) {
29284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29285 }
29286 if (!argp2) {
29287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___isub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29288 }
29289 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29290 {
29291 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29292 {
554f62e9
RD
29293 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
29294 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29295 }
554f62e9
RD
29296 wxPyEndAllowThreads(__tstate);
29297 if (PyErr_Occurred()) SWIG_fail;
29298 }
29299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29300 return resultobj;
29301fail:
29302 return NULL;
29303}
29304
29305
29306SWIGINTERN PyObject *_wrap_TimeSpan___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29307 PyObject *resultobj = 0;
29308 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29309 int arg2 ;
29310 wxTimeSpan *result = 0 ;
29311 void *argp1 = 0 ;
29312 int res1 = 0 ;
29313 int val2 ;
29314 int ecode2 = 0 ;
29315 PyObject * obj0 = 0 ;
29316 PyObject * obj1 = 0 ;
29317 char * kwnames[] = {
29318 (char *) "self",(char *) "n", NULL
29319 };
29320
29321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
29322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_DISOWN | 0 );
29323 if (!SWIG_IsOK(res1)) {
29324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___imul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29325 }
29326 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29327 ecode2 = SWIG_AsVal_int(obj1, &val2);
29328 if (!SWIG_IsOK(ecode2)) {
29329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___imul__" "', expected argument " "2"" of type '" "int""'");
29330 }
29331 arg2 = static_cast< int >(val2);
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29334 {
554f62e9
RD
29335 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
29336 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29337 }
554f62e9
RD
29338 wxPyEndAllowThreads(__tstate);
29339 if (PyErr_Occurred()) SWIG_fail;
29340 }
29341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29342 return resultobj;
29343fail:
29344 return NULL;
d55e5bfc
RD
29345}
29346
29347
554f62e9
RD
29348SWIGINTERN PyObject *_wrap_TimeSpan___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29349 PyObject *resultobj = 0;
29350 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29351 wxTimeSpan *result = 0 ;
29352 void *argp1 = 0 ;
29353 int res1 = 0 ;
29354 PyObject *swig_obj[1] ;
29355
29356 if (!args) SWIG_fail;
29357 swig_obj[0] = args;
29358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29359 if (!SWIG_IsOK(res1)) {
29360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___neg__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29361 }
29362 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29363 {
29364 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29365 {
554f62e9
RD
29366 wxTimeSpan &_result_ref = (arg1)->operator -();
29367 result = (wxTimeSpan *) &_result_ref;
d55e5bfc 29368 }
554f62e9
RD
29369 wxPyEndAllowThreads(__tstate);
29370 if (PyErr_Occurred()) SWIG_fail;
29371 }
29372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29373 return resultobj;
29374fail:
29375 return NULL;
29376}
29377
29378
29379SWIGINTERN PyObject *_wrap_TimeSpan___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj = 0;
29381 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29382 wxTimeSpan *arg2 = 0 ;
29383 wxTimeSpan result;
29384 void *argp1 = 0 ;
29385 int res1 = 0 ;
29386 void *argp2 = 0 ;
29387 int res2 = 0 ;
29388 PyObject * obj0 = 0 ;
29389 PyObject * obj1 = 0 ;
29390 char * kwnames[] = {
29391 (char *) "self",(char *) "other", NULL
29392 };
29393
29394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) SWIG_fail;
29395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29396 if (!SWIG_IsOK(res1)) {
29397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___add__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29398 }
29399 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29401 if (!SWIG_IsOK(res2)) {
29402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29403 }
29404 if (!argp2) {
29405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___add__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29406 }
29407 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29408 {
29409 PyThreadState* __tstate = wxPyBeginAllowThreads();
29410 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
29411 wxPyEndAllowThreads(__tstate);
29412 if (PyErr_Occurred()) SWIG_fail;
29413 }
29414 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29415 return resultobj;
29416fail:
29417 return NULL;
29418}
29419
29420
29421SWIGINTERN PyObject *_wrap_TimeSpan___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29422 PyObject *resultobj = 0;
29423 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29424 wxTimeSpan *arg2 = 0 ;
29425 wxTimeSpan result;
29426 void *argp1 = 0 ;
29427 int res1 = 0 ;
29428 void *argp2 = 0 ;
29429 int res2 = 0 ;
29430 PyObject * obj0 = 0 ;
29431 PyObject * obj1 = 0 ;
29432 char * kwnames[] = {
29433 (char *) "self",(char *) "other", NULL
29434 };
29435
29436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
29437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29438 if (!SWIG_IsOK(res1)) {
29439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___sub__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29440 }
29441 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29443 if (!SWIG_IsOK(res2)) {
29444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29445 }
29446 if (!argp2) {
29447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan___sub__" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29448 }
29449 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29450 {
29451 PyThreadState* __tstate = wxPyBeginAllowThreads();
29452 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
29453 wxPyEndAllowThreads(__tstate);
29454 if (PyErr_Occurred()) SWIG_fail;
29455 }
29456 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29457 return resultobj;
29458fail:
29459 return NULL;
29460}
29461
29462
29463SWIGINTERN PyObject *_wrap_TimeSpan___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj = 0;
29465 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29466 int arg2 ;
29467 wxTimeSpan result;
29468 void *argp1 = 0 ;
29469 int res1 = 0 ;
29470 int val2 ;
29471 int ecode2 = 0 ;
29472 PyObject * obj0 = 0 ;
29473 PyObject * obj1 = 0 ;
29474 char * kwnames[] = {
29475 (char *) "self",(char *) "n", NULL
29476 };
29477
29478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) SWIG_fail;
29479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___mul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29482 }
29483 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29484 ecode2 = SWIG_AsVal_int(obj1, &val2);
29485 if (!SWIG_IsOK(ecode2)) {
29486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___mul__" "', expected argument " "2"" of type '" "int""'");
29487 }
29488 arg2 = static_cast< int >(val2);
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 result = wxTimeSpan___mul__(arg1,arg2);
29492 wxPyEndAllowThreads(__tstate);
29493 if (PyErr_Occurred()) SWIG_fail;
29494 }
29495 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29496 return resultobj;
29497fail:
29498 return NULL;
29499}
29500
29501
29502SWIGINTERN PyObject *_wrap_TimeSpan___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj = 0;
29504 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29505 int arg2 ;
29506 wxTimeSpan result;
29507 void *argp1 = 0 ;
29508 int res1 = 0 ;
29509 int val2 ;
29510 int ecode2 = 0 ;
29511 PyObject * obj0 = 0 ;
29512 PyObject * obj1 = 0 ;
29513 char * kwnames[] = {
29514 (char *) "self",(char *) "n", NULL
29515 };
29516
29517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) SWIG_fail;
29518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29519 if (!SWIG_IsOK(res1)) {
29520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___rmul__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29521 }
29522 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29523 ecode2 = SWIG_AsVal_int(obj1, &val2);
29524 if (!SWIG_IsOK(ecode2)) {
29525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeSpan___rmul__" "', expected argument " "2"" of type '" "int""'");
29526 }
29527 arg2 = static_cast< int >(val2);
29528 {
29529 PyThreadState* __tstate = wxPyBeginAllowThreads();
29530 result = wxTimeSpan___rmul__(arg1,arg2);
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_NewPointerObj((new wxTimeSpan(static_cast< const wxTimeSpan& >(result))), SWIGTYPE_p_wxTimeSpan, SWIG_POINTER_OWN | 0 );
29535 return resultobj;
29536fail:
29537 return NULL;
29538}
29539
29540
29541SWIGINTERN PyObject *_wrap_TimeSpan___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29542 PyObject *resultobj = 0;
29543 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29544 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29545 bool result;
29546 void *argp1 = 0 ;
29547 int res1 = 0 ;
29548 void *argp2 = 0 ;
29549 int res2 = 0 ;
29550 PyObject * obj0 = 0 ;
29551 PyObject * obj1 = 0 ;
29552 char * kwnames[] = {
29553 (char *) "self",(char *) "other", NULL
29554 };
29555
29556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) SWIG_fail;
29557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29558 if (!SWIG_IsOK(res1)) {
29559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___lt__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29560 }
29561 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29563 if (!SWIG_IsOK(res2)) {
29564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___lt__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29565 }
29566 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
29570 wxPyEndAllowThreads(__tstate);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 {
29574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29575 }
29576 return resultobj;
29577fail:
29578 return NULL;
29579}
29580
29581
29582SWIGINTERN PyObject *_wrap_TimeSpan___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29583 PyObject *resultobj = 0;
29584 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29585 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29586 bool result;
29587 void *argp1 = 0 ;
29588 int res1 = 0 ;
29589 void *argp2 = 0 ;
29590 int res2 = 0 ;
29591 PyObject * obj0 = 0 ;
29592 PyObject * obj1 = 0 ;
29593 char * kwnames[] = {
29594 (char *) "self",(char *) "other", NULL
29595 };
29596
29597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) SWIG_fail;
29598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___le__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29601 }
29602 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29604 if (!SWIG_IsOK(res2)) {
29605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___le__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29606 }
29607 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29608 {
29609 PyThreadState* __tstate = wxPyBeginAllowThreads();
29610 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
29611 wxPyEndAllowThreads(__tstate);
29612 if (PyErr_Occurred()) SWIG_fail;
29613 }
29614 {
29615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29616 }
29617 return resultobj;
29618fail:
29619 return NULL;
29620}
29621
29622
29623SWIGINTERN PyObject *_wrap_TimeSpan___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29624 PyObject *resultobj = 0;
29625 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29626 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29627 bool result;
29628 void *argp1 = 0 ;
29629 int res1 = 0 ;
29630 void *argp2 = 0 ;
29631 int res2 = 0 ;
29632 PyObject * obj0 = 0 ;
29633 PyObject * obj1 = 0 ;
29634 char * kwnames[] = {
29635 (char *) "self",(char *) "other", NULL
29636 };
29637
29638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) SWIG_fail;
29639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29640 if (!SWIG_IsOK(res1)) {
29641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___gt__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29642 }
29643 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29645 if (!SWIG_IsOK(res2)) {
29646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___gt__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29647 }
29648 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29649 {
29650 PyThreadState* __tstate = wxPyBeginAllowThreads();
29651 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
29655 {
29656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29657 }
29658 return resultobj;
29659fail:
29660 return NULL;
29661}
29662
29663
29664SWIGINTERN PyObject *_wrap_TimeSpan___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29665 PyObject *resultobj = 0;
29666 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29667 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29668 bool result;
29669 void *argp1 = 0 ;
29670 int res1 = 0 ;
29671 void *argp2 = 0 ;
29672 int res2 = 0 ;
29673 PyObject * obj0 = 0 ;
29674 PyObject * obj1 = 0 ;
29675 char * kwnames[] = {
29676 (char *) "self",(char *) "other", NULL
29677 };
29678
29679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) SWIG_fail;
29680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29681 if (!SWIG_IsOK(res1)) {
29682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ge__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29683 }
29684 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29686 if (!SWIG_IsOK(res2)) {
29687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ge__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29688 }
29689 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29690 {
29691 PyThreadState* __tstate = wxPyBeginAllowThreads();
29692 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
29693 wxPyEndAllowThreads(__tstate);
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 {
29697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29698 }
29699 return resultobj;
29700fail:
29701 return NULL;
29702}
29703
29704
29705SWIGINTERN PyObject *_wrap_TimeSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29706 PyObject *resultobj = 0;
29707 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29708 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29709 bool result;
29710 void *argp1 = 0 ;
29711 int res1 = 0 ;
29712 void *argp2 = 0 ;
29713 int res2 = 0 ;
29714 PyObject * obj0 = 0 ;
29715 PyObject * obj1 = 0 ;
29716 char * kwnames[] = {
29717 (char *) "self",(char *) "other", NULL
29718 };
29719
29720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
29721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29722 if (!SWIG_IsOK(res1)) {
29723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___eq__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29724 }
29725 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29726 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29727 if (!SWIG_IsOK(res2)) {
29728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___eq__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29729 }
29730 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
29734 wxPyEndAllowThreads(__tstate);
29735 if (PyErr_Occurred()) SWIG_fail;
29736 }
29737 {
29738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29739 }
29740 return resultobj;
29741fail:
29742 return NULL;
29743}
29744
29745
29746SWIGINTERN PyObject *_wrap_TimeSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29747 PyObject *resultobj = 0;
29748 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29749 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
29750 bool result;
29751 void *argp1 = 0 ;
29752 int res1 = 0 ;
29753 void *argp2 = 0 ;
29754 int res2 = 0 ;
29755 PyObject * obj0 = 0 ;
29756 PyObject * obj1 = 0 ;
29757 char * kwnames[] = {
29758 (char *) "self",(char *) "other", NULL
29759 };
29760
29761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
29762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29763 if (!SWIG_IsOK(res1)) {
29764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan___ne__" "', expected argument " "1"" of type '" "wxTimeSpan *""'");
29765 }
29766 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29768 if (!SWIG_IsOK(res2)) {
29769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan___ne__" "', expected argument " "2"" of type '" "wxTimeSpan const *""'");
29770 }
29771 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29772 {
29773 PyThreadState* __tstate = wxPyBeginAllowThreads();
29774 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
29775 wxPyEndAllowThreads(__tstate);
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
29778 {
29779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29780 }
29781 return resultobj;
29782fail:
29783 return NULL;
d55e5bfc
RD
29784}
29785
29786
554f62e9
RD
29787SWIGINTERN PyObject *_wrap_TimeSpan_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29788 PyObject *resultobj = 0;
29789 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29790 bool result;
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 PyObject *swig_obj[1] ;
29794
29795 if (!args) SWIG_fail;
29796 swig_obj[0] = args;
29797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29798 if (!SWIG_IsOK(res1)) {
29799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsNull" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29800 }
29801 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29802 {
29803 PyThreadState* __tstate = wxPyBeginAllowThreads();
29804 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
29805 wxPyEndAllowThreads(__tstate);
29806 if (PyErr_Occurred()) SWIG_fail;
29807 }
29808 {
29809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29810 }
29811 return resultobj;
29812fail:
29813 return NULL;
d55e5bfc
RD
29814}
29815
29816
554f62e9
RD
29817SWIGINTERN PyObject *_wrap_TimeSpan_IsPositive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29818 PyObject *resultobj = 0;
29819 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29820 bool result;
29821 void *argp1 = 0 ;
29822 int res1 = 0 ;
29823 PyObject *swig_obj[1] ;
29824
29825 if (!args) SWIG_fail;
29826 swig_obj[0] = args;
29827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29828 if (!SWIG_IsOK(res1)) {
29829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsPositive" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29830 }
29831 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29832 {
29833 PyThreadState* __tstate = wxPyBeginAllowThreads();
29834 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
29835 wxPyEndAllowThreads(__tstate);
29836 if (PyErr_Occurred()) SWIG_fail;
29837 }
29838 {
29839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29840 }
29841 return resultobj;
29842fail:
29843 return NULL;
d55e5bfc
RD
29844}
29845
29846
554f62e9
RD
29847SWIGINTERN PyObject *_wrap_TimeSpan_IsNegative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29848 PyObject *resultobj = 0;
29849 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29850 bool result;
29851 void *argp1 = 0 ;
29852 int res1 = 0 ;
29853 PyObject *swig_obj[1] ;
29854
29855 if (!args) SWIG_fail;
29856 swig_obj[0] = args;
29857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29858 if (!SWIG_IsOK(res1)) {
29859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsNegative" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29860 }
29861 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29862 {
29863 PyThreadState* __tstate = wxPyBeginAllowThreads();
29864 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
29865 wxPyEndAllowThreads(__tstate);
29866 if (PyErr_Occurred()) SWIG_fail;
29867 }
29868 {
29869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29870 }
29871 return resultobj;
29872fail:
29873 return NULL;
29874}
29875
29876
29877SWIGINTERN PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29878 PyObject *resultobj = 0;
29879 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29880 wxTimeSpan *arg2 = 0 ;
29881 bool result;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 void *argp2 = 0 ;
29885 int res2 = 0 ;
29886 PyObject * obj0 = 0 ;
29887 PyObject * obj1 = 0 ;
29888 char * kwnames[] = {
29889 (char *) "self",(char *) "ts", NULL
29890 };
29891
29892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) SWIG_fail;
29893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsEqualTo" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29896 }
29897 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29899 if (!SWIG_IsOK(res2)) {
29900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsEqualTo" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29901 }
29902 if (!argp2) {
29903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsEqualTo" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29904 }
29905 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 {
29913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29914 }
29915 return resultobj;
29916fail:
29917 return NULL;
29918}
29919
29920
29921SWIGINTERN PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj = 0;
29923 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29924 wxTimeSpan *arg2 = 0 ;
29925 bool result;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 void *argp2 = 0 ;
29929 int res2 = 0 ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 char * kwnames[] = {
29933 (char *) "self",(char *) "ts", NULL
29934 };
29935
29936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) SWIG_fail;
29937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29938 if (!SWIG_IsOK(res1)) {
29939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsLongerThan" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29940 }
29941 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29943 if (!SWIG_IsOK(res2)) {
29944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsLongerThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29945 }
29946 if (!argp2) {
29947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsLongerThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29948 }
29949 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29950 {
29951 PyThreadState* __tstate = wxPyBeginAllowThreads();
29952 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 {
29957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29958 }
29959 return resultobj;
29960fail:
29961 return NULL;
29962}
29963
29964
29965SWIGINTERN PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29966 PyObject *resultobj = 0;
29967 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
29968 wxTimeSpan *arg2 = 0 ;
29969 bool result;
29970 void *argp1 = 0 ;
29971 int res1 = 0 ;
29972 void *argp2 = 0 ;
29973 int res2 = 0 ;
29974 PyObject * obj0 = 0 ;
29975 PyObject * obj1 = 0 ;
29976 char * kwnames[] = {
29977 (char *) "self",(char *) "t", NULL
29978 };
29979
29980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) SWIG_fail;
29981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
29982 if (!SWIG_IsOK(res1)) {
29983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_IsShorterThan" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
29984 }
29985 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
29986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTimeSpan, 0 | 0);
29987 if (!SWIG_IsOK(res2)) {
29988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeSpan_IsShorterThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29989 }
29990 if (!argp2) {
29991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeSpan_IsShorterThan" "', expected argument " "2"" of type '" "wxTimeSpan const &""'");
29992 }
29993 arg2 = reinterpret_cast< wxTimeSpan * >(argp2);
29994 {
29995 PyThreadState* __tstate = wxPyBeginAllowThreads();
29996 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
29997 wxPyEndAllowThreads(__tstate);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 {
30001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30002 }
30003 return resultobj;
30004fail:
30005 return NULL;
d55e5bfc
RD
30006}
30007
30008
554f62e9
RD
30009SWIGINTERN PyObject *_wrap_TimeSpan_GetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30010 PyObject *resultobj = 0;
30011 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30012 int result;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 PyObject *swig_obj[1] ;
30016
30017 if (!args) SWIG_fail;
30018 swig_obj[0] = args;
30019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30020 if (!SWIG_IsOK(res1)) {
30021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetWeeks" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30022 }
30023 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30024 {
30025 PyThreadState* __tstate = wxPyBeginAllowThreads();
30026 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
30027 wxPyEndAllowThreads(__tstate);
30028 if (PyErr_Occurred()) SWIG_fail;
30029 }
30030 resultobj = SWIG_From_int(static_cast< int >(result));
30031 return resultobj;
30032fail:
30033 return NULL;
d55e5bfc
RD
30034}
30035
30036
554f62e9
RD
30037SWIGINTERN PyObject *_wrap_TimeSpan_GetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30038 PyObject *resultobj = 0;
30039 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30040 int result;
30041 void *argp1 = 0 ;
30042 int res1 = 0 ;
30043 PyObject *swig_obj[1] ;
30044
30045 if (!args) SWIG_fail;
30046 swig_obj[0] = args;
30047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30048 if (!SWIG_IsOK(res1)) {
30049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetDays" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30050 }
30051 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30052 {
30053 PyThreadState* __tstate = wxPyBeginAllowThreads();
30054 result = (int)((wxTimeSpan const *)arg1)->GetDays();
30055 wxPyEndAllowThreads(__tstate);
30056 if (PyErr_Occurred()) SWIG_fail;
30057 }
30058 resultobj = SWIG_From_int(static_cast< int >(result));
30059 return resultobj;
30060fail:
30061 return NULL;
d55e5bfc
RD
30062}
30063
30064
554f62e9
RD
30065SWIGINTERN PyObject *_wrap_TimeSpan_GetHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30066 PyObject *resultobj = 0;
30067 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30068 int result;
30069 void *argp1 = 0 ;
30070 int res1 = 0 ;
30071 PyObject *swig_obj[1] ;
30072
30073 if (!args) SWIG_fail;
30074 swig_obj[0] = args;
30075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30076 if (!SWIG_IsOK(res1)) {
30077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetHours" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30078 }
30079 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 result = (int)((wxTimeSpan const *)arg1)->GetHours();
30083 wxPyEndAllowThreads(__tstate);
30084 if (PyErr_Occurred()) SWIG_fail;
30085 }
30086 resultobj = SWIG_From_int(static_cast< int >(result));
30087 return resultobj;
30088fail:
30089 return NULL;
d55e5bfc
RD
30090}
30091
30092
554f62e9
RD
30093SWIGINTERN PyObject *_wrap_TimeSpan_GetMinutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30094 PyObject *resultobj = 0;
30095 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30096 int result;
30097 void *argp1 = 0 ;
30098 int res1 = 0 ;
30099 PyObject *swig_obj[1] ;
30100
30101 if (!args) SWIG_fail;
30102 swig_obj[0] = args;
30103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30104 if (!SWIG_IsOK(res1)) {
30105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetMinutes" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30106 }
30107 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
30111 wxPyEndAllowThreads(__tstate);
30112 if (PyErr_Occurred()) SWIG_fail;
30113 }
30114 resultobj = SWIG_From_int(static_cast< int >(result));
30115 return resultobj;
30116fail:
30117 return NULL;
d55e5bfc
RD
30118}
30119
30120
554f62e9
RD
30121SWIGINTERN PyObject *_wrap_TimeSpan_GetSeconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30122 PyObject *resultobj = 0;
30123 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30124 wxLongLong result;
30125 void *argp1 = 0 ;
30126 int res1 = 0 ;
30127 PyObject *swig_obj[1] ;
30128
30129 if (!args) SWIG_fail;
30130 swig_obj[0] = args;
30131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30132 if (!SWIG_IsOK(res1)) {
30133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetSeconds" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30134 }
30135 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30136 {
30137 PyThreadState* __tstate = wxPyBeginAllowThreads();
30138 result = ((wxTimeSpan const *)arg1)->GetSeconds();
30139 wxPyEndAllowThreads(__tstate);
30140 if (PyErr_Occurred()) SWIG_fail;
30141 }
30142 {
30143 PyObject *hi, *lo, *shifter, *shifted;
30144 hi = PyLong_FromLong( (&result)->GetHi() );
30145 lo = PyLong_FromLong( (&result)->GetLo() );
30146 shifter = PyLong_FromLong(32);
30147 shifted = PyNumber_Lshift(hi, shifter);
30148 resultobj = PyNumber_Or(shifted, lo);
30149 Py_DECREF(hi);
30150 Py_DECREF(lo);
30151 Py_DECREF(shifter);
30152 Py_DECREF(shifted);
30153 }
30154 return resultobj;
30155fail:
30156 return NULL;
d55e5bfc
RD
30157}
30158
30159
554f62e9
RD
30160SWIGINTERN PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30161 PyObject *resultobj = 0;
30162 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30163 wxLongLong result;
30164 void *argp1 = 0 ;
30165 int res1 = 0 ;
30166 PyObject *swig_obj[1] ;
30167
30168 if (!args) SWIG_fail;
30169 swig_obj[0] = args;
30170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30171 if (!SWIG_IsOK(res1)) {
30172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_GetMilliseconds" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30173 }
30174 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30175 {
30176 PyThreadState* __tstate = wxPyBeginAllowThreads();
30177 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 {
30182 PyObject *hi, *lo, *shifter, *shifted;
30183 hi = PyLong_FromLong( (&result)->GetHi() );
30184 lo = PyLong_FromLong( (&result)->GetLo() );
30185 shifter = PyLong_FromLong(32);
30186 shifted = PyNumber_Lshift(hi, shifter);
30187 resultobj = PyNumber_Or(shifted, lo);
30188 Py_DECREF(hi);
30189 Py_DECREF(lo);
30190 Py_DECREF(shifter);
30191 Py_DECREF(shifted);
30192 }
30193 return resultobj;
30194fail:
30195 return NULL;
30196}
30197
30198
30199SWIGINTERN PyObject *_wrap_TimeSpan_Format(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30200 PyObject *resultobj = 0;
30201 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
30202 wxString const &arg2_defvalue = wxPyDefaultTimeSpanFormat ;
30203 wxString *arg2 = (wxString *) &arg2_defvalue ;
30204 wxString result;
30205 void *argp1 = 0 ;
30206 int res1 = 0 ;
30207 bool temp2 = false ;
30208 PyObject * obj0 = 0 ;
30209 PyObject * obj1 = 0 ;
30210 char * kwnames[] = {
30211 (char *) "self",(char *) "format", NULL
30212 };
30213
30214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) SWIG_fail;
30215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTimeSpan, 0 | 0 );
30216 if (!SWIG_IsOK(res1)) {
30217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeSpan_Format" "', expected argument " "1"" of type '" "wxTimeSpan const *""'");
30218 }
30219 arg1 = reinterpret_cast< wxTimeSpan * >(argp1);
30220 if (obj1) {
d55e5bfc 30221 {
554f62e9
RD
30222 arg2 = wxString_in_helper(obj1);
30223 if (arg2 == NULL) SWIG_fail;
30224 temp2 = true;
d55e5bfc 30225 }
554f62e9
RD
30226 }
30227 {
30228 PyThreadState* __tstate = wxPyBeginAllowThreads();
30229 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
30230 wxPyEndAllowThreads(__tstate);
30231 if (PyErr_Occurred()) SWIG_fail;
30232 }
30233 {
30234#if wxUSE_UNICODE
30235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30236#else
30237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30238#endif
30239 }
30240 {
30241 if (temp2)
30242 delete arg2;
30243 }
30244 return resultobj;
30245fail:
30246 {
30247 if (temp2)
30248 delete arg2;
30249 }
30250 return NULL;
30251}
30252
30253
30254SWIGINTERN PyObject *TimeSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30255 PyObject *obj;
30256 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30257 SWIG_TypeNewClientData(SWIGTYPE_p_wxTimeSpan, SWIG_NewClientData(obj));
30258 return SWIG_Py_Void();
30259}
30260
30261SWIGINTERN PyObject *TimeSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30262 return SWIG_Python_InitShadowInstance(args);
30263}
30264
30265SWIGINTERN PyObject *_wrap_new_DateSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj = 0;
30267 int arg1 = (int) 0 ;
30268 int arg2 = (int) 0 ;
30269 int arg3 = (int) 0 ;
30270 int arg4 = (int) 0 ;
30271 wxDateSpan *result = 0 ;
30272 int val1 ;
30273 int ecode1 = 0 ;
30274 int val2 ;
30275 int ecode2 = 0 ;
30276 int val3 ;
30277 int ecode3 = 0 ;
30278 int val4 ;
30279 int ecode4 = 0 ;
30280 PyObject * obj0 = 0 ;
30281 PyObject * obj1 = 0 ;
30282 PyObject * obj2 = 0 ;
30283 PyObject * obj3 = 0 ;
30284 char * kwnames[] = {
30285 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
30286 };
30287
30288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30289 if (obj0) {
30290 ecode1 = SWIG_AsVal_int(obj0, &val1);
30291 if (!SWIG_IsOK(ecode1)) {
30292 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateSpan" "', expected argument " "1"" of type '" "int""'");
30293 }
30294 arg1 = static_cast< int >(val1);
30295 }
30296 if (obj1) {
30297 ecode2 = SWIG_AsVal_int(obj1, &val2);
30298 if (!SWIG_IsOK(ecode2)) {
30299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DateSpan" "', expected argument " "2"" of type '" "int""'");
30300 }
30301 arg2 = static_cast< int >(val2);
30302 }
30303 if (obj2) {
30304 ecode3 = SWIG_AsVal_int(obj2, &val3);
30305 if (!SWIG_IsOK(ecode3)) {
30306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateSpan" "', expected argument " "3"" of type '" "int""'");
30307 }
30308 arg3 = static_cast< int >(val3);
30309 }
30310 if (obj3) {
30311 ecode4 = SWIG_AsVal_int(obj3, &val4);
30312 if (!SWIG_IsOK(ecode4)) {
30313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DateSpan" "', expected argument " "4"" of type '" "int""'");
30314 }
30315 arg4 = static_cast< int >(val4);
30316 }
30317 {
30318 PyThreadState* __tstate = wxPyBeginAllowThreads();
30319 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
30320 wxPyEndAllowThreads(__tstate);
30321 if (PyErr_Occurred()) SWIG_fail;
30322 }
30323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_NEW | 0 );
30324 return resultobj;
30325fail:
30326 return NULL;
d55e5bfc
RD
30327}
30328
30329
554f62e9
RD
30330SWIGINTERN PyObject *_wrap_delete_DateSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30331 PyObject *resultobj = 0;
30332 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30333 void *argp1 = 0 ;
30334 int res1 = 0 ;
30335 PyObject *swig_obj[1] ;
30336
30337 if (!args) SWIG_fail;
30338 swig_obj[0] = args;
30339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
30340 if (!SWIG_IsOK(res1)) {
30341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateSpan" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30342 }
30343 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30344 {
30345 PyThreadState* __tstate = wxPyBeginAllowThreads();
30346 delete arg1;
d55e5bfc 30347
554f62e9
RD
30348 wxPyEndAllowThreads(__tstate);
30349 if (PyErr_Occurred()) SWIG_fail;
30350 }
30351 resultobj = SWIG_Py_Void();
30352 return resultobj;
30353fail:
30354 return NULL;
30355}
30356
30357
30358SWIGINTERN PyObject *_wrap_DateSpan_Days(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30359 PyObject *resultobj = 0;
30360 int arg1 ;
30361 wxDateSpan result;
30362 int val1 ;
30363 int ecode1 = 0 ;
30364 PyObject * obj0 = 0 ;
30365 char * kwnames[] = {
30366 (char *) "days", NULL
30367 };
30368
30369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) SWIG_fail;
30370 ecode1 = SWIG_AsVal_int(obj0, &val1);
30371 if (!SWIG_IsOK(ecode1)) {
30372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Days" "', expected argument " "1"" of type '" "int""'");
30373 }
30374 arg1 = static_cast< int >(val1);
30375 {
30376 PyThreadState* __tstate = wxPyBeginAllowThreads();
30377 result = wxDateSpan::Days(arg1);
30378 wxPyEndAllowThreads(__tstate);
30379 if (PyErr_Occurred()) SWIG_fail;
30380 }
30381 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30382 return resultobj;
30383fail:
30384 return NULL;
d55e5bfc
RD
30385}
30386
30387
554f62e9
RD
30388SWIGINTERN PyObject *_wrap_DateSpan_Day(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30389 PyObject *resultobj = 0;
30390 wxDateSpan result;
30391
30392 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Day",0,0,0)) SWIG_fail;
30393 {
30394 PyThreadState* __tstate = wxPyBeginAllowThreads();
30395 result = wxDateSpan::Day();
30396 wxPyEndAllowThreads(__tstate);
30397 if (PyErr_Occurred()) SWIG_fail;
30398 }
30399 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30400 return resultobj;
30401fail:
30402 return NULL;
30403}
30404
30405
30406SWIGINTERN PyObject *_wrap_DateSpan_Weeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30407 PyObject *resultobj = 0;
30408 int arg1 ;
30409 wxDateSpan result;
30410 int val1 ;
30411 int ecode1 = 0 ;
30412 PyObject * obj0 = 0 ;
30413 char * kwnames[] = {
30414 (char *) "weeks", NULL
30415 };
30416
30417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) SWIG_fail;
30418 ecode1 = SWIG_AsVal_int(obj0, &val1);
30419 if (!SWIG_IsOK(ecode1)) {
30420 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Weeks" "', expected argument " "1"" of type '" "int""'");
30421 }
30422 arg1 = static_cast< int >(val1);
30423 {
30424 PyThreadState* __tstate = wxPyBeginAllowThreads();
30425 result = wxDateSpan::Weeks(arg1);
30426 wxPyEndAllowThreads(__tstate);
30427 if (PyErr_Occurred()) SWIG_fail;
30428 }
30429 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30430 return resultobj;
30431fail:
30432 return NULL;
d55e5bfc
RD
30433}
30434
30435
554f62e9
RD
30436SWIGINTERN PyObject *_wrap_DateSpan_Week(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30437 PyObject *resultobj = 0;
30438 wxDateSpan result;
30439
30440 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Week",0,0,0)) SWIG_fail;
30441 {
30442 PyThreadState* __tstate = wxPyBeginAllowThreads();
30443 result = wxDateSpan::Week();
30444 wxPyEndAllowThreads(__tstate);
30445 if (PyErr_Occurred()) SWIG_fail;
30446 }
30447 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30448 return resultobj;
30449fail:
30450 return NULL;
30451}
30452
30453
30454SWIGINTERN PyObject *_wrap_DateSpan_Months(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30455 PyObject *resultobj = 0;
30456 int arg1 ;
30457 wxDateSpan result;
30458 int val1 ;
30459 int ecode1 = 0 ;
30460 PyObject * obj0 = 0 ;
30461 char * kwnames[] = {
30462 (char *) "mon", NULL
30463 };
30464
30465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) SWIG_fail;
30466 ecode1 = SWIG_AsVal_int(obj0, &val1);
30467 if (!SWIG_IsOK(ecode1)) {
30468 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Months" "', expected argument " "1"" of type '" "int""'");
30469 }
30470 arg1 = static_cast< int >(val1);
30471 {
30472 PyThreadState* __tstate = wxPyBeginAllowThreads();
30473 result = wxDateSpan::Months(arg1);
30474 wxPyEndAllowThreads(__tstate);
30475 if (PyErr_Occurred()) SWIG_fail;
30476 }
30477 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30478 return resultobj;
30479fail:
30480 return NULL;
d55e5bfc
RD
30481}
30482
30483
554f62e9
RD
30484SWIGINTERN PyObject *_wrap_DateSpan_Month(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30485 PyObject *resultobj = 0;
30486 wxDateSpan result;
30487
30488 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Month",0,0,0)) SWIG_fail;
30489 {
30490 PyThreadState* __tstate = wxPyBeginAllowThreads();
30491 result = wxDateSpan::Month();
30492 wxPyEndAllowThreads(__tstate);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30496 return resultobj;
30497fail:
30498 return NULL;
30499}
30500
30501
30502SWIGINTERN PyObject *_wrap_DateSpan_Years(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30503 PyObject *resultobj = 0;
30504 int arg1 ;
30505 wxDateSpan result;
30506 int val1 ;
30507 int ecode1 = 0 ;
30508 PyObject * obj0 = 0 ;
30509 char * kwnames[] = {
30510 (char *) "years", NULL
30511 };
30512
30513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) SWIG_fail;
30514 ecode1 = SWIG_AsVal_int(obj0, &val1);
30515 if (!SWIG_IsOK(ecode1)) {
30516 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "DateSpan_Years" "', expected argument " "1"" of type '" "int""'");
30517 }
30518 arg1 = static_cast< int >(val1);
30519 {
30520 PyThreadState* __tstate = wxPyBeginAllowThreads();
30521 result = wxDateSpan::Years(arg1);
30522 wxPyEndAllowThreads(__tstate);
30523 if (PyErr_Occurred()) SWIG_fail;
30524 }
30525 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30526 return resultobj;
30527fail:
30528 return NULL;
d55e5bfc
RD
30529}
30530
30531
554f62e9
RD
30532SWIGINTERN PyObject *_wrap_DateSpan_Year(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30533 PyObject *resultobj = 0;
30534 wxDateSpan result;
30535
30536 if (!SWIG_Python_UnpackTuple(args,"DateSpan_Year",0,0,0)) SWIG_fail;
30537 {
30538 PyThreadState* __tstate = wxPyBeginAllowThreads();
30539 result = wxDateSpan::Year();
30540 wxPyEndAllowThreads(__tstate);
30541 if (PyErr_Occurred()) SWIG_fail;
30542 }
30543 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
30544 return resultobj;
30545fail:
30546 return NULL;
30547}
30548
30549
30550SWIGINTERN PyObject *_wrap_DateSpan_SetYears(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30551 PyObject *resultobj = 0;
30552 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30553 int arg2 ;
30554 wxDateSpan *result = 0 ;
30555 void *argp1 = 0 ;
30556 int res1 = 0 ;
30557 int val2 ;
30558 int ecode2 = 0 ;
30559 PyObject * obj0 = 0 ;
30560 PyObject * obj1 = 0 ;
30561 char * kwnames[] = {
30562 (char *) "self",(char *) "n", NULL
30563 };
30564
30565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) SWIG_fail;
30566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30567 if (!SWIG_IsOK(res1)) {
30568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetYears" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30569 }
30570 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30571 ecode2 = SWIG_AsVal_int(obj1, &val2);
30572 if (!SWIG_IsOK(ecode2)) {
30573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetYears" "', expected argument " "2"" of type '" "int""'");
30574 }
30575 arg2 = static_cast< int >(val2);
30576 {
30577 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30578 {
554f62e9
RD
30579 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
30580 result = (wxDateSpan *) &_result_ref;
093d3ff1 30581 }
554f62e9
RD
30582 wxPyEndAllowThreads(__tstate);
30583 if (PyErr_Occurred()) SWIG_fail;
30584 }
30585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30586 return resultobj;
30587fail:
30588 return NULL;
30589}
30590
30591
30592SWIGINTERN PyObject *_wrap_DateSpan_SetMonths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30593 PyObject *resultobj = 0;
30594 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30595 int arg2 ;
30596 wxDateSpan *result = 0 ;
30597 void *argp1 = 0 ;
30598 int res1 = 0 ;
30599 int val2 ;
30600 int ecode2 = 0 ;
30601 PyObject * obj0 = 0 ;
30602 PyObject * obj1 = 0 ;
30603 char * kwnames[] = {
30604 (char *) "self",(char *) "n", NULL
30605 };
30606
30607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) SWIG_fail;
30608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30609 if (!SWIG_IsOK(res1)) {
30610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetMonths" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30611 }
30612 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30613 ecode2 = SWIG_AsVal_int(obj1, &val2);
30614 if (!SWIG_IsOK(ecode2)) {
30615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetMonths" "', expected argument " "2"" of type '" "int""'");
30616 }
30617 arg2 = static_cast< int >(val2);
30618 {
30619 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30620 {
554f62e9
RD
30621 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
30622 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30623 }
554f62e9
RD
30624 wxPyEndAllowThreads(__tstate);
30625 if (PyErr_Occurred()) SWIG_fail;
30626 }
30627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30628 return resultobj;
30629fail:
30630 return NULL;
30631}
30632
30633
30634SWIGINTERN PyObject *_wrap_DateSpan_SetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30635 PyObject *resultobj = 0;
30636 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30637 int arg2 ;
30638 wxDateSpan *result = 0 ;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 int val2 ;
30642 int ecode2 = 0 ;
30643 PyObject * obj0 = 0 ;
30644 PyObject * obj1 = 0 ;
30645 char * kwnames[] = {
30646 (char *) "self",(char *) "n", NULL
30647 };
30648
30649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) SWIG_fail;
30650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30651 if (!SWIG_IsOK(res1)) {
30652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetWeeks" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30653 }
30654 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30655 ecode2 = SWIG_AsVal_int(obj1, &val2);
30656 if (!SWIG_IsOK(ecode2)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetWeeks" "', expected argument " "2"" of type '" "int""'");
30658 }
30659 arg2 = static_cast< int >(val2);
30660 {
30661 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 30662 {
554f62e9
RD
30663 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
30664 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30665 }
554f62e9
RD
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30670 return resultobj;
30671fail:
30672 return NULL;
30673}
30674
30675
30676SWIGINTERN PyObject *_wrap_DateSpan_SetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj = 0;
30678 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30679 int arg2 ;
30680 wxDateSpan *result = 0 ;
30681 void *argp1 = 0 ;
30682 int res1 = 0 ;
30683 int val2 ;
30684 int ecode2 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 PyObject * obj1 = 0 ;
30687 char * kwnames[] = {
30688 (char *) "self",(char *) "n", NULL
30689 };
30690
30691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) SWIG_fail;
30692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_SetDays" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30695 }
30696 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30697 ecode2 = SWIG_AsVal_int(obj1, &val2);
30698 if (!SWIG_IsOK(ecode2)) {
30699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_SetDays" "', expected argument " "2"" of type '" "int""'");
30700 }
30701 arg2 = static_cast< int >(val2);
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 30704 {
554f62e9
RD
30705 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
30706 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30707 }
554f62e9
RD
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30712 return resultobj;
30713fail:
30714 return NULL;
d55e5bfc
RD
30715}
30716
30717
554f62e9
RD
30718SWIGINTERN PyObject *_wrap_DateSpan_GetYears(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30719 PyObject *resultobj = 0;
30720 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30721 int result;
30722 void *argp1 = 0 ;
30723 int res1 = 0 ;
30724 PyObject *swig_obj[1] ;
30725
30726 if (!args) SWIG_fail;
30727 swig_obj[0] = args;
30728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetYears" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30731 }
30732 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30733 {
30734 PyThreadState* __tstate = wxPyBeginAllowThreads();
30735 result = (int)((wxDateSpan const *)arg1)->GetYears();
30736 wxPyEndAllowThreads(__tstate);
30737 if (PyErr_Occurred()) SWIG_fail;
30738 }
30739 resultobj = SWIG_From_int(static_cast< int >(result));
30740 return resultobj;
30741fail:
30742 return NULL;
d55e5bfc
RD
30743}
30744
30745
554f62e9
RD
30746SWIGINTERN PyObject *_wrap_DateSpan_GetMonths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30747 PyObject *resultobj = 0;
30748 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30749 int result;
30750 void *argp1 = 0 ;
30751 int res1 = 0 ;
30752 PyObject *swig_obj[1] ;
30753
30754 if (!args) SWIG_fail;
30755 swig_obj[0] = args;
30756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30757 if (!SWIG_IsOK(res1)) {
30758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetMonths" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30759 }
30760 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30761 {
30762 PyThreadState* __tstate = wxPyBeginAllowThreads();
30763 result = (int)((wxDateSpan const *)arg1)->GetMonths();
30764 wxPyEndAllowThreads(__tstate);
30765 if (PyErr_Occurred()) SWIG_fail;
30766 }
30767 resultobj = SWIG_From_int(static_cast< int >(result));
30768 return resultobj;
30769fail:
30770 return NULL;
d55e5bfc
RD
30771}
30772
30773
554f62e9
RD
30774SWIGINTERN PyObject *_wrap_DateSpan_GetWeeks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30775 PyObject *resultobj = 0;
30776 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30777 int result;
30778 void *argp1 = 0 ;
30779 int res1 = 0 ;
30780 PyObject *swig_obj[1] ;
30781
30782 if (!args) SWIG_fail;
30783 swig_obj[0] = args;
30784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30785 if (!SWIG_IsOK(res1)) {
30786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetWeeks" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30787 }
30788 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30789 {
30790 PyThreadState* __tstate = wxPyBeginAllowThreads();
30791 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
30792 wxPyEndAllowThreads(__tstate);
30793 if (PyErr_Occurred()) SWIG_fail;
30794 }
30795 resultobj = SWIG_From_int(static_cast< int >(result));
30796 return resultobj;
30797fail:
30798 return NULL;
d55e5bfc
RD
30799}
30800
30801
554f62e9
RD
30802SWIGINTERN PyObject *_wrap_DateSpan_GetDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30803 PyObject *resultobj = 0;
30804 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30805 int result;
30806 void *argp1 = 0 ;
30807 int res1 = 0 ;
30808 PyObject *swig_obj[1] ;
30809
30810 if (!args) SWIG_fail;
30811 swig_obj[0] = args;
30812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30813 if (!SWIG_IsOK(res1)) {
30814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetDays" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30815 }
30816 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30817 {
30818 PyThreadState* __tstate = wxPyBeginAllowThreads();
30819 result = (int)((wxDateSpan const *)arg1)->GetDays();
30820 wxPyEndAllowThreads(__tstate);
30821 if (PyErr_Occurred()) SWIG_fail;
30822 }
30823 resultobj = SWIG_From_int(static_cast< int >(result));
30824 return resultobj;
30825fail:
30826 return NULL;
d55e5bfc
RD
30827}
30828
30829
554f62e9
RD
30830SWIGINTERN PyObject *_wrap_DateSpan_GetTotalDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30831 PyObject *resultobj = 0;
30832 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30833 int result;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 PyObject *swig_obj[1] ;
30837
30838 if (!args) SWIG_fail;
30839 swig_obj[0] = args;
30840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30841 if (!SWIG_IsOK(res1)) {
30842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_GetTotalDays" "', expected argument " "1"" of type '" "wxDateSpan const *""'");
30843 }
30844 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30845 {
30846 PyThreadState* __tstate = wxPyBeginAllowThreads();
30847 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
30848 wxPyEndAllowThreads(__tstate);
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_From_int(static_cast< int >(result));
30852 return resultobj;
30853fail:
30854 return NULL;
30855}
30856
30857
30858SWIGINTERN PyObject *_wrap_DateSpan_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30859 PyObject *resultobj = 0;
30860 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30861 wxDateSpan *arg2 = 0 ;
30862 wxDateSpan *result = 0 ;
30863 void *argp1 = 0 ;
30864 int res1 = 0 ;
30865 void *argp2 = 0 ;
30866 int res2 = 0 ;
30867 PyObject * obj0 = 0 ;
30868 PyObject * obj1 = 0 ;
30869 char * kwnames[] = {
30870 (char *) "self",(char *) "other", NULL
30871 };
30872
30873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) SWIG_fail;
30874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30875 if (!SWIG_IsOK(res1)) {
30876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Add" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30877 }
30878 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
30880 if (!SWIG_IsOK(res2)) {
30881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan_Add" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30882 }
30883 if (!argp2) {
30884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan_Add" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30885 }
30886 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 30889 {
554f62e9
RD
30890 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
30891 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30892 }
554f62e9
RD
30893 wxPyEndAllowThreads(__tstate);
30894 if (PyErr_Occurred()) SWIG_fail;
30895 }
30896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30897 return resultobj;
30898fail:
30899 return NULL;
30900}
30901
30902
30903SWIGINTERN PyObject *_wrap_DateSpan_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30904 PyObject *resultobj = 0;
30905 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30906 wxDateSpan *arg2 = 0 ;
30907 wxDateSpan *result = 0 ;
30908 void *argp1 = 0 ;
30909 int res1 = 0 ;
30910 void *argp2 = 0 ;
30911 int res2 = 0 ;
30912 PyObject * obj0 = 0 ;
30913 PyObject * obj1 = 0 ;
30914 char * kwnames[] = {
30915 (char *) "self",(char *) "other", NULL
30916 };
30917
30918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) SWIG_fail;
30919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Subtract" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30922 }
30923 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
30925 if (!SWIG_IsOK(res2)) {
30926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan_Subtract" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30927 }
30928 if (!argp2) {
30929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan_Subtract" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
30930 }
30931 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
30932 {
30933 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 30934 {
554f62e9
RD
30935 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
30936 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30937 }
554f62e9
RD
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30942 return resultobj;
30943fail:
30944 return NULL;
d55e5bfc
RD
30945}
30946
30947
554f62e9
RD
30948SWIGINTERN PyObject *_wrap_DateSpan_Neg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30949 PyObject *resultobj = 0;
30950 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30951 wxDateSpan *result = 0 ;
30952 void *argp1 = 0 ;
30953 int res1 = 0 ;
30954 PyObject *swig_obj[1] ;
30955
30956 if (!args) SWIG_fail;
30957 swig_obj[0] = args;
30958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30959 if (!SWIG_IsOK(res1)) {
30960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Neg" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30961 }
30962 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
30963 {
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 30965 {
554f62e9
RD
30966 wxDateSpan &_result_ref = (arg1)->Neg();
30967 result = (wxDateSpan *) &_result_ref;
d55e5bfc 30968 }
554f62e9
RD
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
30973 return resultobj;
30974fail:
30975 return NULL;
30976}
30977
30978
30979SWIGINTERN PyObject *_wrap_DateSpan_Multiply(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30980 PyObject *resultobj = 0;
30981 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
30982 int arg2 ;
30983 wxDateSpan *result = 0 ;
30984 void *argp1 = 0 ;
30985 int res1 = 0 ;
30986 int val2 ;
30987 int ecode2 = 0 ;
30988 PyObject * obj0 = 0 ;
30989 PyObject * obj1 = 0 ;
30990 char * kwnames[] = {
30991 (char *) "self",(char *) "factor", NULL
30992 };
30993
30994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) SWIG_fail;
30995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
30996 if (!SWIG_IsOK(res1)) {
30997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan_Multiply" "', expected argument " "1"" of type '" "wxDateSpan *""'");
30998 }
30999 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31000 ecode2 = SWIG_AsVal_int(obj1, &val2);
31001 if (!SWIG_IsOK(ecode2)) {
31002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan_Multiply" "', expected argument " "2"" of type '" "int""'");
31003 }
31004 arg2 = static_cast< int >(val2);
31005 {
31006 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 31007 {
554f62e9
RD
31008 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
31009 result = (wxDateSpan *) &_result_ref;
d55e5bfc 31010 }
554f62e9
RD
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
31015 return resultobj;
31016fail:
31017 return NULL;
31018}
31019
31020
31021SWIGINTERN PyObject *_wrap_DateSpan___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31022 PyObject *resultobj = 0;
31023 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31024 wxDateSpan *arg2 = 0 ;
31025 wxDateSpan *result = 0 ;
31026 void *argp1 = 0 ;
31027 int res1 = 0 ;
31028 void *argp2 = 0 ;
31029 int res2 = 0 ;
31030 PyObject * obj0 = 0 ;
31031 PyObject * obj1 = 0 ;
31032 char * kwnames[] = {
31033 (char *) "self",(char *) "other", NULL
31034 };
31035
31036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
31037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
31038 if (!SWIG_IsOK(res1)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___iadd__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31040 }
31041 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31043 if (!SWIG_IsOK(res2)) {
31044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31045 }
31046 if (!argp2) {
31047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___iadd__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31048 }
31049 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31050 {
31051 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 31052 {
554f62e9
RD
31053 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
31054 result = (wxDateSpan *) &_result_ref;
d55e5bfc 31055 }
554f62e9
RD
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31060 return resultobj;
31061fail:
31062 return NULL;
31063}
31064
31065
31066SWIGINTERN PyObject *_wrap_DateSpan___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31069 wxDateSpan *arg2 = 0 ;
31070 wxDateSpan *result = 0 ;
31071 void *argp1 = 0 ;
31072 int res1 = 0 ;
31073 void *argp2 = 0 ;
31074 int res2 = 0 ;
31075 PyObject * obj0 = 0 ;
31076 PyObject * obj1 = 0 ;
31077 char * kwnames[] = {
31078 (char *) "self",(char *) "other", NULL
31079 };
31080
31081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
31082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
31083 if (!SWIG_IsOK(res1)) {
31084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___isub__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31085 }
31086 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31088 if (!SWIG_IsOK(res2)) {
31089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31090 }
31091 if (!argp2) {
31092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___isub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31093 }
31094 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 31097 {
554f62e9
RD
31098 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
31099 result = (wxDateSpan *) &_result_ref;
d55e5bfc 31100 }
554f62e9
RD
31101 wxPyEndAllowThreads(__tstate);
31102 if (PyErr_Occurred()) SWIG_fail;
31103 }
31104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31105 return resultobj;
31106fail:
31107 return NULL;
d55e5bfc
RD
31108}
31109
31110
554f62e9
RD
31111SWIGINTERN PyObject *_wrap_DateSpan___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31112 PyObject *resultobj = 0;
31113 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31114 wxDateSpan *result = 0 ;
31115 void *argp1 = 0 ;
31116 int res1 = 0 ;
31117 PyObject *swig_obj[1] ;
31118
31119 if (!args) SWIG_fail;
31120 swig_obj[0] = args;
31121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31122 if (!SWIG_IsOK(res1)) {
31123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___neg__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31124 }
31125 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31126 {
31127 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 31128 {
554f62e9
RD
31129 wxDateSpan &_result_ref = (arg1)->operator -();
31130 result = (wxDateSpan *) &_result_ref;
d55e5bfc 31131 }
554f62e9
RD
31132 wxPyEndAllowThreads(__tstate);
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
31135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, 0 | 0 );
31136 return resultobj;
31137fail:
31138 return NULL;
31139}
31140
31141
31142SWIGINTERN PyObject *_wrap_DateSpan___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31143 PyObject *resultobj = 0;
31144 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31145 int arg2 ;
31146 wxDateSpan *result = 0 ;
31147 void *argp1 = 0 ;
31148 int res1 = 0 ;
31149 int val2 ;
31150 int ecode2 = 0 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 char * kwnames[] = {
31154 (char *) "self",(char *) "factor", NULL
31155 };
31156
31157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
31158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, SWIG_POINTER_DISOWN | 0 );
31159 if (!SWIG_IsOK(res1)) {
31160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___imul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31161 }
31162 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31163 ecode2 = SWIG_AsVal_int(obj1, &val2);
31164 if (!SWIG_IsOK(ecode2)) {
31165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___imul__" "', expected argument " "2"" of type '" "int""'");
31166 }
31167 arg2 = static_cast< int >(val2);
31168 {
31169 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 31170 {
554f62e9
RD
31171 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
31172 result = (wxDateSpan *) &_result_ref;
d55e5bfc 31173 }
554f62e9
RD
31174 wxPyEndAllowThreads(__tstate);
31175 if (PyErr_Occurred()) SWIG_fail;
31176 }
31177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31178 return resultobj;
31179fail:
31180 return NULL;
31181}
31182
31183
31184SWIGINTERN PyObject *_wrap_DateSpan___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31185 PyObject *resultobj = 0;
31186 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31187 wxDateSpan *arg2 = 0 ;
31188 wxDateSpan result;
31189 void *argp1 = 0 ;
31190 int res1 = 0 ;
31191 void *argp2 = 0 ;
31192 int res2 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 char * kwnames[] = {
31196 (char *) "self",(char *) "other", NULL
31197 };
31198
31199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) SWIG_fail;
31200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31201 if (!SWIG_IsOK(res1)) {
31202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___add__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31203 }
31204 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31206 if (!SWIG_IsOK(res2)) {
31207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31208 }
31209 if (!argp2) {
31210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___add__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31211 }
31212 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31213 {
31214 PyThreadState* __tstate = wxPyBeginAllowThreads();
31215 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
31216 wxPyEndAllowThreads(__tstate);
31217 if (PyErr_Occurred()) SWIG_fail;
31218 }
31219 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31220 return resultobj;
31221fail:
31222 return NULL;
31223}
31224
31225
31226SWIGINTERN PyObject *_wrap_DateSpan___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31227 PyObject *resultobj = 0;
31228 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31229 wxDateSpan *arg2 = 0 ;
31230 wxDateSpan result;
31231 void *argp1 = 0 ;
31232 int res1 = 0 ;
31233 void *argp2 = 0 ;
31234 int res2 = 0 ;
31235 PyObject * obj0 = 0 ;
31236 PyObject * obj1 = 0 ;
31237 char * kwnames[] = {
31238 (char *) "self",(char *) "other", NULL
31239 };
31240
31241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
31242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31243 if (!SWIG_IsOK(res1)) {
31244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___sub__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31245 }
31246 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateSpan, 0 | 0);
31248 if (!SWIG_IsOK(res2)) {
31249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31250 }
31251 if (!argp2) {
31252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateSpan___sub__" "', expected argument " "2"" of type '" "wxDateSpan const &""'");
31253 }
31254 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31255 {
31256 PyThreadState* __tstate = wxPyBeginAllowThreads();
31257 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
31258 wxPyEndAllowThreads(__tstate);
31259 if (PyErr_Occurred()) SWIG_fail;
31260 }
31261 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31262 return resultobj;
31263fail:
31264 return NULL;
31265}
31266
31267
31268SWIGINTERN PyObject *_wrap_DateSpan___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31269 PyObject *resultobj = 0;
31270 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31271 int arg2 ;
31272 wxDateSpan result;
31273 void *argp1 = 0 ;
31274 int res1 = 0 ;
31275 int val2 ;
31276 int ecode2 = 0 ;
31277 PyObject * obj0 = 0 ;
31278 PyObject * obj1 = 0 ;
31279 char * kwnames[] = {
31280 (char *) "self",(char *) "n", NULL
31281 };
31282
31283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) SWIG_fail;
31284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31285 if (!SWIG_IsOK(res1)) {
31286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___mul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31287 }
31288 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31289 ecode2 = SWIG_AsVal_int(obj1, &val2);
31290 if (!SWIG_IsOK(ecode2)) {
31291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___mul__" "', expected argument " "2"" of type '" "int""'");
31292 }
31293 arg2 = static_cast< int >(val2);
31294 {
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 result = wxDateSpan___mul__(arg1,arg2);
31297 wxPyEndAllowThreads(__tstate);
31298 if (PyErr_Occurred()) SWIG_fail;
31299 }
31300 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31301 return resultobj;
31302fail:
31303 return NULL;
31304}
31305
31306
31307SWIGINTERN PyObject *_wrap_DateSpan___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31308 PyObject *resultobj = 0;
31309 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31310 int arg2 ;
31311 wxDateSpan result;
31312 void *argp1 = 0 ;
31313 int res1 = 0 ;
31314 int val2 ;
31315 int ecode2 = 0 ;
31316 PyObject * obj0 = 0 ;
31317 PyObject * obj1 = 0 ;
31318 char * kwnames[] = {
31319 (char *) "self",(char *) "n", NULL
31320 };
31321
31322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) SWIG_fail;
31323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31324 if (!SWIG_IsOK(res1)) {
31325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___rmul__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31326 }
31327 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31328 ecode2 = SWIG_AsVal_int(obj1, &val2);
31329 if (!SWIG_IsOK(ecode2)) {
31330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateSpan___rmul__" "', expected argument " "2"" of type '" "int""'");
31331 }
31332 arg2 = static_cast< int >(val2);
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 result = wxDateSpan___rmul__(arg1,arg2);
31336 wxPyEndAllowThreads(__tstate);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 resultobj = SWIG_NewPointerObj((new wxDateSpan(static_cast< const wxDateSpan& >(result))), SWIGTYPE_p_wxDateSpan, SWIG_POINTER_OWN | 0 );
31340 return resultobj;
31341fail:
31342 return NULL;
31343}
31344
31345
31346SWIGINTERN PyObject *_wrap_DateSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31347 PyObject *resultobj = 0;
31348 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31349 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
31350 bool result;
31351 void *argp1 = 0 ;
31352 int res1 = 0 ;
31353 void *argp2 = 0 ;
31354 int res2 = 0 ;
31355 PyObject * obj0 = 0 ;
31356 PyObject * obj1 = 0 ;
31357 char * kwnames[] = {
31358 (char *) "self",(char *) "other", NULL
31359 };
31360
31361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
31362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31363 if (!SWIG_IsOK(res1)) {
31364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___eq__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31365 }
31366 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31368 if (!SWIG_IsOK(res2)) {
31369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___eq__" "', expected argument " "2"" of type '" "wxDateSpan const *""'");
31370 }
31371 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31372 {
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
31375 wxPyEndAllowThreads(__tstate);
31376 if (PyErr_Occurred()) SWIG_fail;
31377 }
31378 {
31379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31380 }
31381 return resultobj;
31382fail:
31383 return NULL;
31384}
31385
31386
31387SWIGINTERN PyObject *_wrap_DateSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31388 PyObject *resultobj = 0;
31389 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
31390 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
31391 bool result;
31392 void *argp1 = 0 ;
31393 int res1 = 0 ;
31394 void *argp2 = 0 ;
31395 int res2 = 0 ;
31396 PyObject * obj0 = 0 ;
31397 PyObject * obj1 = 0 ;
31398 char * kwnames[] = {
31399 (char *) "self",(char *) "other", NULL
31400 };
31401
31402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
31403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31404 if (!SWIG_IsOK(res1)) {
31405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateSpan___ne__" "', expected argument " "1"" of type '" "wxDateSpan *""'");
31406 }
31407 arg1 = reinterpret_cast< wxDateSpan * >(argp1);
31408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDateSpan, 0 | 0 );
31409 if (!SWIG_IsOK(res2)) {
31410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateSpan___ne__" "', expected argument " "2"" of type '" "wxDateSpan const *""'");
31411 }
31412 arg2 = reinterpret_cast< wxDateSpan * >(argp2);
31413 {
31414 PyThreadState* __tstate = wxPyBeginAllowThreads();
31415 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
31416 wxPyEndAllowThreads(__tstate);
31417 if (PyErr_Occurred()) SWIG_fail;
31418 }
31419 {
31420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31421 }
31422 return resultobj;
31423fail:
31424 return NULL;
31425}
d55e5bfc 31426
554f62e9
RD
31427
31428SWIGINTERN PyObject *DateSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31429 PyObject *obj;
31430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31431 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateSpan, SWIG_NewClientData(obj));
31432 return SWIG_Py_Void();
d55e5bfc
RD
31433}
31434
554f62e9
RD
31435SWIGINTERN PyObject *DateSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31436 return SWIG_Python_InitShadowInstance(args);
31437}
d55e5bfc 31438
554f62e9
RD
31439SWIGINTERN PyObject *_wrap_GetLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31440 PyObject *resultobj = 0;
31441 long result;
31442
31443 if (!SWIG_Python_UnpackTuple(args,"GetLocalTime",0,0,0)) SWIG_fail;
31444 {
31445 PyThreadState* __tstate = wxPyBeginAllowThreads();
31446 result = (long)wxGetLocalTime();
31447 wxPyEndAllowThreads(__tstate);
31448 if (PyErr_Occurred()) SWIG_fail;
31449 }
31450 resultobj = SWIG_From_long(static_cast< long >(result));
31451 return resultobj;
31452fail:
31453 return NULL;
d55e5bfc
RD
31454}
31455
31456
554f62e9
RD
31457SWIGINTERN PyObject *_wrap_GetUTCTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31458 PyObject *resultobj = 0;
31459 long result;
31460
31461 if (!SWIG_Python_UnpackTuple(args,"GetUTCTime",0,0,0)) SWIG_fail;
31462 {
31463 PyThreadState* __tstate = wxPyBeginAllowThreads();
31464 result = (long)wxGetUTCTime();
31465 wxPyEndAllowThreads(__tstate);
31466 if (PyErr_Occurred()) SWIG_fail;
31467 }
31468 resultobj = SWIG_From_long(static_cast< long >(result));
31469 return resultobj;
31470fail:
31471 return NULL;
d55e5bfc
RD
31472}
31473
31474
554f62e9
RD
31475SWIGINTERN PyObject *_wrap_GetCurrentTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31476 PyObject *resultobj = 0;
31477 long result;
31478
31479 if (!SWIG_Python_UnpackTuple(args,"GetCurrentTime",0,0,0)) SWIG_fail;
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 result = (long)wxGetCurrentTime();
31483 wxPyEndAllowThreads(__tstate);
31484 if (PyErr_Occurred()) SWIG_fail;
31485 }
31486 resultobj = SWIG_From_long(static_cast< long >(result));
31487 return resultobj;
31488fail:
31489 return NULL;
d55e5bfc
RD
31490}
31491
31492
554f62e9
RD
31493SWIGINTERN PyObject *_wrap_GetLocalTimeMillis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31494 PyObject *resultobj = 0;
31495 wxLongLong result;
31496
31497 if (!SWIG_Python_UnpackTuple(args,"GetLocalTimeMillis",0,0,0)) SWIG_fail;
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 result = wxGetLocalTimeMillis();
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 {
31505 PyObject *hi, *lo, *shifter, *shifted;
31506 hi = PyLong_FromLong( (&result)->GetHi() );
31507 lo = PyLong_FromLong( (&result)->GetLo() );
31508 shifter = PyLong_FromLong(32);
31509 shifted = PyNumber_Lshift(hi, shifter);
31510 resultobj = PyNumber_Or(shifted, lo);
31511 Py_DECREF(hi);
31512 Py_DECREF(lo);
31513 Py_DECREF(shifter);
31514 Py_DECREF(shifted);
31515 }
31516 return resultobj;
31517fail:
31518 return NULL;
d55e5bfc
RD
31519}
31520
31521
554f62e9
RD
31522SWIGINTERN int DefaultDateTime_set(PyObject *) {
31523 SWIG_Error(SWIG_AttributeError,"Variable DefaultDateTime is read-only.");
31524 return 1;
d55e5bfc
RD
31525}
31526
31527
554f62e9
RD
31528SWIGINTERN PyObject *DefaultDateTime_get(void) {
31529 PyObject *pyobj = 0;
31530
31531 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0 );
31532 return pyobj;
d55e5bfc
RD
31533}
31534
31535
554f62e9
RD
31536SWIGINTERN PyObject *_wrap_new_DataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31537 PyObject *resultobj = 0;
31538 wxDataFormatId arg1 ;
31539 wxDataFormat *result = 0 ;
31540 int val1 ;
31541 int ecode1 = 0 ;
31542 PyObject * obj0 = 0 ;
31543 char * kwnames[] = {
31544 (char *) "type", NULL
31545 };
31546
31547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) SWIG_fail;
31548 ecode1 = SWIG_AsVal_int(obj0, &val1);
31549 if (!SWIG_IsOK(ecode1)) {
31550 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DataFormat" "', expected argument " "1"" of type '" "wxDataFormatId""'");
31551 }
31552 arg1 = static_cast< wxDataFormatId >(val1);
31553 {
31554 PyThreadState* __tstate = wxPyBeginAllowThreads();
31555 result = (wxDataFormat *)new wxDataFormat(arg1);
31556 wxPyEndAllowThreads(__tstate);
31557 if (PyErr_Occurred()) SWIG_fail;
31558 }
31559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_NEW | 0 );
31560 return resultobj;
31561fail:
31562 return NULL;
d55e5bfc
RD
31563}
31564
31565
554f62e9
RD
31566SWIGINTERN PyObject *_wrap_new_CustomDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31567 PyObject *resultobj = 0;
31568 wxString *arg1 = 0 ;
31569 wxDataFormat *result = 0 ;
31570 bool temp1 = false ;
31571 PyObject * obj0 = 0 ;
31572 char * kwnames[] = {
31573 (char *) "format", NULL
31574 };
31575
31576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) SWIG_fail;
31577 {
31578 arg1 = wxString_in_helper(obj0);
31579 if (arg1 == NULL) SWIG_fail;
31580 temp1 = true;
31581 }
31582 {
31583 PyThreadState* __tstate = wxPyBeginAllowThreads();
31584 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
31589 {
31590 if (temp1)
31591 delete arg1;
31592 }
31593 return resultobj;
31594fail:
31595 {
31596 if (temp1)
31597 delete arg1;
31598 }
31599 return NULL;
d55e5bfc
RD
31600}
31601
31602
554f62e9
RD
31603SWIGINTERN PyObject *_wrap_delete_DataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31604 PyObject *resultobj = 0;
31605 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31606 void *argp1 = 0 ;
31607 int res1 = 0 ;
31608 PyObject *swig_obj[1] ;
31609
31610 if (!args) SWIG_fail;
31611 swig_obj[0] = args;
31612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, SWIG_POINTER_DISOWN | 0 );
31613 if (!SWIG_IsOK(res1)) {
31614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataFormat" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31615 }
31616 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 delete arg1;
d55e5bfc 31620
554f62e9
RD
31621 wxPyEndAllowThreads(__tstate);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 }
31624 resultobj = SWIG_Py_Void();
31625 return resultobj;
31626fail:
31627 return NULL;
31628}
31629
31630
31631SWIGINTERN PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31632 PyObject *resultobj = 0;
31633 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31634 wxDataFormatId arg2 ;
31635 bool result;
31636 void *argp1 = 0 ;
31637 int res1 = 0 ;
31638 int val2 ;
31639 int ecode2 = 0 ;
31640
31641 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31643 if (!SWIG_IsOK(res1)) {
31644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___eq__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31645 }
31646 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31647 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31648 if (!SWIG_IsOK(ecode2)) {
31649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31650 }
31651 arg2 = static_cast< wxDataFormatId >(val2);
31652 {
31653 PyThreadState* __tstate = wxPyBeginAllowThreads();
31654 result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2);
31655 wxPyEndAllowThreads(__tstate);
31656 if (PyErr_Occurred()) SWIG_fail;
31657 }
31658 {
31659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31660 }
31661 return resultobj;
31662fail:
31663 return NULL;
d55e5bfc
RD
31664}
31665
31666
554f62e9
RD
31667SWIGINTERN PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31668 PyObject *resultobj = 0;
31669 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31670 wxDataFormatId arg2 ;
31671 bool result;
31672 void *argp1 = 0 ;
31673 int res1 = 0 ;
31674 int val2 ;
31675 int ecode2 = 0 ;
31676
31677 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31679 if (!SWIG_IsOK(res1)) {
31680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___ne__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31681 }
31682 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31683 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
31684 if (!SWIG_IsOK(ecode2)) {
31685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31686 }
31687 arg2 = static_cast< wxDataFormatId >(val2);
31688 {
31689 PyThreadState* __tstate = wxPyBeginAllowThreads();
31690 result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2);
31691 wxPyEndAllowThreads(__tstate);
31692 if (PyErr_Occurred()) SWIG_fail;
31693 }
31694 {
31695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31696 }
31697 return resultobj;
31698fail:
31699 return NULL;
d55e5bfc
RD
31700}
31701
31702
554f62e9
RD
31703SWIGINTERN PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31704 PyObject *resultobj = 0;
31705 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31706 wxDataFormat *arg2 = 0 ;
31707 bool result;
31708 void *argp1 = 0 ;
31709 int res1 = 0 ;
31710 void *argp2 = 0 ;
31711 int res2 = 0 ;
31712
31713 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31715 if (!SWIG_IsOK(res1)) {
31716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___eq__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31717 }
31718 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
31720 if (!SWIG_IsOK(res2)) {
31721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31722 }
31723 if (!argp2) {
31724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataFormat___eq__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31725 }
31726 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
31727 {
31728 PyThreadState* __tstate = wxPyBeginAllowThreads();
31729 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
31730 wxPyEndAllowThreads(__tstate);
31731 if (PyErr_Occurred()) SWIG_fail;
31732 }
31733 {
31734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31735 }
31736 return resultobj;
31737fail:
31738 return NULL;
d55e5bfc
RD
31739}
31740
31741
554f62e9
RD
31742SWIGINTERN PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
31743 int argc;
31744 PyObject *argv[3];
31745
31746 if (!(argc = SWIG_Python_UnpackTuple(args,"DataFormat___eq__",0,2,argv))) SWIG_fail;
31747 --argc;
31748 if (argc == 2) {
31749 int _v = 0;
d55e5bfc 31750 {
554f62e9
RD
31751 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDataFormat, 0);
31752 _v = SWIG_CheckState(res);
d55e5bfc 31753 }
554f62e9
RD
31754 if (!_v) goto check_1;
31755 return _wrap_DataFormat___eq____SWIG_1(self, argc, argv);
31756 }
31757check_1:
31758
31759 if (argc == 2) {
31760 return _wrap_DataFormat___eq____SWIG_0(self, argc, argv);
31761 }
31762
31763fail:
31764 Py_INCREF(Py_NotImplemented);
31765 return Py_NotImplemented;
d55e5bfc
RD
31766}
31767
31768
554f62e9
RD
31769SWIGINTERN PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31770 PyObject *resultobj = 0;
31771 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31772 wxDataFormat *arg2 = 0 ;
31773 bool result;
31774 void *argp1 = 0 ;
31775 int res1 = 0 ;
31776 void *argp2 = 0 ;
31777 int res2 = 0 ;
31778
31779 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31781 if (!SWIG_IsOK(res1)) {
31782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat___ne__" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31783 }
31784 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31785 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
31786 if (!SWIG_IsOK(res2)) {
31787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31788 }
31789 if (!argp2) {
31790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataFormat___ne__" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
31791 }
31792 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
31793 {
31794 PyThreadState* __tstate = wxPyBeginAllowThreads();
31795 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
31796 wxPyEndAllowThreads(__tstate);
31797 if (PyErr_Occurred()) SWIG_fail;
31798 }
31799 {
31800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31801 }
31802 return resultobj;
31803fail:
31804 return NULL;
d55e5bfc
RD
31805}
31806
31807
554f62e9
RD
31808SWIGINTERN PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
31809 int argc;
31810 PyObject *argv[3];
31811
31812 if (!(argc = SWIG_Python_UnpackTuple(args,"DataFormat___ne__",0,2,argv))) SWIG_fail;
31813 --argc;
31814 if (argc == 2) {
31815 int _v = 0;
d55e5bfc 31816 {
554f62e9
RD
31817 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxDataFormat, 0);
31818 _v = SWIG_CheckState(res);
d55e5bfc 31819 }
554f62e9
RD
31820 if (!_v) goto check_1;
31821 return _wrap_DataFormat___ne____SWIG_1(self, argc, argv);
31822 }
31823check_1:
31824
31825 if (argc == 2) {
31826 return _wrap_DataFormat___ne____SWIG_0(self, argc, argv);
31827 }
31828
31829fail:
31830 Py_INCREF(Py_NotImplemented);
31831 return Py_NotImplemented;
31832}
31833
31834
31835SWIGINTERN PyObject *_wrap_DataFormat_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31836 PyObject *resultobj = 0;
31837 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31838 wxDataFormatId arg2 ;
31839 void *argp1 = 0 ;
31840 int res1 = 0 ;
31841 int val2 ;
31842 int ecode2 = 0 ;
31843 PyObject * obj0 = 0 ;
31844 PyObject * obj1 = 0 ;
31845 char * kwnames[] = {
31846 (char *) "self",(char *) "format", NULL
31847 };
31848
31849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
31850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31851 if (!SWIG_IsOK(res1)) {
31852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_SetType" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31853 }
31854 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31855 ecode2 = SWIG_AsVal_int(obj1, &val2);
31856 if (!SWIG_IsOK(ecode2)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataFormat_SetType" "', expected argument " "2"" of type '" "wxDataFormatId""'");
31858 }
31859 arg2 = static_cast< wxDataFormatId >(val2);
31860 {
31861 PyThreadState* __tstate = wxPyBeginAllowThreads();
31862 (arg1)->SetType(arg2);
31863 wxPyEndAllowThreads(__tstate);
31864 if (PyErr_Occurred()) SWIG_fail;
31865 }
31866 resultobj = SWIG_Py_Void();
31867 return resultobj;
31868fail:
31869 return NULL;
d55e5bfc
RD
31870}
31871
31872
554f62e9
RD
31873SWIGINTERN PyObject *_wrap_DataFormat_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31874 PyObject *resultobj = 0;
31875 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31876 wxDataFormatId result;
31877 void *argp1 = 0 ;
31878 int res1 = 0 ;
31879 PyObject *swig_obj[1] ;
31880
31881 if (!args) SWIG_fail;
31882 swig_obj[0] = args;
31883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31884 if (!SWIG_IsOK(res1)) {
31885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_GetType" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31886 }
31887 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31888 {
31889 PyThreadState* __tstate = wxPyBeginAllowThreads();
31890 result = (wxDataFormatId)((wxDataFormat const *)arg1)->GetType();
31891 wxPyEndAllowThreads(__tstate);
31892 if (PyErr_Occurred()) SWIG_fail;
31893 }
31894 resultobj = SWIG_From_int(static_cast< int >(result));
31895 return resultobj;
31896fail:
31897 return NULL;
d55e5bfc
RD
31898}
31899
31900
554f62e9
RD
31901SWIGINTERN PyObject *_wrap_DataFormat_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31902 PyObject *resultobj = 0;
31903 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31904 wxString result;
31905 void *argp1 = 0 ;
31906 int res1 = 0 ;
31907 PyObject *swig_obj[1] ;
31908
31909 if (!args) SWIG_fail;
31910 swig_obj[0] = args;
31911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31912 if (!SWIG_IsOK(res1)) {
31913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_GetId" "', expected argument " "1"" of type '" "wxDataFormat const *""'");
31914 }
31915 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31916 {
31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
31918 result = ((wxDataFormat const *)arg1)->GetId();
31919 wxPyEndAllowThreads(__tstate);
31920 if (PyErr_Occurred()) SWIG_fail;
31921 }
31922 {
31923#if wxUSE_UNICODE
31924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31925#else
31926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31927#endif
31928 }
31929 return resultobj;
31930fail:
31931 return NULL;
31932}
31933
31934
31935SWIGINTERN PyObject *_wrap_DataFormat_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31936 PyObject *resultobj = 0;
31937 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
31938 wxString *arg2 = 0 ;
31939 void *argp1 = 0 ;
31940 int res1 = 0 ;
31941 bool temp2 = false ;
31942 PyObject * obj0 = 0 ;
31943 PyObject * obj1 = 0 ;
31944 char * kwnames[] = {
31945 (char *) "self",(char *) "format", NULL
31946 };
31947
31948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataFormat, 0 | 0 );
31950 if (!SWIG_IsOK(res1)) {
31951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataFormat_SetId" "', expected argument " "1"" of type '" "wxDataFormat *""'");
31952 }
31953 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
31954 {
31955 arg2 = wxString_in_helper(obj1);
31956 if (arg2 == NULL) SWIG_fail;
31957 temp2 = true;
31958 }
31959 {
31960 PyThreadState* __tstate = wxPyBeginAllowThreads();
31961 (arg1)->SetId((wxString const &)*arg2);
31962 wxPyEndAllowThreads(__tstate);
31963 if (PyErr_Occurred()) SWIG_fail;
31964 }
31965 resultobj = SWIG_Py_Void();
31966 {
31967 if (temp2)
31968 delete arg2;
31969 }
31970 return resultobj;
31971fail:
31972 {
31973 if (temp2)
31974 delete arg2;
31975 }
31976 return NULL;
d55e5bfc
RD
31977}
31978
31979
554f62e9
RD
31980SWIGINTERN PyObject *DataFormat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31981 PyObject *obj;
31982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31983 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataFormat, SWIG_NewClientData(obj));
31984 return SWIG_Py_Void();
d55e5bfc
RD
31985}
31986
554f62e9
RD
31987SWIGINTERN PyObject *DataFormat_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31988 return SWIG_Python_InitShadowInstance(args);
31989}
d55e5bfc 31990
554f62e9
RD
31991SWIGINTERN int FormatInvalid_set(PyObject *) {
31992 SWIG_Error(SWIG_AttributeError,"Variable FormatInvalid is read-only.");
31993 return 1;
d55e5bfc
RD
31994}
31995
31996
554f62e9
RD
31997SWIGINTERN PyObject *FormatInvalid_get(void) {
31998 PyObject *pyobj = 0;
31999
32000 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0 );
32001 return pyobj;
d55e5bfc
RD
32002}
32003
32004
554f62e9
RD
32005SWIGINTERN PyObject *_wrap_delete_DataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32006 PyObject *resultobj = 0;
32007 wxDataObject *arg1 = (wxDataObject *) 0 ;
32008 void *argp1 = 0 ;
32009 int res1 = 0 ;
32010 PyObject *swig_obj[1] ;
32011
32012 if (!args) SWIG_fail;
32013 swig_obj[0] = args;
32014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
32015 if (!SWIG_IsOK(res1)) {
32016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataObject" "', expected argument " "1"" of type '" "wxDataObject *""'");
32017 }
32018 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32019 {
32020 PyThreadState* __tstate = wxPyBeginAllowThreads();
32021 delete arg1;
d55e5bfc 32022
554f62e9
RD
32023 wxPyEndAllowThreads(__tstate);
32024 if (PyErr_Occurred()) SWIG_fail;
32025 }
32026 resultobj = SWIG_Py_Void();
32027 return resultobj;
32028fail:
32029 return NULL;
32030}
32031
32032
32033SWIGINTERN PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32034 PyObject *resultobj = 0;
32035 wxDataObject *arg1 = (wxDataObject *) 0 ;
32036 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
32037 SwigValueWrapper<wxDataFormat > result;
32038 void *argp1 = 0 ;
32039 int res1 = 0 ;
32040 int val2 ;
32041 int ecode2 = 0 ;
32042 PyObject * obj0 = 0 ;
32043 PyObject * obj1 = 0 ;
32044 char * kwnames[] = {
32045 (char *) "self",(char *) "dir", NULL
32046 };
32047
32048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) SWIG_fail;
32049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32050 if (!SWIG_IsOK(res1)) {
32051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetPreferredFormat" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32052 }
32053 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32054 if (obj1) {
32055 ecode2 = SWIG_AsVal_int(obj1, &val2);
32056 if (!SWIG_IsOK(ecode2)) {
32057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetPreferredFormat" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32058 }
32059 arg2 = static_cast< wxDataObject::Direction >(val2);
32060 }
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 result = ((wxDataObject const *)arg1)->GetPreferredFormat(arg2);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 resultobj = SWIG_NewPointerObj((new wxDataFormat(static_cast< const wxDataFormat& >(result))), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
32068 return resultobj;
32069fail:
32070 return NULL;
32071}
32072
32073
32074SWIGINTERN PyObject *_wrap_DataObject_GetFormatCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32075 PyObject *resultobj = 0;
32076 wxDataObject *arg1 = (wxDataObject *) 0 ;
32077 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
32078 size_t result;
32079 void *argp1 = 0 ;
32080 int res1 = 0 ;
32081 int val2 ;
32082 int ecode2 = 0 ;
32083 PyObject * obj0 = 0 ;
32084 PyObject * obj1 = 0 ;
32085 char * kwnames[] = {
32086 (char *) "self",(char *) "dir", NULL
32087 };
32088
32089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) SWIG_fail;
32090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32091 if (!SWIG_IsOK(res1)) {
32092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetFormatCount" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32093 }
32094 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32095 if (obj1) {
32096 ecode2 = SWIG_AsVal_int(obj1, &val2);
32097 if (!SWIG_IsOK(ecode2)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetFormatCount" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32099 }
32100 arg2 = static_cast< wxDataObject::Direction >(val2);
32101 }
32102 {
32103 PyThreadState* __tstate = wxPyBeginAllowThreads();
32104 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount(arg2);
32105 wxPyEndAllowThreads(__tstate);
32106 if (PyErr_Occurred()) SWIG_fail;
32107 }
32108 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32109 return resultobj;
32110fail:
32111 return NULL;
32112}
32113
32114
32115SWIGINTERN PyObject *_wrap_DataObject_IsSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32116 PyObject *resultobj = 0;
32117 wxDataObject *arg1 = (wxDataObject *) 0 ;
32118 wxDataFormat *arg2 = 0 ;
32119 wxDataObject::Direction arg3 = (wxDataObject::Direction) wxDataObject::Get ;
32120 bool result;
32121 void *argp1 = 0 ;
32122 int res1 = 0 ;
32123 void *argp2 = 0 ;
32124 int res2 = 0 ;
32125 int val3 ;
32126 int ecode3 = 0 ;
32127 PyObject * obj0 = 0 ;
32128 PyObject * obj1 = 0 ;
32129 PyObject * obj2 = 0 ;
32130 char * kwnames[] = {
32131 (char *) "self",(char *) "format",(char *) "dir", NULL
32132 };
32133
32134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32136 if (!SWIG_IsOK(res1)) {
32137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_IsSupported" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32138 }
32139 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32141 if (!SWIG_IsOK(res2)) {
32142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32143 }
32144 if (!argp2) {
32145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32146 }
32147 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32148 if (obj2) {
32149 ecode3 = SWIG_AsVal_int(obj2, &val3);
32150 if (!SWIG_IsOK(ecode3)) {
32151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataObject_IsSupported" "', expected argument " "3"" of type '" "wxDataObject::Direction""'");
32152 }
32153 arg3 = static_cast< wxDataObject::Direction >(val3);
32154 }
32155 {
32156 PyThreadState* __tstate = wxPyBeginAllowThreads();
32157 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,arg3);
32158 wxPyEndAllowThreads(__tstate);
32159 if (PyErr_Occurred()) SWIG_fail;
32160 }
32161 {
32162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32163 }
32164 return resultobj;
32165fail:
32166 return NULL;
32167}
32168
32169
32170SWIGINTERN PyObject *_wrap_DataObject_GetDataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32171 PyObject *resultobj = 0;
32172 wxDataObject *arg1 = (wxDataObject *) 0 ;
32173 wxDataFormat *arg2 = 0 ;
32174 size_t result;
32175 void *argp1 = 0 ;
32176 int res1 = 0 ;
32177 void *argp2 = 0 ;
32178 int res2 = 0 ;
32179 PyObject * obj0 = 0 ;
32180 PyObject * obj1 = 0 ;
32181 char * kwnames[] = {
32182 (char *) "self",(char *) "format", NULL
32183 };
32184
32185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) SWIG_fail;
32186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32187 if (!SWIG_IsOK(res1)) {
32188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetDataSize" "', expected argument " "1"" of type '" "wxDataObject const *""'");
32189 }
32190 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32192 if (!SWIG_IsOK(res2)) {
32193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_GetDataSize" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32194 }
32195 if (!argp2) {
32196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_GetDataSize" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32197 }
32198 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32199 {
32200 PyThreadState* __tstate = wxPyBeginAllowThreads();
32201 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
32202 wxPyEndAllowThreads(__tstate);
32203 if (PyErr_Occurred()) SWIG_fail;
32204 }
32205 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32206 return resultobj;
32207fail:
32208 return NULL;
32209}
32210
32211
32212SWIGINTERN PyObject *_wrap_DataObject_GetAllFormats(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32213 PyObject *resultobj = 0;
32214 wxDataObject *arg1 = (wxDataObject *) 0 ;
32215 wxDataObject::Direction arg2 = (wxDataObject::Direction) wxDataObject::Get ;
32216 PyObject *result = 0 ;
32217 void *argp1 = 0 ;
32218 int res1 = 0 ;
32219 int val2 ;
32220 int ecode2 = 0 ;
32221 PyObject * obj0 = 0 ;
32222 PyObject * obj1 = 0 ;
32223 char * kwnames[] = {
32224 (char *) "self",(char *) "dir", NULL
32225 };
32226
32227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) SWIG_fail;
32228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32229 if (!SWIG_IsOK(res1)) {
32230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetAllFormats" "', expected argument " "1"" of type '" "wxDataObject *""'");
32231 }
32232 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32233 if (obj1) {
32234 ecode2 = SWIG_AsVal_int(obj1, &val2);
32235 if (!SWIG_IsOK(ecode2)) {
32236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DataObject_GetAllFormats" "', expected argument " "2"" of type '" "wxDataObject::Direction""'");
32237 }
32238 arg2 = static_cast< wxDataObject::Direction >(val2);
32239 }
32240 {
32241 PyThreadState* __tstate = wxPyBeginAllowThreads();
32242 result = (PyObject *)wxDataObject_GetAllFormats(arg1,arg2);
32243 wxPyEndAllowThreads(__tstate);
32244 if (PyErr_Occurred()) SWIG_fail;
32245 }
32246 resultobj = result;
32247 return resultobj;
32248fail:
32249 return NULL;
32250}
32251
32252
32253SWIGINTERN PyObject *_wrap_DataObject_GetDataHere(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32254 PyObject *resultobj = 0;
32255 wxDataObject *arg1 = (wxDataObject *) 0 ;
32256 wxDataFormat *arg2 = 0 ;
32257 PyObject *result = 0 ;
32258 void *argp1 = 0 ;
32259 int res1 = 0 ;
32260 void *argp2 = 0 ;
32261 int res2 = 0 ;
32262 PyObject * obj0 = 0 ;
32263 PyObject * obj1 = 0 ;
32264 char * kwnames[] = {
32265 (char *) "self",(char *) "format", NULL
32266 };
32267
32268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) SWIG_fail;
32269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32270 if (!SWIG_IsOK(res1)) {
32271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_GetDataHere" "', expected argument " "1"" of type '" "wxDataObject *""'");
32272 }
32273 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32275 if (!SWIG_IsOK(res2)) {
32276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_GetDataHere" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32277 }
32278 if (!argp2) {
32279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_GetDataHere" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32280 }
32281 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32282 {
32283 PyThreadState* __tstate = wxPyBeginAllowThreads();
32284 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
32285 wxPyEndAllowThreads(__tstate);
32286 if (PyErr_Occurred()) SWIG_fail;
32287 }
32288 resultobj = result;
32289 return resultobj;
32290fail:
32291 return NULL;
32292}
32293
32294
32295SWIGINTERN PyObject *_wrap_DataObject_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32296 PyObject *resultobj = 0;
32297 wxDataObject *arg1 = (wxDataObject *) 0 ;
32298 wxDataFormat *arg2 = 0 ;
32299 PyObject *arg3 = (PyObject *) 0 ;
32300 bool result;
32301 void *argp1 = 0 ;
32302 int res1 = 0 ;
32303 void *argp2 = 0 ;
32304 int res2 = 0 ;
32305 PyObject * obj0 = 0 ;
32306 PyObject * obj1 = 0 ;
32307 PyObject * obj2 = 0 ;
32308 char * kwnames[] = {
32309 (char *) "self",(char *) "format",(char *) "data", NULL
32310 };
32311
32312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObject, 0 | 0 );
32314 if (!SWIG_IsOK(res1)) {
32315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObject_SetData" "', expected argument " "1"" of type '" "wxDataObject *""'");
32316 }
32317 arg1 = reinterpret_cast< wxDataObject * >(argp1);
32318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32319 if (!SWIG_IsOK(res2)) {
32320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObject_SetData" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32321 }
32322 if (!argp2) {
32323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObject_SetData" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32324 }
32325 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32326 arg3 = obj2;
32327 {
32328 PyThreadState* __tstate = wxPyBeginAllowThreads();
32329 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
32330 wxPyEndAllowThreads(__tstate);
32331 if (PyErr_Occurred()) SWIG_fail;
32332 }
32333 {
32334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32335 }
32336 return resultobj;
32337fail:
32338 return NULL;
d55e5bfc
RD
32339}
32340
32341
554f62e9
RD
32342SWIGINTERN PyObject *DataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32343 PyObject *obj;
32344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32345 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObject, SWIG_NewClientData(obj));
32346 return SWIG_Py_Void();
32347}
32348
32349SWIGINTERN PyObject *_wrap_new_DataObjectSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj = 0;
32351 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
32352 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
32353 wxDataObjectSimple *result = 0 ;
32354 void *argp1 = 0 ;
32355 int res1 = 0 ;
32356 PyObject * obj0 = 0 ;
32357 char * kwnames[] = {
32358 (char *) "format", NULL
32359 };
32360
32361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) SWIG_fail;
32362 if (obj0) {
32363 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
32364 if (!SWIG_IsOK(res1)) {
32365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d55e5bfc 32366 }
554f62e9
RD
32367 if (!argp1) {
32368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d55e5bfc 32369 }
554f62e9
RD
32370 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
32371 }
32372 {
32373 PyThreadState* __tstate = wxPyBeginAllowThreads();
32374 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
32375 wxPyEndAllowThreads(__tstate);
32376 if (PyErr_Occurred()) SWIG_fail;
32377 }
32378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_NEW | 0 );
32379 return resultobj;
32380fail:
32381 return NULL;
d55e5bfc
RD
32382}
32383
32384
554f62e9
RD
32385SWIGINTERN PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32386 PyObject *resultobj = 0;
32387 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32388 wxDataFormat *result = 0 ;
32389 void *argp1 = 0 ;
32390 int res1 = 0 ;
32391 PyObject *swig_obj[1] ;
32392
32393 if (!args) SWIG_fail;
32394 swig_obj[0] = args;
32395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32396 if (!SWIG_IsOK(res1)) {
32397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetFormat" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32398 }
32399 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32402 {
554f62e9
RD
32403 wxDataFormat const &_result_ref = (arg1)->GetFormat();
32404 result = (wxDataFormat *) &_result_ref;
d55e5bfc 32405 }
554f62e9
RD
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataFormat, 0 | 0 );
32410 return resultobj;
32411fail:
32412 return NULL;
32413}
32414
32415
32416SWIGINTERN PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj = 0;
32418 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32419 wxDataFormat *arg2 = 0 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 void *argp2 = 0 ;
32423 int res2 = 0 ;
32424 PyObject * obj0 = 0 ;
32425 PyObject * obj1 = 0 ;
32426 char * kwnames[] = {
32427 (char *) "self",(char *) "format", NULL
32428 };
32429
32430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) SWIG_fail;
32431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_SetFormat" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32434 }
32435 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
32437 if (!SWIG_IsOK(res2)) {
32438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObjectSimple_SetFormat" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32439 }
32440 if (!argp2) {
32441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DataObjectSimple_SetFormat" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
32442 }
32443 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 (arg1)->SetFormat((wxDataFormat const &)*arg2);
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_Py_Void();
32451 return resultobj;
32452fail:
32453 return NULL;
d55e5bfc
RD
32454}
32455
32456
554f62e9
RD
32457SWIGINTERN PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32458 PyObject *resultobj = 0;
32459 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32460 size_t result;
32461 void *argp1 = 0 ;
32462 int res1 = 0 ;
32463 PyObject *swig_obj[1] ;
32464
32465 if (!args) SWIG_fail;
32466 swig_obj[0] = args;
32467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32468 if (!SWIG_IsOK(res1)) {
32469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetDataSize" "', expected argument " "1"" of type '" "wxDataObjectSimple const *""'");
32470 }
32471 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32472 {
32473 PyThreadState* __tstate = wxPyBeginAllowThreads();
32474 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
32475 wxPyEndAllowThreads(__tstate);
32476 if (PyErr_Occurred()) SWIG_fail;
32477 }
32478 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32479 return resultobj;
32480fail:
32481 return NULL;
d55e5bfc
RD
32482}
32483
32484
554f62e9
RD
32485SWIGINTERN PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32486 PyObject *resultobj = 0;
32487 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32488 PyObject *result = 0 ;
32489 void *argp1 = 0 ;
32490 int res1 = 0 ;
32491 PyObject *swig_obj[1] ;
32492
32493 if (!args) SWIG_fail;
32494 swig_obj[0] = args;
32495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32496 if (!SWIG_IsOK(res1)) {
32497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_GetDataHere" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32498 }
32499 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32500 {
32501 PyThreadState* __tstate = wxPyBeginAllowThreads();
32502 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
32503 wxPyEndAllowThreads(__tstate);
32504 if (PyErr_Occurred()) SWIG_fail;
32505 }
32506 resultobj = result;
32507 return resultobj;
32508fail:
32509 return NULL;
32510}
32511
32512
32513SWIGINTERN PyObject *_wrap_DataObjectSimple_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32514 PyObject *resultobj = 0;
32515 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
32516 PyObject *arg2 = (PyObject *) 0 ;
32517 bool result;
32518 void *argp1 = 0 ;
32519 int res1 = 0 ;
32520 PyObject * obj0 = 0 ;
32521 PyObject * obj1 = 0 ;
32522 char * kwnames[] = {
32523 (char *) "self",(char *) "data", NULL
32524 };
32525
32526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectSimple, 0 | 0 );
32528 if (!SWIG_IsOK(res1)) {
32529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectSimple_SetData" "', expected argument " "1"" of type '" "wxDataObjectSimple *""'");
32530 }
32531 arg1 = reinterpret_cast< wxDataObjectSimple * >(argp1);
32532 arg2 = obj1;
32533 {
32534 PyThreadState* __tstate = wxPyBeginAllowThreads();
32535 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
32536 wxPyEndAllowThreads(__tstate);
32537 if (PyErr_Occurred()) SWIG_fail;
32538 }
32539 {
32540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32541 }
32542 return resultobj;
32543fail:
32544 return NULL;
d55e5bfc
RD
32545}
32546
32547
554f62e9
RD
32548SWIGINTERN PyObject *DataObjectSimple_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32549 PyObject *obj;
32550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32551 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObjectSimple, SWIG_NewClientData(obj));
32552 return SWIG_Py_Void();
d55e5bfc
RD
32553}
32554
554f62e9
RD
32555SWIGINTERN PyObject *DataObjectSimple_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32556 return SWIG_Python_InitShadowInstance(args);
32557}
d55e5bfc 32558
554f62e9
RD
32559SWIGINTERN PyObject *_wrap_new_PyDataObjectSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32560 PyObject *resultobj = 0;
32561 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
32562 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
32563 wxPyDataObjectSimple *result = 0 ;
32564 void *argp1 = 0 ;
32565 int res1 = 0 ;
32566 PyObject * obj0 = 0 ;
32567 char * kwnames[] = {
32568 (char *) "format", NULL
32569 };
32570
32571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) SWIG_fail;
32572 if (obj0) {
32573 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
32574 if (!SWIG_IsOK(res1)) {
32575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyDataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d55e5bfc 32576 }
554f62e9
RD
32577 if (!argp1) {
32578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyDataObjectSimple" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
d55e5bfc 32579 }
554f62e9
RD
32580 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
32581 }
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDataObjectSimple, SWIG_POINTER_NEW | 0 );
32589 return resultobj;
32590fail:
32591 return NULL;
32592}
32593
32594
32595SWIGINTERN PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32596 PyObject *resultobj = 0;
32597 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
32598 PyObject *arg2 = (PyObject *) 0 ;
32599 PyObject *arg3 = (PyObject *) 0 ;
32600 void *argp1 = 0 ;
32601 int res1 = 0 ;
32602 PyObject * obj0 = 0 ;
32603 PyObject * obj1 = 0 ;
32604 PyObject * obj2 = 0 ;
32605 char * kwnames[] = {
32606 (char *) "self",(char *) "self",(char *) "_class", NULL
32607 };
32608
32609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDataObjectSimple, 0 | 0 );
32611 if (!SWIG_IsOK(res1)) {
32612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyDataObjectSimple__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDataObjectSimple *""'");
32613 }
32614 arg1 = reinterpret_cast< wxPyDataObjectSimple * >(argp1);
32615 arg2 = obj1;
32616 arg3 = obj2;
32617 {
32618 PyThreadState* __tstate = wxPyBeginAllowThreads();
32619 (arg1)->_setCallbackInfo(arg2,arg3);
32620 wxPyEndAllowThreads(__tstate);
32621 if (PyErr_Occurred()) SWIG_fail;
32622 }
32623 resultobj = SWIG_Py_Void();
32624 return resultobj;
32625fail:
32626 return NULL;
d55e5bfc
RD
32627}
32628
32629
554f62e9
RD
32630SWIGINTERN PyObject *PyDataObjectSimple_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32631 PyObject *obj;
32632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32633 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDataObjectSimple, SWIG_NewClientData(obj));
32634 return SWIG_Py_Void();
d55e5bfc
RD
32635}
32636
554f62e9
RD
32637SWIGINTERN PyObject *PyDataObjectSimple_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
32639}
32640
554f62e9
RD
32641SWIGINTERN PyObject *_wrap_new_DataObjectComposite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32642 PyObject *resultobj = 0;
32643 wxDataObjectComposite *result = 0 ;
32644
32645 if (!SWIG_Python_UnpackTuple(args,"new_DataObjectComposite",0,0,0)) SWIG_fail;
32646 {
32647 PyThreadState* __tstate = wxPyBeginAllowThreads();
32648 result = (wxDataObjectComposite *)new wxDataObjectComposite();
32649 wxPyEndAllowThreads(__tstate);
32650 if (PyErr_Occurred()) SWIG_fail;
32651 }
32652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObjectComposite, SWIG_POINTER_NEW | 0 );
32653 return resultobj;
32654fail:
32655 return NULL;
32656}
32657
32658
32659SWIGINTERN PyObject *_wrap_DataObjectComposite_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32660 PyObject *resultobj = 0;
32661 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
32662 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
32663 bool arg3 = (bool) false ;
32664 void *argp1 = 0 ;
32665 int res1 = 0 ;
32666 int res2 = 0 ;
32667 bool val3 ;
32668 int ecode3 = 0 ;
32669 PyObject * obj0 = 0 ;
32670 PyObject * obj1 = 0 ;
32671 PyObject * obj2 = 0 ;
32672 char * kwnames[] = {
32673 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
32674 };
32675
32676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDataObjectComposite, 0 | 0 );
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectComposite_Add" "', expected argument " "1"" of type '" "wxDataObjectComposite *""'");
32680 }
32681 arg1 = reinterpret_cast< wxDataObjectComposite * >(argp1);
32682 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObjectSimple, SWIG_POINTER_DISOWN | 0 );
32683 if (!SWIG_IsOK(res2)) {
32684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DataObjectComposite_Add" "', expected argument " "2"" of type '" "wxDataObjectSimple *""'");
32685 }
32686 if (obj2) {
32687 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32688 if (!SWIG_IsOK(ecode3)) {
32689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DataObjectComposite_Add" "', expected argument " "3"" of type '" "bool""'");
32690 }
32691 arg3 = static_cast< bool >(val3);
32692 }
32693 {
32694 PyThreadState* __tstate = wxPyBeginAllowThreads();
32695 (arg1)->Add(arg2,arg3);
32696 wxPyEndAllowThreads(__tstate);
32697 if (PyErr_Occurred()) SWIG_fail;
32698 }
32699 resultobj = SWIG_Py_Void();
32700 return resultobj;
32701fail:
32702 return NULL;
7e63a440
RD
32703}
32704
32705
e9d6f3a4
RD
32706SWIGINTERN PyObject *_wrap_DataObjectComposite_GetReceivedFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32707 PyObject *resultobj = 0;
32708 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
32709 SwigValueWrapper<wxDataFormat > result;
32710 void *argp1 = 0 ;
32711 int res1 = 0 ;
32712 PyObject *swig_obj[1] ;
32713
32714 if (!args) SWIG_fail;
32715 swig_obj[0] = args;
32716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDataObjectComposite, 0 | 0 );
32717 if (!SWIG_IsOK(res1)) {
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DataObjectComposite_GetReceivedFormat" "', expected argument " "1"" of type '" "wxDataObjectComposite const *""'");
32719 }
32720 arg1 = reinterpret_cast< wxDataObjectComposite * >(argp1);
32721 {
32722 PyThreadState* __tstate = wxPyBeginAllowThreads();
32723 result = ((wxDataObjectComposite const *)arg1)->GetReceivedFormat();
32724 wxPyEndAllowThreads(__tstate);
32725 if (PyErr_Occurred()) SWIG_fail;
32726 }
32727 resultobj = SWIG_NewPointerObj((new wxDataFormat(static_cast< const wxDataFormat& >(result))), SWIGTYPE_p_wxDataFormat, SWIG_POINTER_OWN | 0 );
32728 return resultobj;
32729fail:
32730 return NULL;
32731}
32732
32733
554f62e9
RD
32734SWIGINTERN PyObject *DataObjectComposite_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32735 PyObject *obj;
32736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32737 SWIG_TypeNewClientData(SWIGTYPE_p_wxDataObjectComposite, SWIG_NewClientData(obj));
32738 return SWIG_Py_Void();
d55e5bfc
RD
32739}
32740
554f62e9
RD
32741SWIGINTERN PyObject *DataObjectComposite_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32742 return SWIG_Python_InitShadowInstance(args);
32743}
d55e5bfc 32744
554f62e9
RD
32745SWIGINTERN PyObject *_wrap_new_TextDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32746 PyObject *resultobj = 0;
32747 wxString const &arg1_defvalue = wxPyEmptyString ;
32748 wxString *arg1 = (wxString *) &arg1_defvalue ;
32749 wxTextDataObject *result = 0 ;
32750 bool temp1 = false ;
32751 PyObject * obj0 = 0 ;
32752 char * kwnames[] = {
32753 (char *) "text", NULL
32754 };
32755
32756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) SWIG_fail;
32757 if (obj0) {
d55e5bfc 32758 {
554f62e9
RD
32759 arg1 = wxString_in_helper(obj0);
32760 if (arg1 == NULL) SWIG_fail;
32761 temp1 = true;
d55e5bfc 32762 }
554f62e9
RD
32763 }
32764 {
32765 PyThreadState* __tstate = wxPyBeginAllowThreads();
32766 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
32767 wxPyEndAllowThreads(__tstate);
32768 if (PyErr_Occurred()) SWIG_fail;
32769 }
32770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextDataObject, SWIG_POINTER_NEW | 0 );
32771 {
32772 if (temp1)
32773 delete arg1;
32774 }
32775 return resultobj;
32776fail:
32777 {
32778 if (temp1)
32779 delete arg1;
32780 }
32781 return NULL;
d55e5bfc
RD
32782}
32783
32784
554f62e9
RD
32785SWIGINTERN PyObject *_wrap_TextDataObject_GetTextLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32786 PyObject *resultobj = 0;
32787 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32788 size_t result;
32789 void *argp1 = 0 ;
32790 int res1 = 0 ;
32791 PyObject *swig_obj[1] ;
32792
32793 if (!args) SWIG_fail;
32794 swig_obj[0] = args;
32795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32796 if (!SWIG_IsOK(res1)) {
32797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_GetTextLength" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32798 }
32799 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32800 {
32801 PyThreadState* __tstate = wxPyBeginAllowThreads();
32802 result = (size_t)(arg1)->GetTextLength();
32803 wxPyEndAllowThreads(__tstate);
32804 if (PyErr_Occurred()) SWIG_fail;
32805 }
32806 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
32807 return resultobj;
32808fail:
32809 return NULL;
d55e5bfc
RD
32810}
32811
32812
554f62e9
RD
32813SWIGINTERN PyObject *_wrap_TextDataObject_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32814 PyObject *resultobj = 0;
32815 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32816 wxString result;
32817 void *argp1 = 0 ;
32818 int res1 = 0 ;
32819 PyObject *swig_obj[1] ;
32820
32821 if (!args) SWIG_fail;
32822 swig_obj[0] = args;
32823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32824 if (!SWIG_IsOK(res1)) {
32825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_GetText" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32826 }
32827 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32828 {
32829 PyThreadState* __tstate = wxPyBeginAllowThreads();
32830 result = (arg1)->GetText();
32831 wxPyEndAllowThreads(__tstate);
32832 if (PyErr_Occurred()) SWIG_fail;
32833 }
32834 {
32835#if wxUSE_UNICODE
32836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32837#else
32838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32839#endif
32840 }
32841 return resultobj;
32842fail:
32843 return NULL;
32844}
32845
32846
32847SWIGINTERN PyObject *_wrap_TextDataObject_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32848 PyObject *resultobj = 0;
32849 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
32850 wxString *arg2 = 0 ;
32851 void *argp1 = 0 ;
32852 int res1 = 0 ;
32853 bool temp2 = false ;
32854 PyObject * obj0 = 0 ;
32855 PyObject * obj1 = 0 ;
32856 char * kwnames[] = {
32857 (char *) "self",(char *) "text", NULL
32858 };
32859
32860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
32861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextDataObject, 0 | 0 );
32862 if (!SWIG_IsOK(res1)) {
32863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDataObject_SetText" "', expected argument " "1"" of type '" "wxTextDataObject *""'");
32864 }
32865 arg1 = reinterpret_cast< wxTextDataObject * >(argp1);
32866 {
32867 arg2 = wxString_in_helper(obj1);
32868 if (arg2 == NULL) SWIG_fail;
32869 temp2 = true;
32870 }
32871 {
32872 PyThreadState* __tstate = wxPyBeginAllowThreads();
32873 (arg1)->SetText((wxString const &)*arg2);
32874 wxPyEndAllowThreads(__tstate);
32875 if (PyErr_Occurred()) SWIG_fail;
32876 }
32877 resultobj = SWIG_Py_Void();
32878 {
32879 if (temp2)
32880 delete arg2;
32881 }
32882 return resultobj;
32883fail:
32884 {
32885 if (temp2)
32886 delete arg2;
32887 }
32888 return NULL;
d55e5bfc
RD
32889}
32890
32891
554f62e9
RD
32892SWIGINTERN PyObject *TextDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32893 PyObject *obj;
32894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32895 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextDataObject, SWIG_NewClientData(obj));
32896 return SWIG_Py_Void();
d55e5bfc
RD
32897}
32898
554f62e9
RD
32899SWIGINTERN PyObject *TextDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32900 return SWIG_Python_InitShadowInstance(args);
32901}
d55e5bfc 32902
554f62e9
RD
32903SWIGINTERN PyObject *_wrap_new_PyTextDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32904 PyObject *resultobj = 0;
32905 wxString const &arg1_defvalue = wxPyEmptyString ;
32906 wxString *arg1 = (wxString *) &arg1_defvalue ;
32907 wxPyTextDataObject *result = 0 ;
32908 bool temp1 = false ;
32909 PyObject * obj0 = 0 ;
32910 char * kwnames[] = {
32911 (char *) "text", NULL
32912 };
32913
32914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) SWIG_fail;
32915 if (obj0) {
093d3ff1 32916 {
554f62e9
RD
32917 arg1 = wxString_in_helper(obj0);
32918 if (arg1 == NULL) SWIG_fail;
32919 temp1 = true;
093d3ff1 32920 }
554f62e9
RD
32921 }
32922 {
32923 PyThreadState* __tstate = wxPyBeginAllowThreads();
32924 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
32925 wxPyEndAllowThreads(__tstate);
32926 if (PyErr_Occurred()) SWIG_fail;
32927 }
32928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTextDataObject, SWIG_POINTER_NEW | 0 );
32929 {
32930 if (temp1)
32931 delete arg1;
32932 }
32933 return resultobj;
32934fail:
32935 {
32936 if (temp1)
32937 delete arg1;
32938 }
32939 return NULL;
32940}
32941
32942
32943SWIGINTERN PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32944 PyObject *resultobj = 0;
32945 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
32946 PyObject *arg2 = (PyObject *) 0 ;
32947 PyObject *arg3 = (PyObject *) 0 ;
32948 void *argp1 = 0 ;
32949 int res1 = 0 ;
32950 PyObject * obj0 = 0 ;
32951 PyObject * obj1 = 0 ;
32952 PyObject * obj2 = 0 ;
32953 char * kwnames[] = {
32954 (char *) "self",(char *) "self",(char *) "_class", NULL
32955 };
32956
32957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDataObject, 0 | 0 );
32959 if (!SWIG_IsOK(res1)) {
32960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyTextDataObject__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTextDataObject *""'");
32961 }
32962 arg1 = reinterpret_cast< wxPyTextDataObject * >(argp1);
32963 arg2 = obj1;
32964 arg3 = obj2;
32965 {
32966 PyThreadState* __tstate = wxPyBeginAllowThreads();
32967 (arg1)->_setCallbackInfo(arg2,arg3);
32968 wxPyEndAllowThreads(__tstate);
32969 if (PyErr_Occurred()) SWIG_fail;
32970 }
32971 resultobj = SWIG_Py_Void();
32972 return resultobj;
32973fail:
32974 return NULL;
d55e5bfc
RD
32975}
32976
32977
554f62e9
RD
32978SWIGINTERN PyObject *PyTextDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32979 PyObject *obj;
32980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32981 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTextDataObject, SWIG_NewClientData(obj));
32982 return SWIG_Py_Void();
d55e5bfc
RD
32983}
32984
554f62e9
RD
32985SWIGINTERN PyObject *PyTextDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32986 return SWIG_Python_InitShadowInstance(args);
32987}
d55e5bfc 32988
554f62e9
RD
32989SWIGINTERN PyObject *_wrap_new_BitmapDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32990 PyObject *resultobj = 0;
32991 wxBitmap const &arg1_defvalue = wxNullBitmap ;
32992 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
32993 wxBitmapDataObject *result = 0 ;
32994 void *argp1 = 0 ;
32995 int res1 = 0 ;
32996 PyObject * obj0 = 0 ;
32997 char * kwnames[] = {
32998 (char *) "bitmap", NULL
32999 };
33000
33001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) SWIG_fail;
33002 if (obj0) {
33003 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
33004 if (!SWIG_IsOK(res1)) {
33005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d55e5bfc 33006 }
554f62e9
RD
33007 if (!argp1) {
33008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
093d3ff1 33009 }
554f62e9
RD
33010 arg1 = reinterpret_cast< wxBitmap * >(argp1);
33011 }
33012 {
33013 PyThreadState* __tstate = wxPyBeginAllowThreads();
33014 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
33015 wxPyEndAllowThreads(__tstate);
33016 if (PyErr_Occurred()) SWIG_fail;
33017 }
33018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapDataObject, SWIG_POINTER_NEW | 0 );
33019 return resultobj;
33020fail:
33021 return NULL;
d55e5bfc
RD
33022}
33023
33024
554f62e9
RD
33025SWIGINTERN PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33026 PyObject *resultobj = 0;
33027 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
33028 wxBitmap result;
33029 void *argp1 = 0 ;
33030 int res1 = 0 ;
33031 PyObject *swig_obj[1] ;
33032
33033 if (!args) SWIG_fail;
33034 swig_obj[0] = args;
33035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapDataObject, 0 | 0 );
33036 if (!SWIG_IsOK(res1)) {
33037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapDataObject_GetBitmap" "', expected argument " "1"" of type '" "wxBitmapDataObject const *""'");
33038 }
33039 arg1 = reinterpret_cast< wxBitmapDataObject * >(argp1);
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
33047 return resultobj;
33048fail:
33049 return NULL;
33050}
33051
33052
33053SWIGINTERN PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33054 PyObject *resultobj = 0;
33055 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
33056 wxBitmap *arg2 = 0 ;
33057 void *argp1 = 0 ;
33058 int res1 = 0 ;
33059 void *argp2 = 0 ;
33060 int res2 = 0 ;
33061 PyObject * obj0 = 0 ;
33062 PyObject * obj1 = 0 ;
33063 char * kwnames[] = {
33064 (char *) "self",(char *) "bitmap", NULL
33065 };
33066
33067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
33068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapDataObject, 0 | 0 );
33069 if (!SWIG_IsOK(res1)) {
33070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "1"" of type '" "wxBitmapDataObject *""'");
33071 }
33072 arg1 = reinterpret_cast< wxBitmapDataObject * >(argp1);
33073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33074 if (!SWIG_IsOK(res2)) {
33075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33076 }
33077 if (!argp2) {
33078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapDataObject_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33079 }
33080 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33081 {
33082 PyThreadState* __tstate = wxPyBeginAllowThreads();
33083 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33084 wxPyEndAllowThreads(__tstate);
33085 if (PyErr_Occurred()) SWIG_fail;
33086 }
33087 resultobj = SWIG_Py_Void();
33088 return resultobj;
33089fail:
33090 return NULL;
d55e5bfc
RD
33091}
33092
33093
554f62e9
RD
33094SWIGINTERN PyObject *BitmapDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33095 PyObject *obj;
33096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33097 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapDataObject, SWIG_NewClientData(obj));
33098 return SWIG_Py_Void();
d55e5bfc
RD
33099}
33100
554f62e9
RD
33101SWIGINTERN PyObject *BitmapDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33102 return SWIG_Python_InitShadowInstance(args);
33103}
d55e5bfc 33104
554f62e9
RD
33105SWIGINTERN PyObject *_wrap_new_PyBitmapDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33106 PyObject *resultobj = 0;
33107 wxBitmap const &arg1_defvalue = wxNullBitmap ;
33108 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
33109 wxPyBitmapDataObject *result = 0 ;
33110 void *argp1 = 0 ;
33111 int res1 = 0 ;
33112 PyObject * obj0 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "bitmap", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) SWIG_fail;
33118 if (obj0) {
33119 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
33120 if (!SWIG_IsOK(res1)) {
33121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyBitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d55e5bfc 33122 }
554f62e9
RD
33123 if (!argp1) {
33124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyBitmapDataObject" "', expected argument " "1"" of type '" "wxBitmap const &""'");
d55e5bfc 33125 }
554f62e9
RD
33126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
33127 }
33128 {
33129 PyThreadState* __tstate = wxPyBeginAllowThreads();
33130 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
33131 wxPyEndAllowThreads(__tstate);
33132 if (PyErr_Occurred()) SWIG_fail;
33133 }
33134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyBitmapDataObject, SWIG_POINTER_NEW | 0 );
33135 return resultobj;
33136fail:
33137 return NULL;
33138}
33139
33140
33141SWIGINTERN PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33142 PyObject *resultobj = 0;
33143 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
33144 PyObject *arg2 = (PyObject *) 0 ;
33145 PyObject *arg3 = (PyObject *) 0 ;
33146 void *argp1 = 0 ;
33147 int res1 = 0 ;
33148 PyObject * obj0 = 0 ;
33149 PyObject * obj1 = 0 ;
33150 PyObject * obj2 = 0 ;
33151 char * kwnames[] = {
33152 (char *) "self",(char *) "self",(char *) "_class", NULL
33153 };
33154
33155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyBitmapDataObject, 0 | 0 );
33157 if (!SWIG_IsOK(res1)) {
33158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyBitmapDataObject__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyBitmapDataObject *""'");
33159 }
33160 arg1 = reinterpret_cast< wxPyBitmapDataObject * >(argp1);
33161 arg2 = obj1;
33162 arg3 = obj2;
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 (arg1)->_setCallbackInfo(arg2,arg3);
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_Py_Void();
33170 return resultobj;
33171fail:
33172 return NULL;
d55e5bfc
RD
33173}
33174
33175
554f62e9
RD
33176SWIGINTERN PyObject *PyBitmapDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33177 PyObject *obj;
33178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33179 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyBitmapDataObject, SWIG_NewClientData(obj));
33180 return SWIG_Py_Void();
9d7dfdff
RD
33181}
33182
554f62e9
RD
33183SWIGINTERN PyObject *PyBitmapDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33184 return SWIG_Python_InitShadowInstance(args);
33185}
9d7dfdff 33186
554f62e9
RD
33187SWIGINTERN PyObject *_wrap_new_FileDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33188 PyObject *resultobj = 0;
33189 wxFileDataObject *result = 0 ;
33190
33191 if (!SWIG_Python_UnpackTuple(args,"new_FileDataObject",0,0,0)) SWIG_fail;
33192 {
33193 PyThreadState* __tstate = wxPyBeginAllowThreads();
33194 result = (wxFileDataObject *)new wxFileDataObject();
33195 wxPyEndAllowThreads(__tstate);
33196 if (PyErr_Occurred()) SWIG_fail;
33197 }
33198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDataObject, SWIG_POINTER_NEW | 0 );
33199 return resultobj;
33200fail:
33201 return NULL;
9d7dfdff
RD
33202}
33203
33204
554f62e9
RD
33205SWIGINTERN PyObject *_wrap_FileDataObject_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33206 PyObject *resultobj = 0;
33207 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
33208 wxArrayString *result = 0 ;
33209 void *argp1 = 0 ;
33210 int res1 = 0 ;
33211 PyObject *swig_obj[1] ;
33212
33213 if (!args) SWIG_fail;
33214 swig_obj[0] = args;
33215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDataObject, 0 | 0 );
33216 if (!SWIG_IsOK(res1)) {
33217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDataObject_GetFilenames" "', expected argument " "1"" of type '" "wxFileDataObject *""'");
33218 }
33219 arg1 = reinterpret_cast< wxFileDataObject * >(argp1);
33220 {
33221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d7dfdff 33222 {
554f62e9
RD
33223 wxArrayString const &_result_ref = (arg1)->GetFilenames();
33224 result = (wxArrayString *) &_result_ref;
9d7dfdff 33225 }
554f62e9
RD
33226 wxPyEndAllowThreads(__tstate);
33227 if (PyErr_Occurred()) SWIG_fail;
33228 }
33229 {
33230 resultobj = wxArrayString2PyList_helper(*result);
33231 }
33232 return resultobj;
33233fail:
33234 return NULL;
33235}
33236
33237
33238SWIGINTERN PyObject *_wrap_FileDataObject_AddFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33239 PyObject *resultobj = 0;
33240 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
33241 wxString *arg2 = 0 ;
33242 void *argp1 = 0 ;
33243 int res1 = 0 ;
33244 bool temp2 = false ;
33245 PyObject * obj0 = 0 ;
33246 PyObject * obj1 = 0 ;
33247 char * kwnames[] = {
33248 (char *) "self",(char *) "filename", NULL
33249 };
33250
33251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) SWIG_fail;
33252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDataObject, 0 | 0 );
33253 if (!SWIG_IsOK(res1)) {
33254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDataObject_AddFile" "', expected argument " "1"" of type '" "wxFileDataObject *""'");
33255 }
33256 arg1 = reinterpret_cast< wxFileDataObject * >(argp1);
33257 {
33258 arg2 = wxString_in_helper(obj1);
33259 if (arg2 == NULL) SWIG_fail;
33260 temp2 = true;
33261 }
33262 {
33263 PyThreadState* __tstate = wxPyBeginAllowThreads();
33264 (arg1)->AddFile((wxString const &)*arg2);
33265 wxPyEndAllowThreads(__tstate);
33266 if (PyErr_Occurred()) SWIG_fail;
33267 }
33268 resultobj = SWIG_Py_Void();
33269 {
33270 if (temp2)
33271 delete arg2;
33272 }
33273 return resultobj;
33274fail:
33275 {
33276 if (temp2)
33277 delete arg2;
33278 }
33279 return NULL;
9d7dfdff
RD
33280}
33281
33282
554f62e9
RD
33283SWIGINTERN PyObject *FileDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33284 PyObject *obj;
33285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33286 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDataObject, SWIG_NewClientData(obj));
33287 return SWIG_Py_Void();
9d7dfdff
RD
33288}
33289
554f62e9
RD
33290SWIGINTERN PyObject *FileDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33291 return SWIG_Python_InitShadowInstance(args);
33292}
9d7dfdff 33293
554f62e9
RD
33294SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33295 PyObject *resultobj = 0;
33296 wxDataFormat *arg1 = 0 ;
33297 wxCustomDataObject *result = 0 ;
33298 void *argp1 = 0 ;
33299 int res1 = 0 ;
33300
33301 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDataFormat, 0 | 0);
33303 if (!SWIG_IsOK(res1)) {
33304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CustomDataObject" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
33305 }
33306 if (!argp1) {
33307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CustomDataObject" "', expected argument " "1"" of type '" "wxDataFormat const &""'");
33308 }
33309 arg1 = reinterpret_cast< wxDataFormat * >(argp1);
33310 {
33311 PyThreadState* __tstate = wxPyBeginAllowThreads();
33312 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
33313 wxPyEndAllowThreads(__tstate);
33314 if (PyErr_Occurred()) SWIG_fail;
33315 }
33316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33317 return resultobj;
33318fail:
33319 return NULL;
d55e5bfc
RD
33320}
33321
33322
554f62e9
RD
33323SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33324 PyObject *resultobj = 0;
33325 wxString *arg1 = 0 ;
33326 wxCustomDataObject *result = 0 ;
33327 bool temp1 = false ;
33328
33329 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
33330 {
33331 arg1 = wxString_in_helper(swig_obj[0]);
33332 if (arg1 == NULL) SWIG_fail;
33333 temp1 = true;
33334 }
33335 {
33336 PyThreadState* __tstate = wxPyBeginAllowThreads();
33337 result = (wxCustomDataObject *)new_wxCustomDataObject__SWIG_1((wxString const &)*arg1);
33338 wxPyEndAllowThreads(__tstate);
33339 if (PyErr_Occurred()) SWIG_fail;
33340 }
33341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33342 {
33343 if (temp1)
33344 delete arg1;
33345 }
33346 return resultobj;
33347fail:
33348 {
33349 if (temp1)
33350 delete arg1;
33351 }
33352 return NULL;
d55e5bfc
RD
33353}
33354
33355
554f62e9
RD
33356SWIGINTERN PyObject *_wrap_new_CustomDataObject__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
33357 PyObject *resultobj = 0;
33358 wxCustomDataObject *result = 0 ;
33359
33360 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
33361 {
33362 PyThreadState* __tstate = wxPyBeginAllowThreads();
33363 result = (wxCustomDataObject *)new wxCustomDataObject();
33364 wxPyEndAllowThreads(__tstate);
33365 if (PyErr_Occurred()) SWIG_fail;
33366 }
33367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCustomDataObject, SWIG_POINTER_NEW | 0 );
33368 return resultobj;
33369fail:
33370 return NULL;
9d7dfdff
RD
33371}
33372
33373
554f62e9
RD
33374SWIGINTERN PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args) {
33375 int argc;
33376 PyObject *argv[2];
33377
33378 if (!(argc = SWIG_Python_UnpackTuple(args,"new_CustomDataObject",0,1,argv))) SWIG_fail;
33379 --argc;
33380 if (argc == 0) {
33381 return _wrap_new_CustomDataObject__SWIG_2(self, argc, argv);
33382 }
33383 if (argc == 1) {
33384 int _v = 0;
9d7dfdff 33385 {
554f62e9
RD
33386 {
33387 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
33388 }
9d7dfdff 33389 }
554f62e9
RD
33390 if (!_v) goto check_2;
33391 return _wrap_new_CustomDataObject__SWIG_1(self, argc, argv);
33392 }
33393check_2:
33394
33395 if (argc == 1) {
33396 return _wrap_new_CustomDataObject__SWIG_0(self, argc, argv);
33397 }
33398
33399fail:
33400 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_CustomDataObject'");
33401 return NULL;
33402}
33403
33404
33405SWIGINTERN PyObject *_wrap_CustomDataObject_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33406 PyObject *resultobj = 0;
33407 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33408 PyObject *arg2 = (PyObject *) 0 ;
33409 bool result;
33410 void *argp1 = 0 ;
33411 int res1 = 0 ;
33412 PyObject * obj0 = 0 ;
33413 PyObject * obj1 = 0 ;
33414 char * kwnames[] = {
33415 (char *) "self",(char *) "data", NULL
33416 };
33417
33418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_SetData" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33422 }
33423 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33424 arg2 = obj1;
33425 {
33426 PyThreadState* __tstate = wxPyBeginAllowThreads();
33427 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
33428 wxPyEndAllowThreads(__tstate);
33429 if (PyErr_Occurred()) SWIG_fail;
33430 }
33431 {
33432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33433 }
33434 return resultobj;
33435fail:
33436 return NULL;
9d7dfdff
RD
33437}
33438
33439
554f62e9
RD
33440SWIGINTERN PyObject *_wrap_CustomDataObject_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33441 PyObject *resultobj = 0;
33442 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33443 size_t result;
33444 void *argp1 = 0 ;
33445 int res1 = 0 ;
33446 PyObject *swig_obj[1] ;
33447
33448 if (!args) SWIG_fail;
33449 swig_obj[0] = args;
33450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33451 if (!SWIG_IsOK(res1)) {
33452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_GetSize" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33453 }
33454 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33455 {
33456 PyThreadState* __tstate = wxPyBeginAllowThreads();
33457 result = (size_t)(arg1)->GetSize();
33458 wxPyEndAllowThreads(__tstate);
33459 if (PyErr_Occurred()) SWIG_fail;
33460 }
33461 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33462 return resultobj;
33463fail:
33464 return NULL;
d55e5bfc
RD
33465}
33466
33467
554f62e9
RD
33468SWIGINTERN PyObject *_wrap_CustomDataObject_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33469 PyObject *resultobj = 0;
33470 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
33471 PyObject *result = 0 ;
33472 void *argp1 = 0 ;
33473 int res1 = 0 ;
33474 PyObject *swig_obj[1] ;
33475
33476 if (!args) SWIG_fail;
33477 swig_obj[0] = args;
33478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCustomDataObject, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CustomDataObject_GetData" "', expected argument " "1"" of type '" "wxCustomDataObject *""'");
33481 }
33482 arg1 = reinterpret_cast< wxCustomDataObject * >(argp1);
33483 {
33484 PyThreadState* __tstate = wxPyBeginAllowThreads();
33485 result = (PyObject *)wxCustomDataObject_GetData(arg1);
33486 wxPyEndAllowThreads(__tstate);
33487 if (PyErr_Occurred()) SWIG_fail;
33488 }
33489 resultobj = result;
33490 return resultobj;
33491fail:
33492 return NULL;
d55e5bfc
RD
33493}
33494
33495
554f62e9
RD
33496SWIGINTERN PyObject *CustomDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33497 PyObject *obj;
33498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33499 SWIG_TypeNewClientData(SWIGTYPE_p_wxCustomDataObject, SWIG_NewClientData(obj));
33500 return SWIG_Py_Void();
d55e5bfc
RD
33501}
33502
554f62e9
RD
33503SWIGINTERN PyObject *CustomDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33504 return SWIG_Python_InitShadowInstance(args);
33505}
d55e5bfc 33506
fc46b7f3 33507SWIGINTERN PyObject *_wrap_new_URLDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33508 PyObject *resultobj = 0;
fc46b7f3
RD
33509 wxString const &arg1_defvalue = wxPyEmptyString ;
33510 wxString *arg1 = (wxString *) &arg1_defvalue ;
554f62e9 33511 wxURLDataObject *result = 0 ;
fc46b7f3
RD
33512 bool temp1 = false ;
33513 PyObject * obj0 = 0 ;
33514 char * kwnames[] = {
33515 (char *) "url", NULL
33516 };
554f62e9 33517
fc46b7f3
RD
33518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_URLDataObject",kwnames,&obj0)) SWIG_fail;
33519 if (obj0) {
33520 {
33521 arg1 = wxString_in_helper(obj0);
33522 if (arg1 == NULL) SWIG_fail;
33523 temp1 = true;
33524 }
33525 }
554f62e9
RD
33526 {
33527 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 33528 result = (wxURLDataObject *)new wxURLDataObject((wxString const &)*arg1);
554f62e9
RD
33529 wxPyEndAllowThreads(__tstate);
33530 if (PyErr_Occurred()) SWIG_fail;
33531 }
33532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxURLDataObject, SWIG_POINTER_NEW | 0 );
fc46b7f3
RD
33533 {
33534 if (temp1)
33535 delete arg1;
33536 }
554f62e9
RD
33537 return resultobj;
33538fail:
fc46b7f3
RD
33539 {
33540 if (temp1)
33541 delete arg1;
33542 }
554f62e9 33543 return NULL;
d55e5bfc
RD
33544}
33545
33546
554f62e9
RD
33547SWIGINTERN PyObject *_wrap_URLDataObject_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33548 PyObject *resultobj = 0;
33549 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
33550 wxString result;
33551 void *argp1 = 0 ;
33552 int res1 = 0 ;
33553 PyObject *swig_obj[1] ;
33554
33555 if (!args) SWIG_fail;
33556 swig_obj[0] = args;
33557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxURLDataObject, 0 | 0 );
33558 if (!SWIG_IsOK(res1)) {
33559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "URLDataObject_GetURL" "', expected argument " "1"" of type '" "wxURLDataObject *""'");
33560 }
33561 arg1 = reinterpret_cast< wxURLDataObject * >(argp1);
33562 {
33563 PyThreadState* __tstate = wxPyBeginAllowThreads();
33564 result = (arg1)->GetURL();
33565 wxPyEndAllowThreads(__tstate);
33566 if (PyErr_Occurred()) SWIG_fail;
33567 }
33568 {
33569#if wxUSE_UNICODE
33570 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33571#else
33572 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33573#endif
33574 }
33575 return resultobj;
33576fail:
33577 return NULL;
33578}
33579
33580
33581SWIGINTERN PyObject *_wrap_URLDataObject_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33582 PyObject *resultobj = 0;
33583 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
33584 wxString *arg2 = 0 ;
33585 void *argp1 = 0 ;
33586 int res1 = 0 ;
33587 bool temp2 = false ;
33588 PyObject * obj0 = 0 ;
33589 PyObject * obj1 = 0 ;
33590 char * kwnames[] = {
33591 (char *) "self",(char *) "url", NULL
33592 };
33593
33594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
33595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxURLDataObject, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "URLDataObject_SetURL" "', expected argument " "1"" of type '" "wxURLDataObject *""'");
33598 }
33599 arg1 = reinterpret_cast< wxURLDataObject * >(argp1);
33600 {
33601 arg2 = wxString_in_helper(obj1);
33602 if (arg2 == NULL) SWIG_fail;
33603 temp2 = true;
33604 }
33605 {
33606 PyThreadState* __tstate = wxPyBeginAllowThreads();
33607 (arg1)->SetURL((wxString const &)*arg2);
33608 wxPyEndAllowThreads(__tstate);
33609 if (PyErr_Occurred()) SWIG_fail;
33610 }
33611 resultobj = SWIG_Py_Void();
33612 {
33613 if (temp2)
33614 delete arg2;
33615 }
33616 return resultobj;
33617fail:
33618 {
33619 if (temp2)
33620 delete arg2;
33621 }
33622 return NULL;
d55e5bfc
RD
33623}
33624
33625
554f62e9
RD
33626SWIGINTERN PyObject *URLDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33627 PyObject *obj;
33628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33629 SWIG_TypeNewClientData(SWIGTYPE_p_wxURLDataObject, SWIG_NewClientData(obj));
33630 return SWIG_Py_Void();
d55e5bfc
RD
33631}
33632
554f62e9
RD
33633SWIGINTERN PyObject *URLDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33634 return SWIG_Python_InitShadowInstance(args);
33635}
d55e5bfc 33636
554f62e9
RD
33637SWIGINTERN PyObject *_wrap_new_MetafileDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33638 PyObject *resultobj = 0;
33639 wxMetafileDataObject *result = 0 ;
33640
33641 if (!SWIG_Python_UnpackTuple(args,"new_MetafileDataObject",0,0,0)) SWIG_fail;
33642 {
33643 PyThreadState* __tstate = wxPyBeginAllowThreads();
33644 result = (wxMetafileDataObject *)new wxMetafileDataObject();
33645 wxPyEndAllowThreads(__tstate);
33646 if (PyErr_Occurred()) SWIG_fail;
33647 }
33648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetafileDataObject, SWIG_POINTER_NEW | 0 );
33649 return resultobj;
33650fail:
33651 return NULL;
33652}
33653
33654
33655SWIGINTERN PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33656 PyObject *resultobj = 0;
33657 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
33658 wxMetafile *arg2 = 0 ;
33659 void *argp1 = 0 ;
33660 int res1 = 0 ;
33661 void *argp2 = 0 ;
33662 int res2 = 0 ;
33663 PyObject * obj0 = 0 ;
33664 PyObject * obj1 = 0 ;
33665 char * kwnames[] = {
33666 (char *) "self",(char *) "metafile", NULL
33667 };
33668
33669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) SWIG_fail;
33670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetafileDataObject, 0 | 0 );
33671 if (!SWIG_IsOK(res1)) {
33672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetafileDataObject_SetMetafile" "', expected argument " "1"" of type '" "wxMetafileDataObject *""'");
33673 }
33674 arg1 = reinterpret_cast< wxMetafileDataObject * >(argp1);
33675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMetafile, 0 | 0);
33676 if (!SWIG_IsOK(res2)) {
33677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MetafileDataObject_SetMetafile" "', expected argument " "2"" of type '" "wxMetafile const &""'");
33678 }
33679 if (!argp2) {
33680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MetafileDataObject_SetMetafile" "', expected argument " "2"" of type '" "wxMetafile const &""'");
33681 }
33682 arg2 = reinterpret_cast< wxMetafile * >(argp2);
33683 {
33684 PyThreadState* __tstate = wxPyBeginAllowThreads();
33685 (arg1)->SetMetafile((wxMetafile const &)*arg2);
33686 wxPyEndAllowThreads(__tstate);
33687 if (PyErr_Occurred()) SWIG_fail;
33688 }
33689 resultobj = SWIG_Py_Void();
33690 return resultobj;
33691fail:
33692 return NULL;
d55e5bfc
RD
33693}
33694
33695
554f62e9
RD
33696SWIGINTERN PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33697 PyObject *resultobj = 0;
33698 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
33699 wxMetafile result;
33700 void *argp1 = 0 ;
33701 int res1 = 0 ;
33702 PyObject *swig_obj[1] ;
33703
33704 if (!args) SWIG_fail;
33705 swig_obj[0] = args;
33706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetafileDataObject, 0 | 0 );
33707 if (!SWIG_IsOK(res1)) {
33708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetafileDataObject_GetMetafile" "', expected argument " "1"" of type '" "wxMetafileDataObject const *""'");
33709 }
33710 arg1 = reinterpret_cast< wxMetafileDataObject * >(argp1);
33711 {
33712 PyThreadState* __tstate = wxPyBeginAllowThreads();
33713 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
33714 wxPyEndAllowThreads(__tstate);
33715 if (PyErr_Occurred()) SWIG_fail;
33716 }
33717 resultobj = SWIG_NewPointerObj((new wxMetafile(static_cast< const wxMetafile& >(result))), SWIGTYPE_p_wxMetafile, SWIG_POINTER_OWN | 0 );
33718 return resultobj;
33719fail:
33720 return NULL;
d55e5bfc
RD
33721}
33722
33723
554f62e9
RD
33724SWIGINTERN PyObject *MetafileDataObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33725 PyObject *obj;
33726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33727 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetafileDataObject, SWIG_NewClientData(obj));
33728 return SWIG_Py_Void();
d55e5bfc
RD
33729}
33730
554f62e9
RD
33731SWIGINTERN PyObject *MetafileDataObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 return SWIG_Python_InitShadowInstance(args);
33733}
d55e5bfc 33734
554f62e9
RD
33735SWIGINTERN PyObject *_wrap_IsDragResultOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33736 PyObject *resultobj = 0;
33737 wxDragResult arg1 ;
33738 bool result;
33739 int val1 ;
33740 int ecode1 = 0 ;
33741 PyObject * obj0 = 0 ;
33742 char * kwnames[] = {
33743 (char *) "res", NULL
33744 };
33745
33746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) SWIG_fail;
33747 ecode1 = SWIG_AsVal_int(obj0, &val1);
33748 if (!SWIG_IsOK(ecode1)) {
33749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IsDragResultOk" "', expected argument " "1"" of type '" "wxDragResult""'");
33750 }
33751 arg1 = static_cast< wxDragResult >(val1);
33752 {
33753 PyThreadState* __tstate = wxPyBeginAllowThreads();
33754 result = (bool)wxIsDragResultOk(arg1);
33755 wxPyEndAllowThreads(__tstate);
33756 if (PyErr_Occurred()) SWIG_fail;
33757 }
33758 {
33759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33760 }
33761 return resultobj;
33762fail:
33763 return NULL;
33764}
33765
33766
33767SWIGINTERN PyObject *_wrap_new_DropSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33768 PyObject *resultobj = 0;
33769 wxWindow *arg1 = (wxWindow *) 0 ;
33770 wxCursor const &arg2_defvalue = wxNullCursor ;
33771 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
33772 wxCursor const &arg3_defvalue = wxNullCursor ;
33773 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
33774 wxCursor const &arg4_defvalue = wxNullCursor ;
33775 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
33776 wxPyDropSource *result = 0 ;
33777 void *argp1 = 0 ;
33778 int res1 = 0 ;
33779 void *argp2 = 0 ;
33780 int res2 = 0 ;
33781 void *argp3 = 0 ;
33782 int res3 = 0 ;
33783 void *argp4 = 0 ;
33784 int res4 = 0 ;
33785 PyObject * obj0 = 0 ;
33786 PyObject * obj1 = 0 ;
33787 PyObject * obj2 = 0 ;
33788 PyObject * obj3 = 0 ;
33789 char * kwnames[] = {
33790 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
33791 };
33792
33793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33795 if (!SWIG_IsOK(res1)) {
33796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DropSource" "', expected argument " "1"" of type '" "wxWindow *""'");
33797 }
33798 arg1 = reinterpret_cast< wxWindow * >(argp1);
33799 if (obj1) {
33800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
33801 if (!SWIG_IsOK(res2)) {
33802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DropSource" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 33803 }
554f62e9
RD
33804 if (!argp2) {
33805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 33806 }
554f62e9
RD
33807 arg2 = reinterpret_cast< wxCursor * >(argp2);
33808 }
33809 if (obj2) {
33810 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxCursor, 0 | 0);
33811 if (!SWIG_IsOK(res3)) {
33812 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DropSource" "', expected argument " "3"" of type '" "wxCursor const &""'");
093d3ff1 33813 }
554f62e9
RD
33814 if (!argp3) {
33815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "3"" of type '" "wxCursor const &""'");
d55e5bfc 33816 }
554f62e9
RD
33817 arg3 = reinterpret_cast< wxCursor * >(argp3);
33818 }
33819 if (obj3) {
33820 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxCursor, 0 | 0);
33821 if (!SWIG_IsOK(res4)) {
33822 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DropSource" "', expected argument " "4"" of type '" "wxCursor const &""'");
d55e5bfc 33823 }
554f62e9
RD
33824 if (!argp4) {
33825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DropSource" "', expected argument " "4"" of type '" "wxCursor const &""'");
093d3ff1 33826 }
554f62e9
RD
33827 arg4 = reinterpret_cast< wxCursor * >(argp4);
33828 }
33829 {
33830 PyThreadState* __tstate = wxPyBeginAllowThreads();
33831 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
33832 wxPyEndAllowThreads(__tstate);
33833 if (PyErr_Occurred()) SWIG_fail;
33834 }
33835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_NEW | 0 );
33836 return resultobj;
33837fail:
33838 return NULL;
33839}
33840
33841
33842SWIGINTERN PyObject *_wrap_DropSource__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33843 PyObject *resultobj = 0;
33844 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33845 PyObject *arg2 = (PyObject *) 0 ;
33846 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 33847 int arg4 = (int) 0 ;
554f62e9
RD
33848 void *argp1 = 0 ;
33849 int res1 = 0 ;
33850 int val4 ;
33851 int ecode4 = 0 ;
33852 PyObject * obj0 = 0 ;
33853 PyObject * obj1 = 0 ;
33854 PyObject * obj2 = 0 ;
33855 PyObject * obj3 = 0 ;
33856 char * kwnames[] = {
33857 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
33858 };
33859
c25f90f6 33860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
33861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33862 if (!SWIG_IsOK(res1)) {
33863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33864 }
33865 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33866 arg2 = obj1;
33867 arg3 = obj2;
c25f90f6
RD
33868 if (obj3) {
33869 ecode4 = SWIG_AsVal_int(obj3, &val4);
33870 if (!SWIG_IsOK(ecode4)) {
33871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropSource__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
33872 }
33873 arg4 = static_cast< int >(val4);
33874 }
554f62e9
RD
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
33878 wxPyEndAllowThreads(__tstate);
33879 if (PyErr_Occurred()) SWIG_fail;
33880 }
33881 resultobj = SWIG_Py_Void();
33882 return resultobj;
33883fail:
33884 return NULL;
d55e5bfc
RD
33885}
33886
33887
554f62e9
RD
33888SWIGINTERN PyObject *_wrap_delete_DropSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33889 PyObject *resultobj = 0;
33890 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 PyObject *swig_obj[1] ;
33894
33895 if (!args) SWIG_fail;
33896 swig_obj[0] = args;
33897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropSource, SWIG_POINTER_DISOWN | 0 );
33898 if (!SWIG_IsOK(res1)) {
33899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DropSource" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33900 }
33901 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33902 {
33903 PyThreadState* __tstate = wxPyBeginAllowThreads();
33904 delete arg1;
d55e5bfc 33905
554f62e9
RD
33906 wxPyEndAllowThreads(__tstate);
33907 if (PyErr_Occurred()) SWIG_fail;
33908 }
33909 resultobj = SWIG_Py_Void();
33910 return resultobj;
33911fail:
33912 return NULL;
33913}
33914
33915
33916SWIGINTERN PyObject *_wrap_DropSource_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33917 PyObject *resultobj = 0;
33918 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33919 wxDataObject *arg2 = 0 ;
33920 void *argp1 = 0 ;
33921 int res1 = 0 ;
33922 void *argp2 = 0 ;
33923 int res2 = 0 ;
33924 PyObject * obj0 = 0 ;
33925 PyObject * obj1 = 0 ;
33926 char * kwnames[] = {
33927 (char *) "self",(char *) "data", NULL
33928 };
33929
33930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33932 if (!SWIG_IsOK(res1)) {
33933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_SetData" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33934 }
33935 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataObject, 0 );
33937 if (!SWIG_IsOK(res2)) {
33938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DropSource_SetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
33939 }
33940 if (!argp2) {
33941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DropSource_SetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
33942 }
33943 arg2 = reinterpret_cast< wxDataObject * >(argp2);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 (arg1)->SetData(*arg2);
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_Py_Void();
33951 return resultobj;
33952fail:
33953 return NULL;
d55e5bfc
RD
33954}
33955
33956
554f62e9
RD
33957SWIGINTERN PyObject *_wrap_DropSource_GetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33958 PyObject *resultobj = 0;
33959 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33960 wxDataObject *result = 0 ;
33961 void *argp1 = 0 ;
33962 int res1 = 0 ;
33963 PyObject *swig_obj[1] ;
33964
33965 if (!args) SWIG_fail;
33966 swig_obj[0] = args;
33967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
33968 if (!SWIG_IsOK(res1)) {
33969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_GetDataObject" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
33970 }
33971 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
33972 {
33973 PyThreadState* __tstate = wxPyBeginAllowThreads();
33974 result = (wxDataObject *)(arg1)->GetDataObject();
33975 wxPyEndAllowThreads(__tstate);
33976 if (PyErr_Occurred()) SWIG_fail;
33977 }
33978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObject, 0 | 0 );
33979 return resultobj;
33980fail:
33981 return NULL;
33982}
33983
33984
33985SWIGINTERN PyObject *_wrap_DropSource_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33986 PyObject *resultobj = 0;
33987 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
33988 wxDragResult arg2 ;
33989 wxCursor *arg3 = 0 ;
33990 void *argp1 = 0 ;
33991 int res1 = 0 ;
33992 int val2 ;
33993 int ecode2 = 0 ;
33994 void *argp3 = 0 ;
33995 int res3 = 0 ;
33996 PyObject * obj0 = 0 ;
33997 PyObject * obj1 = 0 ;
33998 PyObject * obj2 = 0 ;
33999 char * kwnames[] = {
34000 (char *) "self",(char *) "res",(char *) "cursor", NULL
34001 };
34002
34003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_SetCursor" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
34007 }
34008 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
34009 ecode2 = SWIG_AsVal_int(obj1, &val2);
34010 if (!SWIG_IsOK(ecode2)) {
34011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_SetCursor" "', expected argument " "2"" of type '" "wxDragResult""'");
34012 }
34013 arg2 = static_cast< wxDragResult >(val2);
34014 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxCursor, 0 | 0);
34015 if (!SWIG_IsOK(res3)) {
34016 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DropSource_SetCursor" "', expected argument " "3"" of type '" "wxCursor const &""'");
34017 }
34018 if (!argp3) {
34019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DropSource_SetCursor" "', expected argument " "3"" of type '" "wxCursor const &""'");
34020 }
34021 arg3 = reinterpret_cast< wxCursor * >(argp3);
34022 {
34023 PyThreadState* __tstate = wxPyBeginAllowThreads();
34024 (arg1)->SetCursor(arg2,(wxCursor const &)*arg3);
34025 wxPyEndAllowThreads(__tstate);
34026 if (PyErr_Occurred()) SWIG_fail;
34027 }
34028 resultobj = SWIG_Py_Void();
34029 return resultobj;
34030fail:
34031 return NULL;
34032}
34033
34034
34035SWIGINTERN PyObject *_wrap_DropSource_DoDragDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34036 PyObject *resultobj = 0;
34037 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
34038 int arg2 = (int) wxDrag_CopyOnly ;
34039 wxDragResult result;
34040 void *argp1 = 0 ;
34041 int res1 = 0 ;
34042 int val2 ;
34043 int ecode2 = 0 ;
34044 PyObject * obj0 = 0 ;
34045 PyObject * obj1 = 0 ;
34046 char * kwnames[] = {
34047 (char *) "self",(char *) "flags", NULL
34048 };
34049
34050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) SWIG_fail;
34051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
34052 if (!SWIG_IsOK(res1)) {
34053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_DoDragDrop" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
34054 }
34055 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
34056 if (obj1) {
34057 ecode2 = SWIG_AsVal_int(obj1, &val2);
34058 if (!SWIG_IsOK(ecode2)) {
34059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_DoDragDrop" "', expected argument " "2"" of type '" "int""'");
34060 }
34061 arg2 = static_cast< int >(val2);
34062 }
34063 {
34064 PyThreadState* __tstate = wxPyBeginAllowThreads();
34065 result = (wxDragResult)(arg1)->DoDragDrop(arg2);
34066 wxPyEndAllowThreads(__tstate);
34067 if (PyErr_Occurred()) SWIG_fail;
34068 }
34069 resultobj = SWIG_From_int(static_cast< int >(result));
34070 return resultobj;
34071fail:
34072 return NULL;
34073}
34074
34075
34076SWIGINTERN PyObject *_wrap_DropSource_GiveFeedback(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34077 PyObject *resultobj = 0;
34078 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
34079 wxDragResult arg2 ;
34080 bool result;
34081 void *argp1 = 0 ;
34082 int res1 = 0 ;
34083 int val2 ;
34084 int ecode2 = 0 ;
34085 PyObject * obj0 = 0 ;
34086 PyObject * obj1 = 0 ;
34087 char * kwnames[] = {
34088 (char *) "self",(char *) "effect", NULL
34089 };
34090
34091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_GiveFeedback",kwnames,&obj0,&obj1)) SWIG_fail;
34092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropSource, 0 | 0 );
34093 if (!SWIG_IsOK(res1)) {
34094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropSource_GiveFeedback" "', expected argument " "1"" of type '" "wxPyDropSource *""'");
34095 }
34096 arg1 = reinterpret_cast< wxPyDropSource * >(argp1);
34097 ecode2 = SWIG_AsVal_int(obj1, &val2);
34098 if (!SWIG_IsOK(ecode2)) {
34099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropSource_GiveFeedback" "', expected argument " "2"" of type '" "wxDragResult""'");
34100 }
34101 arg2 = static_cast< wxDragResult >(val2);
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 result = (bool)(arg1)->GiveFeedback(arg2);
34105 wxPyEndAllowThreads(__tstate);
34106 if (PyErr_Occurred()) SWIG_fail;
34107 }
34108 {
34109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34110 }
34111 return resultobj;
34112fail:
34113 return NULL;
d55e5bfc
RD
34114}
34115
34116
554f62e9
RD
34117SWIGINTERN PyObject *DropSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34118 PyObject *obj;
34119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34120 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDropSource, SWIG_NewClientData(obj));
34121 return SWIG_Py_Void();
d55e5bfc
RD
34122}
34123
554f62e9
RD
34124SWIGINTERN PyObject *DropSource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34125 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
34126}
34127
554f62e9
RD
34128SWIGINTERN PyObject *_wrap_new_DropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34129 PyObject *resultobj = 0;
34130 wxDataObject *arg1 = (wxDataObject *) NULL ;
34131 wxPyDropTarget *result = 0 ;
34132 int res1 = 0 ;
34133 PyObject * obj0 = 0 ;
34134 char * kwnames[] = {
34135 (char *) "dataObject", NULL
34136 };
34137
34138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) SWIG_fail;
34139 if (obj0) {
34140 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
34141 if (!SWIG_IsOK(res1)) {
34142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DropTarget" "', expected argument " "1"" of type '" "wxDataObject *""'");
d55e5bfc 34143 }
554f62e9
RD
34144 }
34145 {
34146 PyThreadState* __tstate = wxPyBeginAllowThreads();
34147 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
34148 wxPyEndAllowThreads(__tstate);
34149 if (PyErr_Occurred()) SWIG_fail;
34150 }
34151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_NEW | 0 );
34152 return resultobj;
34153fail:
34154 return NULL;
34155}
34156
34157
34158SWIGINTERN PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34159 PyObject *resultobj = 0;
34160 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34161 PyObject *arg2 = (PyObject *) 0 ;
34162 PyObject *arg3 = (PyObject *) 0 ;
34163 void *argp1 = 0 ;
34164 int res1 = 0 ;
34165 PyObject * obj0 = 0 ;
34166 PyObject * obj1 = 0 ;
34167 PyObject * obj2 = 0 ;
34168 char * kwnames[] = {
34169 (char *) "self",(char *) "self",(char *) "_class", NULL
34170 };
34171
34172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34174 if (!SWIG_IsOK(res1)) {
34175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34176 }
34177 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34178 arg2 = obj1;
34179 arg3 = obj2;
34180 {
34181 PyThreadState* __tstate = wxPyBeginAllowThreads();
34182 (arg1)->_setCallbackInfo(arg2,arg3);
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 return resultobj;
34188fail:
34189 return NULL;
d55e5bfc
RD
34190}
34191
34192
554f62e9
RD
34193SWIGINTERN PyObject *_wrap_delete_DropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34194 PyObject *resultobj = 0;
34195 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 PyObject *swig_obj[1] ;
34199
34200 if (!args) SWIG_fail;
34201 swig_obj[0] = args;
34202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_DISOWN | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DropTarget" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34205 }
34206 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34207 {
34208 PyThreadState* __tstate = wxPyBeginAllowThreads();
34209 delete arg1;
d55e5bfc 34210
554f62e9
RD
34211 wxPyEndAllowThreads(__tstate);
34212 if (PyErr_Occurred()) SWIG_fail;
34213 }
34214 resultobj = SWIG_Py_Void();
34215 return resultobj;
34216fail:
34217 return NULL;
d55e5bfc
RD
34218}
34219
34220
554f62e9
RD
34221SWIGINTERN PyObject *_wrap_DropTarget_GetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34222 PyObject *resultobj = 0;
34223 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34224 wxDataObject *result = 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 PyObject *swig_obj[1] ;
34228
34229 if (!args) SWIG_fail;
34230 swig_obj[0] = args;
34231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34232 if (!SWIG_IsOK(res1)) {
34233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetDataObject" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34234 }
34235 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34236 {
34237 PyThreadState* __tstate = wxPyBeginAllowThreads();
34238 result = (wxDataObject *)(arg1)->GetDataObject();
34239 wxPyEndAllowThreads(__tstate);
34240 if (PyErr_Occurred()) SWIG_fail;
34241 }
34242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDataObject, 0 | 0 );
34243 return resultobj;
34244fail:
34245 return NULL;
34246}
34247
34248
34249SWIGINTERN PyObject *_wrap_DropTarget_SetDataObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34250 PyObject *resultobj = 0;
34251 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34252 wxDataObject *arg2 = (wxDataObject *) 0 ;
34253 void *argp1 = 0 ;
34254 int res1 = 0 ;
34255 int res2 = 0 ;
34256 PyObject * obj0 = 0 ;
34257 PyObject * obj1 = 0 ;
34258 char * kwnames[] = {
34259 (char *) "self",(char *) "dataObject", NULL
34260 };
34261
34262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) SWIG_fail;
34263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34264 if (!SWIG_IsOK(res1)) {
34265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_SetDataObject" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34266 }
34267 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34268 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
34269 if (!SWIG_IsOK(res2)) {
34270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DropTarget_SetDataObject" "', expected argument " "2"" of type '" "wxDataObject *""'");
34271 }
34272 {
34273 PyThreadState* __tstate = wxPyBeginAllowThreads();
34274 (arg1)->SetDataObject(arg2);
34275 wxPyEndAllowThreads(__tstate);
34276 if (PyErr_Occurred()) SWIG_fail;
34277 }
34278 resultobj = SWIG_Py_Void();
34279 return resultobj;
34280fail:
34281 return NULL;
34282}
34283
34284
34285SWIGINTERN PyObject *_wrap_DropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34286 PyObject *resultobj = 0;
34287 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34288 int arg2 ;
34289 int arg3 ;
34290 wxDragResult arg4 ;
34291 wxDragResult result;
34292 void *argp1 = 0 ;
34293 int res1 = 0 ;
34294 int val2 ;
34295 int ecode2 = 0 ;
34296 int val3 ;
34297 int ecode3 = 0 ;
34298 int val4 ;
34299 int ecode4 = 0 ;
34300 PyObject * obj0 = 0 ;
34301 PyObject * obj1 = 0 ;
34302 PyObject * obj2 = 0 ;
34303 PyObject * obj3 = 0 ;
34304 char * kwnames[] = {
f460c29d 34305 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
34306 };
34307
34308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34310 if (!SWIG_IsOK(res1)) {
34311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34312 }
34313 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34314 ecode2 = SWIG_AsVal_int(obj1, &val2);
34315 if (!SWIG_IsOK(ecode2)) {
34316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
34317 }
34318 arg2 = static_cast< int >(val2);
34319 ecode3 = SWIG_AsVal_int(obj2, &val3);
34320 if (!SWIG_IsOK(ecode3)) {
34321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
34322 }
34323 arg3 = static_cast< int >(val3);
34324 ecode4 = SWIG_AsVal_int(obj3, &val4);
34325 if (!SWIG_IsOK(ecode4)) {
34326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
34327 }
34328 arg4 = static_cast< wxDragResult >(val4);
34329 {
34330 PyThreadState* __tstate = wxPyBeginAllowThreads();
34331 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
34332 wxPyEndAllowThreads(__tstate);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
34335 resultobj = SWIG_From_int(static_cast< int >(result));
34336 return resultobj;
34337fail:
34338 return NULL;
34339}
34340
34341
34342SWIGINTERN PyObject *_wrap_DropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34343 PyObject *resultobj = 0;
34344 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34345 int arg2 ;
34346 int arg3 ;
34347 wxDragResult arg4 ;
34348 wxDragResult result;
34349 void *argp1 = 0 ;
34350 int res1 = 0 ;
34351 int val2 ;
34352 int ecode2 = 0 ;
34353 int val3 ;
34354 int ecode3 = 0 ;
34355 int val4 ;
34356 int ecode4 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 PyObject * obj2 = 0 ;
34360 PyObject * obj3 = 0 ;
34361 char * kwnames[] = {
f460c29d 34362 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
34363 };
34364
34365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34367 if (!SWIG_IsOK(res1)) {
34368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34369 }
34370 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34371 ecode2 = SWIG_AsVal_int(obj1, &val2);
34372 if (!SWIG_IsOK(ecode2)) {
34373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
34374 }
34375 arg2 = static_cast< int >(val2);
34376 ecode3 = SWIG_AsVal_int(obj2, &val3);
34377 if (!SWIG_IsOK(ecode3)) {
34378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
34379 }
34380 arg3 = static_cast< int >(val3);
34381 ecode4 = SWIG_AsVal_int(obj3, &val4);
34382 if (!SWIG_IsOK(ecode4)) {
34383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
34384 }
34385 arg4 = static_cast< wxDragResult >(val4);
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
34389 wxPyEndAllowThreads(__tstate);
34390 if (PyErr_Occurred()) SWIG_fail;
34391 }
34392 resultobj = SWIG_From_int(static_cast< int >(result));
34393 return resultobj;
34394fail:
34395 return NULL;
d55e5bfc
RD
34396}
34397
34398
554f62e9
RD
34399SWIGINTERN PyObject *_wrap_DropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34400 PyObject *resultobj = 0;
34401 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34402 void *argp1 = 0 ;
34403 int res1 = 0 ;
34404 PyObject *swig_obj[1] ;
34405
34406 if (!args) SWIG_fail;
34407 swig_obj[0] = args;
34408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34409 if (!SWIG_IsOK(res1)) {
34410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34411 }
34412 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34413 {
34414 PyThreadState* __tstate = wxPyBeginAllowThreads();
34415 (arg1)->OnLeave();
34416 wxPyEndAllowThreads(__tstate);
34417 if (PyErr_Occurred()) SWIG_fail;
34418 }
34419 resultobj = SWIG_Py_Void();
34420 return resultobj;
34421fail:
34422 return NULL;
34423}
34424
34425
34426SWIGINTERN PyObject *_wrap_DropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34427 PyObject *resultobj = 0;
34428 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34429 int arg2 ;
34430 int arg3 ;
34431 bool result;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 int val2 ;
34435 int ecode2 = 0 ;
34436 int val3 ;
34437 int ecode3 = 0 ;
34438 PyObject * obj0 = 0 ;
34439 PyObject * obj1 = 0 ;
34440 PyObject * obj2 = 0 ;
34441 char * kwnames[] = {
34442 (char *) "self",(char *) "x",(char *) "y", NULL
34443 };
34444
34445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34447 if (!SWIG_IsOK(res1)) {
34448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34449 }
34450 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34451 ecode2 = SWIG_AsVal_int(obj1, &val2);
34452 if (!SWIG_IsOK(ecode2)) {
34453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
34454 }
34455 arg2 = static_cast< int >(val2);
34456 ecode3 = SWIG_AsVal_int(obj2, &val3);
34457 if (!SWIG_IsOK(ecode3)) {
34458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
34459 }
34460 arg3 = static_cast< int >(val3);
34461 {
34462 PyThreadState* __tstate = wxPyBeginAllowThreads();
34463 result = (bool)(arg1)->OnDrop(arg2,arg3);
34464 wxPyEndAllowThreads(__tstate);
34465 if (PyErr_Occurred()) SWIG_fail;
34466 }
34467 {
34468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34469 }
34470 return resultobj;
34471fail:
34472 return NULL;
d55e5bfc
RD
34473}
34474
34475
554f62e9
RD
34476SWIGINTERN PyObject *_wrap_DropTarget_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34477 PyObject *resultobj = 0;
34478 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34479 bool result;
34480 void *argp1 = 0 ;
34481 int res1 = 0 ;
34482 PyObject *swig_obj[1] ;
34483
34484 if (!args) SWIG_fail;
34485 swig_obj[0] = args;
34486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34487 if (!SWIG_IsOK(res1)) {
34488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetData" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34489 }
34490 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34491 {
34492 PyThreadState* __tstate = wxPyBeginAllowThreads();
34493 result = (bool)(arg1)->GetData();
34494 wxPyEndAllowThreads(__tstate);
34495 if (PyErr_Occurred()) SWIG_fail;
34496 }
34497 {
34498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34499 }
34500 return resultobj;
34501fail:
34502 return NULL;
34503}
34504
34505
34506SWIGINTERN PyObject *_wrap_DropTarget_SetDefaultAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34507 PyObject *resultobj = 0;
34508 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34509 wxDragResult arg2 ;
34510 void *argp1 = 0 ;
34511 int res1 = 0 ;
34512 int val2 ;
34513 int ecode2 = 0 ;
34514 PyObject * obj0 = 0 ;
34515 PyObject * obj1 = 0 ;
34516 char * kwnames[] = {
34517 (char *) "self",(char *) "action", NULL
34518 };
34519
34520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDefaultAction",kwnames,&obj0,&obj1)) SWIG_fail;
34521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34522 if (!SWIG_IsOK(res1)) {
34523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_SetDefaultAction" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34524 }
34525 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34526 ecode2 = SWIG_AsVal_int(obj1, &val2);
34527 if (!SWIG_IsOK(ecode2)) {
34528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DropTarget_SetDefaultAction" "', expected argument " "2"" of type '" "wxDragResult""'");
34529 }
34530 arg2 = static_cast< wxDragResult >(val2);
34531 {
34532 PyThreadState* __tstate = wxPyBeginAllowThreads();
34533 (arg1)->SetDefaultAction(arg2);
34534 wxPyEndAllowThreads(__tstate);
34535 if (PyErr_Occurred()) SWIG_fail;
34536 }
34537 resultobj = SWIG_Py_Void();
34538 return resultobj;
34539fail:
34540 return NULL;
d55e5bfc
RD
34541}
34542
34543
554f62e9
RD
34544SWIGINTERN PyObject *_wrap_DropTarget_GetDefaultAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34545 PyObject *resultobj = 0;
34546 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
34547 wxDragResult result;
34548 void *argp1 = 0 ;
34549 int res1 = 0 ;
34550 PyObject *swig_obj[1] ;
34551
34552 if (!args) SWIG_fail;
34553 swig_obj[0] = args;
34554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
34555 if (!SWIG_IsOK(res1)) {
34556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropTarget_GetDefaultAction" "', expected argument " "1"" of type '" "wxPyDropTarget *""'");
34557 }
34558 arg1 = reinterpret_cast< wxPyDropTarget * >(argp1);
34559 {
34560 PyThreadState* __tstate = wxPyBeginAllowThreads();
34561 result = (wxDragResult)(arg1)->GetDefaultAction();
34562 wxPyEndAllowThreads(__tstate);
34563 if (PyErr_Occurred()) SWIG_fail;
34564 }
34565 resultobj = SWIG_From_int(static_cast< int >(result));
34566 return resultobj;
34567fail:
34568 return NULL;
d55e5bfc
RD
34569}
34570
34571
554f62e9
RD
34572SWIGINTERN PyObject *DropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34573 PyObject *obj;
34574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34575 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyDropTarget, SWIG_NewClientData(obj));
34576 return SWIG_Py_Void();
d55e5bfc
RD
34577}
34578
554f62e9
RD
34579SWIGINTERN PyObject *DropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34580 return SWIG_Python_InitShadowInstance(args);
34581}
d55e5bfc 34582
554f62e9
RD
34583SWIGINTERN PyObject *_wrap_new_TextDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34584 PyObject *resultobj = 0;
34585 wxPyTextDropTarget *result = 0 ;
34586
34587 if (!SWIG_Python_UnpackTuple(args,"new_TextDropTarget",0,0,0)) SWIG_fail;
34588 {
34589 PyThreadState* __tstate = wxPyBeginAllowThreads();
34590 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
34591 wxPyEndAllowThreads(__tstate);
34592 if (PyErr_Occurred()) SWIG_fail;
34593 }
34594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTextDropTarget, SWIG_POINTER_NEW | 0 );
34595 return resultobj;
34596fail:
34597 return NULL;
34598}
34599
34600
34601SWIGINTERN PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34602 PyObject *resultobj = 0;
34603 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34604 PyObject *arg2 = (PyObject *) 0 ;
34605 PyObject *arg3 = (PyObject *) 0 ;
34606 void *argp1 = 0 ;
34607 int res1 = 0 ;
34608 PyObject * obj0 = 0 ;
34609 PyObject * obj1 = 0 ;
34610 PyObject * obj2 = 0 ;
34611 char * kwnames[] = {
34612 (char *) "self",(char *) "self",(char *) "_class", NULL
34613 };
34614
34615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34617 if (!SWIG_IsOK(res1)) {
34618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34619 }
34620 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34621 arg2 = obj1;
34622 arg3 = obj2;
34623 {
34624 PyThreadState* __tstate = wxPyBeginAllowThreads();
34625 (arg1)->_setCallbackInfo(arg2,arg3);
34626 wxPyEndAllowThreads(__tstate);
34627 if (PyErr_Occurred()) SWIG_fail;
34628 }
34629 resultobj = SWIG_Py_Void();
34630 return resultobj;
34631fail:
34632 return NULL;
34633}
34634
34635
34636SWIGINTERN PyObject *_wrap_TextDropTarget_OnDropText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34637 PyObject *resultobj = 0;
34638 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34639 int arg2 ;
34640 int arg3 ;
34641 wxString *arg4 = 0 ;
34642 bool result;
34643 void *argp1 = 0 ;
34644 int res1 = 0 ;
34645 int val2 ;
34646 int ecode2 = 0 ;
34647 int val3 ;
34648 int ecode3 = 0 ;
34649 bool temp4 = false ;
34650 PyObject * obj0 = 0 ;
34651 PyObject * obj1 = 0 ;
34652 PyObject * obj2 = 0 ;
34653 PyObject * obj3 = 0 ;
34654 char * kwnames[] = {
34655 (char *) "self",(char *) "x",(char *) "y",(char *) "text", NULL
34656 };
34657
34658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDropText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34660 if (!SWIG_IsOK(res1)) {
34661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDropText" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34662 }
34663 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34664 ecode2 = SWIG_AsVal_int(obj1, &val2);
34665 if (!SWIG_IsOK(ecode2)) {
34666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDropText" "', expected argument " "2"" of type '" "int""'");
34667 }
34668 arg2 = static_cast< int >(val2);
34669 ecode3 = SWIG_AsVal_int(obj2, &val3);
34670 if (!SWIG_IsOK(ecode3)) {
34671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDropText" "', expected argument " "3"" of type '" "int""'");
34672 }
34673 arg3 = static_cast< int >(val3);
34674 {
34675 arg4 = wxString_in_helper(obj3);
34676 if (arg4 == NULL) SWIG_fail;
34677 temp4 = true;
34678 }
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 result = (bool)(arg1)->OnDropText(arg2,arg3,(wxString const &)*arg4);
34682 wxPyEndAllowThreads(__tstate);
34683 if (PyErr_Occurred()) SWIG_fail;
34684 }
34685 {
34686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34687 }
34688 {
34689 if (temp4)
34690 delete arg4;
34691 }
34692 return resultobj;
34693fail:
34694 {
34695 if (temp4)
34696 delete arg4;
34697 }
34698 return NULL;
34699}
34700
34701
34702SWIGINTERN PyObject *_wrap_TextDropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34703 PyObject *resultobj = 0;
34704 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34705 int arg2 ;
34706 int arg3 ;
34707 wxDragResult arg4 ;
34708 wxDragResult result;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 int val2 ;
34712 int ecode2 = 0 ;
34713 int val3 ;
34714 int ecode3 = 0 ;
34715 int val4 ;
34716 int ecode4 = 0 ;
34717 PyObject * obj0 = 0 ;
34718 PyObject * obj1 = 0 ;
34719 PyObject * obj2 = 0 ;
34720 PyObject * obj3 = 0 ;
34721 char * kwnames[] = {
f460c29d 34722 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
34723 };
34724
34725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34727 if (!SWIG_IsOK(res1)) {
34728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34729 }
34730 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34731 ecode2 = SWIG_AsVal_int(obj1, &val2);
34732 if (!SWIG_IsOK(ecode2)) {
34733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
34734 }
34735 arg2 = static_cast< int >(val2);
34736 ecode3 = SWIG_AsVal_int(obj2, &val3);
34737 if (!SWIG_IsOK(ecode3)) {
34738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
34739 }
34740 arg3 = static_cast< int >(val3);
34741 ecode4 = SWIG_AsVal_int(obj3, &val4);
34742 if (!SWIG_IsOK(ecode4)) {
34743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
34744 }
34745 arg4 = static_cast< wxDragResult >(val4);
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 resultobj = SWIG_From_int(static_cast< int >(result));
34753 return resultobj;
34754fail:
34755 return NULL;
34756}
34757
34758
34759SWIGINTERN PyObject *_wrap_TextDropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34760 PyObject *resultobj = 0;
34761 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34762 int arg2 ;
34763 int arg3 ;
34764 wxDragResult arg4 ;
34765 wxDragResult result;
34766 void *argp1 = 0 ;
34767 int res1 = 0 ;
34768 int val2 ;
34769 int ecode2 = 0 ;
34770 int val3 ;
34771 int ecode3 = 0 ;
34772 int val4 ;
34773 int ecode4 = 0 ;
34774 PyObject * obj0 = 0 ;
34775 PyObject * obj1 = 0 ;
34776 PyObject * obj2 = 0 ;
34777 PyObject * obj3 = 0 ;
34778 char * kwnames[] = {
f460c29d 34779 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
34780 };
34781
34782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34784 if (!SWIG_IsOK(res1)) {
34785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34786 }
34787 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34788 ecode2 = SWIG_AsVal_int(obj1, &val2);
34789 if (!SWIG_IsOK(ecode2)) {
34790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
34791 }
34792 arg2 = static_cast< int >(val2);
34793 ecode3 = SWIG_AsVal_int(obj2, &val3);
34794 if (!SWIG_IsOK(ecode3)) {
34795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
34796 }
34797 arg3 = static_cast< int >(val3);
34798 ecode4 = SWIG_AsVal_int(obj3, &val4);
34799 if (!SWIG_IsOK(ecode4)) {
34800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
34801 }
34802 arg4 = static_cast< wxDragResult >(val4);
34803 {
34804 PyThreadState* __tstate = wxPyBeginAllowThreads();
34805 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
34806 wxPyEndAllowThreads(__tstate);
34807 if (PyErr_Occurred()) SWIG_fail;
34808 }
34809 resultobj = SWIG_From_int(static_cast< int >(result));
34810 return resultobj;
34811fail:
34812 return NULL;
d55e5bfc
RD
34813}
34814
34815
554f62e9
RD
34816SWIGINTERN PyObject *_wrap_TextDropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34817 PyObject *resultobj = 0;
34818 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 PyObject *swig_obj[1] ;
34822
34823 if (!args) SWIG_fail;
34824 swig_obj[0] = args;
34825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34826 if (!SWIG_IsOK(res1)) {
34827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34828 }
34829 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 (arg1)->OnLeave();
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = SWIG_Py_Void();
34837 return resultobj;
34838fail:
34839 return NULL;
34840}
34841
34842
34843SWIGINTERN PyObject *_wrap_TextDropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34844 PyObject *resultobj = 0;
34845 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34846 int arg2 ;
34847 int arg3 ;
34848 bool result;
34849 void *argp1 = 0 ;
34850 int res1 = 0 ;
34851 int val2 ;
34852 int ecode2 = 0 ;
34853 int val3 ;
34854 int ecode3 = 0 ;
34855 PyObject * obj0 = 0 ;
34856 PyObject * obj1 = 0 ;
34857 PyObject * obj2 = 0 ;
34858 char * kwnames[] = {
34859 (char *) "self",(char *) "x",(char *) "y", NULL
34860 };
34861
34862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34864 if (!SWIG_IsOK(res1)) {
34865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34866 }
34867 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34868 ecode2 = SWIG_AsVal_int(obj1, &val2);
34869 if (!SWIG_IsOK(ecode2)) {
34870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
34871 }
34872 arg2 = static_cast< int >(val2);
34873 ecode3 = SWIG_AsVal_int(obj2, &val3);
34874 if (!SWIG_IsOK(ecode3)) {
34875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
34876 }
34877 arg3 = static_cast< int >(val3);
34878 {
34879 PyThreadState* __tstate = wxPyBeginAllowThreads();
34880 result = (bool)(arg1)->OnDrop(arg2,arg3);
34881 wxPyEndAllowThreads(__tstate);
34882 if (PyErr_Occurred()) SWIG_fail;
34883 }
34884 {
34885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34886 }
34887 return resultobj;
34888fail:
34889 return NULL;
34890}
34891
34892
34893SWIGINTERN PyObject *_wrap_TextDropTarget_OnData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34894 PyObject *resultobj = 0;
34895 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
34896 int arg2 ;
34897 int arg3 ;
34898 wxDragResult arg4 ;
34899 wxDragResult result;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 int val2 ;
34903 int ecode2 = 0 ;
34904 int val3 ;
34905 int ecode3 = 0 ;
34906 int val4 ;
34907 int ecode4 = 0 ;
34908 PyObject * obj0 = 0 ;
34909 PyObject * obj1 = 0 ;
34910 PyObject * obj2 = 0 ;
34911 PyObject * obj3 = 0 ;
34912 char * kwnames[] = {
f460c29d 34913 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
34914 };
34915
34916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTextDropTarget, 0 | 0 );
34918 if (!SWIG_IsOK(res1)) {
34919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextDropTarget_OnData" "', expected argument " "1"" of type '" "wxPyTextDropTarget *""'");
34920 }
34921 arg1 = reinterpret_cast< wxPyTextDropTarget * >(argp1);
34922 ecode2 = SWIG_AsVal_int(obj1, &val2);
34923 if (!SWIG_IsOK(ecode2)) {
34924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextDropTarget_OnData" "', expected argument " "2"" of type '" "int""'");
34925 }
34926 arg2 = static_cast< int >(val2);
34927 ecode3 = SWIG_AsVal_int(obj2, &val3);
34928 if (!SWIG_IsOK(ecode3)) {
34929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextDropTarget_OnData" "', expected argument " "3"" of type '" "int""'");
34930 }
34931 arg3 = static_cast< int >(val3);
34932 ecode4 = SWIG_AsVal_int(obj3, &val4);
34933 if (!SWIG_IsOK(ecode4)) {
34934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TextDropTarget_OnData" "', expected argument " "4"" of type '" "wxDragResult""'");
34935 }
34936 arg4 = static_cast< wxDragResult >(val4);
34937 {
34938 PyThreadState* __tstate = wxPyBeginAllowThreads();
34939 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
34940 wxPyEndAllowThreads(__tstate);
34941 if (PyErr_Occurred()) SWIG_fail;
34942 }
34943 resultobj = SWIG_From_int(static_cast< int >(result));
34944 return resultobj;
34945fail:
34946 return NULL;
d55e5bfc
RD
34947}
34948
34949
554f62e9
RD
34950SWIGINTERN PyObject *TextDropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34951 PyObject *obj;
34952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34953 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTextDropTarget, SWIG_NewClientData(obj));
34954 return SWIG_Py_Void();
d55e5bfc
RD
34955}
34956
554f62e9
RD
34957SWIGINTERN PyObject *TextDropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34958 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
34959}
34960
554f62e9
RD
34961SWIGINTERN PyObject *_wrap_new_FileDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34962 PyObject *resultobj = 0;
34963 wxPyFileDropTarget *result = 0 ;
34964
34965 if (!SWIG_Python_UnpackTuple(args,"new_FileDropTarget",0,0,0)) SWIG_fail;
34966 {
34967 PyThreadState* __tstate = wxPyBeginAllowThreads();
34968 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
34969 wxPyEndAllowThreads(__tstate);
34970 if (PyErr_Occurred()) SWIG_fail;
34971 }
34972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFileDropTarget, SWIG_POINTER_NEW | 0 );
34973 return resultobj;
34974fail:
34975 return NULL;
34976}
34977
34978
34979SWIGINTERN PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34980 PyObject *resultobj = 0;
34981 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
34982 PyObject *arg2 = (PyObject *) 0 ;
34983 PyObject *arg3 = (PyObject *) 0 ;
34984 void *argp1 = 0 ;
34985 int res1 = 0 ;
34986 PyObject * obj0 = 0 ;
34987 PyObject * obj1 = 0 ;
34988 PyObject * obj2 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "self",(char *) "_class", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
34999 arg2 = obj1;
35000 arg3 = obj2;
35001 {
35002 PyThreadState* __tstate = wxPyBeginAllowThreads();
35003 (arg1)->_setCallbackInfo(arg2,arg3);
35004 wxPyEndAllowThreads(__tstate);
35005 if (PyErr_Occurred()) SWIG_fail;
35006 }
35007 resultobj = SWIG_Py_Void();
35008 return resultobj;
35009fail:
35010 return NULL;
35011}
35012
35013
35014SWIGINTERN PyObject *_wrap_FileDropTarget_OnDropFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35015 PyObject *resultobj = 0;
35016 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35017 int arg2 ;
35018 int arg3 ;
35019 wxArrayString *arg4 = 0 ;
35020 bool result;
35021 void *argp1 = 0 ;
35022 int res1 = 0 ;
35023 int val2 ;
35024 int ecode2 = 0 ;
35025 int val3 ;
35026 int ecode3 = 0 ;
35027 bool temp4 = false ;
35028 PyObject * obj0 = 0 ;
35029 PyObject * obj1 = 0 ;
35030 PyObject * obj2 = 0 ;
35031 PyObject * obj3 = 0 ;
35032 char * kwnames[] = {
35033 (char *) "self",(char *) "x",(char *) "y",(char *) "filenames", NULL
35034 };
35035
35036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDropFiles",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35038 if (!SWIG_IsOK(res1)) {
35039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35040 }
35041 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35042 ecode2 = SWIG_AsVal_int(obj1, &val2);
35043 if (!SWIG_IsOK(ecode2)) {
35044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "2"" of type '" "int""'");
35045 }
35046 arg2 = static_cast< int >(val2);
35047 ecode3 = SWIG_AsVal_int(obj2, &val3);
35048 if (!SWIG_IsOK(ecode3)) {
35049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDropFiles" "', expected argument " "3"" of type '" "int""'");
35050 }
35051 arg3 = static_cast< int >(val3);
35052 {
35053 if (! PySequence_Check(obj3)) {
35054 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
35055 SWIG_fail;
35056 }
35057 arg4 = new wxArrayString;
35058 temp4 = true;
35059 int i, len=PySequence_Length(obj3);
35060 for (i=0; i<len; i++) {
35061 PyObject* item = PySequence_GetItem(obj3, i);
35062 wxString* s = wxString_in_helper(item);
35063 if (PyErr_Occurred()) SWIG_fail;
35064 arg4->Add(*s);
35065 delete s;
35066 Py_DECREF(item);
d55e5bfc 35067 }
554f62e9
RD
35068 }
35069 {
35070 PyThreadState* __tstate = wxPyBeginAllowThreads();
35071 result = (bool)(arg1)->OnDropFiles(arg2,arg3,(wxArrayString const &)*arg4);
35072 wxPyEndAllowThreads(__tstate);
35073 if (PyErr_Occurred()) SWIG_fail;
35074 }
35075 {
35076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35077 }
35078 {
35079 if (temp4) delete arg4;
35080 }
35081 return resultobj;
35082fail:
35083 {
35084 if (temp4) delete arg4;
35085 }
35086 return NULL;
35087}
35088
35089
35090SWIGINTERN PyObject *_wrap_FileDropTarget_OnEnter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35091 PyObject *resultobj = 0;
35092 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35093 int arg2 ;
35094 int arg3 ;
35095 wxDragResult arg4 ;
35096 wxDragResult result;
35097 void *argp1 = 0 ;
35098 int res1 = 0 ;
35099 int val2 ;
35100 int ecode2 = 0 ;
35101 int val3 ;
35102 int ecode3 = 0 ;
35103 int val4 ;
35104 int ecode4 = 0 ;
35105 PyObject * obj0 = 0 ;
35106 PyObject * obj1 = 0 ;
35107 PyObject * obj2 = 0 ;
35108 PyObject * obj3 = 0 ;
35109 char * kwnames[] = {
f460c29d 35110 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
35111 };
35112
35113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35115 if (!SWIG_IsOK(res1)) {
35116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnEnter" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35117 }
35118 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35119 ecode2 = SWIG_AsVal_int(obj1, &val2);
35120 if (!SWIG_IsOK(ecode2)) {
35121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnEnter" "', expected argument " "2"" of type '" "int""'");
35122 }
35123 arg2 = static_cast< int >(val2);
35124 ecode3 = SWIG_AsVal_int(obj2, &val3);
35125 if (!SWIG_IsOK(ecode3)) {
35126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnEnter" "', expected argument " "3"" of type '" "int""'");
35127 }
35128 arg3 = static_cast< int >(val3);
35129 ecode4 = SWIG_AsVal_int(obj3, &val4);
35130 if (!SWIG_IsOK(ecode4)) {
35131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnEnter" "', expected argument " "4"" of type '" "wxDragResult""'");
35132 }
35133 arg4 = static_cast< wxDragResult >(val4);
35134 {
35135 PyThreadState* __tstate = wxPyBeginAllowThreads();
35136 result = (wxDragResult)(arg1)->OnEnter(arg2,arg3,arg4);
35137 wxPyEndAllowThreads(__tstate);
35138 if (PyErr_Occurred()) SWIG_fail;
35139 }
35140 resultobj = SWIG_From_int(static_cast< int >(result));
35141 return resultobj;
35142fail:
35143 return NULL;
35144}
35145
35146
35147SWIGINTERN PyObject *_wrap_FileDropTarget_OnDragOver(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35148 PyObject *resultobj = 0;
35149 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35150 int arg2 ;
35151 int arg3 ;
35152 wxDragResult arg4 ;
35153 wxDragResult result;
35154 void *argp1 = 0 ;
35155 int res1 = 0 ;
35156 int val2 ;
35157 int ecode2 = 0 ;
35158 int val3 ;
35159 int ecode3 = 0 ;
35160 int val4 ;
35161 int ecode4 = 0 ;
35162 PyObject * obj0 = 0 ;
35163 PyObject * obj1 = 0 ;
35164 PyObject * obj2 = 0 ;
35165 PyObject * obj3 = 0 ;
35166 char * kwnames[] = {
f460c29d 35167 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
35168 };
35169
35170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35172 if (!SWIG_IsOK(res1)) {
35173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35174 }
35175 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35176 ecode2 = SWIG_AsVal_int(obj1, &val2);
35177 if (!SWIG_IsOK(ecode2)) {
35178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "2"" of type '" "int""'");
35179 }
35180 arg2 = static_cast< int >(val2);
35181 ecode3 = SWIG_AsVal_int(obj2, &val3);
35182 if (!SWIG_IsOK(ecode3)) {
35183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "3"" of type '" "int""'");
35184 }
35185 arg3 = static_cast< int >(val3);
35186 ecode4 = SWIG_AsVal_int(obj3, &val4);
35187 if (!SWIG_IsOK(ecode4)) {
35188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnDragOver" "', expected argument " "4"" of type '" "wxDragResult""'");
35189 }
35190 arg4 = static_cast< wxDragResult >(val4);
35191 {
35192 PyThreadState* __tstate = wxPyBeginAllowThreads();
35193 result = (wxDragResult)(arg1)->OnDragOver(arg2,arg3,arg4);
35194 wxPyEndAllowThreads(__tstate);
35195 if (PyErr_Occurred()) SWIG_fail;
35196 }
35197 resultobj = SWIG_From_int(static_cast< int >(result));
35198 return resultobj;
35199fail:
35200 return NULL;
d55e5bfc
RD
35201}
35202
35203
554f62e9
RD
35204SWIGINTERN PyObject *_wrap_FileDropTarget_OnLeave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35205 PyObject *resultobj = 0;
35206 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35207 void *argp1 = 0 ;
35208 int res1 = 0 ;
35209 PyObject *swig_obj[1] ;
35210
35211 if (!args) SWIG_fail;
35212 swig_obj[0] = args;
35213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35214 if (!SWIG_IsOK(res1)) {
35215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnLeave" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35216 }
35217 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35218 {
35219 PyThreadState* __tstate = wxPyBeginAllowThreads();
35220 (arg1)->OnLeave();
35221 wxPyEndAllowThreads(__tstate);
35222 if (PyErr_Occurred()) SWIG_fail;
35223 }
35224 resultobj = SWIG_Py_Void();
35225 return resultobj;
35226fail:
35227 return NULL;
35228}
35229
35230
35231SWIGINTERN PyObject *_wrap_FileDropTarget_OnDrop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35232 PyObject *resultobj = 0;
35233 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35234 int arg2 ;
35235 int arg3 ;
35236 bool result;
35237 void *argp1 = 0 ;
35238 int res1 = 0 ;
35239 int val2 ;
35240 int ecode2 = 0 ;
35241 int val3 ;
35242 int ecode3 = 0 ;
35243 PyObject * obj0 = 0 ;
35244 PyObject * obj1 = 0 ;
35245 PyObject * obj2 = 0 ;
35246 char * kwnames[] = {
35247 (char *) "self",(char *) "x",(char *) "y", NULL
35248 };
35249
35250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_OnDrop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnDrop" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35254 }
35255 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35256 ecode2 = SWIG_AsVal_int(obj1, &val2);
35257 if (!SWIG_IsOK(ecode2)) {
35258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnDrop" "', expected argument " "2"" of type '" "int""'");
35259 }
35260 arg2 = static_cast< int >(val2);
35261 ecode3 = SWIG_AsVal_int(obj2, &val3);
35262 if (!SWIG_IsOK(ecode3)) {
35263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnDrop" "', expected argument " "3"" of type '" "int""'");
35264 }
35265 arg3 = static_cast< int >(val3);
35266 {
35267 PyThreadState* __tstate = wxPyBeginAllowThreads();
35268 result = (bool)(arg1)->OnDrop(arg2,arg3);
35269 wxPyEndAllowThreads(__tstate);
35270 if (PyErr_Occurred()) SWIG_fail;
35271 }
35272 {
35273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35274 }
35275 return resultobj;
35276fail:
35277 return NULL;
35278}
35279
35280
35281SWIGINTERN PyObject *_wrap_FileDropTarget_OnData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35282 PyObject *resultobj = 0;
35283 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
35284 int arg2 ;
35285 int arg3 ;
35286 wxDragResult arg4 ;
35287 wxDragResult result;
35288 void *argp1 = 0 ;
35289 int res1 = 0 ;
35290 int val2 ;
35291 int ecode2 = 0 ;
35292 int val3 ;
35293 int ecode3 = 0 ;
35294 int val4 ;
35295 int ecode4 = 0 ;
35296 PyObject * obj0 = 0 ;
35297 PyObject * obj1 = 0 ;
35298 PyObject * obj2 = 0 ;
35299 PyObject * obj3 = 0 ;
35300 char * kwnames[] = {
f460c29d 35301 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
554f62e9
RD
35302 };
35303
35304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileDropTarget, 0 | 0 );
35306 if (!SWIG_IsOK(res1)) {
35307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDropTarget_OnData" "', expected argument " "1"" of type '" "wxPyFileDropTarget *""'");
35308 }
35309 arg1 = reinterpret_cast< wxPyFileDropTarget * >(argp1);
35310 ecode2 = SWIG_AsVal_int(obj1, &val2);
35311 if (!SWIG_IsOK(ecode2)) {
35312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDropTarget_OnData" "', expected argument " "2"" of type '" "int""'");
35313 }
35314 arg2 = static_cast< int >(val2);
35315 ecode3 = SWIG_AsVal_int(obj2, &val3);
35316 if (!SWIG_IsOK(ecode3)) {
35317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileDropTarget_OnData" "', expected argument " "3"" of type '" "int""'");
35318 }
35319 arg3 = static_cast< int >(val3);
35320 ecode4 = SWIG_AsVal_int(obj3, &val4);
35321 if (!SWIG_IsOK(ecode4)) {
35322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FileDropTarget_OnData" "', expected argument " "4"" of type '" "wxDragResult""'");
35323 }
35324 arg4 = static_cast< wxDragResult >(val4);
35325 {
35326 PyThreadState* __tstate = wxPyBeginAllowThreads();
35327 result = (wxDragResult)(arg1)->OnData(arg2,arg3,arg4);
35328 wxPyEndAllowThreads(__tstate);
35329 if (PyErr_Occurred()) SWIG_fail;
35330 }
35331 resultobj = SWIG_From_int(static_cast< int >(result));
35332 return resultobj;
35333fail:
35334 return NULL;
d55e5bfc
RD
35335}
35336
35337
554f62e9
RD
35338SWIGINTERN PyObject *FileDropTarget_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35339 PyObject *obj;
35340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35341 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFileDropTarget, SWIG_NewClientData(obj));
35342 return SWIG_Py_Void();
d55e5bfc
RD
35343}
35344
554f62e9
RD
35345SWIGINTERN PyObject *FileDropTarget_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35346 return SWIG_Python_InitShadowInstance(args);
35347}
d55e5bfc 35348
554f62e9
RD
35349SWIGINTERN PyObject *_wrap_new_Clipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35350 PyObject *resultobj = 0;
35351 wxClipboard *result = 0 ;
35352
35353 if (!SWIG_Python_UnpackTuple(args,"new_Clipboard",0,0,0)) SWIG_fail;
35354 {
35355 PyThreadState* __tstate = wxPyBeginAllowThreads();
35356 result = (wxClipboard *)new wxClipboard();
35357 wxPyEndAllowThreads(__tstate);
35358 if (PyErr_Occurred()) SWIG_fail;
35359 }
35360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboard, SWIG_POINTER_NEW | 0 );
35361 return resultobj;
35362fail:
35363 return NULL;
d55e5bfc
RD
35364}
35365
35366
554f62e9
RD
35367SWIGINTERN PyObject *_wrap_delete_Clipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35368 PyObject *resultobj = 0;
35369 wxClipboard *arg1 = (wxClipboard *) 0 ;
35370 void *argp1 = 0 ;
35371 int res1 = 0 ;
35372 PyObject *swig_obj[1] ;
35373
35374 if (!args) SWIG_fail;
35375 swig_obj[0] = args;
35376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, SWIG_POINTER_DISOWN | 0 );
35377 if (!SWIG_IsOK(res1)) {
35378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Clipboard" "', expected argument " "1"" of type '" "wxClipboard *""'");
35379 }
35380 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 delete arg1;
d55e5bfc 35384
554f62e9
RD
35385 wxPyEndAllowThreads(__tstate);
35386 if (PyErr_Occurred()) SWIG_fail;
35387 }
35388 resultobj = SWIG_Py_Void();
35389 return resultobj;
35390fail:
35391 return NULL;
d55e5bfc
RD
35392}
35393
35394
554f62e9
RD
35395SWIGINTERN PyObject *_wrap_Clipboard_Open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35396 PyObject *resultobj = 0;
35397 wxClipboard *arg1 = (wxClipboard *) 0 ;
35398 bool result;
35399 void *argp1 = 0 ;
35400 int res1 = 0 ;
35401 PyObject *swig_obj[1] ;
35402
35403 if (!args) SWIG_fail;
35404 swig_obj[0] = args;
35405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35406 if (!SWIG_IsOK(res1)) {
35407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Open" "', expected argument " "1"" of type '" "wxClipboard *""'");
35408 }
35409 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35410 {
35411 PyThreadState* __tstate = wxPyBeginAllowThreads();
35412 result = (bool)(arg1)->Open();
35413 wxPyEndAllowThreads(__tstate);
35414 if (PyErr_Occurred()) SWIG_fail;
35415 }
35416 {
35417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35418 }
35419 return resultobj;
35420fail:
35421 return NULL;
d55e5bfc
RD
35422}
35423
35424
554f62e9
RD
35425SWIGINTERN PyObject *_wrap_Clipboard_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35426 PyObject *resultobj = 0;
35427 wxClipboard *arg1 = (wxClipboard *) 0 ;
35428 void *argp1 = 0 ;
35429 int res1 = 0 ;
35430 PyObject *swig_obj[1] ;
35431
35432 if (!args) SWIG_fail;
35433 swig_obj[0] = args;
35434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Close" "', expected argument " "1"" of type '" "wxClipboard *""'");
35437 }
35438 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35439 {
35440 PyThreadState* __tstate = wxPyBeginAllowThreads();
35441 (arg1)->Close();
35442 wxPyEndAllowThreads(__tstate);
35443 if (PyErr_Occurred()) SWIG_fail;
35444 }
35445 resultobj = SWIG_Py_Void();
35446 return resultobj;
35447fail:
35448 return NULL;
d55e5bfc
RD
35449}
35450
35451
554f62e9
RD
35452SWIGINTERN PyObject *_wrap_Clipboard_IsOpened(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35453 PyObject *resultobj = 0;
35454 wxClipboard *arg1 = (wxClipboard *) 0 ;
35455 bool result;
35456 void *argp1 = 0 ;
35457 int res1 = 0 ;
35458 PyObject *swig_obj[1] ;
35459
35460 if (!args) SWIG_fail;
35461 swig_obj[0] = args;
35462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsOpened" "', expected argument " "1"" of type '" "wxClipboard const *""'");
35465 }
35466 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35467 {
35468 PyThreadState* __tstate = wxPyBeginAllowThreads();
35469 result = (bool)((wxClipboard const *)arg1)->IsOpened();
35470 wxPyEndAllowThreads(__tstate);
35471 if (PyErr_Occurred()) SWIG_fail;
35472 }
35473 {
35474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35475 }
35476 return resultobj;
35477fail:
35478 return NULL;
35479}
35480
35481
35482SWIGINTERN PyObject *_wrap_Clipboard_AddData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35483 PyObject *resultobj = 0;
35484 wxClipboard *arg1 = (wxClipboard *) 0 ;
35485 wxDataObject *arg2 = (wxDataObject *) 0 ;
35486 bool result;
35487 void *argp1 = 0 ;
35488 int res1 = 0 ;
35489 int res2 = 0 ;
35490 PyObject * obj0 = 0 ;
35491 PyObject * obj1 = 0 ;
35492 char * kwnames[] = {
35493 (char *) "self",(char *) "data", NULL
35494 };
35495
35496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) SWIG_fail;
35497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35498 if (!SWIG_IsOK(res1)) {
35499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_AddData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35500 }
35501 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35502 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
35503 if (!SWIG_IsOK(res2)) {
35504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_AddData" "', expected argument " "2"" of type '" "wxDataObject *""'");
35505 }
35506 {
35507 PyThreadState* __tstate = wxPyBeginAllowThreads();
35508 result = (bool)(arg1)->AddData(arg2);
35509 wxPyEndAllowThreads(__tstate);
35510 if (PyErr_Occurred()) SWIG_fail;
35511 }
35512 {
35513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35514 }
35515 return resultobj;
35516fail:
35517 return NULL;
35518}
35519
35520
35521SWIGINTERN PyObject *_wrap_Clipboard_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35522 PyObject *resultobj = 0;
35523 wxClipboard *arg1 = (wxClipboard *) 0 ;
35524 wxDataObject *arg2 = (wxDataObject *) 0 ;
35525 bool result;
35526 void *argp1 = 0 ;
35527 int res1 = 0 ;
35528 int res2 = 0 ;
35529 PyObject * obj0 = 0 ;
35530 PyObject * obj1 = 0 ;
35531 char * kwnames[] = {
35532 (char *) "self",(char *) "data", NULL
35533 };
35534
35535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
35536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_SetData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35539 }
35540 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35541 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxDataObject, SWIG_POINTER_DISOWN | 0 );
35542 if (!SWIG_IsOK(res2)) {
35543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_SetData" "', expected argument " "2"" of type '" "wxDataObject *""'");
35544 }
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 result = (bool)(arg1)->SetData(arg2);
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 {
35552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35553 }
35554 return resultobj;
35555fail:
35556 return NULL;
35557}
35558
35559
35560SWIGINTERN PyObject *_wrap_Clipboard_IsSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35561 PyObject *resultobj = 0;
35562 wxClipboard *arg1 = (wxClipboard *) 0 ;
35563 wxDataFormat *arg2 = 0 ;
35564 bool result;
35565 void *argp1 = 0 ;
35566 int res1 = 0 ;
35567 void *argp2 = 0 ;
35568 int res2 = 0 ;
35569 PyObject * obj0 = 0 ;
35570 PyObject * obj1 = 0 ;
35571 char * kwnames[] = {
35572 (char *) "self",(char *) "format", NULL
35573 };
35574
35575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) SWIG_fail;
35576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35577 if (!SWIG_IsOK(res1)) {
35578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsSupported" "', expected argument " "1"" of type '" "wxClipboard *""'");
35579 }
35580 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataFormat, 0 | 0);
35582 if (!SWIG_IsOK(res2)) {
35583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
35584 }
35585 if (!argp2) {
35586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clipboard_IsSupported" "', expected argument " "2"" of type '" "wxDataFormat const &""'");
35587 }
35588 arg2 = reinterpret_cast< wxDataFormat * >(argp2);
35589 {
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
35592 wxPyEndAllowThreads(__tstate);
35593 if (PyErr_Occurred()) SWIG_fail;
35594 }
35595 {
35596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35597 }
35598 return resultobj;
35599fail:
35600 return NULL;
35601}
35602
35603
35604SWIGINTERN PyObject *_wrap_Clipboard_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35605 PyObject *resultobj = 0;
35606 wxClipboard *arg1 = (wxClipboard *) 0 ;
35607 wxDataObject *arg2 = 0 ;
35608 bool result;
35609 void *argp1 = 0 ;
35610 int res1 = 0 ;
35611 void *argp2 = 0 ;
35612 int res2 = 0 ;
35613 PyObject * obj0 = 0 ;
35614 PyObject * obj1 = 0 ;
35615 char * kwnames[] = {
35616 (char *) "self",(char *) "data", NULL
35617 };
35618
35619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) SWIG_fail;
35620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35621 if (!SWIG_IsOK(res1)) {
35622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_GetData" "', expected argument " "1"" of type '" "wxClipboard *""'");
35623 }
35624 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDataObject, 0 );
35626 if (!SWIG_IsOK(res2)) {
35627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Clipboard_GetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
35628 }
35629 if (!argp2) {
35630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clipboard_GetData" "', expected argument " "2"" of type '" "wxDataObject &""'");
35631 }
35632 arg2 = reinterpret_cast< wxDataObject * >(argp2);
35633 {
35634 PyThreadState* __tstate = wxPyBeginAllowThreads();
35635 result = (bool)(arg1)->GetData(*arg2);
35636 wxPyEndAllowThreads(__tstate);
35637 if (PyErr_Occurred()) SWIG_fail;
35638 }
35639 {
35640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35641 }
35642 return resultobj;
35643fail:
35644 return NULL;
d55e5bfc
RD
35645}
35646
35647
554f62e9
RD
35648SWIGINTERN PyObject *_wrap_Clipboard_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35649 PyObject *resultobj = 0;
35650 wxClipboard *arg1 = (wxClipboard *) 0 ;
35651 void *argp1 = 0 ;
35652 int res1 = 0 ;
35653 PyObject *swig_obj[1] ;
35654
35655 if (!args) SWIG_fail;
35656 swig_obj[0] = args;
35657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35658 if (!SWIG_IsOK(res1)) {
35659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Clear" "', expected argument " "1"" of type '" "wxClipboard *""'");
35660 }
35661 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35662 {
35663 PyThreadState* __tstate = wxPyBeginAllowThreads();
35664 (arg1)->Clear();
35665 wxPyEndAllowThreads(__tstate);
35666 if (PyErr_Occurred()) SWIG_fail;
35667 }
35668 resultobj = SWIG_Py_Void();
35669 return resultobj;
35670fail:
35671 return NULL;
d55e5bfc
RD
35672}
35673
35674
554f62e9
RD
35675SWIGINTERN PyObject *_wrap_Clipboard_Flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35676 PyObject *resultobj = 0;
35677 wxClipboard *arg1 = (wxClipboard *) 0 ;
35678 bool result;
35679 void *argp1 = 0 ;
35680 int res1 = 0 ;
35681 PyObject *swig_obj[1] ;
35682
35683 if (!args) SWIG_fail;
35684 swig_obj[0] = args;
35685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35686 if (!SWIG_IsOK(res1)) {
35687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_Flush" "', expected argument " "1"" of type '" "wxClipboard *""'");
35688 }
35689 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35690 {
35691 PyThreadState* __tstate = wxPyBeginAllowThreads();
35692 result = (bool)(arg1)->Flush();
35693 wxPyEndAllowThreads(__tstate);
35694 if (PyErr_Occurred()) SWIG_fail;
35695 }
35696 {
35697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35698 }
35699 return resultobj;
35700fail:
35701 return NULL;
35702}
35703
35704
35705SWIGINTERN PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35706 PyObject *resultobj = 0;
35707 wxClipboard *arg1 = (wxClipboard *) 0 ;
35708 bool arg2 = (bool) true ;
35709 void *argp1 = 0 ;
35710 int res1 = 0 ;
35711 bool val2 ;
35712 int ecode2 = 0 ;
35713 PyObject * obj0 = 0 ;
35714 PyObject * obj1 = 0 ;
35715 char * kwnames[] = {
35716 (char *) "self",(char *) "primary", NULL
35717 };
35718
35719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) SWIG_fail;
35720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35721 if (!SWIG_IsOK(res1)) {
35722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_UsePrimarySelection" "', expected argument " "1"" of type '" "wxClipboard *""'");
35723 }
35724 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35725 if (obj1) {
35726 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35727 if (!SWIG_IsOK(ecode2)) {
35728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Clipboard_UsePrimarySelection" "', expected argument " "2"" of type '" "bool""'");
35729 }
35730 arg2 = static_cast< bool >(val2);
35731 }
35732 {
35733 PyThreadState* __tstate = wxPyBeginAllowThreads();
35734 (arg1)->UsePrimarySelection(arg2);
35735 wxPyEndAllowThreads(__tstate);
35736 if (PyErr_Occurred()) SWIG_fail;
35737 }
35738 resultobj = SWIG_Py_Void();
35739 return resultobj;
35740fail:
35741 return NULL;
d55e5bfc
RD
35742}
35743
35744
554f62e9
RD
35745SWIGINTERN PyObject *_wrap_Clipboard_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35746 PyObject *resultobj = 0;
35747 wxClipboard *result = 0 ;
35748
35749 if (!SWIG_Python_UnpackTuple(args,"Clipboard_Get",0,0,0)) SWIG_fail;
35750 {
35751 PyThreadState* __tstate = wxPyBeginAllowThreads();
35752 result = (wxClipboard *)wxClipboard::Get();
35753 wxPyEndAllowThreads(__tstate);
35754 if (PyErr_Occurred()) SWIG_fail;
35755 }
35756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboard, 0 | 0 );
35757 return resultobj;
35758fail:
35759 return NULL;
d55e5bfc
RD
35760}
35761
35762
554f62e9
RD
35763SWIGINTERN PyObject *Clipboard_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35764 PyObject *obj;
35765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35766 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboard, SWIG_NewClientData(obj));
35767 return SWIG_Py_Void();
d55e5bfc
RD
35768}
35769
554f62e9
RD
35770SWIGINTERN PyObject *Clipboard_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35771 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
35772}
35773
554f62e9
RD
35774SWIGINTERN PyObject *_wrap_new_ClipboardLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35775 PyObject *resultobj = 0;
35776 wxClipboard *arg1 = (wxClipboard *) NULL ;
35777 wxClipboardLocker *result = 0 ;
35778 void *argp1 = 0 ;
35779 int res1 = 0 ;
35780 PyObject * obj0 = 0 ;
35781 char * kwnames[] = {
35782 (char *) "clipboard", NULL
35783 };
35784
35785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) SWIG_fail;
35786 if (obj0) {
35787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxClipboard, 0 | 0 );
35788 if (!SWIG_IsOK(res1)) {
35789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClipboardLocker" "', expected argument " "1"" of type '" "wxClipboard *""'");
d55e5bfc 35790 }
554f62e9
RD
35791 arg1 = reinterpret_cast< wxClipboard * >(argp1);
35792 }
35793 {
35794 PyThreadState* __tstate = wxPyBeginAllowThreads();
35795 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
35796 wxPyEndAllowThreads(__tstate);
35797 if (PyErr_Occurred()) SWIG_fail;
35798 }
35799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_NEW | 0 );
35800 return resultobj;
35801fail:
35802 return NULL;
d55e5bfc
RD
35803}
35804
35805
554f62e9
RD
35806SWIGINTERN PyObject *_wrap_delete_ClipboardLocker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35807 PyObject *resultobj = 0;
35808 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
35809 void *argp1 = 0 ;
35810 int res1 = 0 ;
35811 PyObject *swig_obj[1] ;
35812
35813 if (!args) SWIG_fail;
35814 swig_obj[0] = args;
35815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboardLocker, SWIG_POINTER_DISOWN | 0 );
35816 if (!SWIG_IsOK(res1)) {
35817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ClipboardLocker" "', expected argument " "1"" of type '" "wxClipboardLocker *""'");
35818 }
35819 arg1 = reinterpret_cast< wxClipboardLocker * >(argp1);
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 delete arg1;
d55e5bfc 35823
554f62e9
RD
35824 wxPyEndAllowThreads(__tstate);
35825 if (PyErr_Occurred()) SWIG_fail;
35826 }
35827 resultobj = SWIG_Py_Void();
35828 return resultobj;
35829fail:
35830 return NULL;
d55e5bfc
RD
35831}
35832
35833
554f62e9
RD
35834SWIGINTERN PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35835 PyObject *resultobj = 0;
35836 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
35837 bool result;
35838 void *argp1 = 0 ;
35839 int res1 = 0 ;
35840 PyObject *swig_obj[1] ;
35841
35842 if (!args) SWIG_fail;
35843 swig_obj[0] = args;
35844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxClipboardLocker, 0 | 0 );
35845 if (!SWIG_IsOK(res1)) {
35846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ClipboardLocker___nonzero__" "', expected argument " "1"" of type '" "wxClipboardLocker *""'");
35847 }
35848 arg1 = reinterpret_cast< wxClipboardLocker * >(argp1);
35849 {
35850 PyThreadState* __tstate = wxPyBeginAllowThreads();
35851 result = (bool)wxClipboardLocker___nonzero__(arg1);
35852 wxPyEndAllowThreads(__tstate);
35853 if (PyErr_Occurred()) SWIG_fail;
35854 }
35855 {
35856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35857 }
35858 return resultobj;
35859fail:
35860 return NULL;
35861}
35862
35863
35864SWIGINTERN PyObject *ClipboardLocker_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35865 PyObject *obj;
35866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35867 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboardLocker, SWIG_NewClientData(obj));
35868 return SWIG_Py_Void();
35869}
35870
35871SWIGINTERN PyObject *ClipboardLocker_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35872 return SWIG_Python_InitShadowInstance(args);
35873}
35874
35875SWIGINTERN PyObject *_wrap_new_VideoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35876 PyObject *resultobj = 0;
35877 int arg1 = (int) 0 ;
35878 int arg2 = (int) 0 ;
35879 int arg3 = (int) 0 ;
35880 int arg4 = (int) 0 ;
35881 wxVideoMode *result = 0 ;
35882 int val1 ;
35883 int ecode1 = 0 ;
35884 int val2 ;
35885 int ecode2 = 0 ;
35886 int val3 ;
35887 int ecode3 = 0 ;
35888 int val4 ;
35889 int ecode4 = 0 ;
35890 PyObject * obj0 = 0 ;
35891 PyObject * obj1 = 0 ;
35892 PyObject * obj2 = 0 ;
35893 PyObject * obj3 = 0 ;
35894 char * kwnames[] = {
35895 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
35896 };
35897
35898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35899 if (obj0) {
35900 ecode1 = SWIG_AsVal_int(obj0, &val1);
35901 if (!SWIG_IsOK(ecode1)) {
35902 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VideoMode" "', expected argument " "1"" of type '" "int""'");
35903 }
35904 arg1 = static_cast< int >(val1);
35905 }
35906 if (obj1) {
35907 ecode2 = SWIG_AsVal_int(obj1, &val2);
35908 if (!SWIG_IsOK(ecode2)) {
35909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VideoMode" "', expected argument " "2"" of type '" "int""'");
35910 }
35911 arg2 = static_cast< int >(val2);
35912 }
35913 if (obj2) {
35914 ecode3 = SWIG_AsVal_int(obj2, &val3);
35915 if (!SWIG_IsOK(ecode3)) {
35916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_VideoMode" "', expected argument " "3"" of type '" "int""'");
35917 }
35918 arg3 = static_cast< int >(val3);
35919 }
35920 if (obj3) {
35921 ecode4 = SWIG_AsVal_int(obj3, &val4);
35922 if (!SWIG_IsOK(ecode4)) {
35923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_VideoMode" "', expected argument " "4"" of type '" "int""'");
35924 }
35925 arg4 = static_cast< int >(val4);
35926 }
35927 {
35928 PyThreadState* __tstate = wxPyBeginAllowThreads();
35929 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
35930 wxPyEndAllowThreads(__tstate);
35931 if (PyErr_Occurred()) SWIG_fail;
35932 }
35933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxVideoMode, SWIG_POINTER_NEW | 0 );
35934 return resultobj;
35935fail:
35936 return NULL;
d55e5bfc
RD
35937}
35938
35939
554f62e9
RD
35940SWIGINTERN PyObject *_wrap_delete_VideoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35941 PyObject *resultobj = 0;
35942 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35943 void *argp1 = 0 ;
35944 int res1 = 0 ;
35945 PyObject *swig_obj[1] ;
35946
35947 if (!args) SWIG_fail;
35948 swig_obj[0] = args;
35949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, SWIG_POINTER_DISOWN | 0 );
35950 if (!SWIG_IsOK(res1)) {
35951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VideoMode" "', expected argument " "1"" of type '" "wxVideoMode *""'");
35952 }
35953 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35954 {
35955 PyThreadState* __tstate = wxPyBeginAllowThreads();
35956 delete arg1;
d55e5bfc 35957
554f62e9
RD
35958 wxPyEndAllowThreads(__tstate);
35959 if (PyErr_Occurred()) SWIG_fail;
35960 }
35961 resultobj = SWIG_Py_Void();
35962 return resultobj;
35963fail:
35964 return NULL;
35965}
35966
35967
35968SWIGINTERN PyObject *_wrap_VideoMode_Matches(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35969 PyObject *resultobj = 0;
35970 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
35971 wxVideoMode *arg2 = 0 ;
35972 bool result;
35973 void *argp1 = 0 ;
35974 int res1 = 0 ;
35975 void *argp2 = 0 ;
35976 int res2 = 0 ;
35977 PyObject * obj0 = 0 ;
35978 PyObject * obj1 = 0 ;
35979 char * kwnames[] = {
35980 (char *) "self",(char *) "other", NULL
35981 };
35982
35983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) SWIG_fail;
35984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
35985 if (!SWIG_IsOK(res1)) {
35986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_Matches" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
35987 }
35988 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
35989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
35990 if (!SWIG_IsOK(res2)) {
35991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode_Matches" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
35992 }
35993 if (!argp2) {
35994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VideoMode_Matches" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
35995 }
35996 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
35997 {
35998 PyThreadState* __tstate = wxPyBeginAllowThreads();
35999 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
36000 wxPyEndAllowThreads(__tstate);
36001 if (PyErr_Occurred()) SWIG_fail;
36002 }
36003 {
36004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36005 }
36006 return resultobj;
36007fail:
36008 return NULL;
d55e5bfc
RD
36009}
36010
36011
554f62e9
RD
36012SWIGINTERN PyObject *_wrap_VideoMode_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36013 PyObject *resultobj = 0;
36014 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36015 int result;
36016 void *argp1 = 0 ;
36017 int res1 = 0 ;
36018 PyObject *swig_obj[1] ;
36019
36020 if (!args) SWIG_fail;
36021 swig_obj[0] = args;
36022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36023 if (!SWIG_IsOK(res1)) {
36024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetWidth" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
36025 }
36026 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36027 {
36028 PyThreadState* __tstate = wxPyBeginAllowThreads();
36029 result = (int)((wxVideoMode const *)arg1)->GetWidth();
36030 wxPyEndAllowThreads(__tstate);
36031 if (PyErr_Occurred()) SWIG_fail;
36032 }
36033 resultobj = SWIG_From_int(static_cast< int >(result));
36034 return resultobj;
36035fail:
36036 return NULL;
d55e5bfc
RD
36037}
36038
36039
554f62e9
RD
36040SWIGINTERN PyObject *_wrap_VideoMode_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36041 PyObject *resultobj = 0;
36042 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36043 int result;
36044 void *argp1 = 0 ;
36045 int res1 = 0 ;
36046 PyObject *swig_obj[1] ;
36047
36048 if (!args) SWIG_fail;
36049 swig_obj[0] = args;
36050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36051 if (!SWIG_IsOK(res1)) {
36052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetHeight" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
36053 }
36054 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36055 {
36056 PyThreadState* __tstate = wxPyBeginAllowThreads();
36057 result = (int)((wxVideoMode const *)arg1)->GetHeight();
36058 wxPyEndAllowThreads(__tstate);
36059 if (PyErr_Occurred()) SWIG_fail;
36060 }
36061 resultobj = SWIG_From_int(static_cast< int >(result));
36062 return resultobj;
36063fail:
36064 return NULL;
d55e5bfc
RD
36065}
36066
36067
554f62e9
RD
36068SWIGINTERN PyObject *_wrap_VideoMode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36069 PyObject *resultobj = 0;
36070 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36071 int result;
36072 void *argp1 = 0 ;
36073 int res1 = 0 ;
36074 PyObject *swig_obj[1] ;
36075
36076 if (!args) SWIG_fail;
36077 swig_obj[0] = args;
36078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36079 if (!SWIG_IsOK(res1)) {
36080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_GetDepth" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
36081 }
36082 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36083 {
36084 PyThreadState* __tstate = wxPyBeginAllowThreads();
36085 result = (int)((wxVideoMode const *)arg1)->GetDepth();
36086 wxPyEndAllowThreads(__tstate);
36087 if (PyErr_Occurred()) SWIG_fail;
36088 }
36089 resultobj = SWIG_From_int(static_cast< int >(result));
36090 return resultobj;
36091fail:
36092 return NULL;
d55e5bfc
RD
36093}
36094
36095
554f62e9
RD
36096SWIGINTERN PyObject *_wrap_VideoMode_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36097 PyObject *resultobj = 0;
36098 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36099 bool result;
36100 void *argp1 = 0 ;
36101 int res1 = 0 ;
36102 PyObject *swig_obj[1] ;
36103
36104 if (!args) SWIG_fail;
36105 swig_obj[0] = args;
36106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36107 if (!SWIG_IsOK(res1)) {
36108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_IsOk" "', expected argument " "1"" of type '" "wxVideoMode const *""'");
36109 }
36110 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36111 {
36112 PyThreadState* __tstate = wxPyBeginAllowThreads();
36113 result = (bool)((wxVideoMode const *)arg1)->IsOk();
36114 wxPyEndAllowThreads(__tstate);
36115 if (PyErr_Occurred()) SWIG_fail;
36116 }
36117 {
36118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36119 }
36120 return resultobj;
36121fail:
36122 return NULL;
36123}
36124
36125
36126SWIGINTERN PyObject *_wrap_VideoMode___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36127 PyObject *resultobj = 0;
36128 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36129 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
36130 bool result;
36131 void *argp1 = 0 ;
36132 int res1 = 0 ;
36133 void *argp2 = 0 ;
36134 int res2 = 0 ;
36135 PyObject * obj0 = 0 ;
36136 PyObject * obj1 = 0 ;
36137 char * kwnames[] = {
36138 (char *) "self",(char *) "other", NULL
36139 };
36140
36141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
36142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36143 if (!SWIG_IsOK(res1)) {
36144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode___eq__" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36145 }
36146 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36148 if (!SWIG_IsOK(res2)) {
36149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode___eq__" "', expected argument " "2"" of type '" "wxVideoMode const *""'");
36150 }
36151 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36152 {
36153 PyThreadState* __tstate = wxPyBeginAllowThreads();
36154 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
36155 wxPyEndAllowThreads(__tstate);
36156 if (PyErr_Occurred()) SWIG_fail;
36157 }
36158 {
36159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36160 }
36161 return resultobj;
36162fail:
36163 return NULL;
36164}
36165
36166
36167SWIGINTERN PyObject *_wrap_VideoMode___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36168 PyObject *resultobj = 0;
36169 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36170 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
36171 bool result;
36172 void *argp1 = 0 ;
36173 int res1 = 0 ;
36174 void *argp2 = 0 ;
36175 int res2 = 0 ;
36176 PyObject * obj0 = 0 ;
36177 PyObject * obj1 = 0 ;
36178 char * kwnames[] = {
36179 (char *) "self",(char *) "other", NULL
36180 };
36181
36182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
36183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36184 if (!SWIG_IsOK(res1)) {
36185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode___ne__" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36186 }
36187 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36189 if (!SWIG_IsOK(res2)) {
36190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VideoMode___ne__" "', expected argument " "2"" of type '" "wxVideoMode const *""'");
36191 }
36192 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36193 {
36194 PyThreadState* __tstate = wxPyBeginAllowThreads();
36195 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
36196 wxPyEndAllowThreads(__tstate);
36197 if (PyErr_Occurred()) SWIG_fail;
36198 }
36199 {
36200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36201 }
36202 return resultobj;
36203fail:
36204 return NULL;
d55e5bfc
RD
36205}
36206
36207
554f62e9
RD
36208SWIGINTERN PyObject *_wrap_VideoMode_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36209 PyObject *resultobj = 0;
36210 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36211 int arg2 ;
36212 void *argp1 = 0 ;
36213 int res1 = 0 ;
36214 int val2 ;
36215 int ecode2 = 0 ;
36216 PyObject *swig_obj[2] ;
36217
36218 if (!SWIG_Python_UnpackTuple(args,"VideoMode_w_set",2,2,swig_obj)) SWIG_fail;
36219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_w_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36222 }
36223 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36224 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36225 if (!SWIG_IsOK(ecode2)) {
36226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_w_set" "', expected argument " "2"" of type '" "int""'");
36227 }
36228 arg2 = static_cast< int >(val2);
36229 if (arg1) (arg1)->w = arg2;
36230
36231 resultobj = SWIG_Py_Void();
36232 return resultobj;
36233fail:
36234 return NULL;
d55e5bfc
RD
36235}
36236
36237
554f62e9
RD
36238SWIGINTERN PyObject *_wrap_VideoMode_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36239 PyObject *resultobj = 0;
36240 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36241 int result;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 PyObject *swig_obj[1] ;
36245
36246 if (!args) SWIG_fail;
36247 swig_obj[0] = args;
36248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36249 if (!SWIG_IsOK(res1)) {
36250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_w_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36251 }
36252 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36253 result = (int) ((arg1)->w);
36254 resultobj = SWIG_From_int(static_cast< int >(result));
36255 return resultobj;
36256fail:
36257 return NULL;
36258}
36259
36260
36261SWIGINTERN PyObject *_wrap_VideoMode_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36262 PyObject *resultobj = 0;
36263 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36264 int arg2 ;
36265 void *argp1 = 0 ;
36266 int res1 = 0 ;
36267 int val2 ;
36268 int ecode2 = 0 ;
36269 PyObject *swig_obj[2] ;
36270
36271 if (!SWIG_Python_UnpackTuple(args,"VideoMode_h_set",2,2,swig_obj)) SWIG_fail;
36272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36273 if (!SWIG_IsOK(res1)) {
36274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_h_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36275 }
36276 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36277 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36278 if (!SWIG_IsOK(ecode2)) {
36279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_h_set" "', expected argument " "2"" of type '" "int""'");
36280 }
36281 arg2 = static_cast< int >(val2);
36282 if (arg1) (arg1)->h = arg2;
36283
36284 resultobj = SWIG_Py_Void();
36285 return resultobj;
36286fail:
36287 return NULL;
d55e5bfc
RD
36288}
36289
36290
554f62e9
RD
36291SWIGINTERN PyObject *_wrap_VideoMode_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36292 PyObject *resultobj = 0;
36293 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36294 int result;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 PyObject *swig_obj[1] ;
36298
36299 if (!args) SWIG_fail;
36300 swig_obj[0] = args;
36301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36302 if (!SWIG_IsOK(res1)) {
36303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_h_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36304 }
36305 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36306 result = (int) ((arg1)->h);
36307 resultobj = SWIG_From_int(static_cast< int >(result));
36308 return resultobj;
36309fail:
36310 return NULL;
36311}
36312
36313
36314SWIGINTERN PyObject *_wrap_VideoMode_bpp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36315 PyObject *resultobj = 0;
36316 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36317 int arg2 ;
36318 void *argp1 = 0 ;
36319 int res1 = 0 ;
36320 int val2 ;
36321 int ecode2 = 0 ;
36322 PyObject *swig_obj[2] ;
36323
36324 if (!SWIG_Python_UnpackTuple(args,"VideoMode_bpp_set",2,2,swig_obj)) SWIG_fail;
36325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36326 if (!SWIG_IsOK(res1)) {
36327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_bpp_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36328 }
36329 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36330 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36331 if (!SWIG_IsOK(ecode2)) {
36332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_bpp_set" "', expected argument " "2"" of type '" "int""'");
36333 }
36334 arg2 = static_cast< int >(val2);
36335 if (arg1) (arg1)->bpp = arg2;
36336
36337 resultobj = SWIG_Py_Void();
36338 return resultobj;
36339fail:
36340 return NULL;
d55e5bfc
RD
36341}
36342
36343
554f62e9
RD
36344SWIGINTERN PyObject *_wrap_VideoMode_bpp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36345 PyObject *resultobj = 0;
36346 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36347 int result;
36348 void *argp1 = 0 ;
36349 int res1 = 0 ;
36350 PyObject *swig_obj[1] ;
36351
36352 if (!args) SWIG_fail;
36353 swig_obj[0] = args;
36354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36355 if (!SWIG_IsOK(res1)) {
36356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_bpp_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36357 }
36358 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36359 result = (int) ((arg1)->bpp);
36360 resultobj = SWIG_From_int(static_cast< int >(result));
36361 return resultobj;
36362fail:
36363 return NULL;
36364}
36365
36366
36367SWIGINTERN PyObject *_wrap_VideoMode_refresh_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36368 PyObject *resultobj = 0;
36369 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36370 int arg2 ;
36371 void *argp1 = 0 ;
36372 int res1 = 0 ;
36373 int val2 ;
36374 int ecode2 = 0 ;
36375 PyObject *swig_obj[2] ;
36376
36377 if (!SWIG_Python_UnpackTuple(args,"VideoMode_refresh_set",2,2,swig_obj)) SWIG_fail;
36378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36379 if (!SWIG_IsOK(res1)) {
36380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_refresh_set" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36381 }
36382 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36383 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
36384 if (!SWIG_IsOK(ecode2)) {
36385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VideoMode_refresh_set" "', expected argument " "2"" of type '" "int""'");
36386 }
36387 arg2 = static_cast< int >(val2);
36388 if (arg1) (arg1)->refresh = arg2;
36389
36390 resultobj = SWIG_Py_Void();
36391 return resultobj;
36392fail:
36393 return NULL;
d55e5bfc
RD
36394}
36395
36396
554f62e9
RD
36397SWIGINTERN PyObject *_wrap_VideoMode_refresh_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36398 PyObject *resultobj = 0;
36399 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
36400 int result;
36401 void *argp1 = 0 ;
36402 int res1 = 0 ;
36403 PyObject *swig_obj[1] ;
36404
36405 if (!args) SWIG_fail;
36406 swig_obj[0] = args;
36407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVideoMode, 0 | 0 );
36408 if (!SWIG_IsOK(res1)) {
36409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VideoMode_refresh_get" "', expected argument " "1"" of type '" "wxVideoMode *""'");
36410 }
36411 arg1 = reinterpret_cast< wxVideoMode * >(argp1);
36412 result = (int) ((arg1)->refresh);
36413 resultobj = SWIG_From_int(static_cast< int >(result));
36414 return resultobj;
36415fail:
36416 return NULL;
d55e5bfc
RD
36417}
36418
36419
554f62e9
RD
36420SWIGINTERN PyObject *VideoMode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36421 PyObject *obj;
36422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36423 SWIG_TypeNewClientData(SWIGTYPE_p_wxVideoMode, SWIG_NewClientData(obj));
36424 return SWIG_Py_Void();
d55e5bfc
RD
36425}
36426
554f62e9
RD
36427SWIGINTERN PyObject *VideoMode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36428 return SWIG_Python_InitShadowInstance(args);
36429}
d55e5bfc 36430
554f62e9
RD
36431SWIGINTERN int DefaultVideoMode_set(PyObject *) {
36432 SWIG_Error(SWIG_AttributeError,"Variable DefaultVideoMode is read-only.");
36433 return 1;
d55e5bfc
RD
36434}
36435
36436
554f62e9
RD
36437SWIGINTERN PyObject *DefaultVideoMode_get(void) {
36438 PyObject *pyobj = 0;
36439
36440 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0 );
36441 return pyobj;
d55e5bfc
RD
36442}
36443
36444
554f62e9
RD
36445SWIGINTERN PyObject *_wrap_new_Display(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36446 PyObject *resultobj = 0;
c2829a8f 36447 unsigned int arg1 = (unsigned int) 0 ;
554f62e9 36448 wxDisplay *result = 0 ;
c2829a8f 36449 unsigned int val1 ;
554f62e9
RD
36450 int ecode1 = 0 ;
36451 PyObject * obj0 = 0 ;
36452 char * kwnames[] = {
36453 (char *) "index", NULL
36454 };
36455
36456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) SWIG_fail;
36457 if (obj0) {
c2829a8f 36458 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
554f62e9 36459 if (!SWIG_IsOK(ecode1)) {
c2829a8f 36460 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Display" "', expected argument " "1"" of type '" "unsigned int""'");
554f62e9 36461 }
c2829a8f 36462 arg1 = static_cast< unsigned int >(val1);
554f62e9
RD
36463 }
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 result = (wxDisplay *)new wxDisplay(arg1);
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDisplay, SWIG_POINTER_NEW | 0 );
36471 return resultobj;
36472fail:
36473 return NULL;
d55e5bfc
RD
36474}
36475
36476
554f62e9
RD
36477SWIGINTERN PyObject *_wrap_delete_Display(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36478 PyObject *resultobj = 0;
36479 wxDisplay *arg1 = (wxDisplay *) 0 ;
36480 void *argp1 = 0 ;
36481 int res1 = 0 ;
36482 PyObject *swig_obj[1] ;
36483
36484 if (!args) SWIG_fail;
36485 swig_obj[0] = args;
36486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, SWIG_POINTER_DISOWN | 0 );
36487 if (!SWIG_IsOK(res1)) {
36488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Display" "', expected argument " "1"" of type '" "wxDisplay *""'");
36489 }
36490 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36491 {
36492 PyThreadState* __tstate = wxPyBeginAllowThreads();
36493 delete arg1;
d55e5bfc 36494
554f62e9
RD
36495 wxPyEndAllowThreads(__tstate);
36496 if (PyErr_Occurred()) SWIG_fail;
36497 }
36498 resultobj = SWIG_Py_Void();
36499 return resultobj;
36500fail:
36501 return NULL;
d55e5bfc
RD
36502}
36503
36504
554f62e9
RD
36505SWIGINTERN PyObject *_wrap_Display_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36506 PyObject *resultobj = 0;
c2829a8f 36507 unsigned int result;
554f62e9
RD
36508
36509 if (!SWIG_Python_UnpackTuple(args,"Display_GetCount",0,0,0)) SWIG_fail;
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
c2829a8f 36512 result = (unsigned int)wxDisplay::GetCount();
554f62e9
RD
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
c2829a8f 36516 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
36517 return resultobj;
36518fail:
36519 return NULL;
d55e5bfc
RD
36520}
36521
36522
554f62e9
RD
36523SWIGINTERN PyObject *_wrap_Display_GetFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPoint *arg1 = 0 ;
36526 int result;
36527 wxPoint temp1 ;
36528 PyObject * obj0 = 0 ;
36529 char * kwnames[] = {
36530 (char *) "pt", NULL
36531 };
36532
36533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) SWIG_fail;
36534 {
36535 arg1 = &temp1;
36536 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
36537 }
36538 {
36539 PyThreadState* __tstate = wxPyBeginAllowThreads();
36540 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
36541 wxPyEndAllowThreads(__tstate);
36542 if (PyErr_Occurred()) SWIG_fail;
36543 }
36544 resultobj = SWIG_From_int(static_cast< int >(result));
36545 return resultobj;
36546fail:
36547 return NULL;
36548}
36549
36550
36551SWIGINTERN PyObject *_wrap_Display_GetFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36552 PyObject *resultobj = 0;
36553 wxWindow *arg1 = (wxWindow *) 0 ;
36554 int result;
36555 void *argp1 = 0 ;
36556 int res1 = 0 ;
36557 PyObject * obj0 = 0 ;
36558 char * kwnames[] = {
36559 (char *) "window", NULL
36560 };
36561
36562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) SWIG_fail;
36563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36564 if (!SWIG_IsOK(res1)) {
36565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetFromWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36566 }
36567 arg1 = reinterpret_cast< wxWindow * >(argp1);
36568 {
36569 PyThreadState* __tstate = wxPyBeginAllowThreads();
36570 result = (int)wxDisplay::GetFromWindow(arg1);
36571 wxPyEndAllowThreads(__tstate);
36572 if (PyErr_Occurred()) SWIG_fail;
36573 }
36574 resultobj = SWIG_From_int(static_cast< int >(result));
36575 return resultobj;
36576fail:
36577 return NULL;
d55e5bfc
RD
36578}
36579
36580
554f62e9
RD
36581SWIGINTERN PyObject *_wrap_Display_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36582 PyObject *resultobj = 0;
36583 wxDisplay *arg1 = (wxDisplay *) 0 ;
36584 bool result;
36585 void *argp1 = 0 ;
36586 int res1 = 0 ;
36587 PyObject *swig_obj[1] ;
36588
36589 if (!args) SWIG_fail;
36590 swig_obj[0] = args;
36591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_IsOk" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36594 }
36595 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36596 {
36597 PyThreadState* __tstate = wxPyBeginAllowThreads();
36598 result = (bool)((wxDisplay const *)arg1)->IsOk();
36599 wxPyEndAllowThreads(__tstate);
36600 if (PyErr_Occurred()) SWIG_fail;
36601 }
36602 {
36603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36604 }
36605 return resultobj;
36606fail:
36607 return NULL;
d55e5bfc
RD
36608}
36609
36610
554f62e9
RD
36611SWIGINTERN PyObject *_wrap_Display_GetGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36612 PyObject *resultobj = 0;
36613 wxDisplay *arg1 = (wxDisplay *) 0 ;
36614 wxRect result;
36615 void *argp1 = 0 ;
36616 int res1 = 0 ;
36617 PyObject *swig_obj[1] ;
36618
36619 if (!args) SWIG_fail;
36620 swig_obj[0] = args;
36621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36622 if (!SWIG_IsOK(res1)) {
36623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetGeometry" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36624 }
36625 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 result = ((wxDisplay const *)arg1)->GetGeometry();
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36633 return resultobj;
36634fail:
36635 return NULL;
d55e5bfc
RD
36636}
36637
36638
f52cbe90
RD
36639SWIGINTERN PyObject *_wrap_Display_GetClientArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36640 PyObject *resultobj = 0;
36641 wxDisplay *arg1 = (wxDisplay *) 0 ;
36642 wxRect result;
36643 void *argp1 = 0 ;
36644 int res1 = 0 ;
36645 PyObject *swig_obj[1] ;
36646
36647 if (!args) SWIG_fail;
36648 swig_obj[0] = args;
36649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36650 if (!SWIG_IsOK(res1)) {
36651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetClientArea" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36652 }
36653 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36654 {
36655 PyThreadState* __tstate = wxPyBeginAllowThreads();
36656 result = ((wxDisplay const *)arg1)->GetClientArea();
36657 wxPyEndAllowThreads(__tstate);
36658 if (PyErr_Occurred()) SWIG_fail;
36659 }
36660 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36661 return resultobj;
36662fail:
36663 return NULL;
36664}
36665
36666
554f62e9
RD
36667SWIGINTERN PyObject *_wrap_Display_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36668 PyObject *resultobj = 0;
36669 wxDisplay *arg1 = (wxDisplay *) 0 ;
36670 wxString result;
36671 void *argp1 = 0 ;
36672 int res1 = 0 ;
36673 PyObject *swig_obj[1] ;
36674
36675 if (!args) SWIG_fail;
36676 swig_obj[0] = args;
36677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetName" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36680 }
36681 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36682 {
36683 PyThreadState* __tstate = wxPyBeginAllowThreads();
36684 result = ((wxDisplay const *)arg1)->GetName();
36685 wxPyEndAllowThreads(__tstate);
36686 if (PyErr_Occurred()) SWIG_fail;
36687 }
36688 {
36689#if wxUSE_UNICODE
36690 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36691#else
36692 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36693#endif
36694 }
36695 return resultobj;
36696fail:
36697 return NULL;
d55e5bfc
RD
36698}
36699
36700
554f62e9
RD
36701SWIGINTERN PyObject *_wrap_Display_IsPrimary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36702 PyObject *resultobj = 0;
36703 wxDisplay *arg1 = (wxDisplay *) 0 ;
36704 bool result;
36705 void *argp1 = 0 ;
36706 int res1 = 0 ;
36707 PyObject *swig_obj[1] ;
36708
36709 if (!args) SWIG_fail;
36710 swig_obj[0] = args;
36711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36712 if (!SWIG_IsOK(res1)) {
36713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_IsPrimary" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36714 }
36715 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36716 {
36717 PyThreadState* __tstate = wxPyBeginAllowThreads();
36718 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
36719 wxPyEndAllowThreads(__tstate);
36720 if (PyErr_Occurred()) SWIG_fail;
36721 }
36722 {
36723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36724 }
36725 return resultobj;
36726fail:
36727 return NULL;
36728}
36729
36730
36731SWIGINTERN PyObject *_wrap_Display_GetModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36732 PyObject *resultobj = 0;
36733 wxDisplay *arg1 = (wxDisplay *) 0 ;
36734 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
36735 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
36736 PyObject *result = 0 ;
36737 void *argp1 = 0 ;
36738 int res1 = 0 ;
36739 void *argp2 = 0 ;
36740 int res2 = 0 ;
36741 PyObject * obj0 = 0 ;
36742 PyObject * obj1 = 0 ;
36743 char * kwnames[] = {
36744 (char *) "self",(char *) "mode", NULL
36745 };
36746
36747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) SWIG_fail;
36748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36749 if (!SWIG_IsOK(res1)) {
36750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetModes" "', expected argument " "1"" of type '" "wxDisplay *""'");
36751 }
36752 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36753 if (obj1) {
36754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
36755 if (!SWIG_IsOK(res2)) {
36756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Display_GetModes" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d55e5bfc 36757 }
554f62e9
RD
36758 if (!argp2) {
36759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Display_GetModes" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d55e5bfc 36760 }
554f62e9
RD
36761 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36762 }
36763 {
36764 PyThreadState* __tstate = wxPyBeginAllowThreads();
36765 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
36766 wxPyEndAllowThreads(__tstate);
36767 if (PyErr_Occurred()) SWIG_fail;
36768 }
36769 resultobj = result;
36770 return resultobj;
36771fail:
36772 return NULL;
d55e5bfc
RD
36773}
36774
36775
554f62e9
RD
36776SWIGINTERN PyObject *_wrap_Display_GetCurrentMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36777 PyObject *resultobj = 0;
36778 wxDisplay *arg1 = (wxDisplay *) 0 ;
36779 wxVideoMode result;
36780 void *argp1 = 0 ;
36781 int res1 = 0 ;
36782 PyObject *swig_obj[1] ;
36783
36784 if (!args) SWIG_fail;
36785 swig_obj[0] = args;
36786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36787 if (!SWIG_IsOK(res1)) {
36788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_GetCurrentMode" "', expected argument " "1"" of type '" "wxDisplay const *""'");
36789 }
36790 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36791 {
36792 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36793 result = wxDisplay_GetCurrentMode((wxDisplay const *)arg1);
554f62e9
RD
36794 wxPyEndAllowThreads(__tstate);
36795 if (PyErr_Occurred()) SWIG_fail;
36796 }
36797 resultobj = SWIG_NewPointerObj((new wxVideoMode(static_cast< const wxVideoMode& >(result))), SWIGTYPE_p_wxVideoMode, SWIG_POINTER_OWN | 0 );
36798 return resultobj;
36799fail:
36800 return NULL;
36801}
36802
36803
36804SWIGINTERN PyObject *_wrap_Display_ChangeMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36805 PyObject *resultobj = 0;
36806 wxDisplay *arg1 = (wxDisplay *) 0 ;
36807 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
36808 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
36809 bool result;
36810 void *argp1 = 0 ;
36811 int res1 = 0 ;
36812 void *argp2 = 0 ;
36813 int res2 = 0 ;
36814 PyObject * obj0 = 0 ;
36815 PyObject * obj1 = 0 ;
36816 char * kwnames[] = {
36817 (char *) "self",(char *) "mode", NULL
36818 };
36819
36820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) SWIG_fail;
36821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36822 if (!SWIG_IsOK(res1)) {
36823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_ChangeMode" "', expected argument " "1"" of type '" "wxDisplay *""'");
36824 }
36825 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36826 if (obj1) {
36827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxVideoMode, 0 | 0);
36828 if (!SWIG_IsOK(res2)) {
36829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Display_ChangeMode" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d55e5bfc 36830 }
554f62e9
RD
36831 if (!argp2) {
36832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Display_ChangeMode" "', expected argument " "2"" of type '" "wxVideoMode const &""'");
d55e5bfc 36833 }
554f62e9
RD
36834 arg2 = reinterpret_cast< wxVideoMode * >(argp2);
36835 }
36836 {
36837 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36838 result = (bool)wxDisplay_ChangeMode(arg1,(wxVideoMode const &)*arg2);
554f62e9
RD
36839 wxPyEndAllowThreads(__tstate);
36840 if (PyErr_Occurred()) SWIG_fail;
36841 }
36842 {
36843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36844 }
36845 return resultobj;
36846fail:
36847 return NULL;
d55e5bfc
RD
36848}
36849
36850
554f62e9
RD
36851SWIGINTERN PyObject *_wrap_Display_ResetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36852 PyObject *resultobj = 0;
36853 wxDisplay *arg1 = (wxDisplay *) 0 ;
36854 void *argp1 = 0 ;
36855 int res1 = 0 ;
36856 PyObject *swig_obj[1] ;
36857
36858 if (!args) SWIG_fail;
36859 swig_obj[0] = args;
36860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDisplay, 0 | 0 );
36861 if (!SWIG_IsOK(res1)) {
36862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Display_ResetMode" "', expected argument " "1"" of type '" "wxDisplay *""'");
36863 }
36864 arg1 = reinterpret_cast< wxDisplay * >(argp1);
36865 {
36866 PyThreadState* __tstate = wxPyBeginAllowThreads();
f52cbe90 36867 wxDisplay_ResetMode(arg1);
554f62e9
RD
36868 wxPyEndAllowThreads(__tstate);
36869 if (PyErr_Occurred()) SWIG_fail;
36870 }
36871 resultobj = SWIG_Py_Void();
36872 return resultobj;
36873fail:
36874 return NULL;
d55e5bfc
RD
36875}
36876
36877
554f62e9
RD
36878SWIGINTERN PyObject *Display_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36879 PyObject *obj;
36880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36881 SWIG_TypeNewClientData(SWIGTYPE_p_wxDisplay, SWIG_NewClientData(obj));
36882 return SWIG_Py_Void();
d55e5bfc
RD
36883}
36884
554f62e9
RD
36885SWIGINTERN PyObject *Display_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36886 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
36887}
36888
554f62e9
RD
36889SWIGINTERN PyObject *_wrap_StandardPaths_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36890 PyObject *resultobj = 0;
36891 wxStandardPaths *result = 0 ;
36892
36893 if (!SWIG_Python_UnpackTuple(args,"StandardPaths_Get",0,0,0)) SWIG_fail;
36894 {
36895 PyThreadState* __tstate = wxPyBeginAllowThreads();
36896 result = (wxStandardPaths *)wxStandardPaths_Get();
36897 wxPyEndAllowThreads(__tstate);
36898 if (PyErr_Occurred()) SWIG_fail;
36899 }
36900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36901 return resultobj;
36902fail:
36903 return NULL;
d55e5bfc
RD
36904}
36905
36906
428947f3
RD
36907SWIGINTERN PyObject *_wrap_StandardPaths_GetExecutablePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36908 PyObject *resultobj = 0;
36909 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36910 wxString result;
36911 void *argp1 = 0 ;
36912 int res1 = 0 ;
36913 PyObject *swig_obj[1] ;
36914
36915 if (!args) SWIG_fail;
36916 swig_obj[0] = args;
36917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36918 if (!SWIG_IsOK(res1)) {
36919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetExecutablePath" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36920 }
36921 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36922 {
36923 PyThreadState* __tstate = wxPyBeginAllowThreads();
36924 result = ((wxStandardPaths const *)arg1)->GetExecutablePath();
36925 wxPyEndAllowThreads(__tstate);
36926 if (PyErr_Occurred()) SWIG_fail;
36927 }
36928 {
36929#if wxUSE_UNICODE
36930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36931#else
36932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36933#endif
36934 }
36935 return resultobj;
36936fail:
36937 return NULL;
36938}
36939
36940
554f62e9
RD
36941SWIGINTERN PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36942 PyObject *resultobj = 0;
36943 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36944 wxString result;
36945 void *argp1 = 0 ;
36946 int res1 = 0 ;
36947 PyObject *swig_obj[1] ;
36948
36949 if (!args) SWIG_fail;
36950 swig_obj[0] = args;
36951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36952 if (!SWIG_IsOK(res1)) {
36953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetConfigDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36954 }
36955 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36956 {
36957 PyThreadState* __tstate = wxPyBeginAllowThreads();
36958 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
36959 wxPyEndAllowThreads(__tstate);
36960 if (PyErr_Occurred()) SWIG_fail;
36961 }
36962 {
36963#if wxUSE_UNICODE
36964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36965#else
36966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36967#endif
36968 }
36969 return resultobj;
36970fail:
36971 return NULL;
d55e5bfc
RD
36972}
36973
36974
554f62e9
RD
36975SWIGINTERN PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36976 PyObject *resultobj = 0;
36977 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
36978 wxString result;
36979 void *argp1 = 0 ;
36980 int res1 = 0 ;
36981 PyObject *swig_obj[1] ;
36982
36983 if (!args) SWIG_fail;
36984 swig_obj[0] = args;
36985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
36986 if (!SWIG_IsOK(res1)) {
36987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserConfigDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
36988 }
36989 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
36990 {
36991 PyThreadState* __tstate = wxPyBeginAllowThreads();
36992 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
36993 wxPyEndAllowThreads(__tstate);
36994 if (PyErr_Occurred()) SWIG_fail;
36995 }
36996 {
36997#if wxUSE_UNICODE
36998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36999#else
37000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37001#endif
37002 }
37003 return resultobj;
37004fail:
37005 return NULL;
d55e5bfc
RD
37006}
37007
37008
554f62e9
RD
37009SWIGINTERN PyObject *_wrap_StandardPaths_GetDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37010 PyObject *resultobj = 0;
37011 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37012 wxString result;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 PyObject *swig_obj[1] ;
37016
37017 if (!args) SWIG_fail;
37018 swig_obj[0] = args;
37019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37020 if (!SWIG_IsOK(res1)) {
37021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37022 }
37023 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37024 {
37025 PyThreadState* __tstate = wxPyBeginAllowThreads();
37026 result = ((wxStandardPaths const *)arg1)->GetDataDir();
37027 wxPyEndAllowThreads(__tstate);
37028 if (PyErr_Occurred()) SWIG_fail;
37029 }
37030 {
37031#if wxUSE_UNICODE
37032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37033#else
37034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37035#endif
37036 }
37037 return resultobj;
37038fail:
37039 return NULL;
d55e5bfc
RD
37040}
37041
37042
554f62e9
RD
37043SWIGINTERN PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37044 PyObject *resultobj = 0;
37045 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37046 wxString result;
37047 void *argp1 = 0 ;
37048 int res1 = 0 ;
37049 PyObject *swig_obj[1] ;
37050
37051 if (!args) SWIG_fail;
37052 swig_obj[0] = args;
37053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37054 if (!SWIG_IsOK(res1)) {
37055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetLocalDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37056 }
37057 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37058 {
37059 PyThreadState* __tstate = wxPyBeginAllowThreads();
37060 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
37061 wxPyEndAllowThreads(__tstate);
37062 if (PyErr_Occurred()) SWIG_fail;
37063 }
37064 {
37065#if wxUSE_UNICODE
37066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37067#else
37068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37069#endif
37070 }
37071 return resultobj;
37072fail:
37073 return NULL;
d55e5bfc
RD
37074}
37075
37076
554f62e9
RD
37077SWIGINTERN PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37078 PyObject *resultobj = 0;
37079 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37080 wxString result;
37081 void *argp1 = 0 ;
37082 int res1 = 0 ;
37083 PyObject *swig_obj[1] ;
37084
37085 if (!args) SWIG_fail;
37086 swig_obj[0] = args;
37087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37088 if (!SWIG_IsOK(res1)) {
37089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37090 }
37091 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37092 {
37093 PyThreadState* __tstate = wxPyBeginAllowThreads();
37094 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
37095 wxPyEndAllowThreads(__tstate);
37096 if (PyErr_Occurred()) SWIG_fail;
37097 }
37098 {
37099#if wxUSE_UNICODE
37100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37101#else
37102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37103#endif
37104 }
37105 return resultobj;
37106fail:
37107 return NULL;
d55e5bfc
RD
37108}
37109
37110
554f62e9
RD
37111SWIGINTERN PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37112 PyObject *resultobj = 0;
37113 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37114 wxString result;
37115 void *argp1 = 0 ;
37116 int res1 = 0 ;
37117 PyObject *swig_obj[1] ;
37118
37119 if (!args) SWIG_fail;
37120 swig_obj[0] = args;
37121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37122 if (!SWIG_IsOK(res1)) {
37123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetUserLocalDataDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37124 }
37125 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37126 {
37127 PyThreadState* __tstate = wxPyBeginAllowThreads();
37128 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
37129 wxPyEndAllowThreads(__tstate);
37130 if (PyErr_Occurred()) SWIG_fail;
37131 }
37132 {
37133#if wxUSE_UNICODE
37134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37135#else
37136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37137#endif
37138 }
37139 return resultobj;
37140fail:
37141 return NULL;
d55e5bfc
RD
37142}
37143
37144
554f62e9
RD
37145SWIGINTERN PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37146 PyObject *resultobj = 0;
37147 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37148 wxString result;
37149 void *argp1 = 0 ;
37150 int res1 = 0 ;
37151 PyObject *swig_obj[1] ;
37152
37153 if (!args) SWIG_fail;
37154 swig_obj[0] = args;
37155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37156 if (!SWIG_IsOK(res1)) {
37157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetPluginsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37158 }
37159 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37160 {
37161 PyThreadState* __tstate = wxPyBeginAllowThreads();
37162 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
37163 wxPyEndAllowThreads(__tstate);
37164 if (PyErr_Occurred()) SWIG_fail;
37165 }
37166 {
37167#if wxUSE_UNICODE
37168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37169#else
37170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37171#endif
37172 }
37173 return resultobj;
37174fail:
37175 return NULL;
37176}
37177
37178
e9d6f3a4
RD
37179SWIGINTERN PyObject *_wrap_StandardPaths_GetResourcesDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37180 PyObject *resultobj = 0;
37181 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37182 wxString result;
37183 void *argp1 = 0 ;
37184 int res1 = 0 ;
37185 PyObject *swig_obj[1] ;
37186
37187 if (!args) SWIG_fail;
37188 swig_obj[0] = args;
37189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37190 if (!SWIG_IsOK(res1)) {
37191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetResourcesDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37192 }
37193 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37194 {
37195 PyThreadState* __tstate = wxPyBeginAllowThreads();
37196 result = ((wxStandardPaths const *)arg1)->GetResourcesDir();
37197 wxPyEndAllowThreads(__tstate);
37198 if (PyErr_Occurred()) SWIG_fail;
37199 }
37200 {
37201#if wxUSE_UNICODE
37202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37203#else
37204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37205#endif
37206 }
37207 return resultobj;
37208fail:
37209 return NULL;
37210}
37211
37212
37213SWIGINTERN PyObject *_wrap_StandardPaths_GetLocalizedResourcesDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37214 PyObject *resultobj = 0;
37215 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37216 wxString *arg2 = 0 ;
37217 wxStandardPaths::ResourceCat arg3 = (wxStandardPaths::ResourceCat) wxStandardPaths::ResourceCat_None ;
37218 wxString result;
37219 void *argp1 = 0 ;
37220 int res1 = 0 ;
37221 bool temp2 = false ;
37222 int val3 ;
37223 int ecode3 = 0 ;
37224 PyObject * obj0 = 0 ;
37225 PyObject * obj1 = 0 ;
37226 PyObject * obj2 = 0 ;
37227 char * kwnames[] = {
37228 (char *) "self",(char *) "lang",(char *) "category", NULL
37229 };
37230
37231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StandardPaths_GetLocalizedResourcesDir",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37233 if (!SWIG_IsOK(res1)) {
37234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetLocalizedResourcesDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37235 }
37236 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37237 {
37238 arg2 = wxString_in_helper(obj1);
37239 if (arg2 == NULL) SWIG_fail;
37240 temp2 = true;
37241 }
37242 if (obj2) {
37243 ecode3 = SWIG_AsVal_int(obj2, &val3);
37244 if (!SWIG_IsOK(ecode3)) {
37245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StandardPaths_GetLocalizedResourcesDir" "', expected argument " "3"" of type '" "wxStandardPaths::ResourceCat""'");
37246 }
37247 arg3 = static_cast< wxStandardPaths::ResourceCat >(val3);
37248 }
37249 {
37250 PyThreadState* __tstate = wxPyBeginAllowThreads();
37251 result = ((wxStandardPaths const *)arg1)->GetLocalizedResourcesDir((wxString const &)*arg2,arg3);
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 {
37263 if (temp2)
37264 delete arg2;
37265 }
37266 return resultobj;
37267fail:
37268 {
37269 if (temp2)
37270 delete arg2;
37271 }
37272 return NULL;
37273}
37274
37275
50efceee
RD
37276SWIGINTERN PyObject *_wrap_StandardPaths_GetDocumentsDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37277 PyObject *resultobj = 0;
37278 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37279 wxString result;
37280 void *argp1 = 0 ;
37281 int res1 = 0 ;
37282 PyObject *swig_obj[1] ;
37283
37284 if (!args) SWIG_fail;
37285 swig_obj[0] = args;
37286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37287 if (!SWIG_IsOK(res1)) {
37288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetDocumentsDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37289 }
37290 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37291 {
37292 PyThreadState* __tstate = wxPyBeginAllowThreads();
37293 result = ((wxStandardPaths const *)arg1)->GetDocumentsDir();
37294 wxPyEndAllowThreads(__tstate);
37295 if (PyErr_Occurred()) SWIG_fail;
37296 }
37297 {
37298#if wxUSE_UNICODE
37299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37300#else
37301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37302#endif
37303 }
37304 return resultobj;
37305fail:
37306 return NULL;
37307}
37308
37309
ae8635b6
RD
37310SWIGINTERN PyObject *_wrap_StandardPaths_GetTempDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37311 PyObject *resultobj = 0;
37312 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37313 wxString result;
37314 void *argp1 = 0 ;
37315 int res1 = 0 ;
37316 PyObject *swig_obj[1] ;
37317
37318 if (!args) SWIG_fail;
37319 swig_obj[0] = args;
37320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37321 if (!SWIG_IsOK(res1)) {
37322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetTempDir" "', expected argument " "1"" of type '" "wxStandardPaths const *""'");
37323 }
37324 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37325 {
37326 PyThreadState* __tstate = wxPyBeginAllowThreads();
37327 result = ((wxStandardPaths const *)arg1)->GetTempDir();
37328 wxPyEndAllowThreads(__tstate);
37329 if (PyErr_Occurred()) SWIG_fail;
37330 }
37331 {
37332#if wxUSE_UNICODE
37333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37334#else
37335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37336#endif
37337 }
37338 return resultobj;
37339fail:
37340 return NULL;
37341}
37342
37343
554f62e9
RD
37344SWIGINTERN PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37345 PyObject *resultobj = 0;
37346 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37347 wxString *arg2 = 0 ;
37348 void *argp1 = 0 ;
37349 int res1 = 0 ;
37350 bool temp2 = false ;
37351 PyObject * obj0 = 0 ;
37352 PyObject * obj1 = 0 ;
37353 char * kwnames[] = {
37354 (char *) "self",(char *) "prefix", NULL
37355 };
37356
37357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) SWIG_fail;
37358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37359 if (!SWIG_IsOK(res1)) {
37360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_SetInstallPrefix" "', expected argument " "1"" of type '" "wxStandardPaths *""'");
37361 }
37362 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37363 {
37364 arg2 = wxString_in_helper(obj1);
37365 if (arg2 == NULL) SWIG_fail;
37366 temp2 = true;
37367 }
37368 {
37369 PyThreadState* __tstate = wxPyBeginAllowThreads();
37370 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
37371 wxPyEndAllowThreads(__tstate);
37372 if (PyErr_Occurred()) SWIG_fail;
37373 }
37374 resultobj = SWIG_Py_Void();
37375 {
37376 if (temp2)
37377 delete arg2;
37378 }
37379 return resultobj;
37380fail:
37381 {
37382 if (temp2)
37383 delete arg2;
37384 }
37385 return NULL;
d55e5bfc
RD
37386}
37387
37388
554f62e9
RD
37389SWIGINTERN PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37390 PyObject *resultobj = 0;
37391 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
37392 wxString result;
37393 void *argp1 = 0 ;
37394 int res1 = 0 ;
37395 PyObject *swig_obj[1] ;
37396
37397 if (!args) SWIG_fail;
37398 swig_obj[0] = args;
37399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStandardPaths, 0 | 0 );
37400 if (!SWIG_IsOK(res1)) {
37401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StandardPaths_GetInstallPrefix" "', expected argument " "1"" of type '" "wxStandardPaths *""'");
37402 }
37403 arg1 = reinterpret_cast< wxStandardPaths * >(argp1);
37404 {
37405 PyThreadState* __tstate = wxPyBeginAllowThreads();
37406 result = wxStandardPaths_GetInstallPrefix(arg1);
37407 wxPyEndAllowThreads(__tstate);
37408 if (PyErr_Occurred()) SWIG_fail;
37409 }
37410 {
37411#if wxUSE_UNICODE
37412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37413#else
37414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37415#endif
37416 }
37417 return resultobj;
37418fail:
37419 return NULL;
d55e5bfc
RD
37420}
37421
37422
554f62e9
RD
37423SWIGINTERN PyObject *StandardPaths_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37424 PyObject *obj;
37425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37426 SWIG_TypeNewClientData(SWIGTYPE_p_wxStandardPaths, SWIG_NewClientData(obj));
37427 return SWIG_Py_Void();
d55e5bfc
RD
37428}
37429
704eda0c
RD
37430SWIGINTERN PyObject *_wrap_new_PowerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37431 PyObject *resultobj = 0;
37432 wxEventType arg1 ;
37433 wxPowerEvent *result = 0 ;
37434 int val1 ;
37435 int ecode1 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 char * kwnames[] = {
37438 (char *) "evtType", NULL
37439 };
37440
37441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PowerEvent",kwnames,&obj0)) SWIG_fail;
37442 ecode1 = SWIG_AsVal_int(obj0, &val1);
37443 if (!SWIG_IsOK(ecode1)) {
37444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PowerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
37445 }
37446 arg1 = static_cast< wxEventType >(val1);
37447 {
37448 PyThreadState* __tstate = wxPyBeginAllowThreads();
37449 result = (wxPowerEvent *)new wxPowerEvent(arg1);
37450 wxPyEndAllowThreads(__tstate);
37451 if (PyErr_Occurred()) SWIG_fail;
37452 }
37453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPowerEvent, SWIG_POINTER_NEW | 0 );
37454 return resultobj;
37455fail:
37456 return NULL;
37457}
37458
37459
37460SWIGINTERN PyObject *_wrap_PowerEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37461 PyObject *resultobj = 0;
37462 wxPowerEvent *arg1 = (wxPowerEvent *) 0 ;
37463 void *argp1 = 0 ;
37464 int res1 = 0 ;
37465 PyObject *swig_obj[1] ;
37466
37467 if (!args) SWIG_fail;
37468 swig_obj[0] = args;
37469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPowerEvent, 0 | 0 );
37470 if (!SWIG_IsOK(res1)) {
37471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PowerEvent_Veto" "', expected argument " "1"" of type '" "wxPowerEvent *""'");
37472 }
37473 arg1 = reinterpret_cast< wxPowerEvent * >(argp1);
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 (arg1)->Veto();
37477 wxPyEndAllowThreads(__tstate);
37478 if (PyErr_Occurred()) SWIG_fail;
37479 }
37480 resultobj = SWIG_Py_Void();
37481 return resultobj;
37482fail:
37483 return NULL;
37484}
37485
37486
37487SWIGINTERN PyObject *_wrap_PowerEvent_IsVetoed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37488 PyObject *resultobj = 0;
37489 wxPowerEvent *arg1 = (wxPowerEvent *) 0 ;
37490 bool result;
37491 void *argp1 = 0 ;
37492 int res1 = 0 ;
37493 PyObject *swig_obj[1] ;
37494
37495 if (!args) SWIG_fail;
37496 swig_obj[0] = args;
37497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPowerEvent, 0 | 0 );
37498 if (!SWIG_IsOK(res1)) {
37499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PowerEvent_IsVetoed" "', expected argument " "1"" of type '" "wxPowerEvent const *""'");
37500 }
37501 arg1 = reinterpret_cast< wxPowerEvent * >(argp1);
37502 {
37503 PyThreadState* __tstate = wxPyBeginAllowThreads();
37504 result = (bool)((wxPowerEvent const *)arg1)->IsVetoed();
37505 wxPyEndAllowThreads(__tstate);
37506 if (PyErr_Occurred()) SWIG_fail;
37507 }
37508 {
37509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37510 }
37511 return resultobj;
37512fail:
37513 return NULL;
37514}
37515
37516
37517SWIGINTERN PyObject *PowerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37518 PyObject *obj;
37519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37520 SWIG_TypeNewClientData(SWIGTYPE_p_wxPowerEvent, SWIG_NewClientData(obj));
37521 return SWIG_Py_Void();
37522}
37523
37524SWIGINTERN PyObject *PowerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37525 return SWIG_Python_InitShadowInstance(args);
37526}
37527
37528SWIGINTERN PyObject *_wrap_GetPowerType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37529 PyObject *resultobj = 0;
37530 wxPowerType result;
37531
37532 if (!SWIG_Python_UnpackTuple(args,"GetPowerType",0,0,0)) SWIG_fail;
37533 {
37534 PyThreadState* __tstate = wxPyBeginAllowThreads();
37535 result = (wxPowerType)wxGetPowerType();
37536 wxPyEndAllowThreads(__tstate);
37537 if (PyErr_Occurred()) SWIG_fail;
37538 }
37539 resultobj = SWIG_From_int(static_cast< int >(result));
37540 return resultobj;
37541fail:
37542 return NULL;
37543}
37544
37545
37546SWIGINTERN PyObject *_wrap_GetBatteryState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37547 PyObject *resultobj = 0;
37548 wxBatteryState result;
37549
37550 if (!SWIG_Python_UnpackTuple(args,"GetBatteryState",0,0,0)) SWIG_fail;
37551 {
37552 PyThreadState* __tstate = wxPyBeginAllowThreads();
37553 result = (wxBatteryState)wxGetBatteryState();
37554 wxPyEndAllowThreads(__tstate);
37555 if (PyErr_Occurred()) SWIG_fail;
37556 }
37557 resultobj = SWIG_From_int(static_cast< int >(result));
37558 return resultobj;
37559fail:
37560 return NULL;
37561}
37562
37563
b39fe951
RD
37564SWIGINTERN PyObject *_wrap_new_AboutDialogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37565 PyObject *resultobj = 0;
37566 wxAboutDialogInfo *result = 0 ;
37567
37568 if (!SWIG_Python_UnpackTuple(args,"new_AboutDialogInfo",0,0,0)) SWIG_fail;
37569 {
37570 PyThreadState* __tstate = wxPyBeginAllowThreads();
37571 result = (wxAboutDialogInfo *)new wxAboutDialogInfo();
37572 wxPyEndAllowThreads(__tstate);
37573 if (PyErr_Occurred()) SWIG_fail;
37574 }
37575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAboutDialogInfo, SWIG_POINTER_NEW | 0 );
37576 return resultobj;
37577fail:
37578 return NULL;
37579}
37580
37581
37582SWIGINTERN PyObject *_wrap_delete_AboutDialogInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37583 PyObject *resultobj = 0;
37584 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37585 void *argp1 = 0 ;
37586 int res1 = 0 ;
37587 PyObject *swig_obj[1] ;
37588
37589 if (!args) SWIG_fail;
37590 swig_obj[0] = args;
37591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, SWIG_POINTER_DISOWN | 0 );
37592 if (!SWIG_IsOK(res1)) {
37593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AboutDialogInfo" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37594 }
37595 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37596 {
37597 PyThreadState* __tstate = wxPyBeginAllowThreads();
37598 delete arg1;
37599
37600 wxPyEndAllowThreads(__tstate);
37601 if (PyErr_Occurred()) SWIG_fail;
37602 }
37603 resultobj = SWIG_Py_Void();
37604 return resultobj;
37605fail:
37606 return NULL;
37607}
37608
37609
37610SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37611 PyObject *resultobj = 0;
37612 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37613 wxString *arg2 = 0 ;
37614 void *argp1 = 0 ;
37615 int res1 = 0 ;
37616 bool temp2 = false ;
37617 PyObject * obj0 = 0 ;
37618 PyObject * obj1 = 0 ;
37619 char * kwnames[] = {
37620 (char *) "self",(char *) "name", NULL
37621 };
37622
37623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
37624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37625 if (!SWIG_IsOK(res1)) {
37626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetName" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37627 }
37628 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37629 {
37630 arg2 = wxString_in_helper(obj1);
37631 if (arg2 == NULL) SWIG_fail;
37632 temp2 = true;
37633 }
37634 {
37635 PyThreadState* __tstate = wxPyBeginAllowThreads();
37636 (arg1)->SetName((wxString const &)*arg2);
37637 wxPyEndAllowThreads(__tstate);
37638 if (PyErr_Occurred()) SWIG_fail;
37639 }
37640 resultobj = SWIG_Py_Void();
37641 {
37642 if (temp2)
37643 delete arg2;
37644 }
37645 return resultobj;
37646fail:
37647 {
37648 if (temp2)
37649 delete arg2;
37650 }
37651 return NULL;
37652}
37653
37654
37655SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37656 PyObject *resultobj = 0;
37657 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37658 wxString result;
37659 void *argp1 = 0 ;
37660 int res1 = 0 ;
37661 PyObject *swig_obj[1] ;
37662
37663 if (!args) SWIG_fail;
37664 swig_obj[0] = args;
37665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37666 if (!SWIG_IsOK(res1)) {
37667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetName" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37668 }
37669 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37670 {
37671 PyThreadState* __tstate = wxPyBeginAllowThreads();
37672 result = ((wxAboutDialogInfo const *)arg1)->GetName();
37673 wxPyEndAllowThreads(__tstate);
37674 if (PyErr_Occurred()) SWIG_fail;
37675 }
37676 {
37677#if wxUSE_UNICODE
37678 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37679#else
37680 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37681#endif
37682 }
37683 return resultobj;
37684fail:
37685 return NULL;
37686}
37687
37688
37689SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37690 PyObject *resultobj = 0;
37691 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37692 wxString *arg2 = 0 ;
37693 void *argp1 = 0 ;
37694 int res1 = 0 ;
37695 bool temp2 = false ;
37696 PyObject * obj0 = 0 ;
37697 PyObject * obj1 = 0 ;
37698 char * kwnames[] = {
37699 (char *) "self",(char *) "version", NULL
37700 };
37701
37702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail;
37703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37706 }
37707 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37708 {
37709 arg2 = wxString_in_helper(obj1);
37710 if (arg2 == NULL) SWIG_fail;
37711 temp2 = true;
37712 }
37713 {
37714 PyThreadState* __tstate = wxPyBeginAllowThreads();
37715 (arg1)->SetVersion((wxString const &)*arg2);
37716 wxPyEndAllowThreads(__tstate);
37717 if (PyErr_Occurred()) SWIG_fail;
37718 }
37719 resultobj = SWIG_Py_Void();
37720 {
37721 if (temp2)
37722 delete arg2;
37723 }
37724 return resultobj;
37725fail:
37726 {
37727 if (temp2)
37728 delete arg2;
37729 }
37730 return NULL;
37731}
37732
37733
37734SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37735 PyObject *resultobj = 0;
37736 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37737 bool result;
37738 void *argp1 = 0 ;
37739 int res1 = 0 ;
37740 PyObject *swig_obj[1] ;
37741
37742 if (!args) SWIG_fail;
37743 swig_obj[0] = args;
37744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37745 if (!SWIG_IsOK(res1)) {
37746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37747 }
37748 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37749 {
37750 PyThreadState* __tstate = wxPyBeginAllowThreads();
37751 result = (bool)((wxAboutDialogInfo const *)arg1)->HasVersion();
37752 wxPyEndAllowThreads(__tstate);
37753 if (PyErr_Occurred()) SWIG_fail;
37754 }
37755 {
37756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37757 }
37758 return resultobj;
37759fail:
37760 return NULL;
37761}
37762
37763
37764SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37765 PyObject *resultobj = 0;
37766 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37767 wxString result;
37768 void *argp1 = 0 ;
37769 int res1 = 0 ;
37770 PyObject *swig_obj[1] ;
37771
37772 if (!args) SWIG_fail;
37773 swig_obj[0] = args;
37774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37775 if (!SWIG_IsOK(res1)) {
37776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetVersion" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37777 }
37778 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37779 {
37780 PyThreadState* __tstate = wxPyBeginAllowThreads();
37781 result = ((wxAboutDialogInfo const *)arg1)->GetVersion();
37782 wxPyEndAllowThreads(__tstate);
37783 if (PyErr_Occurred()) SWIG_fail;
37784 }
37785 {
37786#if wxUSE_UNICODE
37787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37788#else
37789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37790#endif
37791 }
37792 return resultobj;
37793fail:
37794 return NULL;
37795}
37796
37797
37798SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37799 PyObject *resultobj = 0;
37800 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37801 wxString *arg2 = 0 ;
37802 void *argp1 = 0 ;
37803 int res1 = 0 ;
37804 bool temp2 = false ;
37805 PyObject * obj0 = 0 ;
37806 PyObject * obj1 = 0 ;
37807 char * kwnames[] = {
37808 (char *) "self",(char *) "desc", NULL
37809 };
37810
37811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDescription",kwnames,&obj0,&obj1)) SWIG_fail;
37812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37813 if (!SWIG_IsOK(res1)) {
37814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37815 }
37816 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37817 {
37818 arg2 = wxString_in_helper(obj1);
37819 if (arg2 == NULL) SWIG_fail;
37820 temp2 = true;
37821 }
37822 {
37823 PyThreadState* __tstate = wxPyBeginAllowThreads();
37824 (arg1)->SetDescription((wxString const &)*arg2);
37825 wxPyEndAllowThreads(__tstate);
37826 if (PyErr_Occurred()) SWIG_fail;
37827 }
37828 resultobj = SWIG_Py_Void();
37829 {
37830 if (temp2)
37831 delete arg2;
37832 }
37833 return resultobj;
37834fail:
37835 {
37836 if (temp2)
37837 delete arg2;
37838 }
37839 return NULL;
37840}
37841
37842
37843SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37844 PyObject *resultobj = 0;
37845 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37846 bool result;
37847 void *argp1 = 0 ;
37848 int res1 = 0 ;
37849 PyObject *swig_obj[1] ;
37850
37851 if (!args) SWIG_fail;
37852 swig_obj[0] = args;
37853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37854 if (!SWIG_IsOK(res1)) {
37855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37856 }
37857 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37858 {
37859 PyThreadState* __tstate = wxPyBeginAllowThreads();
37860 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDescription();
37861 wxPyEndAllowThreads(__tstate);
37862 if (PyErr_Occurred()) SWIG_fail;
37863 }
37864 {
37865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37866 }
37867 return resultobj;
37868fail:
37869 return NULL;
37870}
37871
37872
37873SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37874 PyObject *resultobj = 0;
37875 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37876 wxString result;
37877 void *argp1 = 0 ;
37878 int res1 = 0 ;
37879 PyObject *swig_obj[1] ;
37880
37881 if (!args) SWIG_fail;
37882 swig_obj[0] = args;
37883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37884 if (!SWIG_IsOK(res1)) {
37885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37886 }
37887 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 result = ((wxAboutDialogInfo const *)arg1)->GetDescription();
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 {
37895#if wxUSE_UNICODE
37896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37897#else
37898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37899#endif
37900 }
37901 return resultobj;
37902fail:
37903 return NULL;
37904}
37905
37906
37907SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37908 PyObject *resultobj = 0;
37909 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37910 wxString *arg2 = 0 ;
37911 void *argp1 = 0 ;
37912 int res1 = 0 ;
37913 bool temp2 = false ;
37914 PyObject * obj0 = 0 ;
37915 PyObject * obj1 = 0 ;
37916 char * kwnames[] = {
37917 (char *) "self",(char *) "copyright", NULL
37918 };
37919
37920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetCopyright",kwnames,&obj0,&obj1)) SWIG_fail;
37921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37922 if (!SWIG_IsOK(res1)) {
37923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
37924 }
37925 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37926 {
37927 arg2 = wxString_in_helper(obj1);
37928 if (arg2 == NULL) SWIG_fail;
37929 temp2 = true;
37930 }
37931 {
37932 PyThreadState* __tstate = wxPyBeginAllowThreads();
37933 (arg1)->SetCopyright((wxString const &)*arg2);
37934 wxPyEndAllowThreads(__tstate);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 resultobj = SWIG_Py_Void();
37938 {
37939 if (temp2)
37940 delete arg2;
37941 }
37942 return resultobj;
37943fail:
37944 {
37945 if (temp2)
37946 delete arg2;
37947 }
37948 return NULL;
37949}
37950
37951
37952SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37953 PyObject *resultobj = 0;
37954 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37955 bool result;
37956 void *argp1 = 0 ;
37957 int res1 = 0 ;
37958 PyObject *swig_obj[1] ;
37959
37960 if (!args) SWIG_fail;
37961 swig_obj[0] = args;
37962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37963 if (!SWIG_IsOK(res1)) {
37964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37965 }
37966 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37967 {
37968 PyThreadState* __tstate = wxPyBeginAllowThreads();
37969 result = (bool)((wxAboutDialogInfo const *)arg1)->HasCopyright();
37970 wxPyEndAllowThreads(__tstate);
37971 if (PyErr_Occurred()) SWIG_fail;
37972 }
37973 {
37974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37975 }
37976 return resultobj;
37977fail:
37978 return NULL;
37979}
37980
37981
37982SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37983 PyObject *resultobj = 0;
37984 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
37985 wxString result;
37986 void *argp1 = 0 ;
37987 int res1 = 0 ;
37988 PyObject *swig_obj[1] ;
37989
37990 if (!args) SWIG_fail;
37991 swig_obj[0] = args;
37992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
37993 if (!SWIG_IsOK(res1)) {
37994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetCopyright" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
37995 }
37996 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
37997 {
37998 PyThreadState* __tstate = wxPyBeginAllowThreads();
37999 result = ((wxAboutDialogInfo const *)arg1)->GetCopyright();
38000 wxPyEndAllowThreads(__tstate);
38001 if (PyErr_Occurred()) SWIG_fail;
38002 }
38003 {
38004#if wxUSE_UNICODE
38005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38006#else
38007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38008#endif
38009 }
38010 return resultobj;
38011fail:
38012 return NULL;
38013}
38014
38015
38016SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38017 PyObject *resultobj = 0;
38018 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38019 wxString *arg2 = 0 ;
38020 void *argp1 = 0 ;
38021 int res1 = 0 ;
38022 bool temp2 = false ;
38023 PyObject * obj0 = 0 ;
38024 PyObject * obj1 = 0 ;
38025 char * kwnames[] = {
38026 (char *) "self",(char *) "licence", NULL
38027 };
38028
38029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetLicence",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_SetLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38033 }
38034 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38035 {
38036 arg2 = wxString_in_helper(obj1);
38037 if (arg2 == NULL) SWIG_fail;
38038 temp2 = true;
38039 }
38040 {
38041 PyThreadState* __tstate = wxPyBeginAllowThreads();
38042 (arg1)->SetLicence((wxString const &)*arg2);
38043 wxPyEndAllowThreads(__tstate);
38044 if (PyErr_Occurred()) SWIG_fail;
38045 }
38046 resultobj = SWIG_Py_Void();
38047 {
38048 if (temp2)
38049 delete arg2;
38050 }
38051 return resultobj;
38052fail:
38053 {
38054 if (temp2)
38055 delete arg2;
38056 }
38057 return NULL;
38058}
38059
38060
38061SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetLicense(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38062 PyObject *resultobj = 0;
38063 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38064 wxString *arg2 = 0 ;
38065 void *argp1 = 0 ;
38066 int res1 = 0 ;
38067 bool temp2 = false ;
38068 PyObject * obj0 = 0 ;
38069 PyObject * obj1 = 0 ;
38070 char * kwnames[] = {
38071 (char *) "self",(char *) "licence", NULL
38072 };
38073
38074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetLicense",kwnames,&obj0,&obj1)) SWIG_fail;
38075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38076 if (!SWIG_IsOK(res1)) {
38077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetLicense" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38078 }
38079 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38080 {
38081 arg2 = wxString_in_helper(obj1);
38082 if (arg2 == NULL) SWIG_fail;
38083 temp2 = true;
38084 }
38085 {
38086 PyThreadState* __tstate = wxPyBeginAllowThreads();
38087 (arg1)->SetLicense((wxString const &)*arg2);
38088 wxPyEndAllowThreads(__tstate);
38089 if (PyErr_Occurred()) SWIG_fail;
38090 }
38091 resultobj = SWIG_Py_Void();
38092 {
38093 if (temp2)
38094 delete arg2;
38095 }
38096 return resultobj;
38097fail:
38098 {
38099 if (temp2)
38100 delete arg2;
38101 }
38102 return NULL;
38103}
38104
38105
38106SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38107 PyObject *resultobj = 0;
38108 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38109 bool result;
38110 void *argp1 = 0 ;
38111 int res1 = 0 ;
38112 PyObject *swig_obj[1] ;
38113
38114 if (!args) SWIG_fail;
38115 swig_obj[0] = args;
38116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38117 if (!SWIG_IsOK(res1)) {
38118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38119 }
38120 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38121 {
38122 PyThreadState* __tstate = wxPyBeginAllowThreads();
38123 result = (bool)((wxAboutDialogInfo const *)arg1)->HasLicence();
38124 wxPyEndAllowThreads(__tstate);
38125 if (PyErr_Occurred()) SWIG_fail;
38126 }
38127 {
38128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38129 }
38130 return resultobj;
38131fail:
38132 return NULL;
38133}
38134
38135
38136SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetLicence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38137 PyObject *resultobj = 0;
38138 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38139 wxString result;
38140 void *argp1 = 0 ;
38141 int res1 = 0 ;
38142 PyObject *swig_obj[1] ;
38143
38144 if (!args) SWIG_fail;
38145 swig_obj[0] = args;
38146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38147 if (!SWIG_IsOK(res1)) {
38148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetLicence" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38149 }
38150 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 result = ((wxAboutDialogInfo const *)arg1)->GetLicence();
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 {
38158#if wxUSE_UNICODE
38159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38160#else
38161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38162#endif
38163 }
38164 return resultobj;
38165fail:
38166 return NULL;
38167}
38168
38169
38170SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38171 PyObject *resultobj = 0;
38172 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38173 wxIcon *arg2 = 0 ;
38174 void *argp1 = 0 ;
38175 int res1 = 0 ;
38176 void *argp2 = 0 ;
38177 int res2 = 0 ;
38178 PyObject * obj0 = 0 ;
38179 PyObject * obj1 = 0 ;
38180 char * kwnames[] = {
38181 (char *) "self",(char *) "icon", NULL
38182 };
38183
38184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
38185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38186 if (!SWIG_IsOK(res1)) {
38187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38188 }
38189 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38191 if (!SWIG_IsOK(res2)) {
38192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38193 }
38194 if (!argp2) {
38195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AboutDialogInfo_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38196 }
38197 arg2 = reinterpret_cast< wxIcon * >(argp2);
38198 {
38199 PyThreadState* __tstate = wxPyBeginAllowThreads();
38200 (arg1)->SetIcon((wxIcon const &)*arg2);
38201 wxPyEndAllowThreads(__tstate);
38202 if (PyErr_Occurred()) SWIG_fail;
38203 }
38204 resultobj = SWIG_Py_Void();
38205 return resultobj;
38206fail:
38207 return NULL;
38208}
38209
38210
38211SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38212 PyObject *resultobj = 0;
38213 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38214 bool result;
38215 void *argp1 = 0 ;
38216 int res1 = 0 ;
38217 PyObject *swig_obj[1] ;
38218
38219 if (!args) SWIG_fail;
38220 swig_obj[0] = args;
38221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38222 if (!SWIG_IsOK(res1)) {
38223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38224 }
38225 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38226 {
38227 PyThreadState* __tstate = wxPyBeginAllowThreads();
38228 result = (bool)((wxAboutDialogInfo const *)arg1)->HasIcon();
38229 wxPyEndAllowThreads(__tstate);
38230 if (PyErr_Occurred()) SWIG_fail;
38231 }
38232 {
38233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38234 }
38235 return resultobj;
38236fail:
38237 return NULL;
38238}
38239
38240
38241SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38242 PyObject *resultobj = 0;
38243 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38244 wxIcon result;
38245 void *argp1 = 0 ;
38246 int res1 = 0 ;
38247 PyObject *swig_obj[1] ;
38248
38249 if (!args) SWIG_fail;
38250 swig_obj[0] = args;
38251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetIcon" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38254 }
38255 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38256 {
38257 PyThreadState* __tstate = wxPyBeginAllowThreads();
38258 result = ((wxAboutDialogInfo const *)arg1)->GetIcon();
38259 wxPyEndAllowThreads(__tstate);
38260 if (PyErr_Occurred()) SWIG_fail;
38261 }
38262 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
38263 return resultobj;
38264fail:
38265 return NULL;
38266}
38267
38268
38269SWIGINTERN PyObject *_wrap_AboutDialogInfo__SetWebSite(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38270 PyObject *resultobj = 0;
38271 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38272 wxString *arg2 = 0 ;
38273 wxString const &arg3_defvalue = wxEmptyString ;
38274 wxString *arg3 = (wxString *) &arg3_defvalue ;
38275 void *argp1 = 0 ;
38276 int res1 = 0 ;
38277 bool temp2 = false ;
38278 bool temp3 = false ;
38279 PyObject * obj0 = 0 ;
38280 PyObject * obj1 = 0 ;
38281 PyObject * obj2 = 0 ;
38282 char * kwnames[] = {
38283 (char *) "self",(char *) "url",(char *) "desc", NULL
38284 };
38285
38286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:AboutDialogInfo__SetWebSite",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38288 if (!SWIG_IsOK(res1)) {
38289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__SetWebSite" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38290 }
38291 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38292 {
38293 arg2 = wxString_in_helper(obj1);
38294 if (arg2 == NULL) SWIG_fail;
38295 temp2 = true;
38296 }
38297 if (obj2) {
38298 {
38299 arg3 = wxString_in_helper(obj2);
38300 if (arg3 == NULL) SWIG_fail;
38301 temp3 = true;
38302 }
38303 }
38304 {
38305 PyThreadState* __tstate = wxPyBeginAllowThreads();
38306 (arg1)->SetWebSite((wxString const &)*arg2,(wxString const &)*arg3);
38307 wxPyEndAllowThreads(__tstate);
38308 if (PyErr_Occurred()) SWIG_fail;
38309 }
38310 resultobj = SWIG_Py_Void();
38311 {
38312 if (temp2)
38313 delete arg2;
38314 }
38315 {
38316 if (temp3)
38317 delete arg3;
38318 }
38319 return resultobj;
38320fail:
38321 {
38322 if (temp2)
38323 delete arg2;
38324 }
38325 {
38326 if (temp3)
38327 delete arg3;
38328 }
38329 return NULL;
38330}
38331
38332
38333SWIGINTERN PyObject *_wrap_AboutDialogInfo__GetWebSiteURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38334 PyObject *resultobj = 0;
38335 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38336 wxString result;
38337 void *argp1 = 0 ;
38338 int res1 = 0 ;
38339 PyObject *swig_obj[1] ;
38340
38341 if (!args) SWIG_fail;
38342 swig_obj[0] = args;
38343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38344 if (!SWIG_IsOK(res1)) {
38345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__GetWebSiteURL" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38346 }
38347 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38348 {
38349 PyThreadState* __tstate = wxPyBeginAllowThreads();
38350 result = ((wxAboutDialogInfo const *)arg1)->GetWebSiteURL();
38351 wxPyEndAllowThreads(__tstate);
38352 if (PyErr_Occurred()) SWIG_fail;
38353 }
38354 {
38355#if wxUSE_UNICODE
38356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38357#else
38358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38359#endif
38360 }
38361 return resultobj;
38362fail:
38363 return NULL;
38364}
38365
38366
38367SWIGINTERN PyObject *_wrap_AboutDialogInfo__GetWebSiteDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38368 PyObject *resultobj = 0;
38369 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38370 wxString result;
38371 void *argp1 = 0 ;
38372 int res1 = 0 ;
38373 PyObject *swig_obj[1] ;
38374
38375 if (!args) SWIG_fail;
38376 swig_obj[0] = args;
38377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38378 if (!SWIG_IsOK(res1)) {
38379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo__GetWebSiteDescription" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38380 }
38381 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38382 {
38383 PyThreadState* __tstate = wxPyBeginAllowThreads();
38384 result = ((wxAboutDialogInfo const *)arg1)->GetWebSiteDescription();
38385 wxPyEndAllowThreads(__tstate);
38386 if (PyErr_Occurred()) SWIG_fail;
38387 }
38388 {
38389#if wxUSE_UNICODE
38390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38391#else
38392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38393#endif
38394 }
38395 return resultobj;
38396fail:
38397 return NULL;
38398}
38399
38400
38401SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasWebSite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38402 PyObject *resultobj = 0;
38403 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38404 bool result;
38405 void *argp1 = 0 ;
38406 int res1 = 0 ;
38407 PyObject *swig_obj[1] ;
38408
38409 if (!args) SWIG_fail;
38410 swig_obj[0] = args;
38411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38412 if (!SWIG_IsOK(res1)) {
38413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasWebSite" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38414 }
38415 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38416 {
38417 PyThreadState* __tstate = wxPyBeginAllowThreads();
38418 result = (bool)((wxAboutDialogInfo const *)arg1)->HasWebSite();
38419 wxPyEndAllowThreads(__tstate);
38420 if (PyErr_Occurred()) SWIG_fail;
38421 }
38422 {
38423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38424 }
38425 return resultobj;
38426fail:
38427 return NULL;
38428}
38429
38430
38431SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38432 PyObject *resultobj = 0;
38433 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38434 wxArrayString *arg2 = 0 ;
38435 void *argp1 = 0 ;
38436 int res1 = 0 ;
38437 bool temp2 = false ;
38438 PyObject * obj0 = 0 ;
38439 PyObject * obj1 = 0 ;
38440 char * kwnames[] = {
38441 (char *) "self",(char *) "developers", NULL
38442 };
38443
38444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDevelopers",kwnames,&obj0,&obj1)) SWIG_fail;
38445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38446 if (!SWIG_IsOK(res1)) {
38447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38448 }
38449 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38450 {
38451 if (! PySequence_Check(obj1)) {
38452 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38453 SWIG_fail;
38454 }
38455 arg2 = new wxArrayString;
38456 temp2 = true;
38457 int i, len=PySequence_Length(obj1);
38458 for (i=0; i<len; i++) {
38459 PyObject* item = PySequence_GetItem(obj1, i);
38460 wxString* s = wxString_in_helper(item);
38461 if (PyErr_Occurred()) SWIG_fail;
38462 arg2->Add(*s);
38463 delete s;
38464 Py_DECREF(item);
38465 }
38466 }
38467 {
38468 PyThreadState* __tstate = wxPyBeginAllowThreads();
38469 (arg1)->SetDevelopers((wxArrayString const &)*arg2);
38470 wxPyEndAllowThreads(__tstate);
38471 if (PyErr_Occurred()) SWIG_fail;
38472 }
38473 resultobj = SWIG_Py_Void();
38474 {
38475 if (temp2) delete arg2;
38476 }
38477 return resultobj;
38478fail:
38479 {
38480 if (temp2) delete arg2;
38481 }
38482 return NULL;
38483}
38484
38485
38486SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddDeveloper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38487 PyObject *resultobj = 0;
38488 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38489 wxString *arg2 = 0 ;
38490 void *argp1 = 0 ;
38491 int res1 = 0 ;
38492 bool temp2 = false ;
38493 PyObject * obj0 = 0 ;
38494 PyObject * obj1 = 0 ;
38495 char * kwnames[] = {
38496 (char *) "self",(char *) "developer", NULL
38497 };
38498
38499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddDeveloper",kwnames,&obj0,&obj1)) SWIG_fail;
38500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38501 if (!SWIG_IsOK(res1)) {
38502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddDeveloper" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38503 }
38504 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38505 {
38506 arg2 = wxString_in_helper(obj1);
38507 if (arg2 == NULL) SWIG_fail;
38508 temp2 = true;
38509 }
38510 {
38511 PyThreadState* __tstate = wxPyBeginAllowThreads();
38512 (arg1)->AddDeveloper((wxString const &)*arg2);
38513 wxPyEndAllowThreads(__tstate);
38514 if (PyErr_Occurred()) SWIG_fail;
38515 }
38516 resultobj = SWIG_Py_Void();
38517 {
38518 if (temp2)
38519 delete arg2;
38520 }
38521 return resultobj;
38522fail:
38523 {
38524 if (temp2)
38525 delete arg2;
38526 }
38527 return NULL;
38528}
38529
38530
38531SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38532 PyObject *resultobj = 0;
38533 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38534 bool result;
38535 void *argp1 = 0 ;
38536 int res1 = 0 ;
38537 PyObject *swig_obj[1] ;
38538
38539 if (!args) SWIG_fail;
38540 swig_obj[0] = args;
38541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38542 if (!SWIG_IsOK(res1)) {
38543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38544 }
38545 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38546 {
38547 PyThreadState* __tstate = wxPyBeginAllowThreads();
38548 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDevelopers();
38549 wxPyEndAllowThreads(__tstate);
38550 if (PyErr_Occurred()) SWIG_fail;
38551 }
38552 {
38553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38554 }
38555 return resultobj;
38556fail:
38557 return NULL;
38558}
38559
38560
38561SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDevelopers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38562 PyObject *resultobj = 0;
38563 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38564 wxArrayString *result = 0 ;
38565 void *argp1 = 0 ;
38566 int res1 = 0 ;
38567 PyObject *swig_obj[1] ;
38568
38569 if (!args) SWIG_fail;
38570 swig_obj[0] = args;
38571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38572 if (!SWIG_IsOK(res1)) {
38573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDevelopers" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38574 }
38575 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38576 {
38577 PyThreadState* __tstate = wxPyBeginAllowThreads();
38578 {
38579 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetDevelopers();
38580 result = (wxArrayString *) &_result_ref;
38581 }
38582 wxPyEndAllowThreads(__tstate);
38583 if (PyErr_Occurred()) SWIG_fail;
38584 }
38585 {
38586 resultobj = wxArrayString2PyList_helper(*result);
38587 }
38588 return resultobj;
38589fail:
38590 return NULL;
38591}
38592
38593
38594SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38595 PyObject *resultobj = 0;
38596 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38597 wxArrayString *arg2 = 0 ;
38598 void *argp1 = 0 ;
38599 int res1 = 0 ;
38600 bool temp2 = false ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 char * kwnames[] = {
38604 (char *) "self",(char *) "docwriters", NULL
38605 };
38606
38607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetDocWriters",kwnames,&obj0,&obj1)) SWIG_fail;
38608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38609 if (!SWIG_IsOK(res1)) {
38610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38611 }
38612 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38613 {
38614 if (! PySequence_Check(obj1)) {
38615 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38616 SWIG_fail;
38617 }
38618 arg2 = new wxArrayString;
38619 temp2 = true;
38620 int i, len=PySequence_Length(obj1);
38621 for (i=0; i<len; i++) {
38622 PyObject* item = PySequence_GetItem(obj1, i);
38623 wxString* s = wxString_in_helper(item);
38624 if (PyErr_Occurred()) SWIG_fail;
38625 arg2->Add(*s);
38626 delete s;
38627 Py_DECREF(item);
38628 }
38629 }
38630 {
38631 PyThreadState* __tstate = wxPyBeginAllowThreads();
38632 (arg1)->SetDocWriters((wxArrayString const &)*arg2);
38633 wxPyEndAllowThreads(__tstate);
38634 if (PyErr_Occurred()) SWIG_fail;
38635 }
38636 resultobj = SWIG_Py_Void();
38637 {
38638 if (temp2) delete arg2;
38639 }
38640 return resultobj;
38641fail:
38642 {
38643 if (temp2) delete arg2;
38644 }
38645 return NULL;
38646}
38647
38648
38649SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddDocWriter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38650 PyObject *resultobj = 0;
38651 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38652 wxString *arg2 = 0 ;
38653 void *argp1 = 0 ;
38654 int res1 = 0 ;
38655 bool temp2 = false ;
38656 PyObject * obj0 = 0 ;
38657 PyObject * obj1 = 0 ;
38658 char * kwnames[] = {
38659 (char *) "self",(char *) "docwriter", NULL
38660 };
38661
38662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddDocWriter",kwnames,&obj0,&obj1)) SWIG_fail;
38663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38664 if (!SWIG_IsOK(res1)) {
38665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddDocWriter" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38666 }
38667 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38668 {
38669 arg2 = wxString_in_helper(obj1);
38670 if (arg2 == NULL) SWIG_fail;
38671 temp2 = true;
38672 }
38673 {
38674 PyThreadState* __tstate = wxPyBeginAllowThreads();
38675 (arg1)->AddDocWriter((wxString const &)*arg2);
38676 wxPyEndAllowThreads(__tstate);
38677 if (PyErr_Occurred()) SWIG_fail;
38678 }
38679 resultobj = SWIG_Py_Void();
38680 {
38681 if (temp2)
38682 delete arg2;
38683 }
38684 return resultobj;
38685fail:
38686 {
38687 if (temp2)
38688 delete arg2;
38689 }
38690 return NULL;
38691}
38692
38693
38694SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38695 PyObject *resultobj = 0;
38696 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38697 bool result;
38698 void *argp1 = 0 ;
38699 int res1 = 0 ;
38700 PyObject *swig_obj[1] ;
38701
38702 if (!args) SWIG_fail;
38703 swig_obj[0] = args;
38704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38705 if (!SWIG_IsOK(res1)) {
38706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38707 }
38708 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38709 {
38710 PyThreadState* __tstate = wxPyBeginAllowThreads();
38711 result = (bool)((wxAboutDialogInfo const *)arg1)->HasDocWriters();
38712 wxPyEndAllowThreads(__tstate);
38713 if (PyErr_Occurred()) SWIG_fail;
38714 }
38715 {
38716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38717 }
38718 return resultobj;
38719fail:
38720 return NULL;
38721}
38722
38723
38724SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDocWriters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38725 PyObject *resultobj = 0;
38726 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38727 wxArrayString *result = 0 ;
38728 void *argp1 = 0 ;
38729 int res1 = 0 ;
38730 PyObject *swig_obj[1] ;
38731
38732 if (!args) SWIG_fail;
38733 swig_obj[0] = args;
38734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38735 if (!SWIG_IsOK(res1)) {
38736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDocWriters" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38737 }
38738 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38739 {
38740 PyThreadState* __tstate = wxPyBeginAllowThreads();
38741 {
38742 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetDocWriters();
38743 result = (wxArrayString *) &_result_ref;
38744 }
38745 wxPyEndAllowThreads(__tstate);
38746 if (PyErr_Occurred()) SWIG_fail;
38747 }
38748 {
38749 resultobj = wxArrayString2PyList_helper(*result);
38750 }
38751 return resultobj;
38752fail:
38753 return NULL;
38754}
38755
38756
38757SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38758 PyObject *resultobj = 0;
38759 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38760 wxArrayString *arg2 = 0 ;
38761 void *argp1 = 0 ;
38762 int res1 = 0 ;
38763 bool temp2 = false ;
38764 PyObject * obj0 = 0 ;
38765 PyObject * obj1 = 0 ;
38766 char * kwnames[] = {
38767 (char *) "self",(char *) "artists", NULL
38768 };
38769
38770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetArtists",kwnames,&obj0,&obj1)) SWIG_fail;
38771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38772 if (!SWIG_IsOK(res1)) {
38773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38774 }
38775 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38776 {
38777 if (! PySequence_Check(obj1)) {
38778 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38779 SWIG_fail;
38780 }
38781 arg2 = new wxArrayString;
38782 temp2 = true;
38783 int i, len=PySequence_Length(obj1);
38784 for (i=0; i<len; i++) {
38785 PyObject* item = PySequence_GetItem(obj1, i);
38786 wxString* s = wxString_in_helper(item);
38787 if (PyErr_Occurred()) SWIG_fail;
38788 arg2->Add(*s);
38789 delete s;
38790 Py_DECREF(item);
38791 }
38792 }
38793 {
38794 PyThreadState* __tstate = wxPyBeginAllowThreads();
38795 (arg1)->SetArtists((wxArrayString const &)*arg2);
38796 wxPyEndAllowThreads(__tstate);
38797 if (PyErr_Occurred()) SWIG_fail;
38798 }
38799 resultobj = SWIG_Py_Void();
38800 {
38801 if (temp2) delete arg2;
38802 }
38803 return resultobj;
38804fail:
38805 {
38806 if (temp2) delete arg2;
38807 }
38808 return NULL;
38809}
38810
38811
38812SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddArtist(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38813 PyObject *resultobj = 0;
38814 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38815 wxString *arg2 = 0 ;
38816 void *argp1 = 0 ;
38817 int res1 = 0 ;
38818 bool temp2 = false ;
38819 PyObject * obj0 = 0 ;
38820 PyObject * obj1 = 0 ;
38821 char * kwnames[] = {
38822 (char *) "self",(char *) "artist", NULL
38823 };
38824
38825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddArtist",kwnames,&obj0,&obj1)) SWIG_fail;
38826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38827 if (!SWIG_IsOK(res1)) {
38828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddArtist" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38829 }
38830 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38831 {
38832 arg2 = wxString_in_helper(obj1);
38833 if (arg2 == NULL) SWIG_fail;
38834 temp2 = true;
38835 }
38836 {
38837 PyThreadState* __tstate = wxPyBeginAllowThreads();
38838 (arg1)->AddArtist((wxString const &)*arg2);
38839 wxPyEndAllowThreads(__tstate);
38840 if (PyErr_Occurred()) SWIG_fail;
38841 }
38842 resultobj = SWIG_Py_Void();
38843 {
38844 if (temp2)
38845 delete arg2;
38846 }
38847 return resultobj;
38848fail:
38849 {
38850 if (temp2)
38851 delete arg2;
38852 }
38853 return NULL;
38854}
38855
38856
38857SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38858 PyObject *resultobj = 0;
38859 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38860 bool result;
38861 void *argp1 = 0 ;
38862 int res1 = 0 ;
38863 PyObject *swig_obj[1] ;
38864
38865 if (!args) SWIG_fail;
38866 swig_obj[0] = args;
38867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38868 if (!SWIG_IsOK(res1)) {
38869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38870 }
38871 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38872 {
38873 PyThreadState* __tstate = wxPyBeginAllowThreads();
38874 result = (bool)((wxAboutDialogInfo const *)arg1)->HasArtists();
38875 wxPyEndAllowThreads(__tstate);
38876 if (PyErr_Occurred()) SWIG_fail;
38877 }
38878 {
38879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38880 }
38881 return resultobj;
38882fail:
38883 return NULL;
38884}
38885
38886
38887SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetArtists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38888 PyObject *resultobj = 0;
38889 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38890 wxArrayString *result = 0 ;
38891 void *argp1 = 0 ;
38892 int res1 = 0 ;
38893 PyObject *swig_obj[1] ;
38894
38895 if (!args) SWIG_fail;
38896 swig_obj[0] = args;
38897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38898 if (!SWIG_IsOK(res1)) {
38899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetArtists" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
38900 }
38901 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 {
38905 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetArtists();
38906 result = (wxArrayString *) &_result_ref;
38907 }
38908 wxPyEndAllowThreads(__tstate);
38909 if (PyErr_Occurred()) SWIG_fail;
38910 }
38911 {
38912 resultobj = wxArrayString2PyList_helper(*result);
38913 }
38914 return resultobj;
38915fail:
38916 return NULL;
38917}
38918
38919
38920SWIGINTERN PyObject *_wrap_AboutDialogInfo_SetTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38921 PyObject *resultobj = 0;
38922 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38923 wxArrayString *arg2 = 0 ;
38924 void *argp1 = 0 ;
38925 int res1 = 0 ;
38926 bool temp2 = false ;
38927 PyObject * obj0 = 0 ;
38928 PyObject * obj1 = 0 ;
38929 char * kwnames[] = {
38930 (char *) "self",(char *) "translators", NULL
38931 };
38932
38933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_SetTranslators",kwnames,&obj0,&obj1)) SWIG_fail;
38934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38935 if (!SWIG_IsOK(res1)) {
38936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_SetTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38937 }
38938 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38939 {
38940 if (! PySequence_Check(obj1)) {
38941 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
38942 SWIG_fail;
38943 }
38944 arg2 = new wxArrayString;
38945 temp2 = true;
38946 int i, len=PySequence_Length(obj1);
38947 for (i=0; i<len; i++) {
38948 PyObject* item = PySequence_GetItem(obj1, i);
38949 wxString* s = wxString_in_helper(item);
38950 if (PyErr_Occurred()) SWIG_fail;
38951 arg2->Add(*s);
38952 delete s;
38953 Py_DECREF(item);
38954 }
38955 }
38956 {
38957 PyThreadState* __tstate = wxPyBeginAllowThreads();
38958 (arg1)->SetTranslators((wxArrayString const &)*arg2);
38959 wxPyEndAllowThreads(__tstate);
38960 if (PyErr_Occurred()) SWIG_fail;
38961 }
38962 resultobj = SWIG_Py_Void();
38963 {
38964 if (temp2) delete arg2;
38965 }
38966 return resultobj;
38967fail:
38968 {
38969 if (temp2) delete arg2;
38970 }
38971 return NULL;
38972}
38973
38974
38975SWIGINTERN PyObject *_wrap_AboutDialogInfo_AddTranslator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38976 PyObject *resultobj = 0;
38977 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
38978 wxString *arg2 = 0 ;
38979 void *argp1 = 0 ;
38980 int res1 = 0 ;
38981 bool temp2 = false ;
38982 PyObject * obj0 = 0 ;
38983 PyObject * obj1 = 0 ;
38984 char * kwnames[] = {
38985 (char *) "self",(char *) "translator", NULL
38986 };
38987
38988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AboutDialogInfo_AddTranslator",kwnames,&obj0,&obj1)) SWIG_fail;
38989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
38990 if (!SWIG_IsOK(res1)) {
38991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_AddTranslator" "', expected argument " "1"" of type '" "wxAboutDialogInfo *""'");
38992 }
38993 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
38994 {
38995 arg2 = wxString_in_helper(obj1);
38996 if (arg2 == NULL) SWIG_fail;
38997 temp2 = true;
38998 }
38999 {
39000 PyThreadState* __tstate = wxPyBeginAllowThreads();
39001 (arg1)->AddTranslator((wxString const &)*arg2);
39002 wxPyEndAllowThreads(__tstate);
39003 if (PyErr_Occurred()) SWIG_fail;
39004 }
39005 resultobj = SWIG_Py_Void();
39006 {
39007 if (temp2)
39008 delete arg2;
39009 }
39010 return resultobj;
39011fail:
39012 {
39013 if (temp2)
39014 delete arg2;
39015 }
39016 return NULL;
39017}
39018
39019
39020SWIGINTERN PyObject *_wrap_AboutDialogInfo_HasTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39021 PyObject *resultobj = 0;
39022 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
39023 bool result;
39024 void *argp1 = 0 ;
39025 int res1 = 0 ;
39026 PyObject *swig_obj[1] ;
39027
39028 if (!args) SWIG_fail;
39029 swig_obj[0] = args;
39030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
39031 if (!SWIG_IsOK(res1)) {
39032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_HasTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
39033 }
39034 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39035 {
39036 PyThreadState* __tstate = wxPyBeginAllowThreads();
39037 result = (bool)((wxAboutDialogInfo const *)arg1)->HasTranslators();
39038 wxPyEndAllowThreads(__tstate);
39039 if (PyErr_Occurred()) SWIG_fail;
39040 }
39041 {
39042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39043 }
39044 return resultobj;
39045fail:
39046 return NULL;
39047}
39048
39049
39050SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetTranslators(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39051 PyObject *resultobj = 0;
39052 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
39053 wxArrayString *result = 0 ;
39054 void *argp1 = 0 ;
39055 int res1 = 0 ;
39056 PyObject *swig_obj[1] ;
39057
39058 if (!args) SWIG_fail;
39059 swig_obj[0] = args;
39060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
39061 if (!SWIG_IsOK(res1)) {
39062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetTranslators" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
39063 }
39064 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39065 {
39066 PyThreadState* __tstate = wxPyBeginAllowThreads();
39067 {
39068 wxArrayString const &_result_ref = ((wxAboutDialogInfo const *)arg1)->GetTranslators();
39069 result = (wxArrayString *) &_result_ref;
39070 }
39071 wxPyEndAllowThreads(__tstate);
39072 if (PyErr_Occurred()) SWIG_fail;
39073 }
39074 {
39075 resultobj = wxArrayString2PyList_helper(*result);
39076 }
39077 return resultobj;
39078fail:
39079 return NULL;
39080}
39081
39082
39083SWIGINTERN PyObject *_wrap_AboutDialogInfo_IsSimple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39084 PyObject *resultobj = 0;
39085 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
39086 bool result;
39087 void *argp1 = 0 ;
39088 int res1 = 0 ;
39089 PyObject *swig_obj[1] ;
39090
39091 if (!args) SWIG_fail;
39092 swig_obj[0] = args;
39093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
39094 if (!SWIG_IsOK(res1)) {
39095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_IsSimple" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
39096 }
39097 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39098 {
39099 PyThreadState* __tstate = wxPyBeginAllowThreads();
39100 result = (bool)((wxAboutDialogInfo const *)arg1)->IsSimple();
39101 wxPyEndAllowThreads(__tstate);
39102 if (PyErr_Occurred()) SWIG_fail;
39103 }
39104 {
39105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39106 }
39107 return resultobj;
39108fail:
39109 return NULL;
39110}
39111
39112
39113SWIGINTERN PyObject *_wrap_AboutDialogInfo_GetDescriptionAndCredits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39114 PyObject *resultobj = 0;
39115 wxAboutDialogInfo *arg1 = (wxAboutDialogInfo *) 0 ;
39116 wxString result;
39117 void *argp1 = 0 ;
39118 int res1 = 0 ;
39119 PyObject *swig_obj[1] ;
39120
39121 if (!args) SWIG_fail;
39122 swig_obj[0] = args;
39123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAboutDialogInfo, 0 | 0 );
39124 if (!SWIG_IsOK(res1)) {
39125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutDialogInfo_GetDescriptionAndCredits" "', expected argument " "1"" of type '" "wxAboutDialogInfo const *""'");
39126 }
39127 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39128 {
39129 PyThreadState* __tstate = wxPyBeginAllowThreads();
39130 result = ((wxAboutDialogInfo const *)arg1)->GetDescriptionAndCredits();
39131 wxPyEndAllowThreads(__tstate);
39132 if (PyErr_Occurred()) SWIG_fail;
39133 }
39134 {
39135#if wxUSE_UNICODE
39136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39137#else
39138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39139#endif
39140 }
39141 return resultobj;
39142fail:
39143 return NULL;
39144}
39145
39146
39147SWIGINTERN PyObject *AboutDialogInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39148 PyObject *obj;
39149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39150 SWIG_TypeNewClientData(SWIGTYPE_p_wxAboutDialogInfo, SWIG_NewClientData(obj));
39151 return SWIG_Py_Void();
39152}
39153
39154SWIGINTERN PyObject *AboutDialogInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39155 return SWIG_Python_InitShadowInstance(args);
39156}
39157
39158SWIGINTERN PyObject *_wrap_AboutBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39159 PyObject *resultobj = 0;
39160 wxAboutDialogInfo *arg1 = 0 ;
39161 void *argp1 = 0 ;
39162 int res1 = 0 ;
39163 PyObject * obj0 = 0 ;
39164 char * kwnames[] = {
39165 (char *) "info", NULL
39166 };
39167
39168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AboutBox",kwnames,&obj0)) SWIG_fail;
39169 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxAboutDialogInfo, 0 | 0);
39170 if (!SWIG_IsOK(res1)) {
39171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AboutBox" "', expected argument " "1"" of type '" "wxAboutDialogInfo const &""'");
39172 }
39173 if (!argp1) {
39174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AboutBox" "', expected argument " "1"" of type '" "wxAboutDialogInfo const &""'");
39175 }
39176 arg1 = reinterpret_cast< wxAboutDialogInfo * >(argp1);
39177 {
39178 PyThreadState* __tstate = wxPyBeginAllowThreads();
39179 wxAboutBox((wxAboutDialogInfo const &)*arg1);
39180 wxPyEndAllowThreads(__tstate);
39181 if (PyErr_Occurred()) SWIG_fail;
39182 }
39183 resultobj = SWIG_Py_Void();
39184 return resultobj;
39185fail:
39186 return NULL;
39187}
39188
39189
554f62e9
RD
39190static PyMethodDef SwigMethods[] = {
39191 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"SystemSettings_GetScreenType", (PyCFunction)_wrap_SystemSettings_GetScreenType, METH_NOARGS, NULL},
39196 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL},
39198 { (char *)"new_SystemOptions", (PyCFunction)_wrap_new_SystemOptions, METH_NOARGS, NULL},
39199 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
39206 { (char *)"SystemOptions_swiginit", SystemOptions_swiginit, METH_VARARGS, NULL},
39207 { (char *)"NewId", (PyCFunction)_wrap_NewId, METH_NOARGS, NULL},
39208 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"GetCurrentId", (PyCFunction)_wrap_GetCurrentId, METH_NOARGS, NULL},
39210 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
97ab0f6a 39213 { (char *)"GetStockHelpString", (PyCFunction) _wrap_GetStockHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39214 { (char *)"Bell", (PyCFunction)_wrap_Bell, METH_NOARGS, NULL},
39215 { (char *)"EndBusyCursor", (PyCFunction)_wrap_EndBusyCursor, METH_NOARGS, NULL},
39216 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"IsBusy", (PyCFunction)_wrap_IsBusy, METH_NOARGS, NULL},
39218 { (char *)"Now", (PyCFunction)_wrap_Now, METH_NOARGS, NULL},
39219 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"StartTimer", (PyCFunction)_wrap_StartTimer, METH_NOARGS, NULL},
39221 { (char *)"GetOsVersion", (PyCFunction)_wrap_GetOsVersion, METH_NOARGS, NULL},
39222 { (char *)"GetOsDescription", (PyCFunction)_wrap_GetOsDescription, METH_NOARGS, NULL},
fc46b7f3
RD
39223 { (char *)"IsPlatformLittleEndian", (PyCFunction)_wrap_IsPlatformLittleEndian, METH_NOARGS, NULL},
39224 { (char *)"IsPlatform64Bit", (PyCFunction)_wrap_IsPlatform64Bit, METH_NOARGS, NULL},
554f62e9
RD
39225 { (char *)"GetFreeMemory", (PyCFunction)_wrap_GetFreeMemory, METH_NOARGS, NULL},
39226 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"GetEmailAddress", (PyCFunction)_wrap_GetEmailAddress, METH_NOARGS, NULL},
39233 { (char *)"GetHostName", (PyCFunction)_wrap_GetHostName, METH_NOARGS, NULL},
39234 { (char *)"GetFullHostName", (PyCFunction)_wrap_GetFullHostName, METH_NOARGS, NULL},
39235 { (char *)"GetUserId", (PyCFunction)_wrap_GetUserId, METH_NOARGS, NULL},
39236 { (char *)"GetUserName", (PyCFunction)_wrap_GetUserName, METH_NOARGS, NULL},
39237 { (char *)"GetHomeDir", (PyCFunction)_wrap_GetHomeDir, METH_NOARGS, NULL},
39238 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"GetProcessId", (PyCFunction)_wrap_GetProcessId, METH_NOARGS, NULL},
39240 { (char *)"Trap", (PyCFunction)_wrap_Trap, METH_NOARGS, NULL},
39241 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892 39250 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39251 { (char *)"ColourDisplay", (PyCFunction)_wrap_ColourDisplay, METH_NOARGS, NULL},
39252 { (char *)"DisplayDepth", (PyCFunction)_wrap_DisplayDepth, METH_NOARGS, NULL},
39253 { (char *)"GetDisplayDepth", (PyCFunction)_wrap_GetDisplayDepth, METH_NOARGS, NULL},
39254 { (char *)"DisplaySize", (PyCFunction)_wrap_DisplaySize, METH_NOARGS, NULL},
39255 { (char *)"GetDisplaySize", (PyCFunction)_wrap_GetDisplaySize, METH_NOARGS, NULL},
39256 { (char *)"DisplaySizeMM", (PyCFunction)_wrap_DisplaySizeMM, METH_NOARGS, NULL},
39257 { (char *)"GetDisplaySizeMM", (PyCFunction)_wrap_GetDisplaySizeMM, METH_NOARGS, NULL},
39258 { (char *)"ClientDisplayRect", (PyCFunction)_wrap_ClientDisplayRect, METH_NOARGS, NULL},
39259 { (char *)"GetClientDisplayRect", (PyCFunction)_wrap_GetClientDisplayRect, METH_NOARGS, NULL},
39260 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"GetXDisplay", (PyCFunction)_wrap_GetXDisplay, METH_NOARGS, NULL},
39262 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"GetMousePosition", (PyCFunction)_wrap_GetMousePosition, METH_NOARGS, NULL},
39264 { (char *)"FindWindowAtPointer", (PyCFunction)_wrap_FindWindowAtPointer, METH_NOARGS, NULL},
39265 { (char *)"GetActiveWindow", (PyCFunction)_wrap_GetActiveWindow, METH_NOARGS, NULL},
39266 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"LaunchDefaultBrowser", (PyCFunction) _wrap_LaunchDefaultBrowser, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"new_MouseState", (PyCFunction)_wrap_new_MouseState, METH_NOARGS, NULL},
39272 { (char *)"delete_MouseState", (PyCFunction)_wrap_delete_MouseState, METH_O, NULL},
39273 { (char *)"MouseState_GetX", (PyCFunction)_wrap_MouseState_GetX, METH_O, NULL},
39274 { (char *)"MouseState_GetY", (PyCFunction)_wrap_MouseState_GetY, METH_O, NULL},
39275 { (char *)"MouseState_LeftDown", (PyCFunction)_wrap_MouseState_LeftDown, METH_O, NULL},
39276 { (char *)"MouseState_MiddleDown", (PyCFunction)_wrap_MouseState_MiddleDown, METH_O, NULL},
39277 { (char *)"MouseState_RightDown", (PyCFunction)_wrap_MouseState_RightDown, METH_O, NULL},
39278 { (char *)"MouseState_ControlDown", (PyCFunction)_wrap_MouseState_ControlDown, METH_O, NULL},
39279 { (char *)"MouseState_ShiftDown", (PyCFunction)_wrap_MouseState_ShiftDown, METH_O, NULL},
39280 { (char *)"MouseState_AltDown", (PyCFunction)_wrap_MouseState_AltDown, METH_O, NULL},
39281 { (char *)"MouseState_MetaDown", (PyCFunction)_wrap_MouseState_MetaDown, METH_O, NULL},
39282 { (char *)"MouseState_CmdDown", (PyCFunction)_wrap_MouseState_CmdDown, METH_O, NULL},
39283 { (char *)"MouseState_SetX", (PyCFunction) _wrap_MouseState_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"MouseState_SetY", (PyCFunction) _wrap_MouseState_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"MouseState_SetLeftDown", (PyCFunction) _wrap_MouseState_SetLeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"MouseState_SetMiddleDown", (PyCFunction) _wrap_MouseState_SetMiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"MouseState_SetRightDown", (PyCFunction) _wrap_MouseState_SetRightDown, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"MouseState_SetControlDown", (PyCFunction) _wrap_MouseState_SetControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"MouseState_SetShiftDown", (PyCFunction) _wrap_MouseState_SetShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"MouseState_SetAltDown", (PyCFunction) _wrap_MouseState_SetAltDown, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"MouseState_SetMetaDown", (PyCFunction) _wrap_MouseState_SetMetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"MouseState_swigregister", MouseState_swigregister, METH_VARARGS, NULL},
39293 { (char *)"MouseState_swiginit", MouseState_swiginit, METH_VARARGS, NULL},
39294 { (char *)"GetMouseState", (PyCFunction)_wrap_GetMouseState, METH_NOARGS, NULL},
39295 { (char *)"WakeUpMainThread", (PyCFunction)_wrap_WakeUpMainThread, METH_NOARGS, NULL},
39296 { (char *)"MutexGuiEnter", (PyCFunction)_wrap_MutexGuiEnter, METH_NOARGS, NULL},
39297 { (char *)"MutexGuiLeave", (PyCFunction)_wrap_MutexGuiLeave, METH_NOARGS, NULL},
39298 { (char *)"new_MutexGuiLocker", (PyCFunction)_wrap_new_MutexGuiLocker, METH_NOARGS, NULL},
39299 { (char *)"delete_MutexGuiLocker", (PyCFunction)_wrap_delete_MutexGuiLocker, METH_O, NULL},
39300 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
39301 { (char *)"MutexGuiLocker_swiginit", MutexGuiLocker_swiginit, METH_VARARGS, NULL},
39302 { (char *)"Thread_IsMain", (PyCFunction)_wrap_Thread_IsMain, METH_NOARGS, NULL},
39303 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"delete_ToolTip", (PyCFunction)_wrap_delete_ToolTip, METH_O, NULL},
39305 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"ToolTip_GetTip", (PyCFunction)_wrap_ToolTip_GetTip, METH_O, NULL},
39307 { (char *)"ToolTip_GetWindow", (PyCFunction)_wrap_ToolTip_GetWindow, METH_O, NULL},
39308 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
39311 { (char *)"ToolTip_swiginit", ToolTip_swiginit, METH_VARARGS, NULL},
39312 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"delete_Caret", (PyCFunction)_wrap_delete_Caret, METH_O, NULL},
39314 { (char *)"Caret_Destroy", (PyCFunction)_wrap_Caret_Destroy, METH_O, NULL},
39315 { (char *)"Caret_IsOk", (PyCFunction)_wrap_Caret_IsOk, METH_O, NULL},
39316 { (char *)"Caret_IsVisible", (PyCFunction)_wrap_Caret_IsVisible, METH_O, NULL},
39317 { (char *)"Caret_GetPosition", (PyCFunction)_wrap_Caret_GetPosition, METH_O, NULL},
39318 { (char *)"Caret_GetPositionTuple", (PyCFunction)_wrap_Caret_GetPositionTuple, METH_O, NULL},
39319 { (char *)"Caret_GetSize", (PyCFunction)_wrap_Caret_GetSize, METH_O, NULL},
39320 { (char *)"Caret_GetSizeTuple", (PyCFunction)_wrap_Caret_GetSizeTuple, METH_O, NULL},
39321 { (char *)"Caret_GetWindow", (PyCFunction)_wrap_Caret_GetWindow, METH_O, NULL},
39322 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"Caret_Hide", (PyCFunction)_wrap_Caret_Hide, METH_O, NULL},
39328 { (char *)"Caret_GetBlinkTime", (PyCFunction)_wrap_Caret_GetBlinkTime, METH_NOARGS, NULL},
39329 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL},
39331 { (char *)"Caret_swiginit", Caret_swiginit, METH_VARARGS, NULL},
39332 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"delete_BusyCursor", (PyCFunction)_wrap_delete_BusyCursor, METH_O, NULL},
39334 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL},
39335 { (char *)"BusyCursor_swiginit", BusyCursor_swiginit, METH_VARARGS, NULL},
39336 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"delete_WindowDisabler", (PyCFunction)_wrap_delete_WindowDisabler, METH_O, NULL},
39338 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL},
39339 { (char *)"WindowDisabler_swiginit", WindowDisabler_swiginit, METH_VARARGS, NULL},
39340 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"delete_BusyInfo", (PyCFunction)_wrap_delete_BusyInfo, METH_O, NULL},
39342 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL},
39343 { (char *)"BusyInfo_swiginit", BusyInfo_swiginit, METH_VARARGS, NULL},
39344 { (char *)"new_StopWatch", (PyCFunction)_wrap_new_StopWatch, METH_NOARGS, NULL},
3ecece7e 39345 { (char *)"delete_StopWatch", (PyCFunction)_wrap_delete_StopWatch, METH_O, NULL},
554f62e9
RD
39346 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"StopWatch_Pause", (PyCFunction)_wrap_StopWatch_Pause, METH_O, NULL},
39348 { (char *)"StopWatch_Resume", (PyCFunction)_wrap_StopWatch_Resume, METH_O, NULL},
39349 { (char *)"StopWatch_Time", (PyCFunction)_wrap_StopWatch_Time, METH_O, NULL},
39350 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL},
39351 { (char *)"StopWatch_swiginit", StopWatch_swiginit, METH_VARARGS, NULL},
39352 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"delete_FileHistory", (PyCFunction)_wrap_delete_FileHistory, METH_O, NULL},
39354 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"FileHistory_GetMaxFiles", (PyCFunction)_wrap_FileHistory_GetMaxFiles, METH_O, NULL},
39357 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction)_wrap_FileHistory_AddFilesToMenu, METH_O, NULL},
39362 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"FileHistory_GetCount", (PyCFunction)_wrap_FileHistory_GetCount, METH_O, NULL},
39365 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL},
39366 { (char *)"FileHistory_swiginit", FileHistory_swiginit, METH_VARARGS, NULL},
39367 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"new_PreSingleInstanceChecker", (PyCFunction)_wrap_new_PreSingleInstanceChecker, METH_NOARGS, NULL},
39369 { (char *)"delete_SingleInstanceChecker", (PyCFunction)_wrap_delete_SingleInstanceChecker, METH_O, NULL},
39370 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction)_wrap_SingleInstanceChecker_IsAnotherRunning, METH_O, NULL},
39372 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL},
39373 { (char *)"SingleInstanceChecker_swiginit", SingleInstanceChecker_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39374 { (char *)"new_PlatformInformation", (PyCFunction)_wrap_new_PlatformInformation, METH_NOARGS, NULL},
39375 { (char *)"PlatformInformation___eq__", (PyCFunction) _wrap_PlatformInformation___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"PlatformInformation___ne__", (PyCFunction) _wrap_PlatformInformation___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"PlatformInformation_GetOSMajorVersion", (PyCFunction)_wrap_PlatformInformation_GetOSMajorVersion, METH_O, NULL},
39378 { (char *)"PlatformInformation_GetOSMinorVersion", (PyCFunction)_wrap_PlatformInformation_GetOSMinorVersion, METH_O, NULL},
5acb46e0 39379 { (char *)"PlatformInformation_CheckOSVersion", (PyCFunction) _wrap_PlatformInformation_CheckOSVersion, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3
RD
39380 { (char *)"PlatformInformation_GetToolkitMajorVersion", (PyCFunction)_wrap_PlatformInformation_GetToolkitMajorVersion, METH_O, NULL},
39381 { (char *)"PlatformInformation_GetToolkitMinorVersion", (PyCFunction)_wrap_PlatformInformation_GetToolkitMinorVersion, METH_O, NULL},
5acb46e0 39382 { (char *)"PlatformInformation_CheckToolkitVersion", (PyCFunction) _wrap_PlatformInformation_CheckToolkitVersion, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3
RD
39383 { (char *)"PlatformInformation_IsUsingUniversalWidgets", (PyCFunction)_wrap_PlatformInformation_IsUsingUniversalWidgets, METH_O, NULL},
39384 { (char *)"PlatformInformation_GetOperatingSystemId", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemId, METH_O, NULL},
39385 { (char *)"PlatformInformation_GetPortId", (PyCFunction)_wrap_PlatformInformation_GetPortId, METH_O, NULL},
39386 { (char *)"PlatformInformation_GetArchitecture", (PyCFunction)_wrap_PlatformInformation_GetArchitecture, METH_O, NULL},
39387 { (char *)"PlatformInformation_GetEndianness", (PyCFunction)_wrap_PlatformInformation_GetEndianness, METH_O, NULL},
39388 { (char *)"PlatformInformation_GetOperatingSystemFamilyName", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemFamilyName, METH_O, NULL},
39389 { (char *)"PlatformInformation_GetOperatingSystemIdName", (PyCFunction)_wrap_PlatformInformation_GetOperatingSystemIdName, METH_O, NULL},
39390 { (char *)"PlatformInformation_GetPortIdName", (PyCFunction)_wrap_PlatformInformation_GetPortIdName, METH_O, NULL},
39391 { (char *)"PlatformInformation_GetPortIdShortName", (PyCFunction)_wrap_PlatformInformation_GetPortIdShortName, METH_O, NULL},
39392 { (char *)"PlatformInformation_GetArchName", (PyCFunction)_wrap_PlatformInformation_GetArchName, METH_O, NULL},
39393 { (char *)"PlatformInformation_GetEndiannessName", (PyCFunction)_wrap_PlatformInformation_GetEndiannessName, METH_O, NULL},
39394 { (char *)"PlatformInformation_SetOSVersion", (PyCFunction) _wrap_PlatformInformation_SetOSVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"PlatformInformation_SetToolkitVersion", (PyCFunction) _wrap_PlatformInformation_SetToolkitVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"PlatformInformation_SetOperatingSystemId", (PyCFunction) _wrap_PlatformInformation_SetOperatingSystemId, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"PlatformInformation_SetPortId", (PyCFunction) _wrap_PlatformInformation_SetPortId, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"PlatformInformation_SetArchitecture", (PyCFunction) _wrap_PlatformInformation_SetArchitecture, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"PlatformInformation_SetEndianness", (PyCFunction) _wrap_PlatformInformation_SetEndianness, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"PlatformInformation_IsOk", (PyCFunction)_wrap_PlatformInformation_IsOk, METH_O, NULL},
39401 { (char *)"PlatformInformation_swigregister", PlatformInformation_swigregister, METH_VARARGS, NULL},
39402 { (char *)"PlatformInformation_swiginit", PlatformInformation_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39403 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"delete_TipProvider", (PyCFunction)_wrap_delete_TipProvider, METH_O, NULL},
39405 { (char *)"TipProvider_GetTip", (PyCFunction)_wrap_TipProvider_GetTip, METH_O, NULL},
39406 { (char *)"TipProvider_GetCurrentTip", (PyCFunction)_wrap_TipProvider_GetCurrentTip, METH_O, NULL},
39407 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL},
39409 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL},
39412 { (char *)"PyTipProvider_swiginit", PyTipProvider_swiginit, METH_VARARGS, NULL},
39413 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"delete_Timer", (PyCFunction)_wrap_delete_Timer, METH_O, NULL},
39417 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL},
39419 { (char *)"Timer_GetOwner", (PyCFunction)_wrap_Timer_GetOwner, METH_O, NULL},
39420 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"Timer_Stop", (PyCFunction)_wrap_Timer_Stop, METH_O, NULL},
39422 { (char *)"Timer_Notify", (PyCFunction)_wrap_Timer_Notify, METH_O, NULL},
39423 { (char *)"Timer_IsRunning", (PyCFunction)_wrap_Timer_IsRunning, METH_O, NULL},
39424 { (char *)"Timer_GetInterval", (PyCFunction)_wrap_Timer_GetInterval, METH_O, NULL},
39425 { (char *)"Timer_GetId", (PyCFunction)_wrap_Timer_GetId, METH_O, NULL},
39426 { (char *)"Timer_IsOneShot", (PyCFunction)_wrap_Timer_IsOneShot, METH_O, NULL},
39427 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL},
39428 { (char *)"Timer_swiginit", Timer_swiginit, METH_VARARGS, NULL},
39429 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"TimerEvent_GetInterval", (PyCFunction)_wrap_TimerEvent_GetInterval, METH_O, NULL},
39431 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL},
39432 { (char *)"TimerEvent_swiginit", TimerEvent_swiginit, METH_VARARGS, NULL},
39433 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL},
39434 { (char *)"delete_TimerRunner", (PyCFunction)_wrap_delete_TimerRunner, METH_O, NULL},
39435 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
39437 { (char *)"TimerRunner_swiginit", TimerRunner_swiginit, METH_VARARGS, NULL},
39438 { (char *)"new_Log", (PyCFunction)_wrap_new_Log, METH_NOARGS, NULL},
39439 { (char *)"delete_Log", (PyCFunction)_wrap_delete_Log, METH_O, NULL},
39440 { (char *)"Log_IsEnabled", (PyCFunction)_wrap_Log_IsEnabled, METH_NOARGS, NULL},
39441 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Log_Flush", (PyCFunction)_wrap_Log_Flush, METH_O, NULL},
39444 { (char *)"Log_FlushActive", (PyCFunction)_wrap_Log_FlushActive, METH_NOARGS, NULL},
39445 { (char *)"Log_GetActiveTarget", (PyCFunction)_wrap_Log_GetActiveTarget, METH_NOARGS, NULL},
39446 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Log_Suspend", (PyCFunction)_wrap_Log_Suspend, METH_NOARGS, NULL},
39448 { (char *)"Log_Resume", (PyCFunction)_wrap_Log_Resume, METH_NOARGS, NULL},
39449 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"Log_DontCreateOnDemand", (PyCFunction)_wrap_Log_DontCreateOnDemand, METH_NOARGS, NULL},
1eeb270e
RD
39452 { (char *)"Log_SetRepetitionCounting", (PyCFunction) _wrap_Log_SetRepetitionCounting, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Log_GetRepetitionCounting", (PyCFunction)_wrap_Log_GetRepetitionCounting, METH_NOARGS, NULL},
554f62e9
RD
39454 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Log_ClearTraceMasks", (PyCFunction)_wrap_Log_ClearTraceMasks, METH_NOARGS, NULL},
39458 { (char *)"Log_GetTraceMasks", (PyCFunction)_wrap_Log_GetTraceMasks, METH_NOARGS, NULL},
39459 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"Log_GetVerbose", (PyCFunction)_wrap_Log_GetVerbose, METH_NOARGS, NULL},
39461 { (char *)"Log_GetTraceMask", (PyCFunction)_wrap_Log_GetTraceMask, METH_NOARGS, NULL},
39462 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"Log_GetLogLevel", (PyCFunction)_wrap_Log_GetLogLevel, METH_NOARGS, NULL},
39464 { (char *)"Log_GetTimestamp", (PyCFunction)_wrap_Log_GetTimestamp, METH_NOARGS, NULL},
39465 { (char *)"Log_TimeStamp", (PyCFunction)_wrap_Log_TimeStamp, METH_NOARGS, NULL},
39466 { (char *)"Log_Destroy", (PyCFunction)_wrap_Log_Destroy, METH_O, NULL},
39467 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL},
39468 { (char *)"Log_swiginit", Log_swiginit, METH_VARARGS, NULL},
39469 { (char *)"new_LogStderr", (PyCFunction)_wrap_new_LogStderr, METH_NOARGS, NULL},
39470 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL},
39471 { (char *)"LogStderr_swiginit", LogStderr_swiginit, METH_VARARGS, NULL},
39472 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL},
39474 { (char *)"LogTextCtrl_swiginit", LogTextCtrl_swiginit, METH_VARARGS, NULL},
39475 { (char *)"new_LogGui", (PyCFunction)_wrap_new_LogGui, METH_NOARGS, NULL},
39476 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL},
39477 { (char *)"LogGui_swiginit", LogGui_swiginit, METH_VARARGS, NULL},
39478 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"LogWindow_GetFrame", (PyCFunction)_wrap_LogWindow_GetFrame, METH_O, NULL},
39481 { (char *)"LogWindow_GetOldLog", (PyCFunction)_wrap_LogWindow_GetOldLog, METH_O, NULL},
39482 { (char *)"LogWindow_IsPassingMessages", (PyCFunction)_wrap_LogWindow_IsPassingMessages, METH_O, NULL},
39483 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL},
39485 { (char *)"LogWindow_swiginit", LogWindow_swiginit, METH_VARARGS, NULL},
39486 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"LogChain_IsPassingMessages", (PyCFunction)_wrap_LogChain_IsPassingMessages, METH_O, NULL},
39490 { (char *)"LogChain_GetOldLog", (PyCFunction)_wrap_LogChain_GetOldLog, METH_O, NULL},
39491 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL},
39492 { (char *)"LogChain_swiginit", LogChain_swiginit, METH_VARARGS, NULL},
39493 { (char *)"new_LogBuffer", (PyCFunction)_wrap_new_LogBuffer, METH_NOARGS, NULL},
39494 { (char *)"LogBuffer_GetBuffer", (PyCFunction)_wrap_LogBuffer_GetBuffer, METH_O, NULL},
39495 { (char *)"LogBuffer_swigregister", LogBuffer_swigregister, METH_VARARGS, NULL},
39496 { (char *)"LogBuffer_swiginit", LogBuffer_swiginit, METH_VARARGS, NULL},
39497 { (char *)"SysErrorCode", (PyCFunction)_wrap_SysErrorCode, METH_NOARGS, NULL},
39498 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL},
39511 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"new_LogNull", (PyCFunction)_wrap_new_LogNull, METH_NOARGS, NULL},
39513 { (char *)"delete_LogNull", (PyCFunction)_wrap_delete_LogNull, METH_O, NULL},
39514 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL},
39515 { (char *)"LogNull_swiginit", LogNull_swiginit, METH_VARARGS, NULL},
39516 { (char *)"new_PyLog", (PyCFunction)_wrap_new_PyLog, METH_NOARGS, NULL},
39517 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL},
39519 { (char *)"PyLog_swiginit", PyLog_swiginit, METH_VARARGS, NULL},
39520 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39524 { (char *)"delete_Process", (PyCFunction)_wrap_delete_Process, METH_O, NULL},
554f62e9 39525 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
5172800e 39526 { (char *)"Process_GetPid", (PyCFunction)_wrap_Process_GetPid, METH_O, NULL},
554f62e9
RD
39527 { (char *)"Process_OnTerminate", (PyCFunction) _wrap_Process_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"Process_Redirect", (PyCFunction)_wrap_Process_Redirect, METH_O, NULL},
39529 { (char *)"Process_IsRedirected", (PyCFunction)_wrap_Process_IsRedirected, METH_O, NULL},
39530 { (char *)"Process_Detach", (PyCFunction)_wrap_Process_Detach, METH_O, NULL},
39531 { (char *)"Process_GetInputStream", (PyCFunction)_wrap_Process_GetInputStream, METH_O, NULL},
39532 { (char *)"Process_GetErrorStream", (PyCFunction)_wrap_Process_GetErrorStream, METH_O, NULL},
39533 { (char *)"Process_GetOutputStream", (PyCFunction)_wrap_Process_GetOutputStream, METH_O, NULL},
39534 { (char *)"Process_CloseOutput", (PyCFunction)_wrap_Process_CloseOutput, METH_O, NULL},
39535 { (char *)"Process_IsInputOpened", (PyCFunction)_wrap_Process_IsInputOpened, METH_O, NULL},
39536 { (char *)"Process_IsInputAvailable", (PyCFunction)_wrap_Process_IsInputAvailable, METH_O, NULL},
39537 { (char *)"Process_IsErrorAvailable", (PyCFunction)_wrap_Process_IsErrorAvailable, METH_O, NULL},
39538 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL},
39539 { (char *)"Process_swiginit", Process_swiginit, METH_VARARGS, NULL},
39540 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"ProcessEvent_GetPid", (PyCFunction)_wrap_ProcessEvent_GetPid, METH_O, NULL},
39542 { (char *)"ProcessEvent_GetExitCode", (PyCFunction)_wrap_ProcessEvent_GetExitCode, METH_O, NULL},
39543 { (char *)"ProcessEvent_m_pid_set", _wrap_ProcessEvent_m_pid_set, METH_VARARGS, NULL},
39544 { (char *)"ProcessEvent_m_pid_get", (PyCFunction)_wrap_ProcessEvent_m_pid_get, METH_O, NULL},
39545 { (char *)"ProcessEvent_m_exitcode_set", _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS, NULL},
39546 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction)_wrap_ProcessEvent_m_exitcode_get, METH_O, NULL},
39547 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL},
39548 { (char *)"ProcessEvent_swiginit", ProcessEvent_swiginit, METH_VARARGS, NULL},
39549 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"delete_Joystick", (PyCFunction)_wrap_delete_Joystick, METH_O, NULL},
39553 { (char *)"Joystick_GetPosition", (PyCFunction)_wrap_Joystick_GetPosition, METH_O, NULL},
39554 { (char *)"Joystick_GetZPosition", (PyCFunction)_wrap_Joystick_GetZPosition, METH_O, NULL},
39555 { (char *)"Joystick_GetButtonState", (PyCFunction)_wrap_Joystick_GetButtonState, METH_O, NULL},
39556 { (char *)"Joystick_GetPOVPosition", (PyCFunction)_wrap_Joystick_GetPOVPosition, METH_O, NULL},
39557 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction)_wrap_Joystick_GetPOVCTSPosition, METH_O, NULL},
39558 { (char *)"Joystick_GetRudderPosition", (PyCFunction)_wrap_Joystick_GetRudderPosition, METH_O, NULL},
39559 { (char *)"Joystick_GetUPosition", (PyCFunction)_wrap_Joystick_GetUPosition, METH_O, NULL},
39560 { (char *)"Joystick_GetVPosition", (PyCFunction)_wrap_Joystick_GetVPosition, METH_O, NULL},
39561 { (char *)"Joystick_GetMovementThreshold", (PyCFunction)_wrap_Joystick_GetMovementThreshold, METH_O, NULL},
39562 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"Joystick_IsOk", (PyCFunction)_wrap_Joystick_IsOk, METH_O, NULL},
39564 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction)_wrap_Joystick_GetNumberJoysticks, METH_O, NULL},
39565 { (char *)"Joystick_GetManufacturerId", (PyCFunction)_wrap_Joystick_GetManufacturerId, METH_O, NULL},
39566 { (char *)"Joystick_GetProductId", (PyCFunction)_wrap_Joystick_GetProductId, METH_O, NULL},
39567 { (char *)"Joystick_GetProductName", (PyCFunction)_wrap_Joystick_GetProductName, METH_O, NULL},
39568 { (char *)"Joystick_GetXMin", (PyCFunction)_wrap_Joystick_GetXMin, METH_O, NULL},
39569 { (char *)"Joystick_GetYMin", (PyCFunction)_wrap_Joystick_GetYMin, METH_O, NULL},
39570 { (char *)"Joystick_GetZMin", (PyCFunction)_wrap_Joystick_GetZMin, METH_O, NULL},
39571 { (char *)"Joystick_GetXMax", (PyCFunction)_wrap_Joystick_GetXMax, METH_O, NULL},
39572 { (char *)"Joystick_GetYMax", (PyCFunction)_wrap_Joystick_GetYMax, METH_O, NULL},
39573 { (char *)"Joystick_GetZMax", (PyCFunction)_wrap_Joystick_GetZMax, METH_O, NULL},
39574 { (char *)"Joystick_GetNumberButtons", (PyCFunction)_wrap_Joystick_GetNumberButtons, METH_O, NULL},
39575 { (char *)"Joystick_GetNumberAxes", (PyCFunction)_wrap_Joystick_GetNumberAxes, METH_O, NULL},
39576 { (char *)"Joystick_GetMaxButtons", (PyCFunction)_wrap_Joystick_GetMaxButtons, METH_O, NULL},
39577 { (char *)"Joystick_GetMaxAxes", (PyCFunction)_wrap_Joystick_GetMaxAxes, METH_O, NULL},
39578 { (char *)"Joystick_GetPollingMin", (PyCFunction)_wrap_Joystick_GetPollingMin, METH_O, NULL},
39579 { (char *)"Joystick_GetPollingMax", (PyCFunction)_wrap_Joystick_GetPollingMax, METH_O, NULL},
39580 { (char *)"Joystick_GetRudderMin", (PyCFunction)_wrap_Joystick_GetRudderMin, METH_O, NULL},
39581 { (char *)"Joystick_GetRudderMax", (PyCFunction)_wrap_Joystick_GetRudderMax, METH_O, NULL},
39582 { (char *)"Joystick_GetUMin", (PyCFunction)_wrap_Joystick_GetUMin, METH_O, NULL},
39583 { (char *)"Joystick_GetUMax", (PyCFunction)_wrap_Joystick_GetUMax, METH_O, NULL},
39584 { (char *)"Joystick_GetVMin", (PyCFunction)_wrap_Joystick_GetVMin, METH_O, NULL},
39585 { (char *)"Joystick_GetVMax", (PyCFunction)_wrap_Joystick_GetVMax, METH_O, NULL},
39586 { (char *)"Joystick_HasRudder", (PyCFunction)_wrap_Joystick_HasRudder, METH_O, NULL},
39587 { (char *)"Joystick_HasZ", (PyCFunction)_wrap_Joystick_HasZ, METH_O, NULL},
39588 { (char *)"Joystick_HasU", (PyCFunction)_wrap_Joystick_HasU, METH_O, NULL},
39589 { (char *)"Joystick_HasV", (PyCFunction)_wrap_Joystick_HasV, METH_O, NULL},
39590 { (char *)"Joystick_HasPOV", (PyCFunction)_wrap_Joystick_HasPOV, METH_O, NULL},
39591 { (char *)"Joystick_HasPOV4Dir", (PyCFunction)_wrap_Joystick_HasPOV4Dir, METH_O, NULL},
39592 { (char *)"Joystick_HasPOVCTS", (PyCFunction)_wrap_Joystick_HasPOVCTS, METH_O, NULL},
39593 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"Joystick_ReleaseCapture", (PyCFunction)_wrap_Joystick_ReleaseCapture, METH_O, NULL},
39595 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL},
39596 { (char *)"Joystick_swiginit", Joystick_swiginit, METH_VARARGS, NULL},
39597 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"JoystickEvent_GetPosition", (PyCFunction)_wrap_JoystickEvent_GetPosition, METH_O, NULL},
39599 { (char *)"JoystickEvent_GetZPosition", (PyCFunction)_wrap_JoystickEvent_GetZPosition, METH_O, NULL},
39600 { (char *)"JoystickEvent_GetButtonState", (PyCFunction)_wrap_JoystickEvent_GetButtonState, METH_O, NULL},
39601 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction)_wrap_JoystickEvent_GetButtonChange, METH_O, NULL},
39602 { (char *)"JoystickEvent_GetJoystick", (PyCFunction)_wrap_JoystickEvent_GetJoystick, METH_O, NULL},
39603 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"JoystickEvent_IsButton", (PyCFunction)_wrap_JoystickEvent_IsButton, METH_O, NULL},
39609 { (char *)"JoystickEvent_IsMove", (PyCFunction)_wrap_JoystickEvent_IsMove, METH_O, NULL},
39610 { (char *)"JoystickEvent_IsZMove", (PyCFunction)_wrap_JoystickEvent_IsZMove, METH_O, NULL},
39611 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL},
39615 { (char *)"JoystickEvent_swiginit", JoystickEvent_swiginit, METH_VARARGS, NULL},
39616 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"delete_Sound", (PyCFunction)_wrap_delete_Sound, METH_O, NULL},
39619 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL},
39621 { (char *)"Sound_IsOk", (PyCFunction)_wrap_Sound_IsOk, METH_O, NULL},
39622 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"Sound_Stop", (PyCFunction)_wrap_Sound_Stop, METH_NOARGS, NULL},
39625 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL},
39626 { (char *)"Sound_swiginit", Sound_swiginit, METH_VARARGS, NULL},
39627 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"new_NullFileTypeInfo", (PyCFunction)_wrap_new_NullFileTypeInfo, METH_NOARGS, NULL},
39630 { (char *)"FileTypeInfo_IsValid", (PyCFunction)_wrap_FileTypeInfo_IsValid, METH_O, NULL},
39631 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction)_wrap_FileTypeInfo_GetMimeType, METH_O, NULL},
39634 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction)_wrap_FileTypeInfo_GetOpenCommand, METH_O, NULL},
39635 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction)_wrap_FileTypeInfo_GetPrintCommand, METH_O, NULL},
39636 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction)_wrap_FileTypeInfo_GetShortDesc, METH_O, NULL},
39637 { (char *)"FileTypeInfo_GetDescription", (PyCFunction)_wrap_FileTypeInfo_GetDescription, METH_O, NULL},
39638 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction)_wrap_FileTypeInfo_GetExtensions, METH_O, NULL},
39639 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction)_wrap_FileTypeInfo_GetExtensionsCount, METH_O, NULL},
39640 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction)_wrap_FileTypeInfo_GetIconFile, METH_O, NULL},
39641 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction)_wrap_FileTypeInfo_GetIconIndex, METH_O, NULL},
39642 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL},
39643 { (char *)"FileTypeInfo_swiginit", FileTypeInfo_swiginit, METH_VARARGS, NULL},
39644 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"delete_FileType", (PyCFunction)_wrap_delete_FileType, METH_O, NULL},
39646 { (char *)"FileType_GetMimeType", (PyCFunction)_wrap_FileType_GetMimeType, METH_O, NULL},
39647 { (char *)"FileType_GetMimeTypes", (PyCFunction)_wrap_FileType_GetMimeTypes, METH_O, NULL},
39648 { (char *)"FileType_GetExtensions", (PyCFunction)_wrap_FileType_GetExtensions, METH_O, NULL},
39649 { (char *)"FileType_GetIcon", (PyCFunction)_wrap_FileType_GetIcon, METH_O, NULL},
39650 { (char *)"FileType_GetIconInfo", (PyCFunction)_wrap_FileType_GetIconInfo, METH_O, NULL},
39651 { (char *)"FileType_GetDescription", (PyCFunction)_wrap_FileType_GetDescription, METH_O, NULL},
39652 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"FileType_Unassociate", (PyCFunction)_wrap_FileType_Unassociate, METH_O, NULL},
39658 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL},
39660 { (char *)"FileType_swiginit", FileType_swiginit, METH_VARARGS, NULL},
39661 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"new_MimeTypesManager", (PyCFunction)_wrap_new_MimeTypesManager, METH_NOARGS, NULL},
39663 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"MimeTypesManager_ClearData", (PyCFunction)_wrap_MimeTypesManager_ClearData, METH_O, NULL},
39665 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction)_wrap_MimeTypesManager_EnumAllFileTypes, METH_O, NULL},
39670 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"delete_MimeTypesManager", (PyCFunction)_wrap_delete_MimeTypesManager, METH_O, NULL},
39674 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
39675 { (char *)"MimeTypesManager_swiginit", MimeTypesManager_swiginit, METH_VARARGS, NULL},
39676 { (char *)"new_ArtProvider", (PyCFunction)_wrap_new_ArtProvider, METH_NOARGS, NULL},
39677 { (char *)"delete_ArtProvider", (PyCFunction)_wrap_delete_ArtProvider, METH_O, NULL},
39678 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
4391d97b
RD
39679 { (char *)"ArtProvider_Push", (PyCFunction) _wrap_ArtProvider_Push, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"ArtProvider_Insert", (PyCFunction) _wrap_ArtProvider_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"ArtProvider_Pop", (PyCFunction)_wrap_ArtProvider_Pop, METH_NOARGS, NULL},
39682 { (char *)"ArtProvider_Delete", (PyCFunction) _wrap_ArtProvider_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39683 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"ArtProvider_Destroy", (PyCFunction)_wrap_ArtProvider_Destroy, METH_O, NULL},
39687 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL},
39688 { (char *)"ArtProvider_swiginit", ArtProvider_swiginit, METH_VARARGS, NULL},
39689 { (char *)"delete_ConfigBase", (PyCFunction)_wrap_delete_ConfigBase, METH_O, NULL},
39690 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"ConfigBase_Create", (PyCFunction)_wrap_ConfigBase_Create, METH_NOARGS, NULL},
39693 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction)_wrap_ConfigBase_DontCreateOnDemand, METH_NOARGS, NULL},
39694 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"ConfigBase_GetPath", (PyCFunction)_wrap_ConfigBase_GetPath, METH_O, NULL},
39696 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction)_wrap_ConfigBase_GetFirstGroup, METH_O, NULL},
39697 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction)_wrap_ConfigBase_GetFirstEntry, METH_O, NULL},
39699 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39704 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"ConfigBase_DeleteAll", (PyCFunction)_wrap_ConfigBase_DeleteAll, METH_O, NULL},
39720 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction)_wrap_ConfigBase_IsExpandingEnvVars, METH_O, NULL},
39722 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction)_wrap_ConfigBase_IsRecordingDefaults, METH_O, NULL},
39724 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"ConfigBase_GetAppName", (PyCFunction)_wrap_ConfigBase_GetAppName, METH_O, NULL},
39726 { (char *)"ConfigBase_GetVendorName", (PyCFunction)_wrap_ConfigBase_GetVendorName, METH_O, NULL},
39727 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39730 { (char *)"ConfigBase_GetStyle", (PyCFunction)_wrap_ConfigBase_GetStyle, METH_O, NULL},
39731 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL},
39732 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"delete_Config", (PyCFunction)_wrap_delete_Config, METH_O, NULL},
39734 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL},
39735 { (char *)"Config_swiginit", Config_swiginit, METH_VARARGS, NULL},
39736 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"delete_FileConfig", (PyCFunction)_wrap_delete_FileConfig, METH_O, NULL},
39738 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL},
39739 { (char *)"FileConfig_swiginit", FileConfig_swiginit, METH_VARARGS, NULL},
39740 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"delete_ConfigPathChanger", (PyCFunction)_wrap_delete_ConfigPathChanger, METH_O, NULL},
39742 { (char *)"ConfigPathChanger_Name", (PyCFunction)_wrap_ConfigPathChanger_Name, METH_O, NULL},
39743 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL},
39744 { (char *)"ConfigPathChanger_swiginit", ConfigPathChanger_swiginit, METH_VARARGS, NULL},
39745 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"DateTime_GetCountry", (PyCFunction)_wrap_DateTime_GetCountry, METH_NOARGS, NULL},
39748 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL},
39749 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"DateTime_GetAmPmStrings", (PyCFunction)_wrap_DateTime_GetAmPmStrings, METH_NOARGS, NULL},
39759 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"DateTime_Now", (PyCFunction)_wrap_DateTime_Now, METH_NOARGS, NULL},
39763 { (char *)"DateTime_UNow", (PyCFunction)_wrap_DateTime_UNow, METH_NOARGS, NULL},
39764 { (char *)"DateTime_Today", (PyCFunction)_wrap_DateTime_Today, METH_NOARGS, NULL},
39765 { (char *)"new_DateTime", (PyCFunction)_wrap_new_DateTime, METH_NOARGS, NULL},
39766 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"new_DateTimeFromDateTime", (PyCFunction) _wrap_new_DateTimeFromDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"delete_DateTime", (PyCFunction)_wrap_delete_DateTime, METH_O, NULL},
39772 { (char *)"DateTime_SetToCurrent", (PyCFunction)_wrap_DateTime_SetToCurrent, METH_O, NULL},
39773 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"DateTime_ResetTime", (PyCFunction)_wrap_DateTime_ResetTime, METH_O, NULL},
39778 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction)_wrap_DateTime_GetJulianDayNumber, METH_O, NULL},
39802 { (char *)"DateTime_GetJDN", (PyCFunction)_wrap_DateTime_GetJDN, METH_O, NULL},
39803 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction)_wrap_DateTime_GetModifiedJulianDayNumber, METH_O, NULL},
39804 { (char *)"DateTime_GetMJD", (PyCFunction)_wrap_DateTime_GetMJD, METH_O, NULL},
39805 { (char *)"DateTime_GetRataDie", (PyCFunction)_wrap_DateTime_GetRataDie, METH_O, NULL},
39806 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"DateTime_FromTimezone", (PyCFunction) _wrap_DateTime_FromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"DateTime_MakeFromTimezone", (PyCFunction) _wrap_DateTime_MakeFromTimezone, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"DateTime_ToUTC", (PyCFunction) _wrap_DateTime_ToUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"DateTime_MakeUTC", (PyCFunction) _wrap_DateTime_MakeUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"DateTime_FromUTC", (PyCFunction) _wrap_DateTime_FromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"DateTime_MakeFromUTC", (PyCFunction) _wrap_DateTime_MakeFromUTC, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"DateTime_IsValid", (PyCFunction)_wrap_DateTime_IsValid, METH_O, NULL},
39818 { (char *)"DateTime_GetTicks", (PyCFunction)_wrap_DateTime_GetTicks, METH_O, NULL},
39819 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
39823 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL},
39826 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL},
39827 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL},
39829 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL},
39834 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL},
39842 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL},
39843 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL},
39845 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL},
39846 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL},
39847 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL},
39848 { (char *)"DateTime___lt__", (PyCFunction) _wrap_DateTime___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"DateTime___le__", (PyCFunction) _wrap_DateTime___le__, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"DateTime___gt__", (PyCFunction) _wrap_DateTime___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"DateTime___ge__", (PyCFunction) _wrap_DateTime___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"DateTime___eq__", (PyCFunction) _wrap_DateTime___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"DateTime___ne__", (PyCFunction) _wrap_DateTime___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"DateTime_FormatDate", (PyCFunction)_wrap_DateTime_FormatDate, METH_O, NULL},
39861 { (char *)"DateTime_FormatTime", (PyCFunction)_wrap_DateTime_FormatTime, METH_O, NULL},
39862 { (char *)"DateTime_FormatISODate", (PyCFunction)_wrap_DateTime_FormatISODate, METH_O, NULL},
39863 { (char *)"DateTime_FormatISOTime", (PyCFunction)_wrap_DateTime_FormatISOTime, METH_O, NULL},
39864 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL},
39865 { (char *)"DateTime_swiginit", DateTime_swiginit, METH_VARARGS, NULL},
e9d6f3a4
RD
39866 { (char *)"TimeSpan_Milliseconds", (PyCFunction) _wrap_TimeSpan_Milliseconds, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"TimeSpan_Millisecond", (PyCFunction)_wrap_TimeSpan_Millisecond, METH_NOARGS, NULL},
554f62e9
RD
39868 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"TimeSpan_Second", (PyCFunction)_wrap_TimeSpan_Second, METH_NOARGS, NULL},
39870 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL},
39871 { (char *)"TimeSpan_Minute", (PyCFunction)_wrap_TimeSpan_Minute, METH_NOARGS, NULL},
39872 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"TimeSpan_Hour", (PyCFunction)_wrap_TimeSpan_Hour, METH_NOARGS, NULL},
39874 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"TimeSpan_Day", (PyCFunction)_wrap_TimeSpan_Day, METH_NOARGS, NULL},
39876 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"TimeSpan_Week", (PyCFunction)_wrap_TimeSpan_Week, METH_NOARGS, NULL},
39878 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"delete_TimeSpan", (PyCFunction)_wrap_delete_TimeSpan, METH_O, NULL},
39880 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39882 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
39883 { (char *)"TimeSpan_Neg", (PyCFunction)_wrap_TimeSpan_Neg, METH_O, NULL},
39884 { (char *)"TimeSpan_Abs", (PyCFunction)_wrap_TimeSpan_Abs, METH_O, NULL},
39885 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
39886 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
39887 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
39888 { (char *)"TimeSpan___neg__", (PyCFunction)_wrap_TimeSpan___neg__, METH_O, NULL},
39889 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
39891 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
39892 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"TimeSpan_IsNull", (PyCFunction)_wrap_TimeSpan_IsNull, METH_O, NULL},
39900 { (char *)"TimeSpan_IsPositive", (PyCFunction)_wrap_TimeSpan_IsPositive, METH_O, NULL},
39901 { (char *)"TimeSpan_IsNegative", (PyCFunction)_wrap_TimeSpan_IsNegative, METH_O, NULL},
39902 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"TimeSpan_GetWeeks", (PyCFunction)_wrap_TimeSpan_GetWeeks, METH_O, NULL},
39906 { (char *)"TimeSpan_GetDays", (PyCFunction)_wrap_TimeSpan_GetDays, METH_O, NULL},
39907 { (char *)"TimeSpan_GetHours", (PyCFunction)_wrap_TimeSpan_GetHours, METH_O, NULL},
39908 { (char *)"TimeSpan_GetMinutes", (PyCFunction)_wrap_TimeSpan_GetMinutes, METH_O, NULL},
39909 { (char *)"TimeSpan_GetSeconds", (PyCFunction)_wrap_TimeSpan_GetSeconds, METH_O, NULL},
39910 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction)_wrap_TimeSpan_GetMilliseconds, METH_O, NULL},
39911 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL},
39912 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL},
39913 { (char *)"TimeSpan_swiginit", TimeSpan_swiginit, METH_VARARGS, NULL},
39914 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"delete_DateSpan", (PyCFunction)_wrap_delete_DateSpan, METH_O, NULL},
39916 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"DateSpan_Day", (PyCFunction)_wrap_DateSpan_Day, METH_NOARGS, NULL},
39918 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL},
39919 { (char *)"DateSpan_Week", (PyCFunction)_wrap_DateSpan_Week, METH_NOARGS, NULL},
39920 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"DateSpan_Month", (PyCFunction)_wrap_DateSpan_Month, METH_NOARGS, NULL},
39922 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"DateSpan_Year", (PyCFunction)_wrap_DateSpan_Year, METH_NOARGS, NULL},
39924 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"DateSpan_GetYears", (PyCFunction)_wrap_DateSpan_GetYears, METH_O, NULL},
39929 { (char *)"DateSpan_GetMonths", (PyCFunction)_wrap_DateSpan_GetMonths, METH_O, NULL},
39930 { (char *)"DateSpan_GetWeeks", (PyCFunction)_wrap_DateSpan_GetWeeks, METH_O, NULL},
39931 { (char *)"DateSpan_GetDays", (PyCFunction)_wrap_DateSpan_GetDays, METH_O, NULL},
39932 { (char *)"DateSpan_GetTotalDays", (PyCFunction)_wrap_DateSpan_GetTotalDays, METH_O, NULL},
39933 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"DateSpan_Neg", (PyCFunction)_wrap_DateSpan_Neg, METH_O, NULL},
39936 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"DateSpan___neg__", (PyCFunction)_wrap_DateSpan___neg__, METH_O, NULL},
39940 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL},
39948 { (char *)"DateSpan_swiginit", DateSpan_swiginit, METH_VARARGS, NULL},
39949 { (char *)"GetLocalTime", (PyCFunction)_wrap_GetLocalTime, METH_NOARGS, NULL},
39950 { (char *)"GetUTCTime", (PyCFunction)_wrap_GetUTCTime, METH_NOARGS, NULL},
39951 { (char *)"GetCurrentTime", (PyCFunction)_wrap_GetCurrentTime, METH_NOARGS, NULL},
39952 { (char *)"GetLocalTimeMillis", (PyCFunction)_wrap_GetLocalTimeMillis, METH_NOARGS, NULL},
39953 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39955 { (char *)"delete_DataFormat", (PyCFunction)_wrap_delete_DataFormat, METH_O, NULL},
39956 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL},
39957 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL},
39958 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"DataFormat_GetType", (PyCFunction)_wrap_DataFormat_GetType, METH_O, NULL},
39960 { (char *)"DataFormat_GetId", (PyCFunction)_wrap_DataFormat_GetId, METH_O, NULL},
39961 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL},
39963 { (char *)"DataFormat_swiginit", DataFormat_swiginit, METH_VARARGS, NULL},
39964 { (char *)"delete_DataObject", (PyCFunction)_wrap_delete_DataObject, METH_O, NULL},
39965 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL},
39973 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"DataObjectSimple_GetFormat", (PyCFunction)_wrap_DataObjectSimple_GetFormat, METH_O, NULL},
39975 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction)_wrap_DataObjectSimple_GetDataSize, METH_O, NULL},
39977 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction)_wrap_DataObjectSimple_GetDataHere, METH_O, NULL},
39978 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL},
39980 { (char *)"DataObjectSimple_swiginit", DataObjectSimple_swiginit, METH_VARARGS, NULL},
39981 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL},
39984 { (char *)"PyDataObjectSimple_swiginit", PyDataObjectSimple_swiginit, METH_VARARGS, NULL},
39985 { (char *)"new_DataObjectComposite", (PyCFunction)_wrap_new_DataObjectComposite, METH_NOARGS, NULL},
39986 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 39987 { (char *)"DataObjectComposite_GetReceivedFormat", (PyCFunction)_wrap_DataObjectComposite_GetReceivedFormat, METH_O, NULL},
554f62e9
RD
39988 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL},
39989 { (char *)"DataObjectComposite_swiginit", DataObjectComposite_swiginit, METH_VARARGS, NULL},
39990 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39991 { (char *)"TextDataObject_GetTextLength", (PyCFunction)_wrap_TextDataObject_GetTextLength, METH_O, NULL},
39992 { (char *)"TextDataObject_GetText", (PyCFunction)_wrap_TextDataObject_GetText, METH_O, NULL},
39993 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
39994 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL},
39995 { (char *)"TextDataObject_swiginit", TextDataObject_swiginit, METH_VARARGS, NULL},
39996 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
39997 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL},
39999 { (char *)"PyTextDataObject_swiginit", PyTextDataObject_swiginit, METH_VARARGS, NULL},
40000 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction)_wrap_BitmapDataObject_GetBitmap, METH_O, NULL},
40002 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL},
40004 { (char *)"BitmapDataObject_swiginit", BitmapDataObject_swiginit, METH_VARARGS, NULL},
40005 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL},
40008 { (char *)"PyBitmapDataObject_swiginit", PyBitmapDataObject_swiginit, METH_VARARGS, NULL},
40009 { (char *)"new_FileDataObject", (PyCFunction)_wrap_new_FileDataObject, METH_NOARGS, NULL},
40010 { (char *)"FileDataObject_GetFilenames", (PyCFunction)_wrap_FileDataObject_GetFilenames, METH_O, NULL},
40011 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL},
40012 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL},
40013 { (char *)"FileDataObject_swiginit", FileDataObject_swiginit, METH_VARARGS, NULL},
40014 { (char *)"new_CustomDataObject", _wrap_new_CustomDataObject, METH_VARARGS, NULL},
40015 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
40016 { (char *)"CustomDataObject_GetSize", (PyCFunction)_wrap_CustomDataObject_GetSize, METH_O, NULL},
40017 { (char *)"CustomDataObject_GetData", (PyCFunction)_wrap_CustomDataObject_GetData, METH_O, NULL},
40018 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL},
40019 { (char *)"CustomDataObject_swiginit", CustomDataObject_swiginit, METH_VARARGS, NULL},
fc46b7f3 40020 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40021 { (char *)"URLDataObject_GetURL", (PyCFunction)_wrap_URLDataObject_GetURL, METH_O, NULL},
40022 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL},
40024 { (char *)"URLDataObject_swiginit", URLDataObject_swiginit, METH_VARARGS, NULL},
40025 { (char *)"new_MetafileDataObject", (PyCFunction)_wrap_new_MetafileDataObject, METH_NOARGS, NULL},
40026 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction)_wrap_MetafileDataObject_GetMetafile, METH_O, NULL},
40028 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL},
40029 { (char *)"MetafileDataObject_swiginit", MetafileDataObject_swiginit, METH_VARARGS, NULL},
40030 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL},
40032 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40033 { (char *)"delete_DropSource", (PyCFunction)_wrap_delete_DropSource, METH_O, NULL},
40034 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
40035 { (char *)"DropSource_GetDataObject", (PyCFunction)_wrap_DropSource_GetDataObject, METH_O, NULL},
40036 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40037 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL},
40038 { (char *)"DropSource_GiveFeedback", (PyCFunction) _wrap_DropSource_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL},
40039 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL},
40040 { (char *)"DropSource_swiginit", DropSource_swiginit, METH_VARARGS, NULL},
40041 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
40042 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"delete_DropTarget", (PyCFunction)_wrap_delete_DropTarget, METH_O, NULL},
40044 { (char *)"DropTarget_GetDataObject", (PyCFunction)_wrap_DropTarget_GetDataObject, METH_O, NULL},
40045 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"DropTarget_OnEnter", (PyCFunction) _wrap_DropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
40047 { (char *)"DropTarget_OnDragOver", (PyCFunction) _wrap_DropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
40048 { (char *)"DropTarget_OnLeave", (PyCFunction)_wrap_DropTarget_OnLeave, METH_O, NULL},
40049 { (char *)"DropTarget_OnDrop", (PyCFunction) _wrap_DropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"DropTarget_GetData", (PyCFunction)_wrap_DropTarget_GetData, METH_O, NULL},
40051 { (char *)"DropTarget_SetDefaultAction", (PyCFunction) _wrap_DropTarget_SetDefaultAction, METH_VARARGS | METH_KEYWORDS, NULL},
40052 { (char *)"DropTarget_GetDefaultAction", (PyCFunction)_wrap_DropTarget_GetDefaultAction, METH_O, NULL},
40053 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL},
40054 { (char *)"DropTarget_swiginit", DropTarget_swiginit, METH_VARARGS, NULL},
40055 { (char *)"new_TextDropTarget", (PyCFunction)_wrap_new_TextDropTarget, METH_NOARGS, NULL},
40056 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40057 { (char *)"TextDropTarget_OnDropText", (PyCFunction) _wrap_TextDropTarget_OnDropText, METH_VARARGS | METH_KEYWORDS, NULL},
40058 { (char *)"TextDropTarget_OnEnter", (PyCFunction) _wrap_TextDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"TextDropTarget_OnDragOver", (PyCFunction) _wrap_TextDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"TextDropTarget_OnLeave", (PyCFunction)_wrap_TextDropTarget_OnLeave, METH_O, NULL},
40061 { (char *)"TextDropTarget_OnDrop", (PyCFunction) _wrap_TextDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
40062 { (char *)"TextDropTarget_OnData", (PyCFunction) _wrap_TextDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
40063 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL},
40064 { (char *)"TextDropTarget_swiginit", TextDropTarget_swiginit, METH_VARARGS, NULL},
40065 { (char *)"new_FileDropTarget", (PyCFunction)_wrap_new_FileDropTarget, METH_NOARGS, NULL},
40066 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"FileDropTarget_OnDropFiles", (PyCFunction) _wrap_FileDropTarget_OnDropFiles, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"FileDropTarget_OnEnter", (PyCFunction) _wrap_FileDropTarget_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL},
40069 { (char *)"FileDropTarget_OnDragOver", (PyCFunction) _wrap_FileDropTarget_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"FileDropTarget_OnLeave", (PyCFunction)_wrap_FileDropTarget_OnLeave, METH_O, NULL},
40071 { (char *)"FileDropTarget_OnDrop", (PyCFunction) _wrap_FileDropTarget_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"FileDropTarget_OnData", (PyCFunction) _wrap_FileDropTarget_OnData, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL},
40074 { (char *)"FileDropTarget_swiginit", FileDropTarget_swiginit, METH_VARARGS, NULL},
40075 { (char *)"new_Clipboard", (PyCFunction)_wrap_new_Clipboard, METH_NOARGS, NULL},
40076 { (char *)"delete_Clipboard", (PyCFunction)_wrap_delete_Clipboard, METH_O, NULL},
40077 { (char *)"Clipboard_Open", (PyCFunction)_wrap_Clipboard_Open, METH_O, NULL},
40078 { (char *)"Clipboard_Close", (PyCFunction)_wrap_Clipboard_Close, METH_O, NULL},
40079 { (char *)"Clipboard_IsOpened", (PyCFunction)_wrap_Clipboard_IsOpened, METH_O, NULL},
40080 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL},
40081 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
40082 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL},
40083 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
40084 { (char *)"Clipboard_Clear", (PyCFunction)_wrap_Clipboard_Clear, METH_O, NULL},
40085 { (char *)"Clipboard_Flush", (PyCFunction)_wrap_Clipboard_Flush, METH_O, NULL},
40086 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"Clipboard_Get", (PyCFunction)_wrap_Clipboard_Get, METH_NOARGS, NULL},
40088 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
40089 { (char *)"Clipboard_swiginit", Clipboard_swiginit, METH_VARARGS, NULL},
40090 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"delete_ClipboardLocker", (PyCFunction)_wrap_delete_ClipboardLocker, METH_O, NULL},
40092 { (char *)"ClipboardLocker___nonzero__", (PyCFunction)_wrap_ClipboardLocker___nonzero__, METH_O, NULL},
40093 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL},
40094 { (char *)"ClipboardLocker_swiginit", ClipboardLocker_swiginit, METH_VARARGS, NULL},
40095 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"delete_VideoMode", (PyCFunction)_wrap_delete_VideoMode, METH_O, NULL},
40097 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"VideoMode_GetWidth", (PyCFunction)_wrap_VideoMode_GetWidth, METH_O, NULL},
40099 { (char *)"VideoMode_GetHeight", (PyCFunction)_wrap_VideoMode_GetHeight, METH_O, NULL},
40100 { (char *)"VideoMode_GetDepth", (PyCFunction)_wrap_VideoMode_GetDepth, METH_O, NULL},
40101 { (char *)"VideoMode_IsOk", (PyCFunction)_wrap_VideoMode_IsOk, METH_O, NULL},
40102 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
40103 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
40104 { (char *)"VideoMode_w_set", _wrap_VideoMode_w_set, METH_VARARGS, NULL},
40105 { (char *)"VideoMode_w_get", (PyCFunction)_wrap_VideoMode_w_get, METH_O, NULL},
40106 { (char *)"VideoMode_h_set", _wrap_VideoMode_h_set, METH_VARARGS, NULL},
40107 { (char *)"VideoMode_h_get", (PyCFunction)_wrap_VideoMode_h_get, METH_O, NULL},
40108 { (char *)"VideoMode_bpp_set", _wrap_VideoMode_bpp_set, METH_VARARGS, NULL},
40109 { (char *)"VideoMode_bpp_get", (PyCFunction)_wrap_VideoMode_bpp_get, METH_O, NULL},
40110 { (char *)"VideoMode_refresh_set", _wrap_VideoMode_refresh_set, METH_VARARGS, NULL},
40111 { (char *)"VideoMode_refresh_get", (PyCFunction)_wrap_VideoMode_refresh_get, METH_O, NULL},
40112 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL},
40113 { (char *)"VideoMode_swiginit", VideoMode_swiginit, METH_VARARGS, NULL},
40114 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"delete_Display", (PyCFunction)_wrap_delete_Display, METH_O, NULL},
40116 { (char *)"Display_GetCount", (PyCFunction)_wrap_Display_GetCount, METH_NOARGS, NULL},
40117 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"Display_IsOk", (PyCFunction)_wrap_Display_IsOk, METH_O, NULL},
40120 { (char *)"Display_GetGeometry", (PyCFunction)_wrap_Display_GetGeometry, METH_O, NULL},
f52cbe90 40121 { (char *)"Display_GetClientArea", (PyCFunction)_wrap_Display_GetClientArea, METH_O, NULL},
554f62e9
RD
40122 { (char *)"Display_GetName", (PyCFunction)_wrap_Display_GetName, METH_O, NULL},
40123 { (char *)"Display_IsPrimary", (PyCFunction)_wrap_Display_IsPrimary, METH_O, NULL},
40124 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"Display_GetCurrentMode", (PyCFunction)_wrap_Display_GetCurrentMode, METH_O, NULL},
40126 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"Display_ResetMode", (PyCFunction)_wrap_Display_ResetMode, METH_O, NULL},
40128 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL},
40129 { (char *)"Display_swiginit", Display_swiginit, METH_VARARGS, NULL},
40130 { (char *)"StandardPaths_Get", (PyCFunction)_wrap_StandardPaths_Get, METH_NOARGS, NULL},
428947f3 40131 { (char *)"StandardPaths_GetExecutablePath", (PyCFunction)_wrap_StandardPaths_GetExecutablePath, METH_O, NULL},
554f62e9
RD
40132 { (char *)"StandardPaths_GetConfigDir", (PyCFunction)_wrap_StandardPaths_GetConfigDir, METH_O, NULL},
40133 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction)_wrap_StandardPaths_GetUserConfigDir, METH_O, NULL},
40134 { (char *)"StandardPaths_GetDataDir", (PyCFunction)_wrap_StandardPaths_GetDataDir, METH_O, NULL},
40135 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction)_wrap_StandardPaths_GetLocalDataDir, METH_O, NULL},
40136 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction)_wrap_StandardPaths_GetUserDataDir, METH_O, NULL},
40137 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction)_wrap_StandardPaths_GetUserLocalDataDir, METH_O, NULL},
40138 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction)_wrap_StandardPaths_GetPluginsDir, METH_O, NULL},
e9d6f3a4
RD
40139 { (char *)"StandardPaths_GetResourcesDir", (PyCFunction)_wrap_StandardPaths_GetResourcesDir, METH_O, NULL},
40140 { (char *)"StandardPaths_GetLocalizedResourcesDir", (PyCFunction) _wrap_StandardPaths_GetLocalizedResourcesDir, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 40141 { (char *)"StandardPaths_GetDocumentsDir", (PyCFunction)_wrap_StandardPaths_GetDocumentsDir, METH_O, NULL},
ae8635b6 40142 { (char *)"StandardPaths_GetTempDir", (PyCFunction)_wrap_StandardPaths_GetTempDir, METH_O, NULL},
554f62e9
RD
40143 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
40144 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction)_wrap_StandardPaths_GetInstallPrefix, METH_O, NULL},
40145 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL},
704eda0c
RD
40146 { (char *)"new_PowerEvent", (PyCFunction) _wrap_new_PowerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40147 { (char *)"PowerEvent_Veto", (PyCFunction)_wrap_PowerEvent_Veto, METH_O, NULL},
40148 { (char *)"PowerEvent_IsVetoed", (PyCFunction)_wrap_PowerEvent_IsVetoed, METH_O, NULL},
40149 { (char *)"PowerEvent_swigregister", PowerEvent_swigregister, METH_VARARGS, NULL},
40150 { (char *)"PowerEvent_swiginit", PowerEvent_swiginit, METH_VARARGS, NULL},
40151 { (char *)"GetPowerType", (PyCFunction)_wrap_GetPowerType, METH_NOARGS, NULL},
40152 { (char *)"GetBatteryState", (PyCFunction)_wrap_GetBatteryState, METH_NOARGS, NULL},
b39fe951
RD
40153 { (char *)"new_AboutDialogInfo", (PyCFunction)_wrap_new_AboutDialogInfo, METH_NOARGS, NULL},
40154 { (char *)"delete_AboutDialogInfo", (PyCFunction)_wrap_delete_AboutDialogInfo, METH_O, NULL},
40155 { (char *)"AboutDialogInfo_SetName", (PyCFunction) _wrap_AboutDialogInfo_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"AboutDialogInfo_GetName", (PyCFunction)_wrap_AboutDialogInfo_GetName, METH_O, NULL},
40157 { (char *)"AboutDialogInfo_SetVersion", (PyCFunction) _wrap_AboutDialogInfo_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40158 { (char *)"AboutDialogInfo_HasVersion", (PyCFunction)_wrap_AboutDialogInfo_HasVersion, METH_O, NULL},
40159 { (char *)"AboutDialogInfo_GetVersion", (PyCFunction)_wrap_AboutDialogInfo_GetVersion, METH_O, NULL},
40160 { (char *)"AboutDialogInfo_SetDescription", (PyCFunction) _wrap_AboutDialogInfo_SetDescription, METH_VARARGS | METH_KEYWORDS, NULL},
40161 { (char *)"AboutDialogInfo_HasDescription", (PyCFunction)_wrap_AboutDialogInfo_HasDescription, METH_O, NULL},
40162 { (char *)"AboutDialogInfo_GetDescription", (PyCFunction)_wrap_AboutDialogInfo_GetDescription, METH_O, NULL},
40163 { (char *)"AboutDialogInfo_SetCopyright", (PyCFunction) _wrap_AboutDialogInfo_SetCopyright, METH_VARARGS | METH_KEYWORDS, NULL},
40164 { (char *)"AboutDialogInfo_HasCopyright", (PyCFunction)_wrap_AboutDialogInfo_HasCopyright, METH_O, NULL},
40165 { (char *)"AboutDialogInfo_GetCopyright", (PyCFunction)_wrap_AboutDialogInfo_GetCopyright, METH_O, NULL},
40166 { (char *)"AboutDialogInfo_SetLicence", (PyCFunction) _wrap_AboutDialogInfo_SetLicence, METH_VARARGS | METH_KEYWORDS, NULL},
40167 { (char *)"AboutDialogInfo_SetLicense", (PyCFunction) _wrap_AboutDialogInfo_SetLicense, METH_VARARGS | METH_KEYWORDS, NULL},
40168 { (char *)"AboutDialogInfo_HasLicence", (PyCFunction)_wrap_AboutDialogInfo_HasLicence, METH_O, NULL},
40169 { (char *)"AboutDialogInfo_GetLicence", (PyCFunction)_wrap_AboutDialogInfo_GetLicence, METH_O, NULL},
40170 { (char *)"AboutDialogInfo_SetIcon", (PyCFunction) _wrap_AboutDialogInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40171 { (char *)"AboutDialogInfo_HasIcon", (PyCFunction)_wrap_AboutDialogInfo_HasIcon, METH_O, NULL},
40172 { (char *)"AboutDialogInfo_GetIcon", (PyCFunction)_wrap_AboutDialogInfo_GetIcon, METH_O, NULL},
40173 { (char *)"AboutDialogInfo__SetWebSite", (PyCFunction) _wrap_AboutDialogInfo__SetWebSite, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"AboutDialogInfo__GetWebSiteURL", (PyCFunction)_wrap_AboutDialogInfo__GetWebSiteURL, METH_O, NULL},
40175 { (char *)"AboutDialogInfo__GetWebSiteDescription", (PyCFunction)_wrap_AboutDialogInfo__GetWebSiteDescription, METH_O, NULL},
40176 { (char *)"AboutDialogInfo_HasWebSite", (PyCFunction)_wrap_AboutDialogInfo_HasWebSite, METH_O, NULL},
40177 { (char *)"AboutDialogInfo_SetDevelopers", (PyCFunction) _wrap_AboutDialogInfo_SetDevelopers, METH_VARARGS | METH_KEYWORDS, NULL},
40178 { (char *)"AboutDialogInfo_AddDeveloper", (PyCFunction) _wrap_AboutDialogInfo_AddDeveloper, METH_VARARGS | METH_KEYWORDS, NULL},
40179 { (char *)"AboutDialogInfo_HasDevelopers", (PyCFunction)_wrap_AboutDialogInfo_HasDevelopers, METH_O, NULL},
40180 { (char *)"AboutDialogInfo_GetDevelopers", (PyCFunction)_wrap_AboutDialogInfo_GetDevelopers, METH_O, NULL},
40181 { (char *)"AboutDialogInfo_SetDocWriters", (PyCFunction) _wrap_AboutDialogInfo_SetDocWriters, METH_VARARGS | METH_KEYWORDS, NULL},
40182 { (char *)"AboutDialogInfo_AddDocWriter", (PyCFunction) _wrap_AboutDialogInfo_AddDocWriter, METH_VARARGS | METH_KEYWORDS, NULL},
40183 { (char *)"AboutDialogInfo_HasDocWriters", (PyCFunction)_wrap_AboutDialogInfo_HasDocWriters, METH_O, NULL},
40184 { (char *)"AboutDialogInfo_GetDocWriters", (PyCFunction)_wrap_AboutDialogInfo_GetDocWriters, METH_O, NULL},
40185 { (char *)"AboutDialogInfo_SetArtists", (PyCFunction) _wrap_AboutDialogInfo_SetArtists, METH_VARARGS | METH_KEYWORDS, NULL},
40186 { (char *)"AboutDialogInfo_AddArtist", (PyCFunction) _wrap_AboutDialogInfo_AddArtist, METH_VARARGS | METH_KEYWORDS, NULL},
40187 { (char *)"AboutDialogInfo_HasArtists", (PyCFunction)_wrap_AboutDialogInfo_HasArtists, METH_O, NULL},
40188 { (char *)"AboutDialogInfo_GetArtists", (PyCFunction)_wrap_AboutDialogInfo_GetArtists, METH_O, NULL},
40189 { (char *)"AboutDialogInfo_SetTranslators", (PyCFunction) _wrap_AboutDialogInfo_SetTranslators, METH_VARARGS | METH_KEYWORDS, NULL},
40190 { (char *)"AboutDialogInfo_AddTranslator", (PyCFunction) _wrap_AboutDialogInfo_AddTranslator, METH_VARARGS | METH_KEYWORDS, NULL},
40191 { (char *)"AboutDialogInfo_HasTranslators", (PyCFunction)_wrap_AboutDialogInfo_HasTranslators, METH_O, NULL},
40192 { (char *)"AboutDialogInfo_GetTranslators", (PyCFunction)_wrap_AboutDialogInfo_GetTranslators, METH_O, NULL},
40193 { (char *)"AboutDialogInfo_IsSimple", (PyCFunction)_wrap_AboutDialogInfo_IsSimple, METH_O, NULL},
40194 { (char *)"AboutDialogInfo_GetDescriptionAndCredits", (PyCFunction)_wrap_AboutDialogInfo_GetDescriptionAndCredits, METH_O, NULL},
40195 { (char *)"AboutDialogInfo_swigregister", AboutDialogInfo_swigregister, METH_VARARGS, NULL},
40196 { (char *)"AboutDialogInfo_swiginit", AboutDialogInfo_swiginit, METH_VARARGS, NULL},
40197 { (char *)"AboutBox", (PyCFunction) _wrap_AboutBox, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
40198 { NULL, NULL, 0, NULL }
40199};
40200
40201
40202/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40203
40204static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
40205 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
40206}
40207static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
40208 return (void *)((wxEvent *) ((wxMenuEvent *) x));
40209}
40210static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
40211 return (void *)((wxEvent *) ((wxCloseEvent *) x));
40212}
40213static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
40214 return (void *)((wxEvent *) ((wxMouseEvent *) x));
40215}
40216static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
40217 return (void *)((wxEvent *) ((wxEraseEvent *) x));
40218}
40219static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
40220 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
40221}
40222static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
40223 return (void *)((wxEvent *) ((wxTimerEvent *) x));
40224}
704eda0c
RD
40225static void *_p_wxPowerEventTo_p_wxEvent(void *x) {
40226 return (void *)((wxEvent *) ((wxPowerEvent *) x));
40227}
554f62e9
RD
40228static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
40229 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
40230}
40231static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
40232 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
40233}
554f62e9
RD
40234static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
40235 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
40236}
0f83f5da
RD
40237static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
40238 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
40239}
2131d850
RD
40240static void *_p_wxPyEventTo_p_wxEvent(void *x) {
40241 return (void *)((wxEvent *) ((wxPyEvent *) x));
40242}
554f62e9
RD
40243static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
40244 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
40245}
40246static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
40247 return (void *)((wxEvent *) ((wxIdleEvent *) x));
40248}
40249static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
40250 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
40251}
40252static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
40253 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
40254}
40255static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
40256 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
40257}
40258static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
40259 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
40260}
40261static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
40262 return (void *)((wxEvent *) ((wxActivateEvent *) x));
40263}
40264static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
40265 return (void *)((wxEvent *) ((wxSizeEvent *) x));
40266}
40267static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
40268 return (void *)((wxEvent *) ((wxMoveEvent *) x));
40269}
40270static void *_p_wxDateEventTo_p_wxEvent(void *x) {
40271 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
40272}
40273static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
40274 return (void *)((wxEvent *) ((wxPaintEvent *) x));
40275}
40276static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
40277 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
40278}
0f83f5da
RD
40279static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
40280 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
40281}
554f62e9
RD
40282static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
40283 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
40284}
40285static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
40286 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
40287}
40288static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
40289 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
40290}
40291static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
40292 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40293}
40294static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
40295 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
40296}
40297static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
40298 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
40299}
40300static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
40301 return (void *)((wxEvent *) ((wxFocusEvent *) x));
40302}
40303static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
40304 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
40305}
40306static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
40307 return (void *)((wxEvent *) ((wxProcessEvent *) x));
40308}
40309static void *_p_wxShowEventTo_p_wxEvent(void *x) {
40310 return (void *)((wxEvent *) ((wxShowEvent *) x));
40311}
40312static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
40313 return (void *)((wxEvent *) ((wxCommandEvent *) x));
40314}
40315static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
40316 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
40317}
40318static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
40319 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40320}
40321static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
40322 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
40323}
40324static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
40325 return (void *)((wxEvent *) ((wxKeyEvent *) x));
40326}
40327static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
40328 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
40329}
40330static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
40331 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
40332}
40333static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
40334 return (void *)((wxConfigBase *) ((wxConfig *) x));
40335}
40336static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
40337 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40338}
40339static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
40340 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
40341}
40342static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
40343 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
40344}
40345static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
40346 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
40347}
40348static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
40349 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
40350}
40351static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
40352 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
40353}
40354static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
40355 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
40356}
40357static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
40358 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
40359}
40360static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
40361 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40362}
40363static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
40364 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
40365}
40366static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
40367 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
40368}
40369static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
40370 return (void *)((wxDataObject *) ((wxURLDataObject *) x));
40371}
40372static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
40373 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
40374}
40375static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
40376 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
40377}
40378static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
40379 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
40380}
40381static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
40382 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
40383}
40384static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
40385 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
40386}
40387static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
40388 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
40389}
40390static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
40391 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
40392}
40393static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
40394 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
40395}
40396static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
40397 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
40398}
40399static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
40400 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
40401}
40402static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
40403 return (void *)((wxEvtHandler *) ((wxWindow *) x));
40404}
40405static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
40406 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40407}
40408static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
40409 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
40410}
40411static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
40412 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
40413}
40414static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
40415 return (void *)((wxEvtHandler *) ((wxValidator *) x));
40416}
40417static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
40418 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
40419}
40420static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
40421 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
40422}
40423static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
40424 return (void *)((wxEvtHandler *) ((wxMenu *) x));
40425}
40426static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
40427 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
40428}
40429static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
40430 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
40431}
40432static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40433 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40434}
554f62e9
RD
40435static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40436 return (void *)((wxObject *) ((wxSizerItem *) x));
40437}
0f83f5da
RD
40438static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40439 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40440}
554f62e9
RD
40441static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40443}
40444static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40445 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40446}
40447static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40448 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40449}
40450static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40451 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40452}
40453static void *_p_wxSizerTo_p_wxObject(void *x) {
40454 return (void *)((wxObject *) ((wxSizer *) x));
40455}
40456static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40457 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40458}
40459static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
40460 return (void *)((wxObject *) ((wxFileHistory *) x));
40461}
40462static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40463 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40464}
40465static void *_p_wxEventTo_p_wxObject(void *x) {
40466 return (void *)((wxObject *) ((wxEvent *) x));
40467}
40468static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40469 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40470}
40471static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40472 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40473}
40474static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40475 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40476}
2131d850
RD
40477static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40478 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40479}
554f62e9
RD
40480static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40481 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40482}
40483static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40484 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40485}
40486static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40487 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40488}
40489static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40490 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40491}
40492static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40493 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40494}
40495static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40496 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40497}
40498static void *_p_wxControlTo_p_wxObject(void *x) {
40499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40500}
40501static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40502 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40503}
40504static void *_p_wxTimerEventTo_p_wxObject(void *x) {
40505 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
40506}
704eda0c
RD
40507static void *_p_wxPowerEventTo_p_wxObject(void *x) {
40508 return (void *)((wxObject *) (wxEvent *) ((wxPowerEvent *) x));
40509}
554f62e9
RD
40510static void *_p_wxFSFileTo_p_wxObject(void *x) {
40511 return (void *)((wxObject *) ((wxFSFile *) x));
40512}
40513static void *_p_wxClipboardTo_p_wxObject(void *x) {
40514 return (void *)((wxObject *) ((wxClipboard *) x));
40515}
40516static void *_p_wxPySizerTo_p_wxObject(void *x) {
40517 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40518}
40519static void *_p_wxPyEventTo_p_wxObject(void *x) {
40520 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40521}
40522static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40523 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40524}
40525static void *_p_wxShowEventTo_p_wxObject(void *x) {
40526 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40527}
40528static void *_p_wxToolTipTo_p_wxObject(void *x) {
40529 return (void *)((wxObject *) ((wxToolTip *) x));
40530}
40531static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40532 return (void *)((wxObject *) ((wxMenuItem *) x));
40533}
40534static void *_p_wxDateEventTo_p_wxObject(void *x) {
40535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40536}
40537static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40538 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40539}
40540static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40542}
40543static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40544 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40545}
40546static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40547 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40548}
40549static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40550 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40551}
40552static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40553 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40554}
40555static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40556 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40557}
40558static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40559 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40560}
40561static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40562 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40563}
40564static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40565 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40566}
40567static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40568 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40569}
40570static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40571 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40572}
40573static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40574 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40575}
40576static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40577 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40578}
40579static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40580 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40581}
40582static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40583 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40584}
40585static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40586 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40587}
40588static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40589 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40590}
40591static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40592 return (void *)((wxObject *) ((wxImageHandler *) x));
40593}
40594static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40595 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40596}
40597static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40598 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40599}
580080c5
RD
40600static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40601 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40602}
554f62e9
RD
40603static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40604 return (void *)((wxObject *) ((wxEvtHandler *) x));
40605}
0f83f5da
RD
40606static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40607 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40608}
554f62e9
RD
40609static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40610 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40611}
580080c5
RD
40612static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40613 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40614}
554f62e9
RD
40615static void *_p_wxImageTo_p_wxObject(void *x) {
40616 return (void *)((wxObject *) ((wxImage *) x));
40617}
40618static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40619 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40620}
40621static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
40622 return (void *)((wxObject *) ((wxSystemOptions *) x));
40623}
40624static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
40625 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
40626}
40627static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40629}
40630static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40631 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40632}
40633static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40634 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40635}
40636static void *_p_wxWindowTo_p_wxObject(void *x) {
40637 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40638}
40639static void *_p_wxMenuTo_p_wxObject(void *x) {
40640 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40641}
40642static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40644}
40645static void *_p_wxPyProcessTo_p_wxObject(void *x) {
40646 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
40647}
40648static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40649 return (void *)((wxObject *) ((wxFileSystem *) x));
40650}
40651static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40652 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40653}
40654static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40655 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40656}
40657static void *_p_wxPyAppTo_p_wxObject(void *x) {
40658 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40659}
40660static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40661 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40662}
40663static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40664 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40665}
40666static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40667 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40668}
40669static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
40670 return (void *)((wxObject *) ((wxBusyInfo *) x));
40671}
40672static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40673 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40674}
40675static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40676 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40677}
40678static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40679 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40680}
40681static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40682 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40683}
40684static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40685 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40686}
40687static void *_p_wxProcessEventTo_p_wxObject(void *x) {
40688 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
40689}
40690static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40692}
40693static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40694 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40695}
40696static void *_p_wxValidatorTo_p_wxObject(void *x) {
40697 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40698}
40699static void *_p_wxPyTimerTo_p_wxObject(void *x) {
40700 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
40701}
40702static void *_p_wxLogBufferTo_p_wxLog(void *x) {
40703 return (void *)((wxLog *) ((wxLogBuffer *) x));
40704}
40705static void *_p_wxLogStderrTo_p_wxLog(void *x) {
40706 return (void *)((wxLog *) ((wxLogStderr *) x));
40707}
40708static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
40709 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
40710}
40711static void *_p_wxLogWindowTo_p_wxLog(void *x) {
40712 return (void *)((wxLog *) ((wxLogWindow *) x));
40713}
40714static void *_p_wxLogChainTo_p_wxLog(void *x) {
40715 return (void *)((wxLog *) ((wxLogChain *) x));
40716}
40717static void *_p_wxLogGuiTo_p_wxLog(void *x) {
40718 return (void *)((wxLog *) ((wxLogGui *) x));
40719}
40720static void *_p_wxPyLogTo_p_wxLog(void *x) {
40721 return (void *)((wxLog *) ((wxPyLog *) x));
40722}
40723static void *_p_wxControlTo_p_wxWindow(void *x) {
40724 return (void *)((wxWindow *) ((wxControl *) x));
40725}
40726static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40727 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40728}
40729static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40730 return (void *)((wxWindow *) ((wxMenuBar *) x));
40731}
40732static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
40733 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
40734}
40735static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
40736 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
40737}
40738static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40739static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40740static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40741static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40742static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40743static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, (void*)0, 0};
40744static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
b39fe951 40745static swig_type_info _swigt__p_wxAboutDialogInfo = {"_p_wxAboutDialogInfo", "wxAboutDialogInfo *", 0, 0, (void*)0, 0};
554f62e9
RD
40746static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
40747static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40748static swig_type_info _swigt__p_wxBitmapDataObject = {"_p_wxBitmapDataObject", "wxBitmapDataObject *", 0, 0, (void*)0, 0};
40749static swig_type_info _swigt__p_wxBusyCursor = {"_p_wxBusyCursor", "wxBusyCursor *", 0, 0, (void*)0, 0};
40750static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", "wxBusyInfo *", 0, 0, (void*)0, 0};
40751static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, (void*)0, 0};
40752static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40753static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", "wxClipboard *", 0, 0, (void*)0, 0};
40754static swig_type_info _swigt__p_wxClipboardLocker = {"_p_wxClipboardLocker", "wxClipboardLocker *", 0, 0, (void*)0, 0};
40755static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40756static swig_type_info _swigt__p_wxConfig = {"_p_wxConfig", "wxConfig *", 0, 0, (void*)0, 0};
40757static swig_type_info _swigt__p_wxConfigBase = {"_p_wxConfigBase", "wxConfigBase *", 0, 0, (void*)0, 0};
40758static swig_type_info _swigt__p_wxConfigPathChanger = {"_p_wxConfigPathChanger", "wxConfigPathChanger *", 0, 0, (void*)0, 0};
40759static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40760static swig_type_info _swigt__p_wxCustomDataObject = {"_p_wxCustomDataObject", "wxCustomDataObject *", 0, 0, (void*)0, 0};
40761static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40762static swig_type_info _swigt__p_wxDataFormat = {"_p_wxDataFormat", "wxDataFormat *", 0, 0, (void*)0, 0};
40763static swig_type_info _swigt__p_wxDataObject = {"_p_wxDataObject", "wxDataObject *", 0, 0, (void*)0, 0};
40764static swig_type_info _swigt__p_wxDataObjectComposite = {"_p_wxDataObjectComposite", "wxDataObjectComposite *", 0, 0, (void*)0, 0};
40765static swig_type_info _swigt__p_wxDataObjectSimple = {"_p_wxDataObjectSimple", "wxDataObjectSimple *", 0, 0, (void*)0, 0};
40766static swig_type_info _swigt__p_wxDateSpan = {"_p_wxDateSpan", "wxDateSpan *", 0, 0, (void*)0, 0};
40767static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
40768static swig_type_info _swigt__p_wxDateTime__TimeZone = {"_p_wxDateTime__TimeZone", "wxDateTime::TimeZone *", 0, 0, (void*)0, 0};
40769static swig_type_info _swigt__p_wxDisplay = {"_p_wxDisplay", "wxDisplay *", 0, 0, (void*)0, 0};
40770static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40771static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
40772static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40773static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40774static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40775static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40776static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40777static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40778static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40779static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
554f62e9 40780static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
2131d850 40781static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
0f83f5da 40782static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40783static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40784static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40785static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40786static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40787static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40788static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40789static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40790static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40791static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40792static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40793static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
0f83f5da 40794static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40795static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40796static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40797static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40798static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40799static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40800static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40801static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40802static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40803static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40804static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40805static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40806static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40807static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40808static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40809static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40810static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
40811static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40812static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40813static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40814static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40815static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40816static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40817static swig_type_info _swigt__p_wxFileConfig = {"_p_wxFileConfig", "wxFileConfig *", 0, 0, (void*)0, 0};
40818static swig_type_info _swigt__p_wxFileDataObject = {"_p_wxFileDataObject", "wxFileDataObject *", 0, 0, (void*)0, 0};
40819static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", "wxFileHistory *", 0, 0, (void*)0, 0};
40820static swig_type_info _swigt__p_wxFileType = {"_p_wxFileType", "wxFileType *", 0, 0, (void*)0, 0};
40821static swig_type_info _swigt__p_wxFileTypeInfo = {"_p_wxFileTypeInfo", "wxFileTypeInfo *", 0, 0, (void*)0, 0};
40822static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40823static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
40824static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40825static swig_type_info _swigt__p_wxJoystick = {"_p_wxJoystick", "wxJoystick *", 0, 0, (void*)0, 0};
40826static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", "wxJoystickEvent *", 0, 0, (void*)0, 0};
40827static swig_type_info _swigt__p_wxKillError = {"_p_wxKillError", "enum wxKillError *|wxKillError *", 0, 0, (void*)0, 0};
40828static swig_type_info _swigt__p_wxLog = {"_p_wxLog", "wxLog *", 0, 0, (void*)0, 0};
40829static swig_type_info _swigt__p_wxLogBuffer = {"_p_wxLogBuffer", "wxLogBuffer *", 0, 0, (void*)0, 0};
40830static swig_type_info _swigt__p_wxLogChain = {"_p_wxLogChain", "wxLogChain *", 0, 0, (void*)0, 0};
40831static swig_type_info _swigt__p_wxLogGui = {"_p_wxLogGui", "wxLogGui *", 0, 0, (void*)0, 0};
40832static swig_type_info _swigt__p_wxLogNull = {"_p_wxLogNull", "wxLogNull *", 0, 0, (void*)0, 0};
40833static swig_type_info _swigt__p_wxLogStderr = {"_p_wxLogStderr", "wxLogStderr *", 0, 0, (void*)0, 0};
40834static swig_type_info _swigt__p_wxLogTextCtrl = {"_p_wxLogTextCtrl", "wxLogTextCtrl *", 0, 0, (void*)0, 0};
40835static swig_type_info _swigt__p_wxLogWindow = {"_p_wxLogWindow", "wxLogWindow *", 0, 0, (void*)0, 0};
554f62e9
RD
40836static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
40837static swig_type_info _swigt__p_wxMetafile = {"_p_wxMetafile", "wxMetafile *", 0, 0, (void*)0, 0};
40838static swig_type_info _swigt__p_wxMetafileDataObject = {"_p_wxMetafileDataObject", "wxMetafileDataObject *", 0, 0, (void*)0, 0};
40839static swig_type_info _swigt__p_wxMimeTypesManager = {"_p_wxMimeTypesManager", "wxMimeTypesManager *", 0, 0, (void*)0, 0};
40840static swig_type_info _swigt__p_wxMouseState = {"_p_wxMouseState", "wxMouseState *", 0, 0, (void*)0, 0};
40841static swig_type_info _swigt__p_wxMutexGuiLocker = {"_p_wxMutexGuiLocker", "wxMutexGuiLocker *", 0, 0, (void*)0, 0};
40842static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40843static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 40844static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40845static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40846static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40847static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40848static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40849static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40850static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40851static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40852static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40853static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40854static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40855static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
40856static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40857static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5
RD
40858static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40859static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0f83f5da 40860static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
704eda0c 40861static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
2131d850 40862static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40863static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40864static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40865static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40866static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40867static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40868static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40869static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40870static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40871static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40872static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
40873static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40874static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
40875static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
fc46b7f3 40876static swig_type_info _swigt__p_wxPlatformInfo = {"_p_wxPlatformInfo", "wxPlatformInfo *", 0, 0, (void*)0, 0};
554f62e9 40877static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
704eda0c 40878static swig_type_info _swigt__p_wxPowerEvent = {"_p_wxPowerEvent", "wxPowerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
40879static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", "wxProcessEvent *", 0, 0, (void*)0, 0};
40880static swig_type_info _swigt__p_wxPyArtProvider = {"_p_wxPyArtProvider", "wxPyArtProvider *", 0, 0, (void*)0, 0};
40881static swig_type_info _swigt__p_wxPyBitmapDataObject = {"_p_wxPyBitmapDataObject", "wxPyBitmapDataObject *", 0, 0, (void*)0, 0};
40882static swig_type_info _swigt__p_wxPyDataObjectSimple = {"_p_wxPyDataObjectSimple", "wxPyDataObjectSimple *", 0, 0, (void*)0, 0};
40883static swig_type_info _swigt__p_wxPyDropSource = {"_p_wxPyDropSource", "wxPyDropSource *", 0, 0, (void*)0, 0};
40884static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, (void*)0, 0};
40885static swig_type_info _swigt__p_wxPyFileDropTarget = {"_p_wxPyFileDropTarget", "wxPyFileDropTarget *", 0, 0, (void*)0, 0};
40886static swig_type_info _swigt__p_wxPyLog = {"_p_wxPyLog", "wxPyLog *", 0, 0, (void*)0, 0};
40887static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", "wxPyProcess *", 0, 0, (void*)0, 0};
40888static swig_type_info _swigt__p_wxPyTextDataObject = {"_p_wxPyTextDataObject", "wxPyTextDataObject *", 0, 0, (void*)0, 0};
40889static swig_type_info _swigt__p_wxPyTextDropTarget = {"_p_wxPyTextDropTarget", "wxPyTextDropTarget *", 0, 0, (void*)0, 0};
40890static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", "wxPyTimer *", 0, 0, (void*)0, 0};
40891static swig_type_info _swigt__p_wxPyTipProvider = {"_p_wxPyTipProvider", "wxPyTipProvider *", 0, 0, (void*)0, 0};
40892static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40893static swig_type_info _swigt__p_wxSingleInstanceChecker = {"_p_wxSingleInstanceChecker", "wxSingleInstanceChecker *", 0, 0, (void*)0, 0};
40894static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40895static swig_type_info _swigt__p_wxSound = {"_p_wxSound", "wxSound *", 0, 0, (void*)0, 0};
40896static swig_type_info _swigt__p_wxStandardPaths = {"_p_wxStandardPaths", "wxStandardPaths *", 0, 0, (void*)0, 0};
40897static swig_type_info _swigt__p_wxStopWatch = {"_p_wxStopWatch", "wxStopWatch *", 0, 0, (void*)0, 0};
40898static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40899static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", "wxSystemOptions *", 0, 0, (void*)0, 0};
40900static swig_type_info _swigt__p_wxSystemSettings = {"_p_wxSystemSettings", "wxSystemSettings *", 0, 0, (void*)0, 0};
40901static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
40902static swig_type_info _swigt__p_wxTextDataObject = {"_p_wxTextDataObject", "wxTextDataObject *", 0, 0, (void*)0, 0};
40903static swig_type_info _swigt__p_wxTimeSpan = {"_p_wxTimeSpan", "wxTimeSpan *", 0, 0, (void*)0, 0};
40904static swig_type_info _swigt__p_wxTimer = {"_p_wxTimer", "wxTimer *", 0, 0, (void*)0, 0};
40905static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", "wxTimerEvent *", 0, 0, (void*)0, 0};
40906static swig_type_info _swigt__p_wxTimerRunner = {"_p_wxTimerRunner", "wxTimerRunner *", 0, 0, (void*)0, 0};
40907static swig_type_info _swigt__p_wxTipProvider = {"_p_wxTipProvider", "wxTipProvider *", 0, 0, (void*)0, 0};
40908static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, (void*)0, 0};
40909static swig_type_info _swigt__p_wxURLDataObject = {"_p_wxURLDataObject", "wxURLDataObject *", 0, 0, (void*)0, 0};
40910static swig_type_info _swigt__p_wxVideoMode = {"_p_wxVideoMode", "wxVideoMode *", 0, 0, (void*)0, 0};
40911static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40912static swig_type_info _swigt__p_wxWindowDisabler = {"_p_wxWindowDisabler", "wxWindowDisabler *", 0, 0, (void*)0, 0};
40913
40914static swig_type_info *swig_type_initial[] = {
40915 &_swigt__p_char,
40916 &_swigt__p_form_ops_t,
40917 &_swigt__p_int,
40918 &_swigt__p_unsigned_char,
40919 &_swigt__p_unsigned_int,
40920 &_swigt__p_unsigned_long,
40921 &_swigt__p_void,
40922 &_swigt__p_wxANIHandler,
b39fe951 40923 &_swigt__p_wxAboutDialogInfo,
554f62e9
RD
40924 &_swigt__p_wxAcceleratorTable,
40925 &_swigt__p_wxActivateEvent,
40926 &_swigt__p_wxArrayString,
40927 &_swigt__p_wxBMPHandler,
40928 &_swigt__p_wxBitmap,
40929 &_swigt__p_wxBitmapDataObject,
40930 &_swigt__p_wxBoxSizer,
40931 &_swigt__p_wxBusyCursor,
40932 &_swigt__p_wxBusyInfo,
40933 &_swigt__p_wxCURHandler,
40934 &_swigt__p_wxCaret,
40935 &_swigt__p_wxChar,
40936 &_swigt__p_wxChildFocusEvent,
40937 &_swigt__p_wxClipboard,
40938 &_swigt__p_wxClipboardLocker,
2131d850 40939 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
40940 &_swigt__p_wxCloseEvent,
40941 &_swigt__p_wxColour,
40942 &_swigt__p_wxCommandEvent,
40943 &_swigt__p_wxConfig,
40944 &_swigt__p_wxConfigBase,
40945 &_swigt__p_wxConfigPathChanger,
40946 &_swigt__p_wxContextMenuEvent,
40947 &_swigt__p_wxControl,
40948 &_swigt__p_wxControlWithItems,
40949 &_swigt__p_wxCursor,
40950 &_swigt__p_wxCustomDataObject,
40951 &_swigt__p_wxDC,
40952 &_swigt__p_wxDataFormat,
40953 &_swigt__p_wxDataObject,
40954 &_swigt__p_wxDataObjectComposite,
40955 &_swigt__p_wxDataObjectSimple,
40956 &_swigt__p_wxDateEvent,
40957 &_swigt__p_wxDateSpan,
40958 &_swigt__p_wxDateTime,
40959 &_swigt__p_wxDateTime__TimeZone,
40960 &_swigt__p_wxDisplay,
40961 &_swigt__p_wxDisplayChangedEvent,
40962 &_swigt__p_wxDropFilesEvent,
40963 &_swigt__p_wxDuplexMode,
40964 &_swigt__p_wxEraseEvent,
40965 &_swigt__p_wxEvent,
40966 &_swigt__p_wxEvtHandler,
40967 &_swigt__p_wxFSFile,
40968 &_swigt__p_wxFileConfig,
40969 &_swigt__p_wxFileDataObject,
40970 &_swigt__p_wxFileHistory,
40971 &_swigt__p_wxFileSystem,
40972 &_swigt__p_wxFileType,
40973 &_swigt__p_wxFileTypeInfo,
40974 &_swigt__p_wxFlexGridSizer,
40975 &_swigt__p_wxFocusEvent,
40976 &_swigt__p_wxFont,
40977 &_swigt__p_wxFrame,
40978 &_swigt__p_wxGBSizerItem,
40979 &_swigt__p_wxGIFHandler,
40980 &_swigt__p_wxGridBagSizer,
40981 &_swigt__p_wxGridSizer,
40982 &_swigt__p_wxICOHandler,
40983 &_swigt__p_wxIcon,
40984 &_swigt__p_wxIconizeEvent,
40985 &_swigt__p_wxIdleEvent,
40986 &_swigt__p_wxImage,
40987 &_swigt__p_wxImageHandler,
40988 &_swigt__p_wxIndividualLayoutConstraint,
40989 &_swigt__p_wxInitDialogEvent,
40990 &_swigt__p_wxJPEGHandler,
40991 &_swigt__p_wxJoystick,
40992 &_swigt__p_wxJoystickEvent,
40993 &_swigt__p_wxKeyEvent,
40994 &_swigt__p_wxKillError,
40995 &_swigt__p_wxLayoutConstraints,
40996 &_swigt__p_wxLog,
40997 &_swigt__p_wxLogBuffer,
40998 &_swigt__p_wxLogChain,
40999 &_swigt__p_wxLogGui,
41000 &_swigt__p_wxLogNull,
41001 &_swigt__p_wxLogStderr,
41002 &_swigt__p_wxLogTextCtrl,
41003 &_swigt__p_wxLogWindow,
41004 &_swigt__p_wxMaximizeEvent,
554f62e9
RD
41005 &_swigt__p_wxMenu,
41006 &_swigt__p_wxMenuBar,
41007 &_swigt__p_wxMenuEvent,
41008 &_swigt__p_wxMenuItem,
41009 &_swigt__p_wxMetafile,
41010 &_swigt__p_wxMetafileDataObject,
41011 &_swigt__p_wxMimeTypesManager,
41012 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 41013 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
41014 &_swigt__p_wxMouseEvent,
41015 &_swigt__p_wxMouseState,
41016 &_swigt__p_wxMoveEvent,
41017 &_swigt__p_wxMutexGuiLocker,
41018 &_swigt__p_wxNavigationKeyEvent,
41019 &_swigt__p_wxNcPaintEvent,
41020 &_swigt__p_wxNotifyEvent,
41021 &_swigt__p_wxObject,
41022 &_swigt__p_wxOutputStream,
41023 &_swigt__p_wxPCXHandler,
41024 &_swigt__p_wxPNGHandler,
41025 &_swigt__p_wxPNMHandler,
41026 &_swigt__p_wxPaintEvent,
41027 &_swigt__p_wxPaletteChangedEvent,
41028 &_swigt__p_wxPaperSize,
fc46b7f3 41029 &_swigt__p_wxPlatformInfo,
554f62e9 41030 &_swigt__p_wxPoint,
704eda0c 41031 &_swigt__p_wxPowerEvent,
554f62e9
RD
41032 &_swigt__p_wxProcessEvent,
41033 &_swigt__p_wxPyApp,
41034 &_swigt__p_wxPyArtProvider,
41035 &_swigt__p_wxPyBitmapDataObject,
41036 &_swigt__p_wxPyCommandEvent,
41037 &_swigt__p_wxPyDataObjectSimple,
41038 &_swigt__p_wxPyDropSource,
41039 &_swigt__p_wxPyDropTarget,
41040 &_swigt__p_wxPyEvent,
41041 &_swigt__p_wxPyFileDropTarget,
41042 &_swigt__p_wxPyImageHandler,
41043 &_swigt__p_wxPyLog,
41044 &_swigt__p_wxPyProcess,
41045 &_swigt__p_wxPySizer,
41046 &_swigt__p_wxPyTextDataObject,
41047 &_swigt__p_wxPyTextDropTarget,
41048 &_swigt__p_wxPyTimer,
41049 &_swigt__p_wxPyTipProvider,
41050 &_swigt__p_wxPyValidator,
41051 &_swigt__p_wxQueryNewPaletteEvent,
41052 &_swigt__p_wxRect,
41053 &_swigt__p_wxScrollEvent,
41054 &_swigt__p_wxScrollWinEvent,
41055 &_swigt__p_wxSetCursorEvent,
41056 &_swigt__p_wxShowEvent,
41057 &_swigt__p_wxSingleInstanceChecker,
41058 &_swigt__p_wxSize,
41059 &_swigt__p_wxSizeEvent,
41060 &_swigt__p_wxSizer,
41061 &_swigt__p_wxSizerItem,
41062 &_swigt__p_wxSound,
41063 &_swigt__p_wxStandardPaths,
41064 &_swigt__p_wxStaticBoxSizer,
41065 &_swigt__p_wxStdDialogButtonSizer,
41066 &_swigt__p_wxStopWatch,
41067 &_swigt__p_wxString,
41068 &_swigt__p_wxSysColourChangedEvent,
41069 &_swigt__p_wxSystemOptions,
41070 &_swigt__p_wxSystemSettings,
580080c5 41071 &_swigt__p_wxTGAHandler,
554f62e9
RD
41072 &_swigt__p_wxTIFFHandler,
41073 &_swigt__p_wxTextCtrl,
41074 &_swigt__p_wxTextDataObject,
41075 &_swigt__p_wxTimeSpan,
41076 &_swigt__p_wxTimer,
41077 &_swigt__p_wxTimerEvent,
41078 &_swigt__p_wxTimerRunner,
41079 &_swigt__p_wxTipProvider,
41080 &_swigt__p_wxToolTip,
41081 &_swigt__p_wxURLDataObject,
41082 &_swigt__p_wxUpdateUIEvent,
41083 &_swigt__p_wxValidator,
41084 &_swigt__p_wxVideoMode,
41085 &_swigt__p_wxWindow,
41086 &_swigt__p_wxWindowCreateEvent,
41087 &_swigt__p_wxWindowDestroyEvent,
41088 &_swigt__p_wxWindowDisabler,
41089 &_swigt__p_wxXPMHandler,
41090};
41091
41092static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41093static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41094static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41095static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41096static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41097static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41098static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 41099static swig_cast_info _swigc__p_wxAboutDialogInfo[] = { {&_swigt__p_wxAboutDialogInfo, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41100static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
41101static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41102static 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}};
41103static swig_cast_info _swigc__p_wxBusyCursor[] = { {&_swigt__p_wxBusyCursor, 0, 0, 0},{0, 0, 0, 0}};
41104static swig_cast_info _swigc__p_wxBusyInfo[] = { {&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
41105static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
41106static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
41107static swig_cast_info _swigc__p_wxClipboard[] = { {&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
41108static swig_cast_info _swigc__p_wxClipboardLocker[] = { {&_swigt__p_wxClipboardLocker, 0, 0, 0},{0, 0, 0, 0}};
41109static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41110static swig_cast_info _swigc__p_wxConfig[] = { {&_swigt__p_wxConfig, 0, 0, 0},{0, 0, 0, 0}};
41111static 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}};
41112static swig_cast_info _swigc__p_wxConfigPathChanger[] = { {&_swigt__p_wxConfigPathChanger, 0, 0, 0},{0, 0, 0, 0}};
41113static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41114static swig_cast_info _swigc__p_wxCustomDataObject[] = { {&_swigt__p_wxCustomDataObject, 0, 0, 0},{0, 0, 0, 0}};
41115static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
41116static swig_cast_info _swigc__p_wxDataFormat[] = { {&_swigt__p_wxDataFormat, 0, 0, 0},{0, 0, 0, 0}};
41117static 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}};
41118static swig_cast_info _swigc__p_wxDataObjectComposite[] = { {&_swigt__p_wxDataObjectComposite, 0, 0, 0},{0, 0, 0, 0}};
41119static 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}};
41120static swig_cast_info _swigc__p_wxDateSpan[] = { {&_swigt__p_wxDateSpan, 0, 0, 0},{0, 0, 0, 0}};
41121static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
41122static swig_cast_info _swigc__p_wxDateTime__TimeZone[] = { {&_swigt__p_wxDateTime__TimeZone, 0, 0, 0},{0, 0, 0, 0}};
41123static swig_cast_info _swigc__p_wxDisplay[] = { {&_swigt__p_wxDisplay, 0, 0, 0},{0, 0, 0, 0}};
41124static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41125static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41126static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41127static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41128static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41129static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41130static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41131static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41132static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41133static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41134static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41135static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41136static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41137static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41138static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41139static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41140static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41141static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41142static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41143static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41144static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41145static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41146static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41147static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41148static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41149static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41150static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41151static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41152static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41153static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41154static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41155static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41156static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41157static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41158static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41159static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41160static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41161static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41162static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41163static 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}};
554f62e9
RD
41164static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41165static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41166static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41167static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41168static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41169static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41170static 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}};
41171static swig_cast_info _swigc__p_wxFileConfig[] = { {&_swigt__p_wxFileConfig, 0, 0, 0},{0, 0, 0, 0}};
41172static swig_cast_info _swigc__p_wxFileDataObject[] = { {&_swigt__p_wxFileDataObject, 0, 0, 0},{0, 0, 0, 0}};
41173static swig_cast_info _swigc__p_wxFileHistory[] = { {&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
41174static swig_cast_info _swigc__p_wxFileType[] = { {&_swigt__p_wxFileType, 0, 0, 0},{0, 0, 0, 0}};
41175static swig_cast_info _swigc__p_wxFileTypeInfo[] = { {&_swigt__p_wxFileTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
41176static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41177static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
41178static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41179static swig_cast_info _swigc__p_wxJoystick[] = { {&_swigt__p_wxJoystick, 0, 0, 0},{0, 0, 0, 0}};
41180static swig_cast_info _swigc__p_wxJoystickEvent[] = { {&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
41181static swig_cast_info _swigc__p_wxKillError[] = { {&_swigt__p_wxKillError, 0, 0, 0},{0, 0, 0, 0}};
41182static 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}};
41183static swig_cast_info _swigc__p_wxLogBuffer[] = { {&_swigt__p_wxLogBuffer, 0, 0, 0},{0, 0, 0, 0}};
41184static swig_cast_info _swigc__p_wxLogChain[] = { {&_swigt__p_wxLogChain, 0, 0, 0},{0, 0, 0, 0}};
41185static swig_cast_info _swigc__p_wxLogGui[] = { {&_swigt__p_wxLogGui, 0, 0, 0},{0, 0, 0, 0}};
41186static swig_cast_info _swigc__p_wxLogNull[] = { {&_swigt__p_wxLogNull, 0, 0, 0},{0, 0, 0, 0}};
41187static swig_cast_info _swigc__p_wxLogStderr[] = { {&_swigt__p_wxLogStderr, 0, 0, 0},{0, 0, 0, 0}};
41188static swig_cast_info _swigc__p_wxLogTextCtrl[] = { {&_swigt__p_wxLogTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
41189static swig_cast_info _swigc__p_wxLogWindow[] = { {&_swigt__p_wxLogWindow, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41190static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41191static swig_cast_info _swigc__p_wxMetafile[] = { {&_swigt__p_wxMetafile, 0, 0, 0},{0, 0, 0, 0}};
41192static swig_cast_info _swigc__p_wxMetafileDataObject[] = { {&_swigt__p_wxMetafileDataObject, 0, 0, 0},{0, 0, 0, 0}};
41193static swig_cast_info _swigc__p_wxMimeTypesManager[] = { {&_swigt__p_wxMimeTypesManager, 0, 0, 0},{0, 0, 0, 0}};
41194static swig_cast_info _swigc__p_wxMouseState[] = { {&_swigt__p_wxMouseState, 0, 0, 0},{0, 0, 0, 0}};
41195static swig_cast_info _swigc__p_wxMutexGuiLocker[] = { {&_swigt__p_wxMutexGuiLocker, 0, 0, 0},{0, 0, 0, 0}};
41196static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41197static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41198static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41199static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41200static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41201static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41202static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41203static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41204static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41205static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41206static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41207static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41208static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41209static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41210static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5
RD
41211static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41212static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 41213static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 41214static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 41215static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41216static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41217static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41218static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41219static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41220static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41221static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41222static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41223static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41224static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41225static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41226static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
580080c5 41227static 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_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_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}};
554f62e9
RD
41228static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
41229static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 41230static swig_cast_info _swigc__p_wxPlatformInfo[] = { {&_swigt__p_wxPlatformInfo, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 41231static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 41232static swig_cast_info _swigc__p_wxPowerEvent[] = { {&_swigt__p_wxPowerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
41233static swig_cast_info _swigc__p_wxProcessEvent[] = { {&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
41234static swig_cast_info _swigc__p_wxPyArtProvider[] = { {&_swigt__p_wxPyArtProvider, 0, 0, 0},{0, 0, 0, 0}};
41235static swig_cast_info _swigc__p_wxPyBitmapDataObject[] = { {&_swigt__p_wxPyBitmapDataObject, 0, 0, 0},{0, 0, 0, 0}};
41236static swig_cast_info _swigc__p_wxPyDataObjectSimple[] = { {&_swigt__p_wxPyDataObjectSimple, 0, 0, 0},{0, 0, 0, 0}};
41237static swig_cast_info _swigc__p_wxPyDropSource[] = { {&_swigt__p_wxPyDropSource, 0, 0, 0},{0, 0, 0, 0}};
41238static 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}};
41239static swig_cast_info _swigc__p_wxPyFileDropTarget[] = { {&_swigt__p_wxPyFileDropTarget, 0, 0, 0},{0, 0, 0, 0}};
41240static swig_cast_info _swigc__p_wxPyLog[] = { {&_swigt__p_wxPyLog, 0, 0, 0},{0, 0, 0, 0}};
41241static swig_cast_info _swigc__p_wxPyProcess[] = { {&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
41242static swig_cast_info _swigc__p_wxPyTextDataObject[] = { {&_swigt__p_wxPyTextDataObject, 0, 0, 0},{0, 0, 0, 0}};
41243static swig_cast_info _swigc__p_wxPyTextDropTarget[] = { {&_swigt__p_wxPyTextDropTarget, 0, 0, 0},{0, 0, 0, 0}};
41244static swig_cast_info _swigc__p_wxPyTimer[] = { {&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
41245static swig_cast_info _swigc__p_wxPyTipProvider[] = { {&_swigt__p_wxPyTipProvider, 0, 0, 0},{0, 0, 0, 0}};
41246static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41247static swig_cast_info _swigc__p_wxSingleInstanceChecker[] = { {&_swigt__p_wxSingleInstanceChecker, 0, 0, 0},{0, 0, 0, 0}};
41248static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41249static swig_cast_info _swigc__p_wxSound[] = { {&_swigt__p_wxSound, 0, 0, 0},{0, 0, 0, 0}};
41250static swig_cast_info _swigc__p_wxStandardPaths[] = { {&_swigt__p_wxStandardPaths, 0, 0, 0},{0, 0, 0, 0}};
41251static swig_cast_info _swigc__p_wxStopWatch[] = { {&_swigt__p_wxStopWatch, 0, 0, 0},{0, 0, 0, 0}};
41252static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41253static swig_cast_info _swigc__p_wxSystemOptions[] = { {&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
41254static swig_cast_info _swigc__p_wxSystemSettings[] = { {&_swigt__p_wxSystemSettings, 0, 0, 0},{0, 0, 0, 0}};
41255static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
41256static 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}};
41257static swig_cast_info _swigc__p_wxTimeSpan[] = { {&_swigt__p_wxTimeSpan, 0, 0, 0},{0, 0, 0, 0}};
41258static swig_cast_info _swigc__p_wxTimer[] = { {&_swigt__p_wxTimer, 0, 0, 0},{0, 0, 0, 0}};
41259static swig_cast_info _swigc__p_wxTimerEvent[] = { {&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
41260static swig_cast_info _swigc__p_wxTimerRunner[] = { {&_swigt__p_wxTimerRunner, 0, 0, 0},{0, 0, 0, 0}};
41261static 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}};
41262static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
41263static swig_cast_info _swigc__p_wxURLDataObject[] = { {&_swigt__p_wxURLDataObject, 0, 0, 0},{0, 0, 0, 0}};
41264static swig_cast_info _swigc__p_wxVideoMode[] = { {&_swigt__p_wxVideoMode, 0, 0, 0},{0, 0, 0, 0}};
41265static 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}};
41266static swig_cast_info _swigc__p_wxWindowDisabler[] = { {&_swigt__p_wxWindowDisabler, 0, 0, 0},{0, 0, 0, 0}};
41267
41268static swig_cast_info *swig_cast_initial[] = {
41269 _swigc__p_char,
41270 _swigc__p_form_ops_t,
41271 _swigc__p_int,
41272 _swigc__p_unsigned_char,
41273 _swigc__p_unsigned_int,
41274 _swigc__p_unsigned_long,
41275 _swigc__p_void,
41276 _swigc__p_wxANIHandler,
b39fe951 41277 _swigc__p_wxAboutDialogInfo,
554f62e9
RD
41278 _swigc__p_wxAcceleratorTable,
41279 _swigc__p_wxActivateEvent,
41280 _swigc__p_wxArrayString,
41281 _swigc__p_wxBMPHandler,
41282 _swigc__p_wxBitmap,
41283 _swigc__p_wxBitmapDataObject,
41284 _swigc__p_wxBoxSizer,
41285 _swigc__p_wxBusyCursor,
41286 _swigc__p_wxBusyInfo,
41287 _swigc__p_wxCURHandler,
41288 _swigc__p_wxCaret,
41289 _swigc__p_wxChar,
41290 _swigc__p_wxChildFocusEvent,
41291 _swigc__p_wxClipboard,
41292 _swigc__p_wxClipboardLocker,
2131d850 41293 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
41294 _swigc__p_wxCloseEvent,
41295 _swigc__p_wxColour,
41296 _swigc__p_wxCommandEvent,
41297 _swigc__p_wxConfig,
41298 _swigc__p_wxConfigBase,
41299 _swigc__p_wxConfigPathChanger,
41300 _swigc__p_wxContextMenuEvent,
41301 _swigc__p_wxControl,
41302 _swigc__p_wxControlWithItems,
41303 _swigc__p_wxCursor,
41304 _swigc__p_wxCustomDataObject,
41305 _swigc__p_wxDC,
41306 _swigc__p_wxDataFormat,
41307 _swigc__p_wxDataObject,
41308 _swigc__p_wxDataObjectComposite,
41309 _swigc__p_wxDataObjectSimple,
41310 _swigc__p_wxDateEvent,
41311 _swigc__p_wxDateSpan,
41312 _swigc__p_wxDateTime,
41313 _swigc__p_wxDateTime__TimeZone,
41314 _swigc__p_wxDisplay,
41315 _swigc__p_wxDisplayChangedEvent,
41316 _swigc__p_wxDropFilesEvent,
41317 _swigc__p_wxDuplexMode,
41318 _swigc__p_wxEraseEvent,
41319 _swigc__p_wxEvent,
41320 _swigc__p_wxEvtHandler,
41321 _swigc__p_wxFSFile,
41322 _swigc__p_wxFileConfig,
41323 _swigc__p_wxFileDataObject,
41324 _swigc__p_wxFileHistory,
41325 _swigc__p_wxFileSystem,
41326 _swigc__p_wxFileType,
41327 _swigc__p_wxFileTypeInfo,
41328 _swigc__p_wxFlexGridSizer,
41329 _swigc__p_wxFocusEvent,
41330 _swigc__p_wxFont,
41331 _swigc__p_wxFrame,
41332 _swigc__p_wxGBSizerItem,
41333 _swigc__p_wxGIFHandler,
41334 _swigc__p_wxGridBagSizer,
41335 _swigc__p_wxGridSizer,
41336 _swigc__p_wxICOHandler,
41337 _swigc__p_wxIcon,
41338 _swigc__p_wxIconizeEvent,
41339 _swigc__p_wxIdleEvent,
41340 _swigc__p_wxImage,
41341 _swigc__p_wxImageHandler,
41342 _swigc__p_wxIndividualLayoutConstraint,
41343 _swigc__p_wxInitDialogEvent,
41344 _swigc__p_wxJPEGHandler,
41345 _swigc__p_wxJoystick,
41346 _swigc__p_wxJoystickEvent,
41347 _swigc__p_wxKeyEvent,
41348 _swigc__p_wxKillError,
41349 _swigc__p_wxLayoutConstraints,
41350 _swigc__p_wxLog,
41351 _swigc__p_wxLogBuffer,
41352 _swigc__p_wxLogChain,
41353 _swigc__p_wxLogGui,
41354 _swigc__p_wxLogNull,
41355 _swigc__p_wxLogStderr,
41356 _swigc__p_wxLogTextCtrl,
41357 _swigc__p_wxLogWindow,
41358 _swigc__p_wxMaximizeEvent,
554f62e9
RD
41359 _swigc__p_wxMenu,
41360 _swigc__p_wxMenuBar,
41361 _swigc__p_wxMenuEvent,
41362 _swigc__p_wxMenuItem,
41363 _swigc__p_wxMetafile,
41364 _swigc__p_wxMetafileDataObject,
41365 _swigc__p_wxMimeTypesManager,
41366 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 41367 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
41368 _swigc__p_wxMouseEvent,
41369 _swigc__p_wxMouseState,
41370 _swigc__p_wxMoveEvent,
41371 _swigc__p_wxMutexGuiLocker,
41372 _swigc__p_wxNavigationKeyEvent,
41373 _swigc__p_wxNcPaintEvent,
41374 _swigc__p_wxNotifyEvent,
41375 _swigc__p_wxObject,
41376 _swigc__p_wxOutputStream,
41377 _swigc__p_wxPCXHandler,
41378 _swigc__p_wxPNGHandler,
41379 _swigc__p_wxPNMHandler,
41380 _swigc__p_wxPaintEvent,
41381 _swigc__p_wxPaletteChangedEvent,
41382 _swigc__p_wxPaperSize,
fc46b7f3 41383 _swigc__p_wxPlatformInfo,
554f62e9 41384 _swigc__p_wxPoint,
704eda0c 41385 _swigc__p_wxPowerEvent,
554f62e9
RD
41386 _swigc__p_wxProcessEvent,
41387 _swigc__p_wxPyApp,
41388 _swigc__p_wxPyArtProvider,
41389 _swigc__p_wxPyBitmapDataObject,
41390 _swigc__p_wxPyCommandEvent,
41391 _swigc__p_wxPyDataObjectSimple,
41392 _swigc__p_wxPyDropSource,
41393 _swigc__p_wxPyDropTarget,
41394 _swigc__p_wxPyEvent,
41395 _swigc__p_wxPyFileDropTarget,
41396 _swigc__p_wxPyImageHandler,
41397 _swigc__p_wxPyLog,
41398 _swigc__p_wxPyProcess,
41399 _swigc__p_wxPySizer,
41400 _swigc__p_wxPyTextDataObject,
41401 _swigc__p_wxPyTextDropTarget,
41402 _swigc__p_wxPyTimer,
41403 _swigc__p_wxPyTipProvider,
41404 _swigc__p_wxPyValidator,
41405 _swigc__p_wxQueryNewPaletteEvent,
41406 _swigc__p_wxRect,
41407 _swigc__p_wxScrollEvent,
41408 _swigc__p_wxScrollWinEvent,
41409 _swigc__p_wxSetCursorEvent,
41410 _swigc__p_wxShowEvent,
41411 _swigc__p_wxSingleInstanceChecker,
41412 _swigc__p_wxSize,
41413 _swigc__p_wxSizeEvent,
41414 _swigc__p_wxSizer,
41415 _swigc__p_wxSizerItem,
41416 _swigc__p_wxSound,
41417 _swigc__p_wxStandardPaths,
41418 _swigc__p_wxStaticBoxSizer,
41419 _swigc__p_wxStdDialogButtonSizer,
41420 _swigc__p_wxStopWatch,
41421 _swigc__p_wxString,
41422 _swigc__p_wxSysColourChangedEvent,
41423 _swigc__p_wxSystemOptions,
41424 _swigc__p_wxSystemSettings,
580080c5 41425 _swigc__p_wxTGAHandler,
554f62e9
RD
41426 _swigc__p_wxTIFFHandler,
41427 _swigc__p_wxTextCtrl,
41428 _swigc__p_wxTextDataObject,
41429 _swigc__p_wxTimeSpan,
41430 _swigc__p_wxTimer,
41431 _swigc__p_wxTimerEvent,
41432 _swigc__p_wxTimerRunner,
41433 _swigc__p_wxTipProvider,
41434 _swigc__p_wxToolTip,
41435 _swigc__p_wxURLDataObject,
41436 _swigc__p_wxUpdateUIEvent,
41437 _swigc__p_wxValidator,
41438 _swigc__p_wxVideoMode,
41439 _swigc__p_wxWindow,
41440 _swigc__p_wxWindowCreateEvent,
41441 _swigc__p_wxWindowDestroyEvent,
41442 _swigc__p_wxWindowDisabler,
41443 _swigc__p_wxXPMHandler,
41444};
41445
41446
41447/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41448
41449static swig_const_info swig_const_table[] = {
41450{0, 0, 0, 0.0, 0, 0}};
41451
41452#ifdef __cplusplus
41453}
41454#endif
41455/* -----------------------------------------------------------------------------
41456 * Type initialization:
41457 * This problem is tough by the requirement that no dynamic
41458 * memory is used. Also, since swig_type_info structures store pointers to
41459 * swig_cast_info structures and swig_cast_info structures store pointers back
41460 * to swig_type_info structures, we need some lookup code at initialization.
41461 * The idea is that swig generates all the structures that are needed.
41462 * The runtime then collects these partially filled structures.
41463 * The SWIG_InitializeModule function takes these initial arrays out of
41464 * swig_module, and does all the lookup, filling in the swig_module.types
41465 * array with the correct data and linking the correct swig_cast_info
41466 * structures together.
41467 *
41468 * The generated swig_type_info structures are assigned staticly to an initial
41469 * array. We just loop though that array, and handle each type individually.
41470 * First we lookup if this type has been already loaded, and if so, use the
41471 * loaded structure instead of the generated one. Then we have to fill in the
41472 * cast linked list. The cast data is initially stored in something like a
41473 * two-dimensional array. Each row corresponds to a type (there are the same
41474 * number of rows as there are in the swig_type_initial array). Each entry in
41475 * a column is one of the swig_cast_info structures for that type.
41476 * The cast_initial array is actually an array of arrays, because each row has
41477 * a variable number of columns. So to actually build the cast linked list,
41478 * we find the array of casts associated with the type, and loop through it
41479 * adding the casts to the list. The one last trick we need to do is making
41480 * sure the type pointer in the swig_cast_info struct is correct.
41481 *
41482 * First off, we lookup the cast->type name to see if it is already loaded.
41483 * There are three cases to handle:
41484 * 1) If the cast->type has already been loaded AND the type we are adding
41485 * casting info to has not been loaded (it is in this module), THEN we
41486 * replace the cast->type pointer with the type pointer that has already
41487 * been loaded.
41488 * 2) If BOTH types (the one we are adding casting info to, and the
41489 * cast->type) are loaded, THEN the cast info has already been loaded by
41490 * the previous module so we just ignore it.
41491 * 3) Finally, if cast->type has not already been loaded, then we add that
41492 * swig_cast_info to the linked list (because the cast->type) pointer will
41493 * be correct.
41494 * ----------------------------------------------------------------------------- */
41495
41496#ifdef __cplusplus
41497extern "C" {
41498#if 0
41499} /* c-mode */
41500#endif
41501#endif
41502
41503#if 0
41504#define SWIGRUNTIME_DEBUG
41505#endif
41506
41507SWIGRUNTIME void
41508SWIG_InitializeModule(void *clientdata) {
41509 size_t i;
41510 swig_module_info *module_head;
41511 static int init_run = 0;
41512
41513 clientdata = clientdata;
41514
41515 if (init_run) return;
41516 init_run = 1;
41517
41518 /* Initialize the swig_module */
41519 swig_module.type_initial = swig_type_initial;
41520 swig_module.cast_initial = swig_cast_initial;
41521
41522 /* Try and load any already created modules */
41523 module_head = SWIG_GetModule(clientdata);
41524 if (module_head) {
41525 swig_module.next = module_head->next;
41526 module_head->next = &swig_module;
41527 } else {
41528 /* This is the first module loaded */
41529 swig_module.next = &swig_module;
41530 SWIG_SetModule(clientdata, &swig_module);
41531 }
41532
41533 /* Now work on filling in swig_module.types */
41534#ifdef SWIGRUNTIME_DEBUG
41535 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41536#endif
41537 for (i = 0; i < swig_module.size; ++i) {
41538 swig_type_info *type = 0;
41539 swig_type_info *ret;
41540 swig_cast_info *cast;
41541
41542#ifdef SWIGRUNTIME_DEBUG
41543 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41544#endif
41545
41546 /* if there is another module already loaded */
41547 if (swig_module.next != &swig_module) {
41548 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 41549 }
554f62e9
RD
41550 if (type) {
41551 /* Overwrite clientdata field */
41552#ifdef SWIGRUNTIME_DEBUG
41553 printf("SWIG_InitializeModule: found type %s\n", type->name);
41554#endif
41555 if (swig_module.type_initial[i]->clientdata) {
41556 type->clientdata = swig_module.type_initial[i]->clientdata;
41557#ifdef SWIGRUNTIME_DEBUG
41558 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41559#endif
41560 }
41561 } else {
41562 type = swig_module.type_initial[i];
093d3ff1 41563 }
554f62e9
RD
41564
41565 /* Insert casting types */
41566 cast = swig_module.cast_initial[i];
41567 while (cast->type) {
41568 /* Don't need to add information already in the list */
41569 ret = 0;
41570#ifdef SWIGRUNTIME_DEBUG
41571 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41572#endif
41573 if (swig_module.next != &swig_module) {
41574 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41575#ifdef SWIGRUNTIME_DEBUG
41576 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41577#endif
41578 }
41579 if (ret) {
41580 if (type == swig_module.type_initial[i]) {
41581#ifdef SWIGRUNTIME_DEBUG
41582 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41583#endif
41584 cast->type = ret;
41585 ret = 0;
41586 } else {
41587 /* Check for casting already in the list */
41588 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41589#ifdef SWIGRUNTIME_DEBUG
41590 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41591#endif
41592 if (!ocast) ret = 0;
41593 }
41594 }
41595
41596 if (!ret) {
41597#ifdef SWIGRUNTIME_DEBUG
41598 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41599#endif
41600 if (type->cast) {
41601 type->cast->prev = cast;
41602 cast->next = type->cast;
41603 }
41604 type->cast = cast;
41605 }
41606 cast++;
093d3ff1 41607 }
554f62e9
RD
41608 /* Set entry in modules->types array equal to the type */
41609 swig_module.types[i] = type;
41610 }
41611 swig_module.types[i] = 0;
41612
41613#ifdef SWIGRUNTIME_DEBUG
41614 printf("**** SWIG_InitializeModule: Cast List ******\n");
41615 for (i = 0; i < swig_module.size; ++i) {
41616 int j = 0;
41617 swig_cast_info *cast = swig_module.cast_initial[i];
41618 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41619 while (cast->type) {
41620 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41621 cast++;
41622 ++j;
41623 }
41624 printf("---- Total casts: %d\n",j);
41625 }
41626 printf("**** SWIG_InitializeModule: Cast List ******\n");
41627#endif
41628}
41629
41630/* This function will propagate the clientdata field of type to
41631* any new swig_type_info structures that have been added into the list
41632* of equivalent types. It is like calling
41633* SWIG_TypeClientData(type, clientdata) a second time.
41634*/
41635SWIGRUNTIME void
41636SWIG_PropagateClientData(void) {
41637 size_t i;
41638 swig_cast_info *equiv;
41639 static int init_run = 0;
41640
41641 if (init_run) return;
41642 init_run = 1;
41643
41644 for (i = 0; i < swig_module.size; i++) {
41645 if (swig_module.types[i]->clientdata) {
41646 equiv = swig_module.types[i]->cast;
41647 while (equiv) {
41648 if (!equiv->converter) {
41649 if (equiv->type && !equiv->type->clientdata)
41650 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41651 }
41652 equiv = equiv->next;
41653 }
093d3ff1 41654 }
554f62e9
RD
41655 }
41656}
41657
41658#ifdef __cplusplus
41659#if 0
41660{
41661 /* c-mode */
41662#endif
41663}
41664#endif
41665
41666
41667
41668#ifdef __cplusplus
41669extern "C" {
41670#endif
41671
41672 /* Python-specific SWIG API */
41673#define SWIG_newvarlink() SWIG_Python_newvarlink()
41674#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41675#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41676
41677 /* -----------------------------------------------------------------------------
41678 * global variable support code.
41679 * ----------------------------------------------------------------------------- */
41680
41681 typedef struct swig_globalvar {
41682 char *name; /* Name of global variable */
41683 PyObject *(*get_attr)(void); /* Return the current value */
41684 int (*set_attr)(PyObject *); /* Set the value */
41685 struct swig_globalvar *next;
41686 } swig_globalvar;
41687
41688 typedef struct swig_varlinkobject {
41689 PyObject_HEAD
41690 swig_globalvar *vars;
41691 } swig_varlinkobject;
41692
41693 SWIGINTERN PyObject *
41694 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41695 return PyString_FromString("<Swig global variables>");
41696 }
41697
41698 SWIGINTERN PyObject *
41699 swig_varlink_str(swig_varlinkobject *v) {
41700 PyObject *str = PyString_FromString("(");
41701 swig_globalvar *var;
41702 for (var = v->vars; var; var=var->next) {
41703 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41704 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41705 }
41706 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41707 return str;
41708 }
41709
41710 SWIGINTERN int
41711 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41712 PyObject *str = swig_varlink_str(v);
41713 fprintf(fp,"Swig global variables ");
41714 fprintf(fp,"%s\n", PyString_AsString(str));
41715 Py_DECREF(str);
41716 return 0;
41717 }
41718
41719 SWIGINTERN void
41720 swig_varlink_dealloc(swig_varlinkobject *v) {
41721 swig_globalvar *var = v->vars;
41722 while (var) {
41723 swig_globalvar *n = var->next;
41724 free(var->name);
41725 free(var);
41726 var = n;
093d3ff1 41727 }
554f62e9
RD
41728 }
41729
41730 SWIGINTERN PyObject *
41731 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41732 PyObject *res = NULL;
41733 swig_globalvar *var = v->vars;
41734 while (var) {
41735 if (strcmp(var->name,n) == 0) {
41736 res = (*var->get_attr)();
41737 break;
41738 }
41739 var = var->next;
093d3ff1 41740 }
554f62e9
RD
41741 if (res == NULL && !PyErr_Occurred()) {
41742 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 41743 }
554f62e9
RD
41744 return res;
41745 }
41746
41747 SWIGINTERN int
41748 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41749 int res = 1;
41750 swig_globalvar *var = v->vars;
41751 while (var) {
41752 if (strcmp(var->name,n) == 0) {
41753 res = (*var->set_attr)(p);
41754 break;
41755 }
41756 var = var->next;
093d3ff1 41757 }
554f62e9
RD
41758 if (res == 1 && !PyErr_Occurred()) {
41759 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 41760 }
554f62e9
RD
41761 return res;
41762 }
41763
41764 SWIGINTERN PyTypeObject*
41765 swig_varlink_type(void) {
41766 static char varlink__doc__[] = "Swig var link object";
41767 static PyTypeObject varlink_type;
41768 static int type_init = 0;
41769 if (!type_init) {
41770 const PyTypeObject tmp
41771 = {
41772 PyObject_HEAD_INIT(NULL)
41773 0, /* Number of items in variable part (ob_size) */
41774 (char *)"swigvarlink", /* Type name (tp_name) */
41775 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41776 0, /* Itemsize (tp_itemsize) */
41777 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41778 (printfunc) swig_varlink_print, /* Print (tp_print) */
41779 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41780 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41781 0, /* tp_compare */
41782 (reprfunc) swig_varlink_repr, /* tp_repr */
41783 0, /* tp_as_number */
41784 0, /* tp_as_sequence */
41785 0, /* tp_as_mapping */
41786 0, /* tp_hash */
41787 0, /* tp_call */
41788 (reprfunc)swig_varlink_str, /* tp_str */
41789 0, /* tp_getattro */
41790 0, /* tp_setattro */
41791 0, /* tp_as_buffer */
41792 0, /* tp_flags */
41793 varlink__doc__, /* tp_doc */
41794 0, /* tp_traverse */
41795 0, /* tp_clear */
41796 0, /* tp_richcompare */
41797 0, /* tp_weaklistoffset */
41798#if PY_VERSION_HEX >= 0x02020000
41799 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41800#endif
41801#if PY_VERSION_HEX >= 0x02030000
41802 0, /* tp_del */
41803#endif
41804#ifdef COUNT_ALLOCS
41805 0,0,0,0 /* tp_alloc -> tp_next */
41806#endif
41807 };
41808 varlink_type = tmp;
41809 varlink_type.ob_type = &PyType_Type;
41810 type_init = 1;
093d3ff1 41811 }
554f62e9
RD
41812 return &varlink_type;
41813 }
41814
41815 /* Create a variable linking object for use later */
41816 SWIGINTERN PyObject *
41817 SWIG_Python_newvarlink(void) {
41818 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41819 if (result) {
41820 result->vars = 0;
41821 }
41822 return ((PyObject*) result);
41823 }
41824
41825 SWIGINTERN void
41826 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41827 swig_varlinkobject *v = (swig_varlinkobject *) p;
41828 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41829 if (gv) {
41830 size_t size = strlen(name)+1;
41831 gv->name = (char *)malloc(size);
41832 if (gv->name) {
41833 strncpy(gv->name,name,size);
41834 gv->get_attr = get_attr;
41835 gv->set_attr = set_attr;
41836 gv->next = v->vars;
41837 }
093d3ff1 41838 }
554f62e9
RD
41839 v->vars = gv;
41840 }
41841
41842 SWIGINTERN PyObject *
41843 SWIG_globals() {
41844 static PyObject *_SWIG_globals = 0;
41845 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41846 return _SWIG_globals;
41847 }
41848
41849 /* -----------------------------------------------------------------------------
41850 * constants/methods manipulation
41851 * ----------------------------------------------------------------------------- */
41852
41853 /* Install Constants */
41854 SWIGINTERN void
41855 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41856 PyObject *obj = 0;
41857 size_t i;
41858 for (i = 0; constants[i].type; ++i) {
41859 switch(constants[i].type) {
41860 case SWIG_PY_POINTER:
41861 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41862 break;
41863 case SWIG_PY_BINARY:
41864 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41865 break;
41866 default:
41867 obj = 0;
41868 break;
41869 }
41870 if (obj) {
41871 PyDict_SetItemString(d, constants[i].name, obj);
41872 Py_DECREF(obj);
41873 }
093d3ff1 41874 }
554f62e9
RD
41875 }
41876
41877 /* -----------------------------------------------------------------------------*/
41878 /* Fix SwigMethods to carry the callback ptrs when needed */
41879 /* -----------------------------------------------------------------------------*/
41880
41881 SWIGINTERN void
41882 SWIG_Python_FixMethods(PyMethodDef *methods,
41883 swig_const_info *const_table,
41884 swig_type_info **types,
41885 swig_type_info **types_initial) {
41886 size_t i;
41887 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41888 const char *c = methods[i].ml_doc;
554f62e9
RD
41889 if (c && (c = strstr(c, "swig_ptr: "))) {
41890 int j;
41891 swig_const_info *ci = 0;
453fb36b 41892 const char *name = c + 10;
554f62e9
RD
41893 for (j = 0; const_table[j].type; ++j) {
41894 if (strncmp(const_table[j].name, name,
41895 strlen(const_table[j].name)) == 0) {
41896 ci = &(const_table[j]);
41897 break;
41898 }
41899 }
41900 if (ci) {
41901 size_t shift = (ci->ptype) - types;
41902 swig_type_info *ty = types_initial[shift];
41903 size_t ldoc = (c - methods[i].ml_doc);
41904 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41905 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41906 if (ndoc) {
41907 char *buff = ndoc;
41908 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41909 if (ptr) {
41910 strncpy(buff, methods[i].ml_doc, ldoc);
41911 buff += ldoc;
41912 strncpy(buff, "swig_ptr: ", 10);
41913 buff += 10;
41914 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41915 methods[i].ml_doc = ndoc;
41916 }
41917 }
41918 }
41919 }
093d3ff1 41920 }
554f62e9
RD
41921 }
41922
41923#ifdef __cplusplus
41924}
41925#endif
41926
41927/* -----------------------------------------------------------------------------*
41928 * Partial Init method
41929 * -----------------------------------------------------------------------------*/
41930
41931#ifdef __cplusplus
41932extern "C"
41933#endif
41934SWIGEXPORT void SWIG_init(void) {
41935 PyObject *m, *d;
41936
41937 /* Fix SwigMethods to carry the callback ptrs when needed */
41938 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41939
41940 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41941 d = PyModule_GetDict(m);
41942
41943 SWIG_InitializeModule(0);
41944 SWIG_InstallConstants(d,swig_const_table);
41945
41946
41947 SWIG_Python_SetConstant(d, "SYS_OEM_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_OEM_FIXED_FONT)));
41948 SWIG_Python_SetConstant(d, "SYS_ANSI_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_ANSI_FIXED_FONT)));
41949 SWIG_Python_SetConstant(d, "SYS_ANSI_VAR_FONT",SWIG_From_int(static_cast< int >(wxSYS_ANSI_VAR_FONT)));
41950 SWIG_Python_SetConstant(d, "SYS_SYSTEM_FONT",SWIG_From_int(static_cast< int >(wxSYS_SYSTEM_FONT)));
41951 SWIG_Python_SetConstant(d, "SYS_DEVICE_DEFAULT_FONT",SWIG_From_int(static_cast< int >(wxSYS_DEVICE_DEFAULT_FONT)));
41952 SWIG_Python_SetConstant(d, "SYS_DEFAULT_PALETTE",SWIG_From_int(static_cast< int >(wxSYS_DEFAULT_PALETTE)));
41953 SWIG_Python_SetConstant(d, "SYS_SYSTEM_FIXED_FONT",SWIG_From_int(static_cast< int >(wxSYS_SYSTEM_FIXED_FONT)));
41954 SWIG_Python_SetConstant(d, "SYS_DEFAULT_GUI_FONT",SWIG_From_int(static_cast< int >(wxSYS_DEFAULT_GUI_FONT)));
41955 SWIG_Python_SetConstant(d, "SYS_ICONTITLE_FONT",SWIG_From_int(static_cast< int >(wxSYS_ICONTITLE_FONT)));
41956 SWIG_Python_SetConstant(d, "SYS_COLOUR_SCROLLBAR",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_SCROLLBAR)));
41957 SWIG_Python_SetConstant(d, "SYS_COLOUR_BACKGROUND",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BACKGROUND)));
41958 SWIG_Python_SetConstant(d, "SYS_COLOUR_DESKTOP",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_DESKTOP)));
41959 SWIG_Python_SetConstant(d, "SYS_COLOUR_ACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_ACTIVECAPTION)));
41960 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVECAPTION)));
41961 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENU",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENU)));
41962 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOW)));
41963 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOWFRAME",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOWFRAME)));
41964 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUTEXT)));
41965 SWIG_Python_SetConstant(d, "SYS_COLOUR_WINDOWTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_WINDOWTEXT)));
41966 SWIG_Python_SetConstant(d, "SYS_COLOUR_CAPTIONTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_CAPTIONTEXT)));
41967 SWIG_Python_SetConstant(d, "SYS_COLOUR_ACTIVEBORDER",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_ACTIVEBORDER)));
41968 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVEBORDER",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVEBORDER)));
41969 SWIG_Python_SetConstant(d, "SYS_COLOUR_APPWORKSPACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_APPWORKSPACE)));
41970 SWIG_Python_SetConstant(d, "SYS_COLOUR_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HIGHLIGHT)));
41971 SWIG_Python_SetConstant(d, "SYS_COLOUR_HIGHLIGHTTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HIGHLIGHTTEXT)));
41972 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNFACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNFACE)));
41973 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DFACE",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DFACE)));
41974 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNSHADOW)));
41975 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DSHADOW)));
41976 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRAYTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRAYTEXT)));
41977 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNTEXT)));
41978 SWIG_Python_SetConstant(d, "SYS_COLOUR_INACTIVECAPTIONTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INACTIVECAPTIONTEXT)));
41979 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNHIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNHIGHLIGHT)));
41980 SWIG_Python_SetConstant(d, "SYS_COLOUR_BTNHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_BTNHILIGHT)));
41981 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DHIGHLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DHIGHLIGHT)));
41982 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DHILIGHT)));
41983 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DDKSHADOW",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DDKSHADOW)));
41984 SWIG_Python_SetConstant(d, "SYS_COLOUR_3DLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_3DLIGHT)));
41985 SWIG_Python_SetConstant(d, "SYS_COLOUR_INFOTEXT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INFOTEXT)));
41986 SWIG_Python_SetConstant(d, "SYS_COLOUR_INFOBK",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_INFOBK)));
41987 SWIG_Python_SetConstant(d, "SYS_COLOUR_LISTBOX",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_LISTBOX)));
41988 SWIG_Python_SetConstant(d, "SYS_COLOUR_HOTLIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_HOTLIGHT)));
41989 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRADIENTACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRADIENTACTIVECAPTION)));
41990 SWIG_Python_SetConstant(d, "SYS_COLOUR_GRADIENTINACTIVECAPTION",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_GRADIENTINACTIVECAPTION)));
41991 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUHILIGHT",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUHILIGHT)));
41992 SWIG_Python_SetConstant(d, "SYS_COLOUR_MENUBAR",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MENUBAR)));
41993 SWIG_Python_SetConstant(d, "SYS_COLOUR_MAX",SWIG_From_int(static_cast< int >(wxSYS_COLOUR_MAX)));
41994 SWIG_Python_SetConstant(d, "SYS_MOUSE_BUTTONS",SWIG_From_int(static_cast< int >(wxSYS_MOUSE_BUTTONS)));
41995 SWIG_Python_SetConstant(d, "SYS_BORDER_X",SWIG_From_int(static_cast< int >(wxSYS_BORDER_X)));
41996 SWIG_Python_SetConstant(d, "SYS_BORDER_Y",SWIG_From_int(static_cast< int >(wxSYS_BORDER_Y)));
41997 SWIG_Python_SetConstant(d, "SYS_CURSOR_X",SWIG_From_int(static_cast< int >(wxSYS_CURSOR_X)));
41998 SWIG_Python_SetConstant(d, "SYS_CURSOR_Y",SWIG_From_int(static_cast< int >(wxSYS_CURSOR_Y)));
41999 SWIG_Python_SetConstant(d, "SYS_DCLICK_X",SWIG_From_int(static_cast< int >(wxSYS_DCLICK_X)));
42000 SWIG_Python_SetConstant(d, "SYS_DCLICK_Y",SWIG_From_int(static_cast< int >(wxSYS_DCLICK_Y)));
42001 SWIG_Python_SetConstant(d, "SYS_DRAG_X",SWIG_From_int(static_cast< int >(wxSYS_DRAG_X)));
42002 SWIG_Python_SetConstant(d, "SYS_DRAG_Y",SWIG_From_int(static_cast< int >(wxSYS_DRAG_Y)));
42003 SWIG_Python_SetConstant(d, "SYS_EDGE_X",SWIG_From_int(static_cast< int >(wxSYS_EDGE_X)));
42004 SWIG_Python_SetConstant(d, "SYS_EDGE_Y",SWIG_From_int(static_cast< int >(wxSYS_EDGE_Y)));
42005 SWIG_Python_SetConstant(d, "SYS_HSCROLL_ARROW_X",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_ARROW_X)));
42006 SWIG_Python_SetConstant(d, "SYS_HSCROLL_ARROW_Y",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_ARROW_Y)));
42007 SWIG_Python_SetConstant(d, "SYS_HTHUMB_X",SWIG_From_int(static_cast< int >(wxSYS_HTHUMB_X)));
42008 SWIG_Python_SetConstant(d, "SYS_ICON_X",SWIG_From_int(static_cast< int >(wxSYS_ICON_X)));
42009 SWIG_Python_SetConstant(d, "SYS_ICON_Y",SWIG_From_int(static_cast< int >(wxSYS_ICON_Y)));
42010 SWIG_Python_SetConstant(d, "SYS_ICONSPACING_X",SWIG_From_int(static_cast< int >(wxSYS_ICONSPACING_X)));
42011 SWIG_Python_SetConstant(d, "SYS_ICONSPACING_Y",SWIG_From_int(static_cast< int >(wxSYS_ICONSPACING_Y)));
42012 SWIG_Python_SetConstant(d, "SYS_WINDOWMIN_X",SWIG_From_int(static_cast< int >(wxSYS_WINDOWMIN_X)));
42013 SWIG_Python_SetConstant(d, "SYS_WINDOWMIN_Y",SWIG_From_int(static_cast< int >(wxSYS_WINDOWMIN_Y)));
42014 SWIG_Python_SetConstant(d, "SYS_SCREEN_X",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_X)));
42015 SWIG_Python_SetConstant(d, "SYS_SCREEN_Y",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_Y)));
42016 SWIG_Python_SetConstant(d, "SYS_FRAMESIZE_X",SWIG_From_int(static_cast< int >(wxSYS_FRAMESIZE_X)));
42017 SWIG_Python_SetConstant(d, "SYS_FRAMESIZE_Y",SWIG_From_int(static_cast< int >(wxSYS_FRAMESIZE_Y)));
42018 SWIG_Python_SetConstant(d, "SYS_SMALLICON_X",SWIG_From_int(static_cast< int >(wxSYS_SMALLICON_X)));
42019 SWIG_Python_SetConstant(d, "SYS_SMALLICON_Y",SWIG_From_int(static_cast< int >(wxSYS_SMALLICON_Y)));
42020 SWIG_Python_SetConstant(d, "SYS_HSCROLL_Y",SWIG_From_int(static_cast< int >(wxSYS_HSCROLL_Y)));
42021 SWIG_Python_SetConstant(d, "SYS_VSCROLL_X",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_X)));
42022 SWIG_Python_SetConstant(d, "SYS_VSCROLL_ARROW_X",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_ARROW_X)));
42023 SWIG_Python_SetConstant(d, "SYS_VSCROLL_ARROW_Y",SWIG_From_int(static_cast< int >(wxSYS_VSCROLL_ARROW_Y)));
42024 SWIG_Python_SetConstant(d, "SYS_VTHUMB_Y",SWIG_From_int(static_cast< int >(wxSYS_VTHUMB_Y)));
42025 SWIG_Python_SetConstant(d, "SYS_CAPTION_Y",SWIG_From_int(static_cast< int >(wxSYS_CAPTION_Y)));
42026 SWIG_Python_SetConstant(d, "SYS_MENU_Y",SWIG_From_int(static_cast< int >(wxSYS_MENU_Y)));
42027 SWIG_Python_SetConstant(d, "SYS_NETWORK_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_NETWORK_PRESENT)));
42028 SWIG_Python_SetConstant(d, "SYS_PENWINDOWS_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_PENWINDOWS_PRESENT)));
42029 SWIG_Python_SetConstant(d, "SYS_SHOW_SOUNDS",SWIG_From_int(static_cast< int >(wxSYS_SHOW_SOUNDS)));
42030 SWIG_Python_SetConstant(d, "SYS_SWAP_BUTTONS",SWIG_From_int(static_cast< int >(wxSYS_SWAP_BUTTONS)));
42031 SWIG_Python_SetConstant(d, "SYS_CAN_DRAW_FRAME_DECORATIONS",SWIG_From_int(static_cast< int >(wxSYS_CAN_DRAW_FRAME_DECORATIONS)));
42032 SWIG_Python_SetConstant(d, "SYS_CAN_ICONIZE_FRAME",SWIG_From_int(static_cast< int >(wxSYS_CAN_ICONIZE_FRAME)));
42033 SWIG_Python_SetConstant(d, "SYS_TABLET_PRESENT",SWIG_From_int(static_cast< int >(wxSYS_TABLET_PRESENT)));
42034 SWIG_Python_SetConstant(d, "SYS_SCREEN_NONE",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_NONE)));
42035 SWIG_Python_SetConstant(d, "SYS_SCREEN_TINY",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_TINY)));
42036 SWIG_Python_SetConstant(d, "SYS_SCREEN_PDA",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_PDA)));
42037 SWIG_Python_SetConstant(d, "SYS_SCREEN_SMALL",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_SMALL)));
42038 SWIG_Python_SetConstant(d, "SYS_SCREEN_DESKTOP",SWIG_From_int(static_cast< int >(wxSYS_SCREEN_DESKTOP)));
42039 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42040 SWIG_addvarlink(SWIG_globals(),(char*)"WINDOW_DEFAULT_VARIANT",WINDOW_DEFAULT_VARIANT_get, WINDOW_DEFAULT_VARIANT_set);
42041 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
42042 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
42043 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
97ab0f6a
RD
42044 SWIG_Python_SetConstant(d, "STOCK_NOFLAGS",SWIG_From_int(static_cast< int >(wxSTOCK_NOFLAGS)));
42045 SWIG_Python_SetConstant(d, "STOCK_WITH_MNEMONIC",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_MNEMONIC)));
42046 SWIG_Python_SetConstant(d, "STOCK_WITH_ACCELERATOR",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_ACCELERATOR)));
42047 SWIG_Python_SetConstant(d, "STOCK_MENU",SWIG_From_int(static_cast< int >(wxSTOCK_MENU)));
554f62e9
RD
42048 SWIG_Python_SetConstant(d, "SHUTDOWN_POWEROFF",SWIG_From_int(static_cast< int >(wxSHUTDOWN_POWEROFF)));
42049 SWIG_Python_SetConstant(d, "SHUTDOWN_REBOOT",SWIG_From_int(static_cast< int >(wxSHUTDOWN_REBOOT)));
fc46b7f3
RD
42050 SWIG_Python_SetConstant(d, "OS_UNKNOWN",SWIG_From_int(static_cast< int >(wxOS_UNKNOWN)));
42051 SWIG_Python_SetConstant(d, "OS_MAC_OS",SWIG_From_int(static_cast< int >(wxOS_MAC_OS)));
42052 SWIG_Python_SetConstant(d, "OS_MAC_OSX_DARWIN",SWIG_From_int(static_cast< int >(wxOS_MAC_OSX_DARWIN)));
42053 SWIG_Python_SetConstant(d, "OS_MAC",SWIG_From_int(static_cast< int >(wxOS_MAC)));
42054 SWIG_Python_SetConstant(d, "OS_WINDOWS_9X",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_9X)));
42055 SWIG_Python_SetConstant(d, "OS_WINDOWS_NT",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_NT)));
42056 SWIG_Python_SetConstant(d, "OS_WINDOWS_MICRO",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_MICRO)));
42057 SWIG_Python_SetConstant(d, "OS_WINDOWS_CE",SWIG_From_int(static_cast< int >(wxOS_WINDOWS_CE)));
42058 SWIG_Python_SetConstant(d, "OS_WINDOWS",SWIG_From_int(static_cast< int >(wxOS_WINDOWS)));
42059 SWIG_Python_SetConstant(d, "OS_UNIX_LINUX",SWIG_From_int(static_cast< int >(wxOS_UNIX_LINUX)));
42060 SWIG_Python_SetConstant(d, "OS_UNIX_FREEBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_FREEBSD)));
42061 SWIG_Python_SetConstant(d, "OS_UNIX_OPENBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_OPENBSD)));
42062 SWIG_Python_SetConstant(d, "OS_UNIX_NETBSD",SWIG_From_int(static_cast< int >(wxOS_UNIX_NETBSD)));
42063 SWIG_Python_SetConstant(d, "OS_UNIX_SOLARIS",SWIG_From_int(static_cast< int >(wxOS_UNIX_SOLARIS)));
42064 SWIG_Python_SetConstant(d, "OS_UNIX_AIX",SWIG_From_int(static_cast< int >(wxOS_UNIX_AIX)));
42065 SWIG_Python_SetConstant(d, "OS_UNIX_HPUX",SWIG_From_int(static_cast< int >(wxOS_UNIX_HPUX)));
42066 SWIG_Python_SetConstant(d, "OS_UNIX",SWIG_From_int(static_cast< int >(wxOS_UNIX)));
42067 SWIG_Python_SetConstant(d, "OS_DOS",SWIG_From_int(static_cast< int >(wxOS_DOS)));
42068 SWIG_Python_SetConstant(d, "OS_OS2",SWIG_From_int(static_cast< int >(wxOS_OS2)));
42069 SWIG_Python_SetConstant(d, "PORT_UNKNOWN",SWIG_From_int(static_cast< int >(wxPORT_UNKNOWN)));
42070 SWIG_Python_SetConstant(d, "PORT_BASE",SWIG_From_int(static_cast< int >(wxPORT_BASE)));
42071 SWIG_Python_SetConstant(d, "PORT_MSW",SWIG_From_int(static_cast< int >(wxPORT_MSW)));
42072 SWIG_Python_SetConstant(d, "PORT_MOTIF",SWIG_From_int(static_cast< int >(wxPORT_MOTIF)));
42073 SWIG_Python_SetConstant(d, "PORT_GTK",SWIG_From_int(static_cast< int >(wxPORT_GTK)));
42074 SWIG_Python_SetConstant(d, "PORT_MGL",SWIG_From_int(static_cast< int >(wxPORT_MGL)));
42075 SWIG_Python_SetConstant(d, "PORT_X11",SWIG_From_int(static_cast< int >(wxPORT_X11)));
42076 SWIG_Python_SetConstant(d, "PORT_PM",SWIG_From_int(static_cast< int >(wxPORT_PM)));
42077 SWIG_Python_SetConstant(d, "PORT_OS2",SWIG_From_int(static_cast< int >(wxPORT_OS2)));
42078 SWIG_Python_SetConstant(d, "PORT_MAC",SWIG_From_int(static_cast< int >(wxPORT_MAC)));
42079 SWIG_Python_SetConstant(d, "PORT_COCOA",SWIG_From_int(static_cast< int >(wxPORT_COCOA)));
42080 SWIG_Python_SetConstant(d, "PORT_WINCE",SWIG_From_int(static_cast< int >(wxPORT_WINCE)));
42081 SWIG_Python_SetConstant(d, "PORT_PALMOS",SWIG_From_int(static_cast< int >(wxPORT_PALMOS)));
42082 SWIG_Python_SetConstant(d, "PORT_DFB",SWIG_From_int(static_cast< int >(wxPORT_DFB)));
42083 SWIG_Python_SetConstant(d, "ARCH_INVALID",SWIG_From_int(static_cast< int >(wxARCH_INVALID)));
42084 SWIG_Python_SetConstant(d, "ARCH_32",SWIG_From_int(static_cast< int >(wxARCH_32)));
42085 SWIG_Python_SetConstant(d, "ARCH_64",SWIG_From_int(static_cast< int >(wxARCH_64)));
42086 SWIG_Python_SetConstant(d, "ARCH_MAX",SWIG_From_int(static_cast< int >(wxARCH_MAX)));
42087 SWIG_Python_SetConstant(d, "ENDIAN_INVALID",SWIG_From_int(static_cast< int >(wxENDIAN_INVALID)));
42088 SWIG_Python_SetConstant(d, "ENDIAN_BIG",SWIG_From_int(static_cast< int >(wxENDIAN_BIG)));
42089 SWIG_Python_SetConstant(d, "ENDIAN_LITTLE",SWIG_From_int(static_cast< int >(wxENDIAN_LITTLE)));
42090 SWIG_Python_SetConstant(d, "ENDIAN_PDP",SWIG_From_int(static_cast< int >(wxENDIAN_PDP)));
42091 SWIG_Python_SetConstant(d, "ENDIAN_MAX",SWIG_From_int(static_cast< int >(wxENDIAN_MAX)));
554f62e9
RD
42092 SWIG_Python_SetConstant(d, "TIMER_CONTINUOUS",SWIG_From_int(static_cast< int >(wxTIMER_CONTINUOUS)));
42093 SWIG_Python_SetConstant(d, "TIMER_ONE_SHOT",SWIG_From_int(static_cast< int >(wxTIMER_ONE_SHOT)));
42094 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
42095
42096 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
42097
42098 SWIG_Python_SetConstant(d, "LOG_FatalError",SWIG_From_int(static_cast< int >(wxLOG_FatalError)));
42099 SWIG_Python_SetConstant(d, "LOG_Error",SWIG_From_int(static_cast< int >(wxLOG_Error)));
42100 SWIG_Python_SetConstant(d, "LOG_Warning",SWIG_From_int(static_cast< int >(wxLOG_Warning)));
42101 SWIG_Python_SetConstant(d, "LOG_Message",SWIG_From_int(static_cast< int >(wxLOG_Message)));
42102 SWIG_Python_SetConstant(d, "LOG_Status",SWIG_From_int(static_cast< int >(wxLOG_Status)));
42103 SWIG_Python_SetConstant(d, "LOG_Info",SWIG_From_int(static_cast< int >(wxLOG_Info)));
42104 SWIG_Python_SetConstant(d, "LOG_Debug",SWIG_From_int(static_cast< int >(wxLOG_Debug)));
42105 SWIG_Python_SetConstant(d, "LOG_Trace",SWIG_From_int(static_cast< int >(wxLOG_Trace)));
42106 SWIG_Python_SetConstant(d, "LOG_Progress",SWIG_From_int(static_cast< int >(wxLOG_Progress)));
42107 SWIG_Python_SetConstant(d, "LOG_User",SWIG_From_int(static_cast< int >(wxLOG_User)));
42108 SWIG_Python_SetConstant(d, "LOG_Max",SWIG_From_int(static_cast< int >(wxLOG_Max)));
42109 SWIG_Python_SetConstant(d, "TRACE_MemAlloc",SWIG_FromCharPtr("memalloc"));
42110 SWIG_Python_SetConstant(d, "TRACE_Messages",SWIG_FromCharPtr("messages"));
42111 SWIG_Python_SetConstant(d, "TRACE_ResAlloc",SWIG_FromCharPtr("resalloc"));
42112 SWIG_Python_SetConstant(d, "TRACE_RefCount",SWIG_FromCharPtr("refcount"));
42113 SWIG_Python_SetConstant(d, "TRACE_OleCalls",SWIG_FromCharPtr("ole"));
42114 SWIG_Python_SetConstant(d, "TraceMemAlloc",SWIG_From_int(static_cast< int >(0x0001)));
42115 SWIG_Python_SetConstant(d, "TraceMessages",SWIG_From_int(static_cast< int >(0x0002)));
42116 SWIG_Python_SetConstant(d, "TraceResAlloc",SWIG_From_int(static_cast< int >(0x0004)));
42117 SWIG_Python_SetConstant(d, "TraceRefCount",SWIG_From_int(static_cast< int >(0x0008)));
42118 SWIG_Python_SetConstant(d, "TraceOleCalls",SWIG_From_int(static_cast< int >(0x0100)));
42119 SWIG_Python_SetConstant(d, "PROCESS_DEFAULT",SWIG_From_int(static_cast< int >(wxPROCESS_DEFAULT)));
42120 SWIG_Python_SetConstant(d, "PROCESS_REDIRECT",SWIG_From_int(static_cast< int >(wxPROCESS_REDIRECT)));
42121 SWIG_Python_SetConstant(d, "KILL_OK",SWIG_From_int(static_cast< int >(wxKILL_OK)));
42122 SWIG_Python_SetConstant(d, "KILL_BAD_SIGNAL",SWIG_From_int(static_cast< int >(wxKILL_BAD_SIGNAL)));
42123 SWIG_Python_SetConstant(d, "KILL_ACCESS_DENIED",SWIG_From_int(static_cast< int >(wxKILL_ACCESS_DENIED)));
42124 SWIG_Python_SetConstant(d, "KILL_NO_PROCESS",SWIG_From_int(static_cast< int >(wxKILL_NO_PROCESS)));
42125 SWIG_Python_SetConstant(d, "KILL_ERROR",SWIG_From_int(static_cast< int >(wxKILL_ERROR)));
42126 SWIG_Python_SetConstant(d, "KILL_NOCHILDREN",SWIG_From_int(static_cast< int >(wxKILL_NOCHILDREN)));
42127 SWIG_Python_SetConstant(d, "KILL_CHILDREN",SWIG_From_int(static_cast< int >(wxKILL_CHILDREN)));
42128 SWIG_Python_SetConstant(d, "SIGNONE",SWIG_From_int(static_cast< int >(wxSIGNONE)));
42129 SWIG_Python_SetConstant(d, "SIGHUP",SWIG_From_int(static_cast< int >(wxSIGHUP)));
42130 SWIG_Python_SetConstant(d, "SIGINT",SWIG_From_int(static_cast< int >(wxSIGINT)));
42131 SWIG_Python_SetConstant(d, "SIGQUIT",SWIG_From_int(static_cast< int >(wxSIGQUIT)));
42132 SWIG_Python_SetConstant(d, "SIGILL",SWIG_From_int(static_cast< int >(wxSIGILL)));
42133 SWIG_Python_SetConstant(d, "SIGTRAP",SWIG_From_int(static_cast< int >(wxSIGTRAP)));
42134 SWIG_Python_SetConstant(d, "SIGABRT",SWIG_From_int(static_cast< int >(wxSIGABRT)));
42135 SWIG_Python_SetConstant(d, "SIGIOT",SWIG_From_int(static_cast< int >(wxSIGIOT)));
42136 SWIG_Python_SetConstant(d, "SIGEMT",SWIG_From_int(static_cast< int >(wxSIGEMT)));
42137 SWIG_Python_SetConstant(d, "SIGFPE",SWIG_From_int(static_cast< int >(wxSIGFPE)));
42138 SWIG_Python_SetConstant(d, "SIGKILL",SWIG_From_int(static_cast< int >(wxSIGKILL)));
42139 SWIG_Python_SetConstant(d, "SIGBUS",SWIG_From_int(static_cast< int >(wxSIGBUS)));
42140 SWIG_Python_SetConstant(d, "SIGSEGV",SWIG_From_int(static_cast< int >(wxSIGSEGV)));
42141 SWIG_Python_SetConstant(d, "SIGSYS",SWIG_From_int(static_cast< int >(wxSIGSYS)));
42142 SWIG_Python_SetConstant(d, "SIGPIPE",SWIG_From_int(static_cast< int >(wxSIGPIPE)));
42143 SWIG_Python_SetConstant(d, "SIGALRM",SWIG_From_int(static_cast< int >(wxSIGALRM)));
42144 SWIG_Python_SetConstant(d, "SIGTERM",SWIG_From_int(static_cast< int >(wxSIGTERM)));
42145 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
42146 SWIG_Python_SetConstant(d, "EXEC_ASYNC",SWIG_From_int(static_cast< int >(wxEXEC_ASYNC)));
42147 SWIG_Python_SetConstant(d, "EXEC_SYNC",SWIG_From_int(static_cast< int >(wxEXEC_SYNC)));
42148 SWIG_Python_SetConstant(d, "EXEC_NOHIDE",SWIG_From_int(static_cast< int >(wxEXEC_NOHIDE)));
42149 SWIG_Python_SetConstant(d, "EXEC_MAKE_GROUP_LEADER",SWIG_From_int(static_cast< int >(wxEXEC_MAKE_GROUP_LEADER)));
42150 SWIG_Python_SetConstant(d, "EXEC_NODISABLE",SWIG_From_int(static_cast< int >(wxEXEC_NODISABLE)));
42151
42152 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
42153
42154 SWIG_Python_SetConstant(d, "JOYSTICK1",SWIG_From_int(static_cast< int >(wxJOYSTICK1)));
42155 SWIG_Python_SetConstant(d, "JOYSTICK2",SWIG_From_int(static_cast< int >(wxJOYSTICK2)));
42156 SWIG_Python_SetConstant(d, "JOY_BUTTON_ANY",SWIG_From_int(static_cast< int >(wxJOY_BUTTON_ANY)));
42157 SWIG_Python_SetConstant(d, "JOY_BUTTON1",SWIG_From_int(static_cast< int >(wxJOY_BUTTON1)));
42158 SWIG_Python_SetConstant(d, "JOY_BUTTON2",SWIG_From_int(static_cast< int >(wxJOY_BUTTON2)));
42159 SWIG_Python_SetConstant(d, "JOY_BUTTON3",SWIG_From_int(static_cast< int >(wxJOY_BUTTON3)));
42160 SWIG_Python_SetConstant(d, "JOY_BUTTON4",SWIG_From_int(static_cast< int >(wxJOY_BUTTON4)));
42161 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
42162 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
42163 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
42164 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
42165 SWIG_Python_SetConstant(d, "SOUND_SYNC",SWIG_From_int(static_cast< int >(wxSOUND_SYNC)));
42166 SWIG_Python_SetConstant(d, "SOUND_ASYNC",SWIG_From_int(static_cast< int >(wxSOUND_ASYNC)));
42167 SWIG_Python_SetConstant(d, "SOUND_LOOP",SWIG_From_int(static_cast< int >(wxSOUND_LOOP)));
42168 SWIG_Python_SetConstant(d, "MAILCAP_STANDARD",SWIG_From_int(static_cast< int >(wxMAILCAP_STANDARD)));
42169 SWIG_Python_SetConstant(d, "MAILCAP_NETSCAPE",SWIG_From_int(static_cast< int >(wxMAILCAP_NETSCAPE)));
42170 SWIG_Python_SetConstant(d, "MAILCAP_KDE",SWIG_From_int(static_cast< int >(wxMAILCAP_KDE)));
42171 SWIG_Python_SetConstant(d, "MAILCAP_GNOME",SWIG_From_int(static_cast< int >(wxMAILCAP_GNOME)));
42172 SWIG_Python_SetConstant(d, "MAILCAP_ALL",SWIG_From_int(static_cast< int >(wxMAILCAP_ALL)));
42173 SWIG_addvarlink(SWIG_globals(),(char*)"TheMimeTypesManager",TheMimeTypesManager_get, TheMimeTypesManager_set);
42174 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TOOLBAR",ART_TOOLBAR_get, ART_TOOLBAR_set);
42175 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MENU",ART_MENU_get, ART_MENU_set);
42176 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FRAME_ICON",ART_FRAME_ICON_get, ART_FRAME_ICON_set);
42177 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CMN_DIALOG",ART_CMN_DIALOG_get, ART_CMN_DIALOG_set);
42178 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_BROWSER",ART_HELP_BROWSER_get, ART_HELP_BROWSER_set);
42179 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MESSAGE_BOX",ART_MESSAGE_BOX_get, ART_MESSAGE_BOX_set);
42180 SWIG_addvarlink(SWIG_globals(),(char*)"ART_BUTTON",ART_BUTTON_get, ART_BUTTON_set);
42181 SWIG_addvarlink(SWIG_globals(),(char*)"ART_OTHER",ART_OTHER_get, ART_OTHER_set);
42182 SWIG_addvarlink(SWIG_globals(),(char*)"ART_ADD_BOOKMARK",ART_ADD_BOOKMARK_get, ART_ADD_BOOKMARK_set);
42183 SWIG_addvarlink(SWIG_globals(),(char*)"ART_DEL_BOOKMARK",ART_DEL_BOOKMARK_get, ART_DEL_BOOKMARK_set);
42184 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_SIDE_PANEL",ART_HELP_SIDE_PANEL_get, ART_HELP_SIDE_PANEL_set);
42185 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_SETTINGS",ART_HELP_SETTINGS_get, ART_HELP_SETTINGS_set);
42186 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_BOOK",ART_HELP_BOOK_get, ART_HELP_BOOK_set);
42187 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_FOLDER",ART_HELP_FOLDER_get, ART_HELP_FOLDER_set);
42188 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP_PAGE",ART_HELP_PAGE_get, ART_HELP_PAGE_set);
42189 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_BACK",ART_GO_BACK_get, ART_GO_BACK_set);
42190 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_FORWARD",ART_GO_FORWARD_get, ART_GO_FORWARD_set);
42191 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_UP",ART_GO_UP_get, ART_GO_UP_set);
42192 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_DOWN",ART_GO_DOWN_get, ART_GO_DOWN_set);
42193 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_TO_PARENT",ART_GO_TO_PARENT_get, ART_GO_TO_PARENT_set);
42194 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_HOME",ART_GO_HOME_get, ART_GO_HOME_set);
42195 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_OPEN",ART_FILE_OPEN_get, ART_FILE_OPEN_set);
42196 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_SAVE",ART_FILE_SAVE_get, ART_FILE_SAVE_set);
42197 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FILE_SAVE_AS",ART_FILE_SAVE_AS_get, ART_FILE_SAVE_AS_set);
42198 SWIG_addvarlink(SWIG_globals(),(char*)"ART_PRINT",ART_PRINT_get, ART_PRINT_set);
42199 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HELP",ART_HELP_get, ART_HELP_set);
42200 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TIP",ART_TIP_get, ART_TIP_set);
42201 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REPORT_VIEW",ART_REPORT_VIEW_get, ART_REPORT_VIEW_set);
42202 SWIG_addvarlink(SWIG_globals(),(char*)"ART_LIST_VIEW",ART_LIST_VIEW_get, ART_LIST_VIEW_set);
42203 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NEW_DIR",ART_NEW_DIR_get, ART_NEW_DIR_set);
42204 SWIG_addvarlink(SWIG_globals(),(char*)"ART_HARDDISK",ART_HARDDISK_get, ART_HARDDISK_set);
42205 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FLOPPY",ART_FLOPPY_get, ART_FLOPPY_set);
42206 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CDROM",ART_CDROM_get, ART_CDROM_set);
42207 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REMOVABLE",ART_REMOVABLE_get, ART_REMOVABLE_set);
42208 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FOLDER",ART_FOLDER_get, ART_FOLDER_set);
42209 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FOLDER_OPEN",ART_FOLDER_OPEN_get, ART_FOLDER_OPEN_set);
42210 SWIG_addvarlink(SWIG_globals(),(char*)"ART_GO_DIR_UP",ART_GO_DIR_UP_get, ART_GO_DIR_UP_set);
42211 SWIG_addvarlink(SWIG_globals(),(char*)"ART_EXECUTABLE_FILE",ART_EXECUTABLE_FILE_get, ART_EXECUTABLE_FILE_set);
42212 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NORMAL_FILE",ART_NORMAL_FILE_get, ART_NORMAL_FILE_set);
42213 SWIG_addvarlink(SWIG_globals(),(char*)"ART_TICK_MARK",ART_TICK_MARK_get, ART_TICK_MARK_set);
42214 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CROSS_MARK",ART_CROSS_MARK_get, ART_CROSS_MARK_set);
42215 SWIG_addvarlink(SWIG_globals(),(char*)"ART_ERROR",ART_ERROR_get, ART_ERROR_set);
42216 SWIG_addvarlink(SWIG_globals(),(char*)"ART_QUESTION",ART_QUESTION_get, ART_QUESTION_set);
42217 SWIG_addvarlink(SWIG_globals(),(char*)"ART_WARNING",ART_WARNING_get, ART_WARNING_set);
42218 SWIG_addvarlink(SWIG_globals(),(char*)"ART_INFORMATION",ART_INFORMATION_get, ART_INFORMATION_set);
42219 SWIG_addvarlink(SWIG_globals(),(char*)"ART_MISSING_IMAGE",ART_MISSING_IMAGE_get, ART_MISSING_IMAGE_set);
42220 SWIG_addvarlink(SWIG_globals(),(char*)"ART_COPY",ART_COPY_get, ART_COPY_set);
42221 SWIG_addvarlink(SWIG_globals(),(char*)"ART_CUT",ART_CUT_get, ART_CUT_set);
42222 SWIG_addvarlink(SWIG_globals(),(char*)"ART_PASTE",ART_PASTE_get, ART_PASTE_set);
42223 SWIG_addvarlink(SWIG_globals(),(char*)"ART_DELETE",ART_DELETE_get, ART_DELETE_set);
42224 SWIG_addvarlink(SWIG_globals(),(char*)"ART_NEW",ART_NEW_get, ART_NEW_set);
42225 SWIG_addvarlink(SWIG_globals(),(char*)"ART_UNDO",ART_UNDO_get, ART_UNDO_set);
42226 SWIG_addvarlink(SWIG_globals(),(char*)"ART_REDO",ART_REDO_get, ART_REDO_set);
42227 SWIG_addvarlink(SWIG_globals(),(char*)"ART_QUIT",ART_QUIT_get, ART_QUIT_set);
42228 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FIND",ART_FIND_get, ART_FIND_set);
42229 SWIG_addvarlink(SWIG_globals(),(char*)"ART_FIND_AND_REPLACE",ART_FIND_AND_REPLACE_get, ART_FIND_AND_REPLACE_set);
42230
42231 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
42232
42233 SWIG_Python_SetConstant(d, "CONFIG_USE_LOCAL_FILE",SWIG_From_int(static_cast< int >(wxCONFIG_USE_LOCAL_FILE)));
42234 SWIG_Python_SetConstant(d, "CONFIG_USE_GLOBAL_FILE",SWIG_From_int(static_cast< int >(wxCONFIG_USE_GLOBAL_FILE)));
42235 SWIG_Python_SetConstant(d, "CONFIG_USE_RELATIVE_PATH",SWIG_From_int(static_cast< int >(wxCONFIG_USE_RELATIVE_PATH)));
42236 SWIG_Python_SetConstant(d, "CONFIG_USE_NO_ESCAPE_CHARACTERS",SWIG_From_int(static_cast< int >(wxCONFIG_USE_NO_ESCAPE_CHARACTERS)));
42237 SWIG_Python_SetConstant(d, "ConfigBase_Type_Unknown",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Unknown)));
42238 SWIG_Python_SetConstant(d, "ConfigBase_Type_String",SWIG_From_int(static_cast< int >(wxConfigBase::Type_String)));
42239 SWIG_Python_SetConstant(d, "ConfigBase_Type_Boolean",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Boolean)));
42240 SWIG_Python_SetConstant(d, "ConfigBase_Type_Integer",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Integer)));
42241 SWIG_Python_SetConstant(d, "ConfigBase_Type_Float",SWIG_From_int(static_cast< int >(wxConfigBase::Type_Float)));
42242 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultDateTimeFormat",DefaultDateTimeFormat_get, DefaultDateTimeFormat_set);
42243 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultTimeSpanFormat",DefaultTimeSpanFormat_get, DefaultTimeSpanFormat_set);
42244 SWIG_Python_SetConstant(d, "DateTime_Local",SWIG_From_int(static_cast< int >(wxDateTime::Local)));
42245 SWIG_Python_SetConstant(d, "DateTime_GMT_12",SWIG_From_int(static_cast< int >(wxDateTime::GMT_12)));
42246 SWIG_Python_SetConstant(d, "DateTime_GMT_11",SWIG_From_int(static_cast< int >(wxDateTime::GMT_11)));
42247 SWIG_Python_SetConstant(d, "DateTime_GMT_10",SWIG_From_int(static_cast< int >(wxDateTime::GMT_10)));
42248 SWIG_Python_SetConstant(d, "DateTime_GMT_9",SWIG_From_int(static_cast< int >(wxDateTime::GMT_9)));
42249 SWIG_Python_SetConstant(d, "DateTime_GMT_8",SWIG_From_int(static_cast< int >(wxDateTime::GMT_8)));
42250 SWIG_Python_SetConstant(d, "DateTime_GMT_7",SWIG_From_int(static_cast< int >(wxDateTime::GMT_7)));
42251 SWIG_Python_SetConstant(d, "DateTime_GMT_6",SWIG_From_int(static_cast< int >(wxDateTime::GMT_6)));
42252 SWIG_Python_SetConstant(d, "DateTime_GMT_5",SWIG_From_int(static_cast< int >(wxDateTime::GMT_5)));
42253 SWIG_Python_SetConstant(d, "DateTime_GMT_4",SWIG_From_int(static_cast< int >(wxDateTime::GMT_4)));
42254 SWIG_Python_SetConstant(d, "DateTime_GMT_3",SWIG_From_int(static_cast< int >(wxDateTime::GMT_3)));
42255 SWIG_Python_SetConstant(d, "DateTime_GMT_2",SWIG_From_int(static_cast< int >(wxDateTime::GMT_2)));
42256 SWIG_Python_SetConstant(d, "DateTime_GMT_1",SWIG_From_int(static_cast< int >(wxDateTime::GMT_1)));
42257 SWIG_Python_SetConstant(d, "DateTime_GMT0",SWIG_From_int(static_cast< int >(wxDateTime::GMT0)));
42258 SWIG_Python_SetConstant(d, "DateTime_GMT1",SWIG_From_int(static_cast< int >(wxDateTime::GMT1)));
42259 SWIG_Python_SetConstant(d, "DateTime_GMT2",SWIG_From_int(static_cast< int >(wxDateTime::GMT2)));
42260 SWIG_Python_SetConstant(d, "DateTime_GMT3",SWIG_From_int(static_cast< int >(wxDateTime::GMT3)));
42261 SWIG_Python_SetConstant(d, "DateTime_GMT4",SWIG_From_int(static_cast< int >(wxDateTime::GMT4)));
42262 SWIG_Python_SetConstant(d, "DateTime_GMT5",SWIG_From_int(static_cast< int >(wxDateTime::GMT5)));
42263 SWIG_Python_SetConstant(d, "DateTime_GMT6",SWIG_From_int(static_cast< int >(wxDateTime::GMT6)));
42264 SWIG_Python_SetConstant(d, "DateTime_GMT7",SWIG_From_int(static_cast< int >(wxDateTime::GMT7)));
42265 SWIG_Python_SetConstant(d, "DateTime_GMT8",SWIG_From_int(static_cast< int >(wxDateTime::GMT8)));
42266 SWIG_Python_SetConstant(d, "DateTime_GMT9",SWIG_From_int(static_cast< int >(wxDateTime::GMT9)));
42267 SWIG_Python_SetConstant(d, "DateTime_GMT10",SWIG_From_int(static_cast< int >(wxDateTime::GMT10)));
42268 SWIG_Python_SetConstant(d, "DateTime_GMT11",SWIG_From_int(static_cast< int >(wxDateTime::GMT11)));
42269 SWIG_Python_SetConstant(d, "DateTime_GMT12",SWIG_From_int(static_cast< int >(wxDateTime::GMT12)));
8f514ab4 42270 SWIG_Python_SetConstant(d, "DateTime_GMT13",SWIG_From_int(static_cast< int >(wxDateTime::GMT13)));
554f62e9
RD
42271 SWIG_Python_SetConstant(d, "DateTime_WET",SWIG_From_int(static_cast< int >(wxDateTime::WET)));
42272 SWIG_Python_SetConstant(d, "DateTime_WEST",SWIG_From_int(static_cast< int >(wxDateTime::WEST)));
42273 SWIG_Python_SetConstant(d, "DateTime_CET",SWIG_From_int(static_cast< int >(wxDateTime::CET)));
42274 SWIG_Python_SetConstant(d, "DateTime_CEST",SWIG_From_int(static_cast< int >(wxDateTime::CEST)));
42275 SWIG_Python_SetConstant(d, "DateTime_EET",SWIG_From_int(static_cast< int >(wxDateTime::EET)));
42276 SWIG_Python_SetConstant(d, "DateTime_EEST",SWIG_From_int(static_cast< int >(wxDateTime::EEST)));
42277 SWIG_Python_SetConstant(d, "DateTime_MSK",SWIG_From_int(static_cast< int >(wxDateTime::MSK)));
42278 SWIG_Python_SetConstant(d, "DateTime_MSD",SWIG_From_int(static_cast< int >(wxDateTime::MSD)));
42279 SWIG_Python_SetConstant(d, "DateTime_AST",SWIG_From_int(static_cast< int >(wxDateTime::AST)));
42280 SWIG_Python_SetConstant(d, "DateTime_ADT",SWIG_From_int(static_cast< int >(wxDateTime::ADT)));
42281 SWIG_Python_SetConstant(d, "DateTime_EST",SWIG_From_int(static_cast< int >(wxDateTime::EST)));
42282 SWIG_Python_SetConstant(d, "DateTime_EDT",SWIG_From_int(static_cast< int >(wxDateTime::EDT)));
42283 SWIG_Python_SetConstant(d, "DateTime_CST",SWIG_From_int(static_cast< int >(wxDateTime::CST)));
42284 SWIG_Python_SetConstant(d, "DateTime_CDT",SWIG_From_int(static_cast< int >(wxDateTime::CDT)));
42285 SWIG_Python_SetConstant(d, "DateTime_MST",SWIG_From_int(static_cast< int >(wxDateTime::MST)));
42286 SWIG_Python_SetConstant(d, "DateTime_MDT",SWIG_From_int(static_cast< int >(wxDateTime::MDT)));
42287 SWIG_Python_SetConstant(d, "DateTime_PST",SWIG_From_int(static_cast< int >(wxDateTime::PST)));
42288 SWIG_Python_SetConstant(d, "DateTime_PDT",SWIG_From_int(static_cast< int >(wxDateTime::PDT)));
42289 SWIG_Python_SetConstant(d, "DateTime_HST",SWIG_From_int(static_cast< int >(wxDateTime::HST)));
42290 SWIG_Python_SetConstant(d, "DateTime_AKST",SWIG_From_int(static_cast< int >(wxDateTime::AKST)));
42291 SWIG_Python_SetConstant(d, "DateTime_AKDT",SWIG_From_int(static_cast< int >(wxDateTime::AKDT)));
42292 SWIG_Python_SetConstant(d, "DateTime_A_WST",SWIG_From_int(static_cast< int >(wxDateTime::A_WST)));
42293 SWIG_Python_SetConstant(d, "DateTime_A_CST",SWIG_From_int(static_cast< int >(wxDateTime::A_CST)));
42294 SWIG_Python_SetConstant(d, "DateTime_A_EST",SWIG_From_int(static_cast< int >(wxDateTime::A_EST)));
42295 SWIG_Python_SetConstant(d, "DateTime_A_ESST",SWIG_From_int(static_cast< int >(wxDateTime::A_ESST)));
8f514ab4
RD
42296 SWIG_Python_SetConstant(d, "DateTime_NZST",SWIG_From_int(static_cast< int >(wxDateTime::NZST)));
42297 SWIG_Python_SetConstant(d, "DateTime_NZDT",SWIG_From_int(static_cast< int >(wxDateTime::NZDT)));
554f62e9
RD
42298 SWIG_Python_SetConstant(d, "DateTime_UTC",SWIG_From_int(static_cast< int >(wxDateTime::UTC)));
42299 SWIG_Python_SetConstant(d, "DateTime_Gregorian",SWIG_From_int(static_cast< int >(wxDateTime::Gregorian)));
42300 SWIG_Python_SetConstant(d, "DateTime_Julian",SWIG_From_int(static_cast< int >(wxDateTime::Julian)));
42301 SWIG_Python_SetConstant(d, "DateTime_Gr_Unknown",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Unknown)));
42302 SWIG_Python_SetConstant(d, "DateTime_Gr_Standard",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Standard)));
42303 SWIG_Python_SetConstant(d, "DateTime_Gr_Alaska",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Alaska)));
42304 SWIG_Python_SetConstant(d, "DateTime_Gr_Albania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Albania)));
42305 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria)));
42306 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Brixen",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Brixen)));
42307 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Salzburg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Salzburg)));
42308 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Tyrol",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Tyrol)));
42309 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Carinthia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Carinthia)));
42310 SWIG_Python_SetConstant(d, "DateTime_Gr_Austria_Styria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Austria_Styria)));
42311 SWIG_Python_SetConstant(d, "DateTime_Gr_Belgium",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Belgium)));
42312 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria)));
42313 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_1)));
42314 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_2)));
42315 SWIG_Python_SetConstant(d, "DateTime_Gr_Bulgaria_3",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Bulgaria_3)));
42316 SWIG_Python_SetConstant(d, "DateTime_Gr_Canada",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Canada)));
42317 SWIG_Python_SetConstant(d, "DateTime_Gr_China",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China)));
42318 SWIG_Python_SetConstant(d, "DateTime_Gr_China_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China_1)));
42319 SWIG_Python_SetConstant(d, "DateTime_Gr_China_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_China_2)));
42320 SWIG_Python_SetConstant(d, "DateTime_Gr_Czechoslovakia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Czechoslovakia)));
42321 SWIG_Python_SetConstant(d, "DateTime_Gr_Denmark",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Denmark)));
42322 SWIG_Python_SetConstant(d, "DateTime_Gr_Egypt",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Egypt)));
42323 SWIG_Python_SetConstant(d, "DateTime_Gr_Estonia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Estonia)));
42324 SWIG_Python_SetConstant(d, "DateTime_Gr_Finland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Finland)));
42325 SWIG_Python_SetConstant(d, "DateTime_Gr_France",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France)));
42326 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Alsace",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Alsace)));
42327 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Lorraine",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Lorraine)));
42328 SWIG_Python_SetConstant(d, "DateTime_Gr_France_Strasbourg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_France_Strasbourg)));
42329 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany)));
42330 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Catholic",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Catholic)));
42331 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Prussia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Prussia)));
42332 SWIG_Python_SetConstant(d, "DateTime_Gr_Germany_Protestant",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Germany_Protestant)));
42333 SWIG_Python_SetConstant(d, "DateTime_Gr_GreatBritain",SWIG_From_int(static_cast< int >(wxDateTime::Gr_GreatBritain)));
42334 SWIG_Python_SetConstant(d, "DateTime_Gr_Greece",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Greece)));
42335 SWIG_Python_SetConstant(d, "DateTime_Gr_Hungary",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Hungary)));
42336 SWIG_Python_SetConstant(d, "DateTime_Gr_Ireland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Ireland)));
42337 SWIG_Python_SetConstant(d, "DateTime_Gr_Italy",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Italy)));
42338 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan)));
42339 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_1",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_1)));
42340 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_2",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_2)));
42341 SWIG_Python_SetConstant(d, "DateTime_Gr_Japan_3",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Japan_3)));
42342 SWIG_Python_SetConstant(d, "DateTime_Gr_Latvia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Latvia)));
42343 SWIG_Python_SetConstant(d, "DateTime_Gr_Lithuania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Lithuania)));
42344 SWIG_Python_SetConstant(d, "DateTime_Gr_Luxemburg",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Luxemburg)));
42345 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands)));
42346 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Groningen",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Groningen)));
42347 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Gelderland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Gelderland)));
42348 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Utrecht",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Utrecht)));
42349 SWIG_Python_SetConstant(d, "DateTime_Gr_Netherlands_Friesland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Netherlands_Friesland)));
42350 SWIG_Python_SetConstant(d, "DateTime_Gr_Norway",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Norway)));
42351 SWIG_Python_SetConstant(d, "DateTime_Gr_Poland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Poland)));
42352 SWIG_Python_SetConstant(d, "DateTime_Gr_Portugal",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Portugal)));
42353 SWIG_Python_SetConstant(d, "DateTime_Gr_Romania",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Romania)));
42354 SWIG_Python_SetConstant(d, "DateTime_Gr_Russia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Russia)));
42355 SWIG_Python_SetConstant(d, "DateTime_Gr_Scotland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Scotland)));
42356 SWIG_Python_SetConstant(d, "DateTime_Gr_Spain",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Spain)));
42357 SWIG_Python_SetConstant(d, "DateTime_Gr_Sweden",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Sweden)));
42358 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland)));
42359 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland_Catholic",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland_Catholic)));
42360 SWIG_Python_SetConstant(d, "DateTime_Gr_Switzerland_Protestant",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Switzerland_Protestant)));
42361 SWIG_Python_SetConstant(d, "DateTime_Gr_Turkey",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Turkey)));
42362 SWIG_Python_SetConstant(d, "DateTime_Gr_USA",SWIG_From_int(static_cast< int >(wxDateTime::Gr_USA)));
42363 SWIG_Python_SetConstant(d, "DateTime_Gr_Wales",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Wales)));
42364 SWIG_Python_SetConstant(d, "DateTime_Gr_Yugoslavia",SWIG_From_int(static_cast< int >(wxDateTime::Gr_Yugoslavia)));
42365 SWIG_Python_SetConstant(d, "DateTime_Country_Unknown",SWIG_From_int(static_cast< int >(wxDateTime::Country_Unknown)));
42366 SWIG_Python_SetConstant(d, "DateTime_Country_Default",SWIG_From_int(static_cast< int >(wxDateTime::Country_Default)));
42367 SWIG_Python_SetConstant(d, "DateTime_Country_WesternEurope_Start",SWIG_From_int(static_cast< int >(wxDateTime::Country_WesternEurope_Start)));
42368 SWIG_Python_SetConstant(d, "DateTime_Country_EEC",SWIG_From_int(static_cast< int >(wxDateTime::Country_EEC)));
42369 SWIG_Python_SetConstant(d, "DateTime_France",SWIG_From_int(static_cast< int >(wxDateTime::France)));
42370 SWIG_Python_SetConstant(d, "DateTime_Germany",SWIG_From_int(static_cast< int >(wxDateTime::Germany)));
42371 SWIG_Python_SetConstant(d, "DateTime_UK",SWIG_From_int(static_cast< int >(wxDateTime::UK)));
42372 SWIG_Python_SetConstant(d, "DateTime_Country_WesternEurope_End",SWIG_From_int(static_cast< int >(wxDateTime::Country_WesternEurope_End)));
42373 SWIG_Python_SetConstant(d, "DateTime_Russia",SWIG_From_int(static_cast< int >(wxDateTime::Russia)));
42374 SWIG_Python_SetConstant(d, "DateTime_USA",SWIG_From_int(static_cast< int >(wxDateTime::USA)));
42375 SWIG_Python_SetConstant(d, "DateTime_Jan",SWIG_From_int(static_cast< int >(wxDateTime::Jan)));
42376 SWIG_Python_SetConstant(d, "DateTime_Feb",SWIG_From_int(static_cast< int >(wxDateTime::Feb)));
42377 SWIG_Python_SetConstant(d, "DateTime_Mar",SWIG_From_int(static_cast< int >(wxDateTime::Mar)));
42378 SWIG_Python_SetConstant(d, "DateTime_Apr",SWIG_From_int(static_cast< int >(wxDateTime::Apr)));
42379 SWIG_Python_SetConstant(d, "DateTime_May",SWIG_From_int(static_cast< int >(wxDateTime::May)));
42380 SWIG_Python_SetConstant(d, "DateTime_Jun",SWIG_From_int(static_cast< int >(wxDateTime::Jun)));
42381 SWIG_Python_SetConstant(d, "DateTime_Jul",SWIG_From_int(static_cast< int >(wxDateTime::Jul)));
42382 SWIG_Python_SetConstant(d, "DateTime_Aug",SWIG_From_int(static_cast< int >(wxDateTime::Aug)));
42383 SWIG_Python_SetConstant(d, "DateTime_Sep",SWIG_From_int(static_cast< int >(wxDateTime::Sep)));
42384 SWIG_Python_SetConstant(d, "DateTime_Oct",SWIG_From_int(static_cast< int >(wxDateTime::Oct)));
42385 SWIG_Python_SetConstant(d, "DateTime_Nov",SWIG_From_int(static_cast< int >(wxDateTime::Nov)));
42386 SWIG_Python_SetConstant(d, "DateTime_Dec",SWIG_From_int(static_cast< int >(wxDateTime::Dec)));
42387 SWIG_Python_SetConstant(d, "DateTime_Inv_Month",SWIG_From_int(static_cast< int >(wxDateTime::Inv_Month)));
42388 SWIG_Python_SetConstant(d, "DateTime_Sun",SWIG_From_int(static_cast< int >(wxDateTime::Sun)));
42389 SWIG_Python_SetConstant(d, "DateTime_Mon",SWIG_From_int(static_cast< int >(wxDateTime::Mon)));
42390 SWIG_Python_SetConstant(d, "DateTime_Tue",SWIG_From_int(static_cast< int >(wxDateTime::Tue)));
42391 SWIG_Python_SetConstant(d, "DateTime_Wed",SWIG_From_int(static_cast< int >(wxDateTime::Wed)));
42392 SWIG_Python_SetConstant(d, "DateTime_Thu",SWIG_From_int(static_cast< int >(wxDateTime::Thu)));
42393 SWIG_Python_SetConstant(d, "DateTime_Fri",SWIG_From_int(static_cast< int >(wxDateTime::Fri)));
42394 SWIG_Python_SetConstant(d, "DateTime_Sat",SWIG_From_int(static_cast< int >(wxDateTime::Sat)));
42395 SWIG_Python_SetConstant(d, "DateTime_Inv_WeekDay",SWIG_From_int(static_cast< int >(wxDateTime::Inv_WeekDay)));
42396 SWIG_Python_SetConstant(d, "DateTime_Inv_Year",SWIG_From_int(static_cast< int >(wxDateTime::Inv_Year)));
42397 SWIG_Python_SetConstant(d, "DateTime_Name_Full",SWIG_From_int(static_cast< int >(wxDateTime::Name_Full)));
42398 SWIG_Python_SetConstant(d, "DateTime_Name_Abbr",SWIG_From_int(static_cast< int >(wxDateTime::Name_Abbr)));
42399 SWIG_Python_SetConstant(d, "DateTime_Default_First",SWIG_From_int(static_cast< int >(wxDateTime::Default_First)));
42400 SWIG_Python_SetConstant(d, "DateTime_Monday_First",SWIG_From_int(static_cast< int >(wxDateTime::Monday_First)));
42401 SWIG_Python_SetConstant(d, "DateTime_Sunday_First",SWIG_From_int(static_cast< int >(wxDateTime::Sunday_First)));
42402 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultDateTime",DefaultDateTime_get, DefaultDateTime_set);
42403 SWIG_Python_SetConstant(d, "DF_INVALID",SWIG_From_int(static_cast< int >(wxDF_INVALID)));
42404 SWIG_Python_SetConstant(d, "DF_TEXT",SWIG_From_int(static_cast< int >(wxDF_TEXT)));
42405 SWIG_Python_SetConstant(d, "DF_BITMAP",SWIG_From_int(static_cast< int >(wxDF_BITMAP)));
42406 SWIG_Python_SetConstant(d, "DF_METAFILE",SWIG_From_int(static_cast< int >(wxDF_METAFILE)));
42407 SWIG_Python_SetConstant(d, "DF_SYLK",SWIG_From_int(static_cast< int >(wxDF_SYLK)));
42408 SWIG_Python_SetConstant(d, "DF_DIF",SWIG_From_int(static_cast< int >(wxDF_DIF)));
42409 SWIG_Python_SetConstant(d, "DF_TIFF",SWIG_From_int(static_cast< int >(wxDF_TIFF)));
42410 SWIG_Python_SetConstant(d, "DF_OEMTEXT",SWIG_From_int(static_cast< int >(wxDF_OEMTEXT)));
42411 SWIG_Python_SetConstant(d, "DF_DIB",SWIG_From_int(static_cast< int >(wxDF_DIB)));
42412 SWIG_Python_SetConstant(d, "DF_PALETTE",SWIG_From_int(static_cast< int >(wxDF_PALETTE)));
42413 SWIG_Python_SetConstant(d, "DF_PENDATA",SWIG_From_int(static_cast< int >(wxDF_PENDATA)));
42414 SWIG_Python_SetConstant(d, "DF_RIFF",SWIG_From_int(static_cast< int >(wxDF_RIFF)));
42415 SWIG_Python_SetConstant(d, "DF_WAVE",SWIG_From_int(static_cast< int >(wxDF_WAVE)));
42416 SWIG_Python_SetConstant(d, "DF_UNICODETEXT",SWIG_From_int(static_cast< int >(wxDF_UNICODETEXT)));
42417 SWIG_Python_SetConstant(d, "DF_ENHMETAFILE",SWIG_From_int(static_cast< int >(wxDF_ENHMETAFILE)));
42418 SWIG_Python_SetConstant(d, "DF_FILENAME",SWIG_From_int(static_cast< int >(wxDF_FILENAME)));
42419 SWIG_Python_SetConstant(d, "DF_LOCALE",SWIG_From_int(static_cast< int >(wxDF_LOCALE)));
42420 SWIG_Python_SetConstant(d, "DF_PRIVATE",SWIG_From_int(static_cast< int >(wxDF_PRIVATE)));
42421 SWIG_Python_SetConstant(d, "DF_HTML",SWIG_From_int(static_cast< int >(wxDF_HTML)));
42422 SWIG_Python_SetConstant(d, "DF_MAX",SWIG_From_int(static_cast< int >(wxDF_MAX)));
42423 SWIG_addvarlink(SWIG_globals(),(char*)"FormatInvalid",FormatInvalid_get, FormatInvalid_set);
42424 SWIG_Python_SetConstant(d, "DataObject_Get",SWIG_From_int(static_cast< int >(wxDataObject::Get)));
42425 SWIG_Python_SetConstant(d, "DataObject_Set",SWIG_From_int(static_cast< int >(wxDataObject::Set)));
42426 SWIG_Python_SetConstant(d, "DataObject_Both",SWIG_From_int(static_cast< int >(wxDataObject::Both)));
42427 SWIG_Python_SetConstant(d, "Drag_CopyOnly",SWIG_From_int(static_cast< int >(wxDrag_CopyOnly)));
42428 SWIG_Python_SetConstant(d, "Drag_AllowMove",SWIG_From_int(static_cast< int >(wxDrag_AllowMove)));
42429 SWIG_Python_SetConstant(d, "Drag_DefaultMove",SWIG_From_int(static_cast< int >(wxDrag_DefaultMove)));
42430 SWIG_Python_SetConstant(d, "DragError",SWIG_From_int(static_cast< int >(wxDragError)));
42431 SWIG_Python_SetConstant(d, "DragNone",SWIG_From_int(static_cast< int >(wxDragNone)));
42432 SWIG_Python_SetConstant(d, "DragCopy",SWIG_From_int(static_cast< int >(wxDragCopy)));
42433 SWIG_Python_SetConstant(d, "DragMove",SWIG_From_int(static_cast< int >(wxDragMove)));
42434 SWIG_Python_SetConstant(d, "DragLink",SWIG_From_int(static_cast< int >(wxDragLink)));
42435 SWIG_Python_SetConstant(d, "DragCancel",SWIG_From_int(static_cast< int >(wxDragCancel)));
42436
42437 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
42438 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
42439 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
42440 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
42441
42442 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultVideoMode",DefaultVideoMode_get, DefaultVideoMode_set);
e9d6f3a4
RD
42443 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_None",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_None)));
42444 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_Messages",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_Messages)));
42445 SWIG_Python_SetConstant(d, "StandardPaths_ResourceCat_Max",SWIG_From_int(static_cast< int >(wxStandardPaths::ResourceCat_Max)));
704eda0c
RD
42446 SWIG_Python_SetConstant(d, "POWER_SOCKET",SWIG_From_int(static_cast< int >(wxPOWER_SOCKET)));
42447 SWIG_Python_SetConstant(d, "POWER_BATTERY",SWIG_From_int(static_cast< int >(wxPOWER_BATTERY)));
42448 SWIG_Python_SetConstant(d, "POWER_UNKNOWN",SWIG_From_int(static_cast< int >(wxPOWER_UNKNOWN)));
42449 SWIG_Python_SetConstant(d, "BATTERY_NORMAL_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_NORMAL_STATE)));
42450 SWIG_Python_SetConstant(d, "BATTERY_LOW_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_LOW_STATE)));
42451 SWIG_Python_SetConstant(d, "BATTERY_CRITICAL_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_CRITICAL_STATE)));
42452 SWIG_Python_SetConstant(d, "BATTERY_SHUTDOWN_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_SHUTDOWN_STATE)));
42453 SWIG_Python_SetConstant(d, "BATTERY_UNKNOWN_STATE",SWIG_From_int(static_cast< int >(wxBATTERY_UNKNOWN_STATE)));
42454 PyDict_SetItemString(d, "wxEVT_POWER_SUSPENDING", PyInt_FromLong(wxEVT_POWER_SUSPENDING));
42455 PyDict_SetItemString(d, "wxEVT_POWER_SUSPENDED", PyInt_FromLong(wxEVT_POWER_SUSPENDED));
42456 PyDict_SetItemString(d, "wxEVT_POWER_SUSPEND_CANCEL", PyInt_FromLong(wxEVT_POWER_SUSPEND_CANCEL));
42457 PyDict_SetItemString(d, "wxEVT_POWER_RESUME", PyInt_FromLong(wxEVT_POWER_RESUME));
d55e5bfc
RD
42458}
42459