]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_misc_wrap.cpp
Some change notes
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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
12#define SWIG_NOINCLUDE
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);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
c32bde28 46#define SWIG_TypePrettyName SWIG_Python_TypePrettyName
d55e5bfc
RD
47#define SWIG_TypeQuery SWIG_Python_TypeQuery
48#define SWIG_TypeClientData SWIG_Python_TypeClientData
49#define SWIG_PackData SWIG_Python_PackData
50#define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53/***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63#include <string.h>
64
65#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66# if defined(_MSC_VER) || defined(__GNUC__)
67# if defined(STATIC_LINKED)
68# define SWIGEXPORT(a) a
69# define SWIGIMPORT(a) extern a
70# else
71# define SWIGEXPORT(a) __declspec(dllexport) a
72# define SWIGIMPORT(a) extern a
73# endif
74# else
75# if defined(__BORLANDC__)
76# define SWIGEXPORT(a) a _export
77# define SWIGIMPORT(a) a _export
78# else
79# define SWIGEXPORT(a) a
80# define SWIGIMPORT(a) a
81# endif
82# endif
83#else
84# define SWIGEXPORT(a) a
85# define SWIGIMPORT(a) a
86#endif
87
88#ifdef SWIG_GLOBAL
89# define SWIGRUNTIME(a) SWIGEXPORT(a)
90#else
91# define SWIGRUNTIME(a) static a
92#endif
93
94#ifdef __cplusplus
95extern "C" {
96#endif
97
98typedef void *(*swig_converter_func)(void *);
99typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109} swig_type_info;
110
111
112SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
c32bde28 117SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
d55e5bfc
RD
118SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124#ifdef __cplusplus
125}
126#endif
127
c32bde28 128
d55e5bfc
RD
129/***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
d55e5bfc
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199/* Contract support */
200
201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203#ifdef __cplusplus
204}
205#endif
206
207
c32bde28 208
d55e5bfc
RD
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxLogChain swig_types[0]
212#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
213#define SWIGTYPE_p_wxMetafile swig_types[2]
214#define SWIGTYPE_p_wxFileHistory swig_types[3]
215#define SWIGTYPE_p_wxLog swig_types[4]
216#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
217#define SWIGTYPE_p_wxMenu swig_types[6]
218#define SWIGTYPE_p_wxEvent swig_types[7]
219#define SWIGTYPE_p_wxConfigBase swig_types[8]
220#define SWIGTYPE_p_wxDisplay swig_types[9]
221#define SWIGTYPE_p_wxFileType swig_types[10]
222#define SWIGTYPE_p_wxLogGui swig_types[11]
223#define SWIGTYPE_p_wxFont swig_types[12]
224#define SWIGTYPE_p_wxDataFormat swig_types[13]
225#define SWIGTYPE_p_wxTimerEvent swig_types[14]
226#define SWIGTYPE_p_wxCaret swig_types[15]
227#define SWIGTYPE_p_int swig_types[16]
228#define SWIGTYPE_p_wxSize swig_types[17]
229#define SWIGTYPE_p_wxClipboard swig_types[18]
230#define SWIGTYPE_p_wxStopWatch swig_types[19]
231#define SWIGTYPE_p_wxDC swig_types[20]
232#define SWIGTYPE_p_wxClipboardLocker swig_types[21]
233#define SWIGTYPE_p_wxIcon swig_types[22]
234#define SWIGTYPE_p_wxLogStderr swig_types[23]
235#define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
236#define SWIGTYPE_p_wxTextCtrl swig_types[25]
237#define SWIGTYPE_p_wxBusyCursor swig_types[26]
b1f29bf7
RD
238#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
239#define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
240#define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
241#define SWIGTYPE_p_wxTextDataObject swig_types[30]
242#define SWIGTYPE_p_wxDataObject swig_types[31]
d55e5bfc
RD
243#define SWIGTYPE_p_wxFileDataObject swig_types[32]
244#define SWIGTYPE_p_wxCustomDataObject swig_types[33]
245#define SWIGTYPE_p_wxURLDataObject swig_types[34]
246#define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
247#define SWIGTYPE_p_wxSound swig_types[36]
248#define SWIGTYPE_p_wxTimerRunner swig_types[37]
249#define SWIGTYPE_p_wxLogWindow swig_types[38]
250#define SWIGTYPE_p_wxTimeSpan swig_types[39]
251#define SWIGTYPE_p_wxArrayString swig_types[40]
252#define SWIGTYPE_p_wxWindowDisabler swig_types[41]
253#define SWIGTYPE_p_wxToolTip swig_types[42]
254#define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
255#define SWIGTYPE_p_wxFileConfig swig_types[44]
256#define SWIGTYPE_p_wxSystemSettings swig_types[45]
257#define SWIGTYPE_p_wxVideoMode swig_types[46]
258#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
259#define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
260#define SWIGTYPE_p_wxEvtHandler swig_types[49]
261#define SWIGTYPE_p_wxRect swig_types[50]
262#define SWIGTYPE_p_char swig_types[51]
263#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
264#define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
265#define SWIGTYPE_p_wxFrame swig_types[54]
266#define SWIGTYPE_p_wxTimer swig_types[55]
267#define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
268#define SWIGTYPE_p_wxPyArtProvider swig_types[57]
269#define SWIGTYPE_p_wxPyTipProvider swig_types[58]
270#define SWIGTYPE_p_wxTipProvider swig_types[59]
271#define SWIGTYPE_p_wxJoystick swig_types[60]
272#define SWIGTYPE_p_wxSystemOptions swig_types[61]
273#define SWIGTYPE_p_wxPoint swig_types[62]
274#define SWIGTYPE_p_wxJoystickEvent swig_types[63]
275#define SWIGTYPE_p_wxCursor swig_types[64]
276#define SWIGTYPE_p_wxObject swig_types[65]
277#define SWIGTYPE_p_wxOutputStream swig_types[66]
278#define SWIGTYPE_p_wxDateTime swig_types[67]
279#define SWIGTYPE_p_wxPyDropSource swig_types[68]
280#define SWIGTYPE_p_wxWindow swig_types[69]
281#define SWIGTYPE_p_wxString swig_types[70]
282#define SWIGTYPE_p_wxPyProcess swig_types[71]
283#define SWIGTYPE_p_wxBitmap swig_types[72]
284#define SWIGTYPE_p_wxConfig swig_types[73]
285#define SWIGTYPE_p_wxChar swig_types[74]
286#define SWIGTYPE_p_wxBusyInfo swig_types[75]
287#define SWIGTYPE_p_wxPyDropTarget swig_types[76]
288#define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
289#define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
290#define SWIGTYPE_p_wxProcessEvent swig_types[79]
291#define SWIGTYPE_p_wxPyLog swig_types[80]
292#define SWIGTYPE_p_wxLogNull swig_types[81]
293#define SWIGTYPE_p_wxColour swig_types[82]
b1f29bf7
RD
294#define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
295#define SWIGTYPE_p_wxPyTimer swig_types[84]
296#define SWIGTYPE_p_wxDateSpan swig_types[85]
297static swig_type_info *swig_types[87];
d55e5bfc
RD
298
299/* -------- TYPES TABLE (END) -------- */
300
301
302/*-----------------------------------------------
303 @(target):= _misc_.so
304 ------------------------------------------------*/
305#define SWIG_init init_misc_
306
307#define SWIG_name "_misc_"
308
c32bde28
RD
309/* Auxiliar swig macros that appear in the header */
310
311#define SWIG_OLDOBJ 1
312#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
313#define SWIG_PYSTR SWIG_NEWOBJ + 1
d55e5bfc
RD
314
315#ifdef __cplusplus
316#define SWIGSTATICINLINE(a) static inline a
317#define SWIGSTATIC(a) static a
c32bde28
RD
318#define swig_new_array(size,Type) (new Type[(size)])
319#define swig_delete(cptr) delete cptr
d55e5bfc 320#define swig_delete_array(cptr) delete[] cptr
c32bde28
RD
321#define swig_const_cast(a,Type) const_cast<Type >(a)
322#define swig_static_cast(a,Type) static_cast<Type >(a)
323#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
324#define swig_new_copy(ptr,Type) (new Type(*ptr))
325#define swig_numeric_cast(a,Type) static_cast<Type >(a)
d55e5bfc
RD
326
327#else /* C case */
328
329#define SWIGSTATICINLINE(a) static a
330#define SWIGSTATIC(a) static a
c32bde28
RD
331#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
332#define swig_delete(cptr) free((char*)cptr)
d55e5bfc 333#define swig_delete_array(cptr) free((char*)cptr)
c32bde28
RD
334#define swig_const_cast(a,Type) (Type)(a)
335#define swig_static_cast(a,Type) (Type)(a)
336#define swig_reinterpret_cast(a,Type) (Type)(a)
337#define swig_numeric_cast(a,Type) (Type)(a)
338#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
d55e5bfc
RD
339
340#endif /* __cplusplus */
341
342
c32bde28
RD
343/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
344#define SWIG_From_signed_SS_char PyInt_FromLong
345/*@@*/
346/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
347#define SWIG_From_unsigned_SS_char PyInt_FromLong
348/*@@*/
349/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
350#define SWIG_From_short PyInt_FromLong
351/*@@*/
352/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
353#define SWIG_From_unsigned_SS_short PyInt_FromLong
354/*@@*/
355/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
356#define SWIG_From_int PyInt_FromLong
357/*@@*/
358/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
359#define SWIG_From_long PyInt_FromLong
360/*@@*/
361/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
362#define SWIG_From_float PyFloat_FromDouble
363/*@@*/
364/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
365#define SWIG_From_double PyFloat_FromDouble
366/*@@*/
d55e5bfc
RD
367
368
369#include "wx/wxPython/wxPython.h"
370#include "wx/wxPython/pyclasses.h"
0439c23b 371#include "wx/wxPython/pyistream.h"
d55e5bfc
RD
372
373 static const wxString wxPyEmptyString(wxEmptyString);
374
375
376
377#include <limits.h>
378
379
c32bde28
RD
380SWIGSTATICINLINE(int)
381 SWIG_CheckLongInRange(long value, long min_value, long max_value,
382 const char *errmsg)
d55e5bfc 383{
c32bde28
RD
384 if (value < min_value) {
385 if (errmsg) {
386 PyErr_Format(PyExc_OverflowError,
387 "value %ld is less than '%s' minimum %ld",
388 value, errmsg, min_value);
389 }
390 return 0;
391 } else if (value > max_value) {
392 if (errmsg) {
393 PyErr_Format(PyExc_OverflowError,
394 "value %ld is greater than '%s' maximum %ld",
395 value, errmsg, max_value);
d55e5bfc 396 }
c32bde28 397 return 0;
d55e5bfc 398 }
c32bde28 399 return 1;
d55e5bfc
RD
400}
401
402
c32bde28
RD
403// See my_fragments.i
404SWIGSTATICINLINE(int)
405SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 406{
c32bde28
RD
407 if (PyNumber_Check(obj)) {
408 if (val) *val = PyInt_AsLong(obj);
409 return 1;
410 }
d55e5bfc
RD
411 else {
412 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
413 obj->ob_type->tp_name);
414 PyErr_SetObject(PyExc_TypeError, errmsg);
415 Py_DECREF(errmsg);
d55e5bfc 416 }
c32bde28 417 return 0;
d55e5bfc
RD
418}
419
420
421#if INT_MAX != LONG_MAX
422SWIGSTATICINLINE(int)
c32bde28 423 SWIG_AsVal_int(PyObject *obj, int *val)
d55e5bfc 424{
c32bde28
RD
425 const char* errmsg = val ? "int" : 0;
426 long v;
427 if (SWIG_AsVal_long(obj, &v)) {
428 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
429 if (val) *val = swig_numeric_cast(v, int);
430 return 1;
431 } else {
432 return 0;
433 }
434 } else {
435 PyErr_Clear();
436 }
437 if (val) {
438 PyErr_SetString(PyExc_TypeError, "an int is expected");
439 }
440 return 0;
d55e5bfc
RD
441}
442#else
c32bde28
RD
443SWIGSTATICINLINE(int)
444 SWIG_AsVal_int(PyObject *obj, int *val)
445{
446 return SWIG_AsVal_long(obj,(long*)val);
447}
d55e5bfc
RD
448#endif
449
450
451SWIGSTATICINLINE(int)
c32bde28 452SWIG_As_int(PyObject* obj)
d55e5bfc 453{
c32bde28
RD
454 int v;
455 if (!SWIG_AsVal_int(obj, &v)) {
456 /*
457 this is needed to make valgrind/purify happier. the other
458 solution is throw an exception, but since this code should work
459 with plain C ....
460 */
461 memset((void*)&v, 0, sizeof(int));
d55e5bfc 462 }
c32bde28
RD
463 return v;
464}
465
466
467SWIGSTATICINLINE(int)
468SWIG_Check_int(PyObject* obj)
469{
470 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
471}
472
d1f3a348
RD
473
474#include <wx/stockitem.h>
475
d55e5bfc
RD
476 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
477 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
478 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
479
c32bde28
RD
480SWIGSTATICINLINE(long)
481SWIG_As_long(PyObject* obj)
482{
483 long v;
484 if (!SWIG_AsVal_long(obj, &v)) {
485 /*
486 this is needed to make valgrind/purify happier. the other
487 solution is throw an exception, but since this code should work
488 with plain C ....
489 */
490 memset((void*)&v, 0, sizeof(long));
491 }
492 return v;
493}
494
495
d55e5bfc 496SWIGSTATICINLINE(int)
c32bde28 497SWIG_Check_long(PyObject* obj)
d55e5bfc 498{
c32bde28
RD
499 return SWIG_AsVal_long(obj, (long*)0);
500}
501
502
503SWIGSTATICINLINE(int)
504 SWIG_AsVal_bool(PyObject *obj, bool *val)
505{
506 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
507 if (obj == Py_True) {
508 if (val) *val = true;
509 return 1;
510 }
511 if (obj == Py_False) {
512 if (val) *val = false;
d55e5bfc
RD
513 return 1;
514 }
c32bde28
RD
515 int res = 0;
516 if (SWIG_AsVal_int(obj, &res)) {
517 if (val) *val = (bool)res;
518 return 1;
519 }
520 if (val) {
521 PyErr_SetString(PyExc_TypeError, "a bool is expected");
522 }
523 return 0;
d55e5bfc
RD
524}
525
526
527SWIGSTATICINLINE(bool)
c32bde28 528SWIG_As_bool(PyObject* obj)
d55e5bfc 529{
c32bde28
RD
530 bool v;
531 if (!SWIG_AsVal_bool(obj, &v)) {
532 /*
533 this is needed to make valgrind/purify happier. the other
534 solution is throw an exception, but since this code should work
535 with plain C ....
536 */
537 memset((void*)&v, 0, sizeof(bool));
538 }
539 return v;
d55e5bfc
RD
540}
541
c32bde28 542
d55e5bfc 543SWIGSTATICINLINE(int)
c32bde28 544SWIG_Check_bool(PyObject* obj)
d55e5bfc 545{
c32bde28 546 return SWIG_AsVal_bool(obj, (bool*)0);
d55e5bfc
RD
547}
548
549
c32bde28 550 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
d55e5bfc
RD
551 PyObject* o2;
552 PyObject* o3;
c32bde28 553
d55e5bfc
RD
554 if (!target) {
555 target = o;
556 } else if (target == Py_None) {
557 Py_DECREF(Py_None);
558 target = o;
559 } else {
c32bde28
RD
560 o2 = target;
561 target = PyTuple_New(1);
562 PyTuple_SetItem(target, 0, o2);
563
d55e5bfc
RD
564 o3 = PyTuple_New(1);
565 PyTuple_SetItem(o3, 0, o);
566
567 o2 = target;
568 target = PySequence_Concat(o2, o3);
569 Py_DECREF(o2);
570 Py_DECREF(o3);
571 }
572 return target;
573}
574
575
c32bde28
RD
576
577// See my_fragments.i
578SWIGSTATICINLINE(int)
579SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
d55e5bfc 580{
c32bde28
RD
581 long v = 0;
582 if (SWIG_AsVal_long(obj, &v) && v < 0) {
583 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
584 return 0;
d55e5bfc 585 }
c32bde28
RD
586 else if (val)
587 *val = (unsigned long)v;
588 return 1;
d55e5bfc
RD
589}
590
591
c32bde28
RD
592SWIGSTATICINLINE(unsigned long)
593SWIG_As_unsigned_SS_long(PyObject* obj)
d55e5bfc 594{
c32bde28
RD
595 unsigned long v;
596 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
597 /*
598 this is needed to make valgrind/purify happier. the other
599 solution is throw an exception, but since this code should work
600 with plain C ....
601 */
602 memset((void*)&v, 0, sizeof(unsigned long));
d55e5bfc 603 }
c32bde28
RD
604 return v;
605}
606
607
608SWIGSTATICINLINE(int)
609SWIG_Check_unsigned_SS_long(PyObject* obj)
610{
611 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
d55e5bfc
RD
612}
613
614
615SWIGSTATICINLINE(PyObject* )
c32bde28 616 SWIG_From_unsigned_SS_long(unsigned long value)
d55e5bfc
RD
617{
618 return (value > LONG_MAX) ?
619 PyLong_FromUnsignedLong(value)
c32bde28 620 : PyInt_FromLong(swig_numeric_cast(value,long));
d55e5bfc
RD
621}
622
623
624 bool wxThread_IsMain() {
625#ifdef WXP_WITH_THREAD
626 return wxThread::IsMain();
627#else
628 return True;
629#endif
630 }
631
632
633 int wxCaret_GetBlinkTime() {
634 return wxCaret::GetBlinkTime();
635 }
636
637 void wxCaret_SetBlinkTime(int milliseconds) {
638 wxCaret::SetBlinkTime(milliseconds);
639 }
640
641
642#include <wx/snglinst.h>
643
644
645#ifdef __WXMSW__
646#include <wx/msw/private.h>
647#include <wx/dynload.h>
648#endif
649
650
651
652void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
653{
654#ifdef __WXMSW__
655
656 switch (method)
657 {
658 case 1:
659 // This one only partially works. Appears to be an undocumented
660 // "standard" convention that not all widgets adhear to. For
661 // example, for some widgets backgrounds or non-client areas may
662 // not be painted.
663 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
664 break;
665
666 case 2:
667 // This one works much better, except for on XP. On Win2k nearly
668 // all widgets and their children are captured correctly[**]. On
669 // XP with Themes activated most native widgets draw only
670 // partially, if at all. Without themes it works just like on
671 // Win2k.
672 //
673 // ** For example the radio buttons in a wxRadioBox are not its
674 // children by default, but you can capture it via the panel
675 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
676 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
677 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
678 PRF_ERASEBKGND | PRF_OWNED );
679 break;
680
681 case 3:
682 // This one is only defined in the latest SDK and is only
683 // available on XP. MSDN says it is similar to sending WM_PRINT
684 // so I expect that it will work similar to the above. Since it
685 // is avaialble only on XP, it can't be compiled like this and
686 // will have to be loaded dynamically.
687 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
688
689 // fall through
690
691 case 4:
692 // Use PrintWindow if available, or fallback to WM_PRINT
693 // otherwise. Unfortunately using PrintWindow is even worse than
694 // WM_PRINT. For most native widgets nothing is drawn to the dc
695 // at all, with or without Themes.
696 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
697 static bool s_triedToLoad = False;
698 static PrintWindow_t pfnPrintWindow = NULL;
699 if ( !s_triedToLoad )
700 {
701
702 s_triedToLoad = True;
703 wxDynamicLibrary dllUser32(_T("user32.dll"));
704 if ( dllUser32.IsLoaded() )
705 {
706 wxLogNull nolog; // Don't report errors here
707 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
708 }
709 }
710 if (pfnPrintWindow)
711 {
712 printf("Using PrintWindow\n");
713 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
714 }
715 else
716 {
717 printf("Using WM_PRINT\n");
718 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
719 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
720 }
721 }
722#endif
723}
724
725
726
727#include <wx/tipdlg.h>
728
729
730class wxPyTipProvider : public wxTipProvider {
731public:
732 wxPyTipProvider(size_t currentTip)
733 : wxTipProvider(currentTip) {}
734
735 DEC_PYCALLBACK_STRING__pure(GetTip);
736 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
737 PYPRIVATE;
738};
739
740IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
741IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
742
743
744//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
745
1a6bba1e
RD
746IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
747
d55e5bfc
RD
748void wxPyTimer::Notify() {
749 bool found;
750 bool blocked = wxPyBeginBlockThreads();
751 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
752 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
753 wxPyEndBlockThreads(blocked);
754 if (! found)
755 wxTimer::Notify();
756}
757void wxPyTimer::base_Notify() {
758 wxTimer::Notify();
759}
760
761
762
763SWIGSTATICINLINE(PyObject *)
764SWIG_FromCharPtr(const char* cptr)
765{
d55e5bfc 766 if (cptr) {
c32bde28 767 size_t size = strlen(cptr);
d55e5bfc 768 if (size > INT_MAX) {
c32bde28 769 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
d55e5bfc
RD
770 SWIG_TypeQuery("char *"), 0);
771 } else {
c32bde28
RD
772 if (size != 0) {
773 return PyString_FromStringAndSize(cptr, size);
774 } else {
775 return PyString_FromString(cptr);
776 }
d55e5bfc 777 }
d55e5bfc 778 }
c32bde28
RD
779 Py_INCREF(Py_None);
780 return Py_None;
d55e5bfc
RD
781}
782
783
c32bde28
RD
784SWIGSTATICINLINE(int)
785 SWIG_CheckUnsignedLongInRange(unsigned long value,
786 unsigned long max_value,
787 const char *errmsg)
d55e5bfc 788{
c32bde28
RD
789 if (value > max_value) {
790 if (errmsg) {
791 PyErr_Format(PyExc_OverflowError,
792 "value %ld is greater than '%s' minimum %ld",
793 value, errmsg, max_value);
d55e5bfc 794 }
c32bde28 795 return 0;
d55e5bfc 796 }
c32bde28
RD
797 return 1;
798 }
d55e5bfc
RD
799
800
801#if UINT_MAX != ULONG_MAX
c32bde28
RD
802SWIGSTATICINLINE(int)
803 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
d55e5bfc 804{
c32bde28
RD
805 const char* errmsg = val ? "unsigned int" : 0;
806 unsigned long v;
807 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
808 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
809 if (val) *val = swig_numeric_cast(v, unsigned int);
810 return 1;
811 }
812 } else {
813 PyErr_Clear();
814 }
815 if (val) {
816 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
817 }
818 return 0;
d55e5bfc
RD
819}
820#else
c32bde28
RD
821SWIGSTATICINLINE(unsigned int)
822 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
823{
824 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
825}
d55e5bfc
RD
826#endif
827
828
c32bde28
RD
829SWIGSTATICINLINE(unsigned int)
830SWIG_As_unsigned_SS_int(PyObject* obj)
d55e5bfc 831{
c32bde28
RD
832 unsigned int v;
833 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
834 /*
835 this is needed to make valgrind/purify happier. the other
836 solution is throw an exception, but since this code should work
837 with plain C ....
838 */
839 memset((void*)&v, 0, sizeof(unsigned int));
d55e5bfc 840 }
c32bde28
RD
841 return v;
842}
843
844
845SWIGSTATICINLINE(int)
846SWIG_Check_unsigned_SS_int(PyObject* obj)
847{
848 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
d55e5bfc
RD
849}
850
851wxString Log_TimeStamp(){
852 wxString msg;
853 wxLog::TimeStamp(&msg);
854 return msg;
855 }
856void wxLog_Destroy(wxLog *self){ delete self; }
857
858// A wxLog class that can be derived from in wxPython
859class wxPyLog : public wxLog {
860public:
861 wxPyLog() : wxLog() {}
862
863 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
864 bool found;
865 bool blocked = wxPyBeginBlockThreads();
866 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
867 PyObject* s = wx2PyString(szString);
868 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
869 Py_DECREF(s);
870 }
871 wxPyEndBlockThreads(blocked);
872 if (! found)
873 wxLog::DoLog(level, szString, t);
874 }
875
876 virtual void DoLogString(const wxChar *szString, time_t t) {
877 bool found;
878 bool blocked = wxPyBeginBlockThreads();
879 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
880 PyObject* s = wx2PyString(szString);
881 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
882 Py_DECREF(s);
883 }
884 wxPyEndBlockThreads(blocked);
885 if (! found)
886 wxLog::DoLogString(szString, t);
887 }
888
889 PYPRIVATE;
890};
891
892
893
894
895IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
896
897
898#include <wx/joystick.h>
899
900
901#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
902// A C++ stub class for wxJoystick for platforms that don't have it.
903class wxJoystick : public wxObject {
904public:
905 wxJoystick(int joystick = wxJOYSTICK1) {
906 bool blocked = wxPyBeginBlockThreads();
907 PyErr_SetString(PyExc_NotImplementedError,
908 "wxJoystick is not available on this platform.");
909 wxPyEndBlockThreads(blocked);
910 }
911 wxPoint GetPosition() { return wxPoint(-1,-1); }
912 int GetZPosition() { return -1; }
913 int GetButtonState() { return -1; }
914 int GetPOVPosition() { return -1; }
915 int GetPOVCTSPosition() { return -1; }
916 int GetRudderPosition() { return -1; }
917 int GetUPosition() { return -1; }
918 int GetVPosition() { return -1; }
919 int GetMovementThreshold() { return -1; }
920 void SetMovementThreshold(int threshold) {}
921
922 bool IsOk(void) { return False; }
923 int GetNumberJoysticks() { return -1; }
924 int GetManufacturerId() { return -1; }
925 int GetProductId() { return -1; }
79fccf9d 926 wxString GetProductName() { return wxEmptyString; }
d55e5bfc
RD
927 int GetXMin() { return -1; }
928 int GetYMin() { return -1; }
929 int GetZMin() { return -1; }
930 int GetXMax() { return -1; }
931 int GetYMax() { return -1; }
932 int GetZMax() { return -1; }
933 int GetNumberButtons() { return -1; }
934 int GetNumberAxes() { return -1; }
935 int GetMaxButtons() { return -1; }
936 int GetMaxAxes() { return -1; }
937 int GetPollingMin() { return -1; }
938 int GetPollingMax() { return -1; }
939 int GetRudderMin() { return -1; }
940 int GetRudderMax() { return -1; }
941 int GetUMin() { return -1; }
942 int GetUMax() { return -1; }
943 int GetVMin() { return -1; }
944 int GetVMax() { return -1; }
945
946 bool HasRudder() { return False; }
947 bool HasZ() { return False; }
948 bool HasU() { return False; }
949 bool HasV() { return False; }
950 bool HasPOV() { return False; }
951 bool HasPOV4Dir() { return False; }
952 bool HasPOVCTS() { return False; }
953
954 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
955 bool ReleaseCapture() { return False; }
956};
957#endif
958
959
960#include <wx/sound.h>
961
962
963#if !wxUSE_SOUND
964// A C++ stub class for wxWave for platforms that don't have it.
965class wxSound : public wxObject
966{
967public:
968 wxSound() {
969 bool blocked = wxPyBeginBlockThreads();
970 PyErr_SetString(PyExc_NotImplementedError,
971 "wxSound is not available on this platform.");
972 wxPyEndBlockThreads(blocked);
973 }
b1f29bf7 974 wxSound(const wxString&/*, bool*/) {
d55e5bfc
RD
975 bool blocked = wxPyBeginBlockThreads();
976 PyErr_SetString(PyExc_NotImplementedError,
977 "wxSound is not available on this platform.");
978 wxPyEndBlockThreads(blocked);
979 }
980 wxSound(int, const wxByte*) {
981 bool blocked = wxPyBeginBlockThreads();
982 PyErr_SetString(PyExc_NotImplementedError,
983 "wxSound is not available on this platform.");
984 wxPyEndBlockThreads(blocked);
985 }
986
987 ~wxSound() {};
988
b1f29bf7 989 bool Create(const wxString&/*, bool*/) { return false; }
d55e5bfc
RD
990 bool Create(int, const wxByte*) { return false; };
991 bool IsOk() { return false; };
992 bool Play(unsigned) const { return false; }
993 static bool Play(const wxString&, unsigned) { return false; }
994 static void Stop() {}
995};
996
997#endif
998
b1f29bf7
RD
999wxSound *new_wxSound(wxString const &fileName){
1000 if (fileName.Length() == 0)
1001 return new wxSound;
1002 else
1003 return new wxSound(fileName);
1004 }
1005wxSound *new_wxSound(PyObject *data){
1006 unsigned char* buffer; int size;
1007 wxSound *sound = NULL;
1008
1009 bool blocked = wxPyBeginBlockThreads();
1010 if (!PyArg_Parse(data, "t#", &buffer, &size))
1011 goto done;
1012 sound = new wxSound(size, buffer);
1013 done:
1014 wxPyEndBlockThreads(blocked);
1015 return sound;
1016 }
1017bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1018 #ifndef __WXMAC__
1019 unsigned char* buffer;
1020 int size;
1021 bool rv = False;
1022
1023 bool blocked = wxPyBeginBlockThreads();
1024 if (!PyArg_Parse(data, "t#", &buffer, &size))
1025 goto done;
1026 rv = self->Create(size, buffer);
1027 done:
1028 wxPyEndBlockThreads(blocked);
1029 return rv;
1030 #else
1031 bool blocked = wxPyBeginBlockThreads();
1032 PyErr_SetString(PyExc_NotImplementedError,
1033 "Create from data is not available on this platform.");
1034 wxPyEndBlockThreads(blocked);
1035 return False;
1036 #endif
1037 }
d55e5bfc
RD
1038
1039#include <wx/mimetype.h>
1040
1041PyObject *wxFileType_GetMimeType(wxFileType *self){
1042 wxString str;
1043 if (self->GetMimeType(&str))
1044 return wx2PyString(str);
1045 else
1046 RETURN_NONE();
1047 }
1048PyObject *wxFileType_GetMimeTypes(wxFileType *self){
1049 wxArrayString arr;
1050 if (self->GetMimeTypes(arr))
1051 return wxArrayString2PyList_helper(arr);
1052 else
1053 RETURN_NONE();
1054 }
1055PyObject *wxFileType_GetExtensions(wxFileType *self){
1056 wxArrayString arr;
1057 if (self->GetExtensions(arr))
1058 return wxArrayString2PyList_helper(arr);
1059 else
1060 RETURN_NONE();
1061 }
1062wxIcon *wxFileType_GetIcon(wxFileType *self){
1063 wxIconLocation loc;
1064 if (self->GetIcon(&loc))
1065 return new wxIcon(loc);
1066 else
1067 return NULL;
1068 }
1069PyObject *wxFileType_GetIconInfo(wxFileType *self){
1070 wxIconLocation loc;
1071 if (self->GetIcon(&loc)) {
1072 wxString iconFile = loc.GetFileName();
1073 int iconIndex = -1;
1074
1075 iconIndex = loc.GetIndex();
1076
1077 // Make a tuple and put the values in it
1078 bool blocked = wxPyBeginBlockThreads();
1079 PyObject* tuple = PyTuple_New(3);
1080 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
1081 wxT("wxIcon"), True));
1082 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
1083 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
1084 wxPyEndBlockThreads(blocked);
1085 return tuple;
1086 }
1087 else
1088 RETURN_NONE();
1089 }
1090PyObject *wxFileType_GetDescription(wxFileType *self){
1091 wxString str;
1092 if (self->GetDescription(&str))
1093 return wx2PyString(str);
1094 else
1095 RETURN_NONE();
1096 }
1097PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1098 wxString str;
1099 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1100 return wx2PyString(str);
1101 else
1102 RETURN_NONE();
1103 }
1104PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1105 wxString str;
1106 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1107 return wx2PyString(str);
1108 else
1109 RETURN_NONE();
1110 }
1111PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
1112 wxArrayString verbs;
1113 wxArrayString commands;
1114 if (self->GetAllCommands(&verbs, &commands,
1115 wxFileType::MessageParameters(filename, mimetype))) {
1116 bool blocked = wxPyBeginBlockThreads();
1117 PyObject* tuple = PyTuple_New(2);
1118 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1119 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1120 wxPyEndBlockThreads(blocked);
1121 return tuple;
1122 }
1123 else
1124 RETURN_NONE();
1125 }
1126wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1127 return wxFileType::ExpandCommand(command,
1128 wxFileType::MessageParameters(filename, mimetype));
1129 }
1130PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1131 wxArrayString arr;
1132 self->EnumAllFileTypes(arr);
1133 return wxArrayString2PyList_helper(arr);
1134 }
1135
1136#include <wx/artprov.h>
1137
1138 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1139 static const wxString wxPyART_MENU(wxART_MENU);
1140 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1141 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1142 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1143 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
4cf4100f 1144 static const wxString wxPyART_BUTTON(wxART_BUTTON);
d55e5bfc
RD
1145 static const wxString wxPyART_OTHER(wxART_OTHER);
1146 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1147 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1148 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1149 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1150 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1151 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1152 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1153 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1154 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1155 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1156 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1157 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1158 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1159 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1160 static const wxString wxPyART_PRINT(wxART_PRINT);
1161 static const wxString wxPyART_HELP(wxART_HELP);
1162 static const wxString wxPyART_TIP(wxART_TIP);
1163 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1164 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1165 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1166 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1167 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1168 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1169 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1170 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1171 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1172 static const wxString wxPyART_ERROR(wxART_ERROR);
1173 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1174 static const wxString wxPyART_WARNING(wxART_WARNING);
1175 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1176 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1177 // Python aware wxArtProvider
1178class wxPyArtProvider : public wxArtProvider {
1179public:
1180
1181 virtual wxBitmap CreateBitmap(const wxArtID& id,
1182 const wxArtClient& client,
1183 const wxSize& size) {
1184 wxBitmap rval = wxNullBitmap;
1185 bool blocked = wxPyBeginBlockThreads();
1186 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1187 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1188 PyObject* ro;
1189 wxBitmap* ptr;
1190 PyObject* s1, *s2;
1191 s1 = wx2PyString(id);
1192 s2 = wx2PyString(client);
1193 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1194 Py_DECREF(so);
1195 Py_DECREF(s1);
1196 Py_DECREF(s2);
1197 if (ro) {
1198 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1199 rval = *ptr;
1200 Py_DECREF(ro);
1201 }
1202 }
1203 wxPyEndBlockThreads(blocked);
1204 return rval;
1205 }
1206
1207 PYPRIVATE;
1208};
1209
1210void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1211
1212
1213
1214 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1215 PyObject* ret = PyTuple_New(3);
1216 if (ret) {
1217 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1218 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1219 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1220 }
1221 return ret;
1222 }
1223
1224PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1225 bool cont;
1226 long index = 0;
1227 wxString value;
1228
1229 cont = self->GetFirstGroup(value, index);
1230 return __EnumerationHelper(cont, value, index);
1231 }
1232PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1233 bool cont;
1234 wxString value;
1235
1236 cont = self->GetNextGroup(value, index);
1237 return __EnumerationHelper(cont, value, index);
1238 }
1239PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1240 bool cont;
1241 long index = 0;
1242 wxString value;
1243
1244 cont = self->GetFirstEntry(value, index);
1245 return __EnumerationHelper(cont, value, index);
1246 }
1247PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1248 bool cont;
1249 wxString value;
1250
1251 cont = self->GetNextEntry(value, index);
1252 return __EnumerationHelper(cont, value, index);
1253 }
1254long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1255 long rv;
1256 self->Read(key, &rv, defaultVal);
1257 return rv;
1258 }
1259
c32bde28
RD
1260// See my_fragments.i
1261SWIGSTATICINLINE(int)
1262SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 1263{
c32bde28
RD
1264 if (PyNumber_Check(obj)) {
1265 if (val) *val = PyFloat_AsDouble(obj);
1266 return 1;
1267 }
d55e5bfc
RD
1268 else {
1269 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1270 obj->ob_type->tp_name);
1271 PyErr_SetObject(PyExc_TypeError, errmsg);
1272 Py_DECREF(errmsg);
d55e5bfc 1273 }
c32bde28 1274 return 0;
d55e5bfc
RD
1275}
1276
1277
c32bde28
RD
1278SWIGSTATICINLINE(double)
1279SWIG_As_double(PyObject* obj)
d55e5bfc 1280{
c32bde28
RD
1281 double v;
1282 if (!SWIG_AsVal_double(obj, &v)) {
1283 /*
1284 this is needed to make valgrind/purify happier. the other
1285 solution is throw an exception, but since this code should work
1286 with plain C ....
1287 */
1288 memset((void*)&v, 0, sizeof(double));
d55e5bfc 1289 }
c32bde28
RD
1290 return v;
1291}
1292
1293
1294SWIGSTATICINLINE(int)
1295SWIG_Check_double(PyObject* obj)
1296{
1297 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
1298}
1299
1300double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1301 double rv;
1302 self->Read(key, &rv, defaultVal);
1303 return rv;
1304 }
1305bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1306 bool rv;
1307 self->Read(key, &rv, defaultVal);
1308 return rv;
1309 }
1310
1311#include <wx/datetime.h>
1312
1313
1314 static const wxString wxPyDateFormatStr(wxT("%c"));
1315 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1316
1317#define LOCAL_TZ wxDateTime::Local
1318
1319
1320#if UINT_MAX < LONG_MAX
c32bde28
RD
1321/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1322#define SWIG_From_unsigned_SS_int SWIG_From_long
1323/*@@*/
d55e5bfc 1324#else
c32bde28
RD
1325/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1326#define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1327/*@@*/
d55e5bfc
RD
1328#endif
1329
1330wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1331wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1332wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1333wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1334wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1335bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1336 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1337 return (*self < *other);
1338 }
1339bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1340 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1341 return (*self <= *other);
1342 }
1343bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1344 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1345 return (*self > *other);
1346 }
1347bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1348 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1349 return (*self >= *other);
1350 }
1351bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1352 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1353 return (*self == *other);
1354 }
1355bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1356 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1357 return (*self != *other);
1358 }
1359int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1360 const wxChar* rv;
1361 const wxChar* _date = date;
1362 rv = self->ParseRfc822Date(_date);
1363 if (rv == NULL) return -1;
1364 return rv - _date;
1365 }
1366int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1367 const wxChar* rv;
1368 const wxChar* _date = date;
1369 rv = self->ParseFormat(_date, format, dateDef);
1370 if (rv == NULL) return -1;
1371 return rv - _date;
1372 }
1373int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1374 const wxChar* rv;
1375 const wxChar* _datetime = datetime;
1376 rv = self->ParseDateTime(_datetime);
1377 if (rv == NULL) return -1;
1378 return rv - _datetime;
1379 }
1380int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1381 const wxChar* rv;
1382 const wxChar* _date = date;
1383 rv = self->ParseDate(_date);
1384 if (rv == NULL) return -1;
1385 return rv - _date;
1386 }
1387int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1388 const wxChar* rv;
1389 const wxChar* _time = time;
1390 rv = self->ParseTime(_time);
1391 if (rv == NULL) return -1;
1392 return rv - _time;
1393 }
1394wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1395wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1396wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1397wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1398bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1399bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1400bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1401bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1402bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1403bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1404wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1405wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1406wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1407wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1408bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1409bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1410
1411#include <wx/dataobj.h>
1412
a07a67e6
RD
1413PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1414 size_t count = self->GetFormatCount(dir);
1415 wxDataFormat* formats = new wxDataFormat[count];
1416 self->GetAllFormats(formats, dir);
1417
1418 bool blocked = wxPyBeginBlockThreads();
1419 PyObject* list = PyList_New(count);
1420 for (size_t i=0; i<count; i++) {
1421 wxDataFormat* format = new wxDataFormat(formats[i]);
1422 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1423 PyList_Append(list, obj);
1424 Py_DECREF(obj);
1425 }
1426 wxPyEndBlockThreads(blocked);
1427 delete [] formats;
1428 return list;
1429 }
1430PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1431 PyObject* rval = NULL;
1432 size_t size = self->GetDataSize(format);
1433 bool blocked = wxPyBeginBlockThreads();
1434 if (size) {
1435 char* buf = new char[size];
1436 if (self->GetDataHere(format, buf))
1437 rval = PyString_FromStringAndSize(buf, size);
1438 delete [] buf;
1439 }
1440 if (! rval) {
1441 rval = Py_None;
1442 Py_INCREF(rval);
1443 }
1444 wxPyEndBlockThreads(blocked);
1445 return rval;
1446 }
1447bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1448 bool rval;
1449 bool blocked = wxPyBeginBlockThreads();
1450 if (PyString_Check(data)) {
1451 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1452 }
1453 else {
1454 // raise a TypeError if not a string
1455 PyErr_SetString(PyExc_TypeError, "String expected.");
1456 rval = False;
1457 }
1458 wxPyEndBlockThreads(blocked);
1459 return rval;
1460 }
1461PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1462 PyObject* rval = NULL;
1463 size_t size = self->GetDataSize();
1464 bool blocked = wxPyBeginBlockThreads();
1465 if (size) {
1466 char* buf = new char[size];
1467 if (self->GetDataHere(buf))
1468 rval = PyString_FromStringAndSize(buf, size);
1469 delete [] buf;
1470 }
1471 if (! rval) {
1472 rval = Py_None;
1473 Py_INCREF(rval);
1474 }
1475 wxPyEndBlockThreads(blocked);
1476 return rval;
1477 }
1478bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1479 bool rval;
1480 bool blocked = wxPyBeginBlockThreads();
1481 if (PyString_Check(data)) {
1482 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1483 }
1484 else {
1485 // raise a TypeError if not a string
1486 PyErr_SetString(PyExc_TypeError, "String expected.");
1487 rval = False;
1488 }
1489 wxPyEndBlockThreads(blocked);
1490 return rval;
1491 }
d55e5bfc
RD
1492 // Create a new class for wxPython to use
1493class wxPyDataObjectSimple : public wxDataObjectSimple {
1494public:
1495 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1496 : wxDataObjectSimple(format) {}
1497
1498 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1499 bool GetDataHere(void *buf) const;
1500 bool SetData(size_t len, const void *buf) const;
1501 PYPRIVATE;
1502};
1503
1504IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1505
1506bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1507 // We need to get the data for this object and write it to buf. I think
1508 // the best way to do this for wxPython is to have the Python method
1509 // return either a string or None and then act appropriately with the
1510 // C++ version.
1511
1512 bool rval = False;
1513 bool blocked = wxPyBeginBlockThreads();
1514 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1515 PyObject* ro;
1516 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1517 if (ro) {
1518 rval = (ro != Py_None && PyString_Check(ro));
1519 if (rval)
1520 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1521 Py_DECREF(ro);
1522 }
1523 }
1524 wxPyEndBlockThreads(blocked);
1525 return rval;
1526}
1527
1528bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1529 // For this one we simply need to make a string from buf and len
1530 // and send it to the Python method.
1531 bool rval = False;
1532 bool blocked = wxPyBeginBlockThreads();
1533 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1534 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1535 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1536 Py_DECREF(data);
1537 }
1538 wxPyEndBlockThreads(blocked);
1539 return rval;
1540}
1541
1542 // Create a new class for wxPython to use
1543class wxPyTextDataObject : public wxTextDataObject {
1544public:
1545 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1546 : wxTextDataObject(text) {}
1547
1548 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1549 DEC_PYCALLBACK_STRING__const(GetText);
1550 DEC_PYCALLBACK__STRING(SetText);
1551 PYPRIVATE;
1552};
1553
1554IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1555IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1556IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1557
1558
1559 // Create a new class for wxPython to use
1560class wxPyBitmapDataObject : public wxBitmapDataObject {
1561public:
1562 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1563 : wxBitmapDataObject(bitmap) {}
1564
1565 wxBitmap GetBitmap() const;
1566 void SetBitmap(const wxBitmap& bitmap);
1567 PYPRIVATE;
1568};
1569
1570wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1571 wxBitmap* rval = &wxNullBitmap;
1572 bool blocked = wxPyBeginBlockThreads();
1573 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1574 PyObject* ro;
1575 wxBitmap* ptr;
1576 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1577 if (ro) {
1578 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1579 rval = ptr;
1580 Py_DECREF(ro);
1581 }
1582 }
1583 wxPyEndBlockThreads(blocked);
1584 return *rval;
1585}
a07a67e6 1586
d55e5bfc
RD
1587void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1588 bool blocked = wxPyBeginBlockThreads();
1589 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1590 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1591 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1592 Py_DECREF(bo);
1593 }
1594 wxPyEndBlockThreads(blocked);
1595}
1596
d55e5bfc 1597bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
a07a67e6
RD
1598 bool rval;
1599 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1600 if (PyString_Check(data)) {
a07a67e6 1601 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
d55e5bfc
RD
1602 }
1603 else {
1604 // raise a TypeError if not a string
1605 PyErr_SetString(PyExc_TypeError, "String expected.");
a07a67e6 1606 rval = False;
d55e5bfc 1607 }
a07a67e6
RD
1608 wxPyEndBlockThreads(blocked);
1609 return rval;
d55e5bfc
RD
1610 }
1611PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
a07a67e6
RD
1612 PyObject* obj;
1613 bool blocked = wxPyBeginBlockThreads();
1614 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1615 wxPyEndBlockThreads(blocked);
1616 return obj;
d55e5bfc
RD
1617 }
1618
1619#include <wx/metafile.h>
1620
1621
1622IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1623
1624
1625IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1626IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1627IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1628IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1629IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1630
1631
1632class wxPyTextDropTarget : public wxTextDropTarget {
1633public:
1634 wxPyTextDropTarget() {}
1635
1636 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1637
1638 DEC_PYCALLBACK__(OnLeave);
1639 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1640 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1641 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1642 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1643
1644 PYPRIVATE;
1645};
1646
1647IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1648IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1649IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1650IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1651IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1652IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1653
1654
1655
1656class wxPyFileDropTarget : public wxFileDropTarget {
1657public:
1658 wxPyFileDropTarget() {}
1659
1660 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1661
1662 DEC_PYCALLBACK__(OnLeave);
1663 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1664 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1665 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1666 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1667
1668 PYPRIVATE;
1669};
1670
1671bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1672 const wxArrayString& filenames) {
1673 bool rval = False;
1674 bool blocked = wxPyBeginBlockThreads();
1675 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1676 PyObject* list = wxArrayString2PyList_helper(filenames);
1677 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1678 Py_DECREF(list);
1679 }
1680 wxPyEndBlockThreads(blocked);
1681 return rval;
1682}
1683
1684
1685
1686IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1687IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1688IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1689IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1690IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1691
1692
1693
1694
1695bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1696
6923d0a9 1697#include <wx/display.h>
d55e5bfc
RD
1698
1699bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1700bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
6923d0a9
RD
1701
1702// dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1703#if !wxUSE_DISPLAY
1704#include <wx/dynarray.h>
1705#include <wx/vidmode.h>
1706
1707WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1708#include "wx/arrimpl.cpp"
1709WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1710const wxVideoMode wxDefaultVideoMode;
1711
1712class wxDisplay
1713{
1714public:
1715 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1716 ~wxDisplay() {}
1717
1718 static size_t GetCount()
1719 { wxPyRaiseNotImplemented(); return 0; }
1720
1721 static int GetFromPoint(const wxPoint& pt)
1722 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1723 static int GetFromWindow(wxWindow *window)
1724 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1725
1726 virtual bool IsOk() const { return false; }
1727 virtual wxRect GetGeometry() const { wxRect r; return r; }
1728 virtual wxString GetName() const { return wxEmptyString; }
1729 bool IsPrimary() const { return false; }
1730
1731 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1732 { wxArrayVideoModes a; return a; }
1733
1734 virtual wxVideoMode GetCurrentMode() const
1735 { return wxDefaultVideoMode; }
1736
1737 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1738 { return false; }
1739
1740 void ResetMode() {}
1741};
1742#endif
1743
d55e5bfc
RD
1744PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1745 PyObject* pyList = NULL;
1746 wxArrayVideoModes arr = self->GetModes(mode);
1747 bool blocked = wxPyBeginBlockThreads();
1748 pyList = PyList_New(0);
1749 for (int i=0; i < arr.GetCount(); i++) {
1750 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1751 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1752 PyList_Append(pyList, pyObj);
a07a67e6 1753 Py_DECREF(pyObj);
d55e5bfc
RD
1754 }
1755 wxPyEndBlockThreads(blocked);
1756 return pyList;
1757 }
1758#ifdef __cplusplus
1759extern "C" {
1760#endif
c32bde28 1761static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1762 PyObject *resultobj;
1763 int arg1 ;
1764 wxColour result;
1765 PyObject * obj0 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "index", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
c32bde28 1771 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1772 if (PyErr_Occurred()) SWIG_fail;
1773 {
0439c23b 1774 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1777
1778 wxPyEndAllowThreads(__tstate);
110da5b0 1779 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1780 }
1781 {
1782 wxColour * resultptr;
1783 resultptr = new wxColour((wxColour &) result);
1784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1785 }
1786 return resultobj;
1787 fail:
1788 return NULL;
1789}
1790
1791
c32bde28 1792static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1793 PyObject *resultobj;
1794 int arg1 ;
1795 wxFont result;
1796 PyObject * obj0 = 0 ;
1797 char *kwnames[] = {
1798 (char *) "index", NULL
1799 };
1800
1801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
c32bde28 1802 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1803 if (PyErr_Occurred()) SWIG_fail;
1804 {
0439c23b 1805 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1806 PyThreadState* __tstate = wxPyBeginAllowThreads();
1807 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1808
1809 wxPyEndAllowThreads(__tstate);
110da5b0 1810 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1811 }
1812 {
1813 wxFont * resultptr;
1814 resultptr = new wxFont((wxFont &) result);
1815 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1816 }
1817 return resultobj;
1818 fail:
1819 return NULL;
1820}
1821
1822
c32bde28 1823static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1824 PyObject *resultobj;
1825 int arg1 ;
1826 int result;
1827 PyObject * obj0 = 0 ;
1828 char *kwnames[] = {
1829 (char *) "index", NULL
1830 };
1831
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
c32bde28 1833 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1834 if (PyErr_Occurred()) SWIG_fail;
1835 {
0439c23b 1836 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1839
1840 wxPyEndAllowThreads(__tstate);
110da5b0 1841 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1842 }
c32bde28 1843 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1844 return resultobj;
1845 fail:
1846 return NULL;
1847}
1848
1849
c32bde28 1850static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1851 PyObject *resultobj;
1852 int arg1 ;
1853 bool result;
1854 PyObject * obj0 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "index", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
c32bde28 1860 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1861 if (PyErr_Occurred()) SWIG_fail;
1862 {
0439c23b 1863 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1866
1867 wxPyEndAllowThreads(__tstate);
110da5b0 1868 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1869 }
1870 {
1871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1872 }
1873 return resultobj;
1874 fail:
1875 return NULL;
1876}
1877
1878
c32bde28 1879static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1880 PyObject *resultobj;
1881 int result;
1882 char *kwnames[] = {
1883 NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1887 {
0439c23b 1888 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (int)wxSystemSettings::GetScreenType();
1891
1892 wxPyEndAllowThreads(__tstate);
110da5b0 1893 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1894 }
c32bde28 1895 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1896 return resultobj;
1897 fail:
1898 return NULL;
1899}
1900
1901
c32bde28 1902static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1903 PyObject *resultobj;
1904 int arg1 ;
1905 PyObject * obj0 = 0 ;
1906 char *kwnames[] = {
1907 (char *) "screen", NULL
1908 };
1909
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
c32bde28 1911 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1912 if (PyErr_Occurred()) SWIG_fail;
1913 {
0439c23b 1914 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1917
1918 wxPyEndAllowThreads(__tstate);
110da5b0 1919 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1920 }
1921 Py_INCREF(Py_None); resultobj = Py_None;
1922 return resultobj;
1923 fail:
1924 return NULL;
1925}
1926
1927
c32bde28 1928static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
1929 PyObject *obj;
1930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1931 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1932 Py_INCREF(obj);
1933 return Py_BuildValue((char *)"");
1934}
c32bde28 1935static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1936 PyObject *resultobj;
1937 wxSystemOptions *result;
1938 char *kwnames[] = {
1939 NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 result = (wxSystemOptions *)new wxSystemOptions();
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1951 return resultobj;
1952 fail:
1953 return NULL;
1954}
1955
1956
c32bde28 1957static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1958 PyObject *resultobj;
1959 wxString *arg1 = 0 ;
1960 wxString *arg2 = 0 ;
1961 bool temp1 = False ;
1962 bool temp2 = False ;
1963 PyObject * obj0 = 0 ;
1964 PyObject * obj1 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "name",(char *) "value", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1970 {
1971 arg1 = wxString_in_helper(obj0);
1972 if (arg1 == NULL) SWIG_fail;
1973 temp1 = True;
1974 }
1975 {
1976 arg2 = wxString_in_helper(obj1);
1977 if (arg2 == NULL) SWIG_fail;
1978 temp2 = True;
1979 }
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 Py_INCREF(Py_None); resultobj = Py_None;
1988 {
1989 if (temp1)
1990 delete arg1;
1991 }
1992 {
1993 if (temp2)
1994 delete arg2;
1995 }
1996 return resultobj;
1997 fail:
1998 {
1999 if (temp1)
2000 delete arg1;
2001 }
2002 {
2003 if (temp2)
2004 delete arg2;
2005 }
2006 return NULL;
2007}
2008
2009
c32bde28 2010static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2011 PyObject *resultobj;
2012 wxString *arg1 = 0 ;
2013 int arg2 ;
2014 bool temp1 = False ;
2015 PyObject * obj0 = 0 ;
2016 PyObject * obj1 = 0 ;
2017 char *kwnames[] = {
2018 (char *) "name",(char *) "value", NULL
2019 };
2020
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2022 {
2023 arg1 = wxString_in_helper(obj0);
2024 if (arg1 == NULL) SWIG_fail;
2025 temp1 = True;
2026 }
c32bde28 2027 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2028 if (PyErr_Occurred()) SWIG_fail;
2029 {
2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
2031 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2032
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 }
2036 Py_INCREF(Py_None); resultobj = Py_None;
2037 {
2038 if (temp1)
2039 delete arg1;
2040 }
2041 return resultobj;
2042 fail:
2043 {
2044 if (temp1)
2045 delete arg1;
2046 }
2047 return NULL;
2048}
2049
2050
c32bde28 2051static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2052 PyObject *resultobj;
2053 wxString *arg1 = 0 ;
2054 wxString result;
2055 bool temp1 = False ;
2056 PyObject * obj0 = 0 ;
2057 char *kwnames[] = {
2058 (char *) "name", NULL
2059 };
2060
2061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2062 {
2063 arg1 = wxString_in_helper(obj0);
2064 if (arg1 == NULL) SWIG_fail;
2065 temp1 = True;
2066 }
2067 {
2068 PyThreadState* __tstate = wxPyBeginAllowThreads();
2069 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2070
2071 wxPyEndAllowThreads(__tstate);
2072 if (PyErr_Occurred()) SWIG_fail;
2073 }
2074 {
2075#if wxUSE_UNICODE
2076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2077#else
2078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2079#endif
2080 }
2081 {
2082 if (temp1)
2083 delete arg1;
2084 }
2085 return resultobj;
2086 fail:
2087 {
2088 if (temp1)
2089 delete arg1;
2090 }
2091 return NULL;
2092}
2093
2094
c32bde28 2095static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2096 PyObject *resultobj;
2097 wxString *arg1 = 0 ;
2098 int result;
2099 bool temp1 = False ;
2100 PyObject * obj0 = 0 ;
2101 char *kwnames[] = {
2102 (char *) "name", NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2106 {
2107 arg1 = wxString_in_helper(obj0);
2108 if (arg1 == NULL) SWIG_fail;
2109 temp1 = True;
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
c32bde28 2118 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2119 {
2120 if (temp1)
2121 delete arg1;
2122 }
2123 return resultobj;
2124 fail:
2125 {
2126 if (temp1)
2127 delete arg1;
2128 }
2129 return NULL;
2130}
2131
2132
c32bde28 2133static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2134 PyObject *resultobj;
2135 wxString *arg1 = 0 ;
2136 bool result;
2137 bool temp1 = False ;
2138 PyObject * obj0 = 0 ;
2139 char *kwnames[] = {
2140 (char *) "name", NULL
2141 };
2142
2143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2144 {
2145 arg1 = wxString_in_helper(obj0);
2146 if (arg1 == NULL) SWIG_fail;
2147 temp1 = True;
2148 }
2149 {
2150 PyThreadState* __tstate = wxPyBeginAllowThreads();
2151 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2152
2153 wxPyEndAllowThreads(__tstate);
2154 if (PyErr_Occurred()) SWIG_fail;
2155 }
2156 {
2157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2158 }
2159 {
2160 if (temp1)
2161 delete arg1;
2162 }
2163 return resultobj;
2164 fail:
2165 {
2166 if (temp1)
2167 delete arg1;
2168 }
2169 return NULL;
2170}
2171
2172
c32bde28 2173static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2174 PyObject *obj;
2175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2176 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2177 Py_INCREF(obj);
2178 return Py_BuildValue((char *)"");
2179}
c32bde28 2180static int _wrap_FileSelectorPromptStr_set(PyObject *) {
d55e5bfc
RD
2181 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2182 return 1;
2183}
2184
2185
2186static PyObject *_wrap_FileSelectorPromptStr_get() {
2187 PyObject *pyobj;
2188
2189 {
2190#if wxUSE_UNICODE
2191 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2192#else
2193 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2194#endif
2195 }
2196 return pyobj;
2197}
2198
2199
c32bde28 2200static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
d55e5bfc
RD
2201 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2202 return 1;
2203}
2204
2205
2206static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2207 PyObject *pyobj;
2208
2209 {
2210#if wxUSE_UNICODE
2211 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2212#else
2213 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2214#endif
2215 }
2216 return pyobj;
2217}
2218
2219
c32bde28 2220static int _wrap_DirSelectorPromptStr_set(PyObject *) {
d55e5bfc
RD
2221 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2222 return 1;
2223}
2224
2225
2226static PyObject *_wrap_DirSelectorPromptStr_get() {
2227 PyObject *pyobj;
2228
2229 {
2230#if wxUSE_UNICODE
2231 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2232#else
2233 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2234#endif
2235 }
2236 return pyobj;
2237}
2238
2239
c32bde28 2240static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2241 PyObject *resultobj;
2242 long result;
2243 char *kwnames[] = {
2244 NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 result = (long)wxNewId();
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
c32bde28 2255 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2256 return resultobj;
2257 fail:
2258 return NULL;
2259}
2260
2261
c32bde28 2262static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2263 PyObject *resultobj;
2264 long arg1 ;
2265 PyObject * obj0 = 0 ;
2266 char *kwnames[] = {
2267 (char *) "id", NULL
2268 };
2269
2270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
c32bde28 2271 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
2272 if (PyErr_Occurred()) SWIG_fail;
2273 {
2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2275 wxRegisterId(arg1);
2276
2277 wxPyEndAllowThreads(__tstate);
2278 if (PyErr_Occurred()) SWIG_fail;
2279 }
2280 Py_INCREF(Py_None); resultobj = Py_None;
2281 return resultobj;
2282 fail:
2283 return NULL;
2284}
2285
2286
c32bde28 2287static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2288 PyObject *resultobj;
2289 long result;
2290 char *kwnames[] = {
2291 NULL
2292 };
2293
2294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 result = (long)wxGetCurrentId();
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 }
c32bde28 2302 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2303 return resultobj;
2304 fail:
2305 return NULL;
2306}
2307
2308
c32bde28 2309static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
d1f3a348
RD
2310 PyObject *resultobj;
2311 int arg1 ;
2312 bool result;
2313 PyObject * obj0 = 0 ;
2314 char *kwnames[] = {
2315 (char *) "id", NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
c32bde28 2319 arg1 = (int)SWIG_As_int(obj0);
d1f3a348
RD
2320 if (PyErr_Occurred()) SWIG_fail;
2321 {
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 result = (bool)wxIsStockID(arg1);
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 }
2328 {
2329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2330 }
2331 return resultobj;
2332 fail:
2333 return NULL;
2334}
2335
2336
c32bde28 2337static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d1f3a348
RD
2338 PyObject *resultobj;
2339 int arg1 ;
2340 wxString *arg2 = 0 ;
2341 bool result;
2342 bool temp2 = False ;
2343 PyObject * obj0 = 0 ;
2344 PyObject * obj1 = 0 ;
2345 char *kwnames[] = {
2346 (char *) "id",(char *) "label", NULL
2347 };
2348
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
c32bde28 2350 arg1 = (int)SWIG_As_int(obj0);
d1f3a348
RD
2351 if (PyErr_Occurred()) SWIG_fail;
2352 {
2353 arg2 = wxString_in_helper(obj1);
2354 if (arg2 == NULL) SWIG_fail;
2355 temp2 = True;
2356 }
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 }
2364 {
2365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2366 }
2367 {
2368 if (temp2)
2369 delete arg2;
2370 }
2371 return resultobj;
2372 fail:
2373 {
2374 if (temp2)
2375 delete arg2;
2376 }
2377 return NULL;
2378}
2379
2380
c32bde28 2381static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d1f3a348
RD
2382 PyObject *resultobj;
2383 int arg1 ;
2384 wxString result;
2385 PyObject * obj0 = 0 ;
2386 char *kwnames[] = {
2387 (char *) "id", NULL
2388 };
2389
2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
c32bde28 2391 arg1 = (int)SWIG_As_int(obj0);
d1f3a348
RD
2392 if (PyErr_Occurred()) SWIG_fail;
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 result = wxGetStockLabel(arg1);
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) SWIG_fail;
2399 }
2400 {
2401#if wxUSE_UNICODE
2402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2403#else
2404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2405#endif
2406 }
2407 return resultobj;
2408 fail:
2409 return NULL;
2410}
2411
2412
c32bde28 2413static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2414 PyObject *resultobj;
2415 char *kwnames[] = {
2416 NULL
2417 };
2418
2419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2420 {
0439c23b 2421 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2422 PyThreadState* __tstate = wxPyBeginAllowThreads();
2423 wxBell();
2424
2425 wxPyEndAllowThreads(__tstate);
110da5b0 2426 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2427 }
2428 Py_INCREF(Py_None); resultobj = Py_None;
2429 return resultobj;
2430 fail:
2431 return NULL;
2432}
2433
2434
c32bde28 2435static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2436 PyObject *resultobj;
2437 char *kwnames[] = {
2438 NULL
2439 };
2440
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2442 {
0439c23b 2443 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 wxEndBusyCursor();
2446
2447 wxPyEndAllowThreads(__tstate);
110da5b0 2448 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2449 }
2450 Py_INCREF(Py_None); resultobj = Py_None;
2451 return resultobj;
2452 fail:
2453 return NULL;
2454}
2455
2456
c32bde28 2457static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2458 PyObject *resultobj;
2459 bool arg1 = (bool) True ;
2460 long result;
2461 PyObject * obj0 = 0 ;
2462 char *kwnames[] = {
2463 (char *) "resetTimer", NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2467 if (obj0) {
c32bde28 2468 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 {
2472 PyThreadState* __tstate = wxPyBeginAllowThreads();
2473 result = (long)wxGetElapsedTime(arg1);
2474
2475 wxPyEndAllowThreads(__tstate);
2476 if (PyErr_Occurred()) SWIG_fail;
2477 }
c32bde28 2478 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2479 return resultobj;
2480 fail:
2481 return NULL;
2482}
2483
2484
c32bde28 2485static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2486 PyObject *resultobj;
2487 int *arg1 = (int *) 0 ;
2488 int *arg2 = (int *) 0 ;
2489 int temp1 ;
c32bde28 2490 int res1 = 0 ;
d55e5bfc 2491 int temp2 ;
c32bde28 2492 int res2 = 0 ;
d55e5bfc
RD
2493 char *kwnames[] = {
2494 NULL
2495 };
2496
c32bde28
RD
2497 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2498 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2500 {
0439c23b 2501 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 wxGetMousePosition(arg1,arg2);
2504
2505 wxPyEndAllowThreads(__tstate);
110da5b0 2506 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2507 }
2508 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
2509 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2510 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2511 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2512 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
2513 return resultobj;
2514 fail:
2515 return NULL;
2516}
2517
2518
c32bde28 2519static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2520 PyObject *resultobj;
2521 bool result;
2522 char *kwnames[] = {
2523 NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2527 {
2528 PyThreadState* __tstate = wxPyBeginAllowThreads();
2529 result = (bool)wxIsBusy();
2530
2531 wxPyEndAllowThreads(__tstate);
2532 if (PyErr_Occurred()) SWIG_fail;
2533 }
2534 {
2535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2536 }
2537 return resultobj;
2538 fail:
2539 return NULL;
2540}
2541
2542
c32bde28 2543static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2544 PyObject *resultobj;
2545 wxString result;
2546 char *kwnames[] = {
2547 NULL
2548 };
2549
2550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 result = wxNow();
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 {
2559#if wxUSE_UNICODE
2560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2561#else
2562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2563#endif
2564 }
2565 return resultobj;
2566 fail:
2567 return NULL;
2568}
2569
2570
c32bde28 2571static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2572 PyObject *resultobj;
2573 wxString const &arg1_defvalue = wxPyEmptyString ;
2574 wxString *arg1 = (wxString *) &arg1_defvalue ;
2575 bool result;
2576 bool temp1 = False ;
2577 PyObject * obj0 = 0 ;
2578 char *kwnames[] = {
2579 (char *) "command", NULL
2580 };
2581
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2583 if (obj0) {
2584 {
2585 arg1 = wxString_in_helper(obj0);
2586 if (arg1 == NULL) SWIG_fail;
2587 temp1 = True;
2588 }
2589 }
2590 {
2591 PyThreadState* __tstate = wxPyBeginAllowThreads();
2592 result = (bool)wxShell((wxString const &)*arg1);
2593
2594 wxPyEndAllowThreads(__tstate);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 {
2598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2599 }
2600 {
2601 if (temp1)
2602 delete arg1;
2603 }
2604 return resultobj;
2605 fail:
2606 {
2607 if (temp1)
2608 delete arg1;
2609 }
2610 return NULL;
2611}
2612
2613
c32bde28 2614static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2615 PyObject *resultobj;
2616 char *kwnames[] = {
2617 NULL
2618 };
2619
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 wxStartTimer();
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 Py_INCREF(Py_None); resultobj = Py_None;
2629 return resultobj;
2630 fail:
2631 return NULL;
2632}
2633
2634
c32bde28 2635static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2636 PyObject *resultobj;
2637 int *arg1 = (int *) 0 ;
2638 int *arg2 = (int *) 0 ;
2639 int result;
2640 int temp1 ;
c32bde28 2641 int res1 = 0 ;
d55e5bfc 2642 int temp2 ;
c32bde28 2643 int res2 = 0 ;
d55e5bfc
RD
2644 char *kwnames[] = {
2645 NULL
2646 };
2647
c32bde28
RD
2648 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2649 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 result = (int)wxGetOsVersion(arg1,arg2);
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) SWIG_fail;
2657 }
c32bde28
RD
2658 resultobj = SWIG_From_int((int)result);
2659 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2660 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2661 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2662 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
2663 return resultobj;
2664 fail:
2665 return NULL;
2666}
2667
2668
c32bde28 2669static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2670 PyObject *resultobj;
2671 wxString result;
2672 char *kwnames[] = {
2673 NULL
2674 };
2675
2676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = wxGetOsDescription();
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 {
2685#if wxUSE_UNICODE
2686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2687#else
2688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2689#endif
2690 }
2691 return resultobj;
2692 fail:
2693 return NULL;
2694}
2695
2696
c32bde28 2697static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2698 PyObject *resultobj;
2699 long result;
2700 char *kwnames[] = {
2701 NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 result = (long)wxGetFreeMemory();
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) SWIG_fail;
2711 }
c32bde28 2712 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2713 return resultobj;
2714 fail:
2715 return NULL;
2716}
2717
2718
c32bde28 2719static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2720 PyObject *resultobj;
2721 int arg1 ;
2722 bool result;
2723 PyObject * obj0 = 0 ;
2724 char *kwnames[] = {
2725 (char *) "wFlags", NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
c32bde28 2729 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2730 if (PyErr_Occurred()) SWIG_fail;
2731 {
0439c23b 2732 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2733 PyThreadState* __tstate = wxPyBeginAllowThreads();
2734 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2735
2736 wxPyEndAllowThreads(__tstate);
110da5b0 2737 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2738 }
2739 {
2740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2741 }
2742 return resultobj;
2743 fail:
2744 return NULL;
2745}
2746
2747
c32bde28 2748static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2749 PyObject *resultobj;
2750 int arg1 ;
2751 PyObject * obj0 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "secs", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
c32bde28 2757 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2758 if (PyErr_Occurred()) SWIG_fail;
2759 {
2760 PyThreadState* __tstate = wxPyBeginAllowThreads();
2761 wxSleep(arg1);
2762
2763 wxPyEndAllowThreads(__tstate);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
2766 Py_INCREF(Py_None); resultobj = Py_None;
2767 return resultobj;
2768 fail:
2769 return NULL;
2770}
2771
2772
c32bde28 2773static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2774 PyObject *resultobj;
2775 unsigned long arg1 ;
2776 PyObject * obj0 = 0 ;
2777 char *kwnames[] = {
2778 (char *) "milliseconds", NULL
2779 };
2780
bf26d883 2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
c32bde28 2782 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
2783 if (PyErr_Occurred()) SWIG_fail;
2784 {
2785 PyThreadState* __tstate = wxPyBeginAllowThreads();
bf26d883
RD
2786 wxMilliSleep(arg1);
2787
2788 wxPyEndAllowThreads(__tstate);
2789 if (PyErr_Occurred()) SWIG_fail;
2790 }
2791 Py_INCREF(Py_None); resultobj = Py_None;
2792 return resultobj;
2793 fail:
2794 return NULL;
2795}
2796
2797
c32bde28 2798static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
bf26d883
RD
2799 PyObject *resultobj;
2800 unsigned long arg1 ;
2801 PyObject * obj0 = 0 ;
2802 char *kwnames[] = {
2803 (char *) "microseconds", NULL
2804 };
2805
2806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
c32bde28 2807 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
bf26d883
RD
2808 if (PyErr_Occurred()) SWIG_fail;
2809 {
2810 PyThreadState* __tstate = wxPyBeginAllowThreads();
2811 wxMicroSleep(arg1);
d55e5bfc
RD
2812
2813 wxPyEndAllowThreads(__tstate);
2814 if (PyErr_Occurred()) SWIG_fail;
2815 }
2816 Py_INCREF(Py_None); resultobj = Py_None;
2817 return resultobj;
2818 fail:
2819 return NULL;
2820}
2821
2822
c32bde28 2823static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2824 PyObject *resultobj;
2825 bool arg1 ;
2826 PyObject * obj0 = 0 ;
2827 char *kwnames[] = {
2828 (char *) "enable", NULL
2829 };
2830
2831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
c32bde28 2832 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
2833 if (PyErr_Occurred()) SWIG_fail;
2834 {
2835 PyThreadState* __tstate = wxPyBeginAllowThreads();
2836 wxEnableTopLevelWindows(arg1);
2837
2838 wxPyEndAllowThreads(__tstate);
2839 if (PyErr_Occurred()) SWIG_fail;
2840 }
2841 Py_INCREF(Py_None); resultobj = Py_None;
2842 return resultobj;
2843 fail:
2844 return NULL;
2845}
2846
2847
c32bde28 2848static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2849 PyObject *resultobj;
2850 wxString *arg1 = 0 ;
2851 wxString result;
2852 bool temp1 = False ;
2853 PyObject * obj0 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "in", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2859 {
2860 arg1 = wxString_in_helper(obj0);
2861 if (arg1 == NULL) SWIG_fail;
2862 temp1 = True;
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = wxStripMenuCodes((wxString const &)*arg1);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 {
2872#if wxUSE_UNICODE
2873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2874#else
2875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2876#endif
2877 }
2878 {
2879 if (temp1)
2880 delete arg1;
2881 }
2882 return resultobj;
2883 fail:
2884 {
2885 if (temp1)
2886 delete arg1;
2887 }
2888 return NULL;
2889}
2890
2891
c32bde28 2892static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2893 PyObject *resultobj;
2894 wxString result;
2895 char *kwnames[] = {
2896 NULL
2897 };
2898
2899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 result = wxGetEmailAddress();
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 {
2908#if wxUSE_UNICODE
2909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2910#else
2911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2912#endif
2913 }
2914 return resultobj;
2915 fail:
2916 return NULL;
2917}
2918
2919
c32bde28 2920static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2921 PyObject *resultobj;
2922 wxString result;
2923 char *kwnames[] = {
2924 NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2928 {
2929 PyThreadState* __tstate = wxPyBeginAllowThreads();
2930 result = wxGetHostName();
2931
2932 wxPyEndAllowThreads(__tstate);
2933 if (PyErr_Occurred()) SWIG_fail;
2934 }
2935 {
2936#if wxUSE_UNICODE
2937 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2938#else
2939 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2940#endif
2941 }
2942 return resultobj;
2943 fail:
2944 return NULL;
2945}
2946
2947
c32bde28 2948static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2949 PyObject *resultobj;
2950 wxString result;
2951 char *kwnames[] = {
2952 NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2956 {
2957 PyThreadState* __tstate = wxPyBeginAllowThreads();
2958 result = wxGetFullHostName();
2959
2960 wxPyEndAllowThreads(__tstate);
2961 if (PyErr_Occurred()) SWIG_fail;
2962 }
2963 {
2964#if wxUSE_UNICODE
2965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2966#else
2967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2968#endif
2969 }
2970 return resultobj;
2971 fail:
2972 return NULL;
2973}
2974
2975
c32bde28 2976static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2977 PyObject *resultobj;
2978 wxString result;
2979 char *kwnames[] = {
2980 NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = wxGetUserId();
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 {
2992#if wxUSE_UNICODE
2993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2994#else
2995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2996#endif
2997 }
2998 return resultobj;
2999 fail:
3000 return NULL;
3001}
3002
3003
c32bde28 3004static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3005 PyObject *resultobj;
3006 wxString result;
3007 char *kwnames[] = {
3008 NULL
3009 };
3010
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
3014 result = wxGetUserName();
3015
3016 wxPyEndAllowThreads(__tstate);
3017 if (PyErr_Occurred()) SWIG_fail;
3018 }
3019 {
3020#if wxUSE_UNICODE
3021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3022#else
3023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3024#endif
3025 }
3026 return resultobj;
3027 fail:
3028 return NULL;
3029}
3030
3031
c32bde28 3032static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3033 PyObject *resultobj;
3034 wxString result;
3035 char *kwnames[] = {
3036 NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3040 {
3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
3042 result = wxGetHomeDir();
3043
3044 wxPyEndAllowThreads(__tstate);
3045 if (PyErr_Occurred()) SWIG_fail;
3046 }
3047 {
3048#if wxUSE_UNICODE
3049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3050#else
3051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3052#endif
3053 }
3054 return resultobj;
3055 fail:
3056 return NULL;
3057}
3058
3059
c32bde28 3060static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3061 PyObject *resultobj;
3062 wxString const &arg1_defvalue = wxPyEmptyString ;
3063 wxString *arg1 = (wxString *) &arg1_defvalue ;
3064 wxString result;
3065 bool temp1 = False ;
3066 PyObject * obj0 = 0 ;
3067 char *kwnames[] = {
3068 (char *) "user", NULL
3069 };
3070
3071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3072 if (obj0) {
3073 {
3074 arg1 = wxString_in_helper(obj0);
3075 if (arg1 == NULL) SWIG_fail;
3076 temp1 = True;
3077 }
3078 }
3079 {
3080 PyThreadState* __tstate = wxPyBeginAllowThreads();
3081 result = wxGetUserHome((wxString const &)*arg1);
3082
3083 wxPyEndAllowThreads(__tstate);
3084 if (PyErr_Occurred()) SWIG_fail;
3085 }
3086 {
3087#if wxUSE_UNICODE
3088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3089#else
3090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3091#endif
3092 }
3093 {
3094 if (temp1)
3095 delete arg1;
3096 }
3097 return resultobj;
3098 fail:
3099 {
3100 if (temp1)
3101 delete arg1;
3102 }
3103 return NULL;
3104}
3105
3106
c32bde28 3107static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3108 PyObject *resultobj;
3109 unsigned long result;
3110 char *kwnames[] = {
3111 NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (unsigned long)wxGetProcessId();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
c32bde28 3122 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
3123 return resultobj;
3124 fail:
3125 return NULL;
3126}
3127
3128
c32bde28 3129static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3130 PyObject *resultobj;
3131 char *kwnames[] = {
3132 NULL
3133 };
3134
3135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3136 {
3137 PyThreadState* __tstate = wxPyBeginAllowThreads();
3138 wxTrap();
3139
3140 wxPyEndAllowThreads(__tstate);
3141 if (PyErr_Occurred()) SWIG_fail;
3142 }
3143 Py_INCREF(Py_None); resultobj = Py_None;
3144 return resultobj;
3145 fail:
3146 return NULL;
3147}
3148
3149
c32bde28 3150static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3151 PyObject *resultobj;
3152 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3153 wxString *arg1 = (wxString *) &arg1_defvalue ;
3154 wxString const &arg2_defvalue = wxPyEmptyString ;
3155 wxString *arg2 = (wxString *) &arg2_defvalue ;
3156 wxString const &arg3_defvalue = wxPyEmptyString ;
3157 wxString *arg3 = (wxString *) &arg3_defvalue ;
3158 wxString const &arg4_defvalue = wxPyEmptyString ;
3159 wxString *arg4 = (wxString *) &arg4_defvalue ;
3160 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3161 wxString *arg5 = (wxString *) &arg5_defvalue ;
3162 int arg6 = (int) 0 ;
3163 wxWindow *arg7 = (wxWindow *) NULL ;
3164 int arg8 = (int) -1 ;
3165 int arg9 = (int) -1 ;
3166 wxString result;
3167 bool temp1 = False ;
3168 bool temp2 = False ;
3169 bool temp3 = False ;
3170 bool temp4 = False ;
3171 bool temp5 = False ;
3172 PyObject * obj0 = 0 ;
3173 PyObject * obj1 = 0 ;
3174 PyObject * obj2 = 0 ;
3175 PyObject * obj3 = 0 ;
3176 PyObject * obj4 = 0 ;
3177 PyObject * obj5 = 0 ;
3178 PyObject * obj6 = 0 ;
3179 PyObject * obj7 = 0 ;
3180 PyObject * obj8 = 0 ;
3181 char *kwnames[] = {
3182 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3183 };
3184
3185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3186 if (obj0) {
3187 {
3188 arg1 = wxString_in_helper(obj0);
3189 if (arg1 == NULL) SWIG_fail;
3190 temp1 = True;
3191 }
3192 }
3193 if (obj1) {
3194 {
3195 arg2 = wxString_in_helper(obj1);
3196 if (arg2 == NULL) SWIG_fail;
3197 temp2 = True;
3198 }
3199 }
3200 if (obj2) {
3201 {
3202 arg3 = wxString_in_helper(obj2);
3203 if (arg3 == NULL) SWIG_fail;
3204 temp3 = True;
3205 }
3206 }
3207 if (obj3) {
3208 {
3209 arg4 = wxString_in_helper(obj3);
3210 if (arg4 == NULL) SWIG_fail;
3211 temp4 = True;
3212 }
3213 }
3214 if (obj4) {
3215 {
3216 arg5 = wxString_in_helper(obj4);
3217 if (arg5 == NULL) SWIG_fail;
3218 temp5 = True;
3219 }
3220 }
3221 if (obj5) {
c32bde28 3222 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 if (obj6) {
3226 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3228 }
3229 if (obj7) {
c32bde28 3230 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
3231 if (PyErr_Occurred()) SWIG_fail;
3232 }
3233 if (obj8) {
c32bde28 3234 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
3235 if (PyErr_Occurred()) SWIG_fail;
3236 }
3237 {
0439c23b 3238 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3241
3242 wxPyEndAllowThreads(__tstate);
110da5b0 3243 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3244 }
3245 {
3246#if wxUSE_UNICODE
3247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3248#else
3249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3250#endif
3251 }
3252 {
3253 if (temp1)
3254 delete arg1;
3255 }
3256 {
3257 if (temp2)
3258 delete arg2;
3259 }
3260 {
3261 if (temp3)
3262 delete arg3;
3263 }
3264 {
3265 if (temp4)
3266 delete arg4;
3267 }
3268 {
3269 if (temp5)
3270 delete arg5;
3271 }
3272 return resultobj;
3273 fail:
3274 {
3275 if (temp1)
3276 delete arg1;
3277 }
3278 {
3279 if (temp2)
3280 delete arg2;
3281 }
3282 {
3283 if (temp3)
3284 delete arg3;
3285 }
3286 {
3287 if (temp4)
3288 delete arg4;
3289 }
3290 {
3291 if (temp5)
3292 delete arg5;
3293 }
3294 return NULL;
3295}
3296
3297
c32bde28 3298static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3299 PyObject *resultobj;
3300 wxString *arg1 = 0 ;
3301 wxString *arg2 = 0 ;
3302 wxString const &arg3_defvalue = wxPyEmptyString ;
3303 wxString *arg3 = (wxString *) &arg3_defvalue ;
3304 wxWindow *arg4 = (wxWindow *) NULL ;
3305 wxString result;
3306 bool temp1 = False ;
3307 bool temp2 = False ;
3308 bool temp3 = False ;
3309 PyObject * obj0 = 0 ;
3310 PyObject * obj1 = 0 ;
3311 PyObject * obj2 = 0 ;
3312 PyObject * obj3 = 0 ;
3313 char *kwnames[] = {
3314 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3315 };
3316
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3318 {
3319 arg1 = wxString_in_helper(obj0);
3320 if (arg1 == NULL) SWIG_fail;
3321 temp1 = True;
3322 }
3323 {
3324 arg2 = wxString_in_helper(obj1);
3325 if (arg2 == NULL) SWIG_fail;
3326 temp2 = True;
3327 }
3328 if (obj2) {
3329 {
3330 arg3 = wxString_in_helper(obj2);
3331 if (arg3 == NULL) SWIG_fail;
3332 temp3 = True;
3333 }
3334 }
3335 if (obj3) {
3336 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3338 }
3339 {
0439c23b 3340 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3343
3344 wxPyEndAllowThreads(__tstate);
110da5b0 3345 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3346 }
3347 {
3348#if wxUSE_UNICODE
3349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3350#else
3351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3352#endif
3353 }
3354 {
3355 if (temp1)
3356 delete arg1;
3357 }
3358 {
3359 if (temp2)
3360 delete arg2;
3361 }
3362 {
3363 if (temp3)
3364 delete arg3;
3365 }
3366 return resultobj;
3367 fail:
3368 {
3369 if (temp1)
3370 delete arg1;
3371 }
3372 {
3373 if (temp2)
3374 delete arg2;
3375 }
3376 {
3377 if (temp3)
3378 delete arg3;
3379 }
3380 return NULL;
3381}
3382
3383
c32bde28 3384static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3385 PyObject *resultobj;
3386 wxString *arg1 = 0 ;
3387 wxString *arg2 = 0 ;
3388 wxString const &arg3_defvalue = wxPyEmptyString ;
3389 wxString *arg3 = (wxString *) &arg3_defvalue ;
3390 wxWindow *arg4 = (wxWindow *) NULL ;
3391 wxString result;
3392 bool temp1 = False ;
3393 bool temp2 = False ;
3394 bool temp3 = False ;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 PyObject * obj2 = 0 ;
3398 PyObject * obj3 = 0 ;
3399 char *kwnames[] = {
3400 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3401 };
3402
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3404 {
3405 arg1 = wxString_in_helper(obj0);
3406 if (arg1 == NULL) SWIG_fail;
3407 temp1 = True;
3408 }
3409 {
3410 arg2 = wxString_in_helper(obj1);
3411 if (arg2 == NULL) SWIG_fail;
3412 temp2 = True;
3413 }
3414 if (obj2) {
3415 {
3416 arg3 = wxString_in_helper(obj2);
3417 if (arg3 == NULL) SWIG_fail;
3418 temp3 = True;
3419 }
3420 }
3421 if (obj3) {
3422 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 }
3425 {
0439c23b 3426 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3429
3430 wxPyEndAllowThreads(__tstate);
110da5b0 3431 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3432 }
3433 {
3434#if wxUSE_UNICODE
3435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3436#else
3437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3438#endif
3439 }
3440 {
3441 if (temp1)
3442 delete arg1;
3443 }
3444 {
3445 if (temp2)
3446 delete arg2;
3447 }
3448 {
3449 if (temp3)
3450 delete arg3;
3451 }
3452 return resultobj;
3453 fail:
3454 {
3455 if (temp1)
3456 delete arg1;
3457 }
3458 {
3459 if (temp2)
3460 delete arg2;
3461 }
3462 {
3463 if (temp3)
3464 delete arg3;
3465 }
3466 return NULL;
3467}
3468
3469
c32bde28 3470static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3471 PyObject *resultobj;
3472 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3473 wxString *arg1 = (wxString *) &arg1_defvalue ;
3474 wxString const &arg2_defvalue = wxPyEmptyString ;
3475 wxString *arg2 = (wxString *) &arg2_defvalue ;
3476 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3477 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3478 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3479 wxWindow *arg5 = (wxWindow *) NULL ;
3480 wxString result;
3481 bool temp1 = False ;
3482 bool temp2 = False ;
3483 wxPoint temp4 ;
3484 PyObject * obj0 = 0 ;
3485 PyObject * obj1 = 0 ;
3486 PyObject * obj2 = 0 ;
3487 PyObject * obj3 = 0 ;
3488 PyObject * obj4 = 0 ;
3489 char *kwnames[] = {
3490 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3491 };
3492
3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3494 if (obj0) {
3495 {
3496 arg1 = wxString_in_helper(obj0);
3497 if (arg1 == NULL) SWIG_fail;
3498 temp1 = True;
3499 }
3500 }
3501 if (obj1) {
3502 {
3503 arg2 = wxString_in_helper(obj1);
3504 if (arg2 == NULL) SWIG_fail;
3505 temp2 = True;
3506 }
3507 }
3508 if (obj2) {
c32bde28 3509 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
3510 if (PyErr_Occurred()) SWIG_fail;
3511 }
3512 if (obj3) {
3513 {
3514 arg4 = &temp4;
3515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3516 }
3517 }
3518 if (obj4) {
3519 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3521 }
3522 {
0439c23b 3523 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
3525 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3526
3527 wxPyEndAllowThreads(__tstate);
110da5b0 3528 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3529 }
3530 {
3531#if wxUSE_UNICODE
3532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3533#else
3534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3535#endif
3536 }
3537 {
3538 if (temp1)
3539 delete arg1;
3540 }
3541 {
3542 if (temp2)
3543 delete arg2;
3544 }
3545 return resultobj;
3546 fail:
3547 {
3548 if (temp1)
3549 delete arg1;
3550 }
3551 {
3552 if (temp2)
3553 delete arg2;
3554 }
3555 return NULL;
3556}
3557
3558
c32bde28 3559static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3560 PyObject *resultobj;
3561 wxString *arg1 = 0 ;
3562 wxString const &arg2_defvalue = wxPyEmptyString ;
3563 wxString *arg2 = (wxString *) &arg2_defvalue ;
3564 wxString const &arg3_defvalue = wxPyEmptyString ;
3565 wxString *arg3 = (wxString *) &arg3_defvalue ;
3566 wxWindow *arg4 = (wxWindow *) NULL ;
3567 int arg5 = (int) -1 ;
3568 int arg6 = (int) -1 ;
3569 bool arg7 = (bool) True ;
3570 wxString result;
3571 bool temp1 = False ;
3572 bool temp2 = False ;
3573 bool temp3 = False ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 char *kwnames[] = {
3582 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3583 };
3584
3585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3586 {
3587 arg1 = wxString_in_helper(obj0);
3588 if (arg1 == NULL) SWIG_fail;
3589 temp1 = True;
3590 }
3591 if (obj1) {
3592 {
3593 arg2 = wxString_in_helper(obj1);
3594 if (arg2 == NULL) SWIG_fail;
3595 temp2 = True;
3596 }
3597 }
3598 if (obj2) {
3599 {
3600 arg3 = wxString_in_helper(obj2);
3601 if (arg3 == NULL) SWIG_fail;
3602 temp3 = True;
3603 }
3604 }
3605 if (obj3) {
3606 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3608 }
3609 if (obj4) {
c32bde28 3610 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 if (obj5) {
c32bde28 3614 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 if (obj6) {
c32bde28 3618 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 {
0439c23b 3622 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3625
3626 wxPyEndAllowThreads(__tstate);
110da5b0 3627 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3628 }
3629 {
3630#if wxUSE_UNICODE
3631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3632#else
3633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3634#endif
3635 }
3636 {
3637 if (temp1)
3638 delete arg1;
3639 }
3640 {
3641 if (temp2)
3642 delete arg2;
3643 }
3644 {
3645 if (temp3)
3646 delete arg3;
3647 }
3648 return resultobj;
3649 fail:
3650 {
3651 if (temp1)
3652 delete arg1;
3653 }
3654 {
3655 if (temp2)
3656 delete arg2;
3657 }
3658 {
3659 if (temp3)
3660 delete arg3;
3661 }
3662 return NULL;
3663}
3664
3665
c32bde28 3666static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3667 PyObject *resultobj;
3668 wxString *arg1 = 0 ;
3669 wxString const &arg2_defvalue = wxPyEmptyString ;
3670 wxString *arg2 = (wxString *) &arg2_defvalue ;
3671 wxString const &arg3_defvalue = wxPyEmptyString ;
3672 wxString *arg3 = (wxString *) &arg3_defvalue ;
3673 wxWindow *arg4 = (wxWindow *) NULL ;
3674 wxString result;
3675 bool temp1 = False ;
3676 bool temp2 = False ;
3677 bool temp3 = False ;
3678 PyObject * obj0 = 0 ;
3679 PyObject * obj1 = 0 ;
3680 PyObject * obj2 = 0 ;
3681 PyObject * obj3 = 0 ;
3682 char *kwnames[] = {
3683 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3684 };
3685
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3687 {
3688 arg1 = wxString_in_helper(obj0);
3689 if (arg1 == NULL) SWIG_fail;
3690 temp1 = True;
3691 }
3692 if (obj1) {
3693 {
3694 arg2 = wxString_in_helper(obj1);
3695 if (arg2 == NULL) SWIG_fail;
3696 temp2 = True;
3697 }
3698 }
3699 if (obj2) {
3700 {
3701 arg3 = wxString_in_helper(obj2);
3702 if (arg3 == NULL) SWIG_fail;
3703 temp3 = True;
3704 }
3705 }
3706 if (obj3) {
3707 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3709 }
3710 {
0439c23b 3711 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3714
3715 wxPyEndAllowThreads(__tstate);
110da5b0 3716 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3717 }
3718 {
3719#if wxUSE_UNICODE
3720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3721#else
3722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3723#endif
3724 }
3725 {
3726 if (temp1)
3727 delete arg1;
3728 }
3729 {
3730 if (temp2)
3731 delete arg2;
3732 }
3733 {
3734 if (temp3)
3735 delete arg3;
3736 }
3737 return resultobj;
3738 fail:
3739 {
3740 if (temp1)
3741 delete arg1;
3742 }
3743 {
3744 if (temp2)
3745 delete arg2;
3746 }
3747 {
3748 if (temp3)
3749 delete arg3;
3750 }
3751 return NULL;
3752}
3753
3754
c32bde28 3755static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3756 PyObject *resultobj;
3757 wxString *arg1 = 0 ;
3758 wxString *arg2 = 0 ;
3759 int arg3 ;
3760 wxString *arg4 = (wxString *) 0 ;
3761 wxWindow *arg5 = (wxWindow *) NULL ;
3762 int arg6 = (int) -1 ;
3763 int arg7 = (int) -1 ;
3764 bool arg8 = (bool) True ;
3765 int arg9 = (int) 150 ;
3766 int arg10 = (int) 200 ;
3767 wxString result;
3768 bool temp1 = False ;
3769 bool temp2 = False ;
3770 PyObject * obj0 = 0 ;
3771 PyObject * obj1 = 0 ;
3772 PyObject * obj2 = 0 ;
3773 PyObject * obj3 = 0 ;
3774 PyObject * obj4 = 0 ;
3775 PyObject * obj5 = 0 ;
3776 PyObject * obj6 = 0 ;
3777 PyObject * obj7 = 0 ;
3778 PyObject * obj8 = 0 ;
3779 char *kwnames[] = {
3780 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3781 };
3782
3783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3784 {
3785 arg1 = wxString_in_helper(obj0);
3786 if (arg1 == NULL) SWIG_fail;
3787 temp1 = True;
3788 }
3789 {
3790 arg2 = wxString_in_helper(obj1);
3791 if (arg2 == NULL) SWIG_fail;
3792 temp2 = True;
3793 }
3794 {
3795 arg3 = PyList_Size(obj2);
3796 arg4 = wxString_LIST_helper(obj2);
3797 if (arg4 == NULL) SWIG_fail;
3798 }
3799 if (obj3) {
3800 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3802 }
3803 if (obj4) {
c32bde28 3804 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 if (obj5) {
c32bde28 3808 arg7 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 if (obj6) {
c32bde28 3812 arg8 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
3813 if (PyErr_Occurred()) SWIG_fail;
3814 }
3815 if (obj7) {
c32bde28 3816 arg9 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
3817 if (PyErr_Occurred()) SWIG_fail;
3818 }
3819 if (obj8) {
c32bde28 3820 arg10 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
3823 {
0439c23b 3824 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3827
3828 wxPyEndAllowThreads(__tstate);
110da5b0 3829 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3830 }
3831 {
3832#if wxUSE_UNICODE
3833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3834#else
3835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3836#endif
3837 }
3838 {
3839 if (temp1)
3840 delete arg1;
3841 }
3842 {
3843 if (temp2)
3844 delete arg2;
3845 }
3846 {
3847 if (arg4) delete [] arg4;
3848 }
3849 return resultobj;
3850 fail:
3851 {
3852 if (temp1)
3853 delete arg1;
3854 }
3855 {
3856 if (temp2)
3857 delete arg2;
3858 }
3859 {
3860 if (arg4) delete [] arg4;
3861 }
3862 return NULL;
3863}
3864
3865
c32bde28 3866static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3867 PyObject *resultobj;
3868 wxString *arg1 = 0 ;
3869 wxString *arg2 = 0 ;
3870 int arg3 ;
3871 wxString *arg4 = (wxString *) 0 ;
3872 wxWindow *arg5 = (wxWindow *) NULL ;
3873 int arg6 = (int) -1 ;
3874 int arg7 = (int) -1 ;
3875 bool arg8 = (bool) True ;
3876 int arg9 = (int) 150 ;
3877 int arg10 = (int) 200 ;
3878 int result;
3879 bool temp1 = False ;
3880 bool temp2 = False ;
3881 PyObject * obj0 = 0 ;
3882 PyObject * obj1 = 0 ;
3883 PyObject * obj2 = 0 ;
3884 PyObject * obj3 = 0 ;
3885 PyObject * obj4 = 0 ;
3886 PyObject * obj5 = 0 ;
3887 PyObject * obj6 = 0 ;
3888 PyObject * obj7 = 0 ;
3889 PyObject * obj8 = 0 ;
3890 char *kwnames[] = {
3891 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3892 };
3893
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3895 {
3896 arg1 = wxString_in_helper(obj0);
3897 if (arg1 == NULL) SWIG_fail;
3898 temp1 = True;
3899 }
3900 {
3901 arg2 = wxString_in_helper(obj1);
3902 if (arg2 == NULL) SWIG_fail;
3903 temp2 = True;
3904 }
3905 {
3906 arg3 = PyList_Size(obj2);
3907 arg4 = wxString_LIST_helper(obj2);
3908 if (arg4 == NULL) SWIG_fail;
3909 }
3910 if (obj3) {
3911 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3913 }
3914 if (obj4) {
c32bde28 3915 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 if (obj5) {
c32bde28 3919 arg7 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 if (obj6) {
c32bde28 3923 arg8 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
3924 if (PyErr_Occurred()) SWIG_fail;
3925 }
3926 if (obj7) {
c32bde28 3927 arg9 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 if (obj8) {
c32bde28 3931 arg10 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
3932 if (PyErr_Occurred()) SWIG_fail;
3933 }
3934 {
0439c23b 3935 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
3937 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3938
3939 wxPyEndAllowThreads(__tstate);
110da5b0 3940 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 3941 }
c32bde28 3942 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3943 {
3944 if (temp1)
3945 delete arg1;
3946 }
3947 {
3948 if (temp2)
3949 delete arg2;
3950 }
3951 {
3952 if (arg4) delete [] arg4;
3953 }
3954 return resultobj;
3955 fail:
3956 {
3957 if (temp1)
3958 delete arg1;
3959 }
3960 {
3961 if (temp2)
3962 delete arg2;
3963 }
3964 {
3965 if (arg4) delete [] arg4;
3966 }
3967 return NULL;
3968}
3969
3970
c32bde28 3971static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3972 PyObject *resultobj;
3973 wxString *arg1 = 0 ;
3974 wxString const &arg2_defvalue = wxPyEmptyString ;
3975 wxString *arg2 = (wxString *) &arg2_defvalue ;
3976 int arg3 = (int) wxOK|wxCENTRE ;
3977 wxWindow *arg4 = (wxWindow *) NULL ;
3978 int arg5 = (int) -1 ;
3979 int arg6 = (int) -1 ;
3980 int result;
3981 bool temp1 = False ;
3982 bool temp2 = False ;
3983 PyObject * obj0 = 0 ;
3984 PyObject * obj1 = 0 ;
3985 PyObject * obj2 = 0 ;
3986 PyObject * obj3 = 0 ;
3987 PyObject * obj4 = 0 ;
3988 PyObject * obj5 = 0 ;
3989 char *kwnames[] = {
3990 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3991 };
3992
3993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3994 {
3995 arg1 = wxString_in_helper(obj0);
3996 if (arg1 == NULL) SWIG_fail;
3997 temp1 = True;
3998 }
3999 if (obj1) {
4000 {
4001 arg2 = wxString_in_helper(obj1);
4002 if (arg2 == NULL) SWIG_fail;
4003 temp2 = True;
4004 }
4005 }
4006 if (obj2) {
c32bde28 4007 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 if (obj3) {
4011 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4013 }
4014 if (obj4) {
c32bde28 4015 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
4016 if (PyErr_Occurred()) SWIG_fail;
4017 }
4018 if (obj5) {
c32bde28 4019 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 {
0439c23b 4023 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4026
4027 wxPyEndAllowThreads(__tstate);
110da5b0 4028 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4029 }
c32bde28 4030 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4031 {
4032 if (temp1)
4033 delete arg1;
4034 }
4035 {
4036 if (temp2)
4037 delete arg2;
4038 }
4039 return resultobj;
4040 fail:
4041 {
4042 if (temp1)
4043 delete arg1;
4044 }
4045 {
4046 if (temp2)
4047 delete arg2;
4048 }
4049 return NULL;
4050}
4051
4052
c32bde28 4053static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4054 PyObject *resultobj;
4055 wxString *arg1 = 0 ;
4056 wxString *arg2 = 0 ;
4057 wxString *arg3 = 0 ;
4058 long arg4 ;
4059 long arg5 = (long) 0 ;
4060 long arg6 = (long) 100 ;
4061 wxWindow *arg7 = (wxWindow *) NULL ;
4062 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4063 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4064 long result;
4065 bool temp1 = False ;
4066 bool temp2 = False ;
4067 bool temp3 = False ;
4068 wxPoint temp8 ;
4069 PyObject * obj0 = 0 ;
4070 PyObject * obj1 = 0 ;
4071 PyObject * obj2 = 0 ;
4072 PyObject * obj3 = 0 ;
4073 PyObject * obj4 = 0 ;
4074 PyObject * obj5 = 0 ;
4075 PyObject * obj6 = 0 ;
4076 PyObject * obj7 = 0 ;
4077 char *kwnames[] = {
4078 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4079 };
4080
4081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4082 {
4083 arg1 = wxString_in_helper(obj0);
4084 if (arg1 == NULL) SWIG_fail;
4085 temp1 = True;
4086 }
4087 {
4088 arg2 = wxString_in_helper(obj1);
4089 if (arg2 == NULL) SWIG_fail;
4090 temp2 = True;
4091 }
4092 {
4093 arg3 = wxString_in_helper(obj2);
4094 if (arg3 == NULL) SWIG_fail;
4095 temp3 = True;
4096 }
c32bde28 4097 arg4 = (long)SWIG_As_long(obj3);
d55e5bfc
RD
4098 if (PyErr_Occurred()) SWIG_fail;
4099 if (obj4) {
c32bde28 4100 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 if (obj5) {
c32bde28 4104 arg6 = (long)SWIG_As_long(obj5);
d55e5bfc
RD
4105 if (PyErr_Occurred()) SWIG_fail;
4106 }
4107 if (obj6) {
4108 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4110 }
4111 if (obj7) {
4112 {
4113 arg8 = &temp8;
4114 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4115 }
4116 }
4117 {
0439c23b 4118 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4121
4122 wxPyEndAllowThreads(__tstate);
110da5b0 4123 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4124 }
c32bde28 4125 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
4126 {
4127 if (temp1)
4128 delete arg1;
4129 }
4130 {
4131 if (temp2)
4132 delete arg2;
4133 }
4134 {
4135 if (temp3)
4136 delete arg3;
4137 }
4138 return resultobj;
4139 fail:
4140 {
4141 if (temp1)
4142 delete arg1;
4143 }
4144 {
4145 if (temp2)
4146 delete arg2;
4147 }
4148 {
4149 if (temp3)
4150 delete arg3;
4151 }
4152 return NULL;
4153}
4154
4155
c32bde28 4156static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4157 PyObject *resultobj;
4158 bool result;
4159 char *kwnames[] = {
4160 NULL
4161 };
4162
4163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4164 {
0439c23b 4165 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (bool)wxColourDisplay();
4168
4169 wxPyEndAllowThreads(__tstate);
110da5b0 4170 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4171 }
4172 {
4173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4174 }
4175 return resultobj;
4176 fail:
4177 return NULL;
4178}
4179
4180
c32bde28 4181static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4182 PyObject *resultobj;
4183 int result;
4184 char *kwnames[] = {
4185 NULL
4186 };
4187
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4189 {
0439c23b 4190 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (int)wxDisplayDepth();
4193
4194 wxPyEndAllowThreads(__tstate);
110da5b0 4195 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4196 }
c32bde28 4197 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4198 return resultobj;
4199 fail:
4200 return NULL;
4201}
4202
4203
c32bde28 4204static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4205 PyObject *resultobj;
4206 int result;
4207 char *kwnames[] = {
4208 NULL
4209 };
4210
4211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4212 {
0439c23b 4213 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 result = (int)wxGetDisplayDepth();
4216
4217 wxPyEndAllowThreads(__tstate);
110da5b0 4218 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4219 }
c32bde28 4220 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4221 return resultobj;
4222 fail:
4223 return NULL;
4224}
4225
4226
c32bde28 4227static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4228 PyObject *resultobj;
4229 int *arg1 = (int *) 0 ;
4230 int *arg2 = (int *) 0 ;
4231 int temp1 ;
c32bde28 4232 int res1 = 0 ;
d55e5bfc 4233 int temp2 ;
c32bde28 4234 int res2 = 0 ;
d55e5bfc
RD
4235 char *kwnames[] = {
4236 NULL
4237 };
4238
c32bde28
RD
4239 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4240 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
4241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4242 {
0439c23b 4243 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
4245 wxDisplaySize(arg1,arg2);
4246
4247 wxPyEndAllowThreads(__tstate);
110da5b0 4248 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4249 }
4250 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
4251 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4252 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4253 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4254 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4255 return resultobj;
4256 fail:
4257 return NULL;
4258}
4259
4260
c32bde28 4261static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4262 PyObject *resultobj;
4263 wxSize result;
4264 char *kwnames[] = {
4265 NULL
4266 };
4267
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4269 {
0439c23b 4270 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = wxGetDisplaySize();
4273
4274 wxPyEndAllowThreads(__tstate);
110da5b0 4275 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4276 }
4277 {
4278 wxSize * resultptr;
4279 resultptr = new wxSize((wxSize &) result);
4280 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4281 }
4282 return resultobj;
4283 fail:
4284 return NULL;
4285}
4286
4287
c32bde28 4288static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4289 PyObject *resultobj;
4290 int *arg1 = (int *) 0 ;
4291 int *arg2 = (int *) 0 ;
4292 int temp1 ;
c32bde28 4293 int res1 = 0 ;
d55e5bfc 4294 int temp2 ;
c32bde28 4295 int res2 = 0 ;
d55e5bfc
RD
4296 char *kwnames[] = {
4297 NULL
4298 };
4299
c32bde28
RD
4300 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4301 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4303 {
0439c23b 4304 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 wxDisplaySizeMM(arg1,arg2);
4307
4308 wxPyEndAllowThreads(__tstate);
110da5b0 4309 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4310 }
4311 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
4312 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4313 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4314 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4315 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4316 return resultobj;
4317 fail:
4318 return NULL;
4319}
4320
4321
c32bde28 4322static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4323 PyObject *resultobj;
4324 wxSize result;
4325 char *kwnames[] = {
4326 NULL
4327 };
4328
4329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4330 {
0439c23b 4331 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = wxGetDisplaySizeMM();
4334
4335 wxPyEndAllowThreads(__tstate);
110da5b0 4336 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4337 }
4338 {
4339 wxSize * resultptr;
4340 resultptr = new wxSize((wxSize &) result);
4341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4342 }
4343 return resultobj;
4344 fail:
4345 return NULL;
4346}
4347
4348
c32bde28 4349static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4350 PyObject *resultobj;
4351 int *arg1 = (int *) 0 ;
4352 int *arg2 = (int *) 0 ;
4353 int *arg3 = (int *) 0 ;
4354 int *arg4 = (int *) 0 ;
4355 int temp1 ;
c32bde28 4356 int res1 = 0 ;
d55e5bfc 4357 int temp2 ;
c32bde28 4358 int res2 = 0 ;
d55e5bfc 4359 int temp3 ;
c32bde28 4360 int res3 = 0 ;
d55e5bfc 4361 int temp4 ;
c32bde28 4362 int res4 = 0 ;
d55e5bfc
RD
4363 char *kwnames[] = {
4364 NULL
4365 };
4366
c32bde28
RD
4367 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4368 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4369 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4370 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4372 {
0439c23b 4373 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4376
4377 wxPyEndAllowThreads(__tstate);
110da5b0 4378 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4379 }
4380 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
4381 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4382 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4383 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4384 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4385 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4386 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4387 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4388 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4389 return resultobj;
4390 fail:
4391 return NULL;
4392}
4393
4394
c32bde28 4395static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4396 PyObject *resultobj;
4397 wxRect result;
4398 char *kwnames[] = {
4399 NULL
4400 };
4401
4402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4403 {
0439c23b 4404 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4405 PyThreadState* __tstate = wxPyBeginAllowThreads();
4406 result = wxGetClientDisplayRect();
4407
4408 wxPyEndAllowThreads(__tstate);
110da5b0 4409 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4410 }
4411 {
4412 wxRect * resultptr;
4413 resultptr = new wxRect((wxRect &) result);
4414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4415 }
4416 return resultobj;
4417 fail:
4418 return NULL;
4419}
4420
4421
c32bde28 4422static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4423 PyObject *resultobj;
4424 wxCursor *arg1 = 0 ;
4425 PyObject * obj0 = 0 ;
4426 char *kwnames[] = {
4427 (char *) "cursor", NULL
4428 };
4429
4430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4432 SWIG_POINTER_EXCEPTION | 0)) == -1)
4433 SWIG_fail;
4434 if (arg1 == NULL) {
4435 PyErr_SetString(PyExc_TypeError,"null reference");
4436 SWIG_fail;
4437 }
4438 {
0439c23b 4439 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 wxSetCursor(*arg1);
4442
4443 wxPyEndAllowThreads(__tstate);
110da5b0 4444 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4445 }
4446 Py_INCREF(Py_None); resultobj = Py_None;
4447 return resultobj;
4448 fail:
4449 return NULL;
4450}
4451
4452
c32bde28 4453static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4454 PyObject *resultobj;
4455 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "cursor", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4462 if (obj0) {
4463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4465 }
4466 {
0439c23b 4467 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 wxBeginBusyCursor(arg1);
4470
4471 wxPyEndAllowThreads(__tstate);
110da5b0 4472 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4473 }
4474 Py_INCREF(Py_None); resultobj = Py_None;
4475 return resultobj;
4476 fail:
4477 return NULL;
4478}
4479
4480
c32bde28 4481static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4482 PyObject *resultobj;
4483 wxWindow *result;
4484 char *kwnames[] = {
4485 NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4489 {
0439c23b 4490 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 result = (wxWindow *)wxGetActiveWindow();
4493
4494 wxPyEndAllowThreads(__tstate);
110da5b0 4495 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4496 }
4497 {
412d302d 4498 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4499 }
4500 return resultobj;
4501 fail:
4502 return NULL;
4503}
4504
4505
c32bde28 4506static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4507 PyObject *resultobj;
4508 wxPoint *arg1 = 0 ;
4509 wxWindow *result;
4510 wxPoint temp1 ;
4511 PyObject * obj0 = 0 ;
4512 char *kwnames[] = {
4513 (char *) "pt", NULL
4514 };
4515
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4517 {
4518 arg1 = &temp1;
4519 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4520 }
4521 {
0439c23b 4522 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4525
4526 wxPyEndAllowThreads(__tstate);
110da5b0 4527 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4528 }
4529 {
412d302d 4530 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4531 }
4532 return resultobj;
4533 fail:
4534 return NULL;
4535}
4536
4537
c32bde28 4538static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4539 PyObject *resultobj;
4540 wxPoint *arg1 = 0 ;
4541 wxWindow *result;
4542 wxPoint temp1 ;
4543 PyObject * obj0 = 0 ;
4544 char *kwnames[] = {
4545 (char *) "pt", NULL
4546 };
4547
4548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4549 {
4550 arg1 = &temp1;
4551 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4552 }
4553 {
0439c23b 4554 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4557
4558 wxPyEndAllowThreads(__tstate);
110da5b0 4559 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4560 }
4561 {
412d302d 4562 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4563 }
4564 return resultobj;
4565 fail:
4566 return NULL;
4567}
4568
4569
c32bde28 4570static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4571 PyObject *resultobj;
4572 wxWindow *arg1 = (wxWindow *) 0 ;
4573 wxWindow *result;
4574 PyObject * obj0 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "win", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4582 {
0439c23b 4583 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 result = (wxWindow *)wxGetTopLevelParent(arg1);
4586
4587 wxPyEndAllowThreads(__tstate);
110da5b0 4588 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4589 }
4590 {
412d302d 4591 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4592 }
4593 return resultobj;
4594 fail:
4595 return NULL;
4596}
4597
4598
c32bde28 4599static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4600 PyObject *resultobj;
4601 int arg1 ;
4602 bool result;
4603 PyObject * obj0 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "key", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
c32bde28 4609 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4610 if (PyErr_Occurred()) SWIG_fail;
4611 {
0439c23b 4612 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4615
4616 wxPyEndAllowThreads(__tstate);
110da5b0 4617 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4618 }
4619 {
4620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4621 }
4622 return resultobj;
4623 fail:
4624 return NULL;
4625}
4626
4627
c32bde28 4628static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4629 PyObject *resultobj;
4630 char *kwnames[] = {
4631 NULL
4632 };
4633
4634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4635 {
0439c23b 4636 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 wxWakeUpMainThread();
4639
4640 wxPyEndAllowThreads(__tstate);
110da5b0 4641 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4642 }
4643 Py_INCREF(Py_None); resultobj = Py_None;
4644 return resultobj;
4645 fail:
4646 return NULL;
4647}
4648
4649
c32bde28 4650static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4651 PyObject *resultobj;
4652 char *kwnames[] = {
4653 NULL
4654 };
4655
4656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4657 {
0439c23b 4658 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
4660 wxMutexGuiEnter();
4661
4662 wxPyEndAllowThreads(__tstate);
110da5b0 4663 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4664 }
4665 Py_INCREF(Py_None); resultobj = Py_None;
4666 return resultobj;
4667 fail:
4668 return NULL;
4669}
4670
4671
c32bde28 4672static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4673 PyObject *resultobj;
4674 char *kwnames[] = {
4675 NULL
4676 };
4677
4678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4679 {
0439c23b 4680 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4681 PyThreadState* __tstate = wxPyBeginAllowThreads();
4682 wxMutexGuiLeave();
4683
4684 wxPyEndAllowThreads(__tstate);
110da5b0 4685 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4686 }
4687 Py_INCREF(Py_None); resultobj = Py_None;
4688 return resultobj;
4689 fail:
4690 return NULL;
4691}
4692
4693
c32bde28 4694static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4695 PyObject *resultobj;
4696 wxMutexGuiLocker *result;
4697 char *kwnames[] = {
4698 NULL
4699 };
4700
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4702 {
0439c23b 4703 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4706
4707 wxPyEndAllowThreads(__tstate);
110da5b0 4708 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4709 }
4710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4711 return resultobj;
4712 fail:
4713 return NULL;
4714}
4715
4716
c32bde28 4717static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4718 PyObject *resultobj;
4719 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4720 PyObject * obj0 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "self", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 delete arg1;
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 Py_INCREF(Py_None); resultobj = Py_None;
4736 return resultobj;
4737 fail:
4738 return NULL;
4739}
4740
4741
c32bde28 4742static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4743 PyObject *obj;
4744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4745 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4746 Py_INCREF(obj);
4747 return Py_BuildValue((char *)"");
4748}
c32bde28 4749static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4750 PyObject *resultobj;
4751 bool result;
4752 char *kwnames[] = {
4753 NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4757 {
4758 PyThreadState* __tstate = wxPyBeginAllowThreads();
4759 result = (bool)wxThread_IsMain();
4760
4761 wxPyEndAllowThreads(__tstate);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 {
4765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4766 }
4767 return resultobj;
4768 fail:
4769 return NULL;
4770}
4771
4772
c32bde28 4773static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4774 PyObject *resultobj;
4775 wxString *arg1 = 0 ;
4776 wxToolTip *result;
4777 bool temp1 = False ;
4778 PyObject * obj0 = 0 ;
4779 char *kwnames[] = {
4780 (char *) "tip", NULL
4781 };
4782
4783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4784 {
4785 arg1 = wxString_in_helper(obj0);
4786 if (arg1 == NULL) SWIG_fail;
4787 temp1 = True;
4788 }
4789 {
0439c23b 4790 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4793
4794 wxPyEndAllowThreads(__tstate);
110da5b0 4795 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4796 }
4797 {
412d302d 4798 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
4799 }
4800 {
4801 if (temp1)
4802 delete arg1;
4803 }
4804 return resultobj;
4805 fail:
4806 {
4807 if (temp1)
4808 delete arg1;
4809 }
4810 return NULL;
4811}
4812
4813
c32bde28 4814static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4815 PyObject *resultobj;
4816 wxToolTip *arg1 = (wxToolTip *) 0 ;
4817 wxString *arg2 = 0 ;
4818 bool temp2 = False ;
4819 PyObject * obj0 = 0 ;
4820 PyObject * obj1 = 0 ;
4821 char *kwnames[] = {
4822 (char *) "self",(char *) "tip", NULL
4823 };
4824
4825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4828 {
4829 arg2 = wxString_in_helper(obj1);
4830 if (arg2 == NULL) SWIG_fail;
4831 temp2 = True;
4832 }
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 (arg1)->SetTip((wxString const &)*arg2);
4836
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 Py_INCREF(Py_None); resultobj = Py_None;
4841 {
4842 if (temp2)
4843 delete arg2;
4844 }
4845 return resultobj;
4846 fail:
4847 {
4848 if (temp2)
4849 delete arg2;
4850 }
4851 return NULL;
4852}
4853
4854
c32bde28 4855static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4856 PyObject *resultobj;
4857 wxToolTip *arg1 = (wxToolTip *) 0 ;
4858 wxString result;
4859 PyObject * obj0 = 0 ;
4860 char *kwnames[] = {
4861 (char *) "self", NULL
4862 };
4863
4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4867 {
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4869 result = (arg1)->GetTip();
4870
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 {
4875#if wxUSE_UNICODE
4876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4877#else
4878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4879#endif
4880 }
4881 return resultobj;
4882 fail:
4883 return NULL;
4884}
4885
4886
c32bde28 4887static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4888 PyObject *resultobj;
4889 wxToolTip *arg1 = (wxToolTip *) 0 ;
4890 wxWindow *result;
4891 PyObject * obj0 = 0 ;
4892 char *kwnames[] = {
4893 (char *) "self", NULL
4894 };
4895
4896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 result = (wxWindow *)(arg1)->GetWindow();
4902
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 {
412d302d 4907 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4908 }
4909 return resultobj;
4910 fail:
4911 return NULL;
4912}
4913
4914
c32bde28 4915static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4916 PyObject *resultobj;
4917 bool arg1 ;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "flag", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
c32bde28 4924 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
4925 if (PyErr_Occurred()) SWIG_fail;
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 wxToolTip::Enable(arg1);
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 Py_INCREF(Py_None); resultobj = Py_None;
4934 return resultobj;
4935 fail:
4936 return NULL;
4937}
4938
4939
c32bde28 4940static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4941 PyObject *resultobj;
4942 long arg1 ;
4943 PyObject * obj0 = 0 ;
4944 char *kwnames[] = {
4945 (char *) "milliseconds", NULL
4946 };
4947
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
c32bde28 4949 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
4950 if (PyErr_Occurred()) SWIG_fail;
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 wxToolTip::SetDelay(arg1);
4954
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 Py_INCREF(Py_None); resultobj = Py_None;
4959 return resultobj;
4960 fail:
4961 return NULL;
4962}
4963
4964
c32bde28 4965static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4966 PyObject *obj;
4967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4968 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4969 Py_INCREF(obj);
4970 return Py_BuildValue((char *)"");
4971}
c32bde28 4972static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4973 PyObject *resultobj;
4974 wxWindow *arg1 = (wxWindow *) 0 ;
4975 wxSize *arg2 = 0 ;
4976 wxCaret *result;
4977 wxSize temp2 ;
4978 PyObject * obj0 = 0 ;
4979 PyObject * obj1 = 0 ;
4980 char *kwnames[] = {
4981 (char *) "window",(char *) "size", NULL
4982 };
4983
4984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4987 {
4988 arg2 = &temp2;
4989 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4990 }
4991 {
0439c23b 4992 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4995
4996 wxPyEndAllowThreads(__tstate);
110da5b0 4997 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4998 }
4999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5000 return resultobj;
5001 fail:
5002 return NULL;
5003}
5004
5005
c32bde28 5006static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5007 PyObject *resultobj;
5008 wxCaret *arg1 = (wxCaret *) 0 ;
5009 PyObject * obj0 = 0 ;
5010 char *kwnames[] = {
5011 (char *) "self", NULL
5012 };
5013
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 delete arg1;
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 Py_INCREF(Py_None); resultobj = Py_None;
5025 return resultobj;
5026 fail:
5027 return NULL;
5028}
5029
5030
c32bde28 5031static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5032 PyObject *resultobj;
5033 wxCaret *arg1 = (wxCaret *) 0 ;
5034 bool result;
5035 PyObject * obj0 = 0 ;
5036 char *kwnames[] = {
5037 (char *) "self", NULL
5038 };
5039
5040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5043 {
5044 PyThreadState* __tstate = wxPyBeginAllowThreads();
5045 result = (bool)(arg1)->IsOk();
5046
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 {
5051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5052 }
5053 return resultobj;
5054 fail:
5055 return NULL;
5056}
5057
5058
c32bde28 5059static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5060 PyObject *resultobj;
5061 wxCaret *arg1 = (wxCaret *) 0 ;
5062 bool result;
5063 PyObject * obj0 = 0 ;
5064 char *kwnames[] = {
5065 (char *) "self", NULL
5066 };
5067
5068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5071 {
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 result = (bool)(arg1)->IsVisible();
5074
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 {
5079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5080 }
5081 return resultobj;
5082 fail:
5083 return NULL;
5084}
5085
5086
c32bde28 5087static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5088 PyObject *resultobj;
5089 wxCaret *arg1 = (wxCaret *) 0 ;
5090 wxPoint result;
5091 PyObject * obj0 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "self", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (arg1)->GetPosition();
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 {
5107 wxPoint * resultptr;
5108 resultptr = new wxPoint((wxPoint &) result);
5109 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5110 }
5111 return resultobj;
5112 fail:
5113 return NULL;
5114}
5115
5116
c32bde28 5117static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5118 PyObject *resultobj;
5119 wxCaret *arg1 = (wxCaret *) 0 ;
5120 int *arg2 = (int *) 0 ;
5121 int *arg3 = (int *) 0 ;
5122 int temp2 ;
c32bde28 5123 int res2 = 0 ;
d55e5bfc 5124 int temp3 ;
c32bde28 5125 int res3 = 0 ;
d55e5bfc
RD
5126 PyObject * obj0 = 0 ;
5127 char *kwnames[] = {
5128 (char *) "self", NULL
5129 };
5130
c32bde28
RD
5131 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5132 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 (arg1)->GetPosition(arg2,arg3);
5139
5140 wxPyEndAllowThreads(__tstate);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 }
5143 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
5144 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5145 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5146 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5147 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5148 return resultobj;
5149 fail:
5150 return NULL;
5151}
5152
5153
c32bde28 5154static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5155 PyObject *resultobj;
5156 wxCaret *arg1 = (wxCaret *) 0 ;
5157 wxSize result;
5158 PyObject * obj0 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (arg1)->GetSize();
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 {
5174 wxSize * resultptr;
5175 resultptr = new wxSize((wxSize &) result);
5176 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5177 }
5178 return resultobj;
5179 fail:
5180 return NULL;
5181}
5182
5183
c32bde28 5184static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5185 PyObject *resultobj;
5186 wxCaret *arg1 = (wxCaret *) 0 ;
5187 int *arg2 = (int *) 0 ;
5188 int *arg3 = (int *) 0 ;
5189 int temp2 ;
c32bde28 5190 int res2 = 0 ;
d55e5bfc 5191 int temp3 ;
c32bde28 5192 int res3 = 0 ;
d55e5bfc
RD
5193 PyObject * obj0 = 0 ;
5194 char *kwnames[] = {
5195 (char *) "self", NULL
5196 };
5197
c32bde28
RD
5198 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5199 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 (arg1)->GetSize(arg2,arg3);
5206
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
5211 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5212 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5213 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5214 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5215 return resultobj;
5216 fail:
5217 return NULL;
5218}
5219
5220
c32bde28 5221static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5222 PyObject *resultobj;
5223 wxCaret *arg1 = (wxCaret *) 0 ;
5224 wxWindow *result;
5225 PyObject * obj0 = 0 ;
5226 char *kwnames[] = {
5227 (char *) "self", NULL
5228 };
5229
5230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (wxWindow *)(arg1)->GetWindow();
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 {
412d302d 5241 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
5242 }
5243 return resultobj;
5244 fail:
5245 return NULL;
5246}
5247
5248
c32bde28 5249static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5250 PyObject *resultobj;
5251 wxCaret *arg1 = (wxCaret *) 0 ;
5252 int arg2 ;
5253 int arg3 ;
5254 PyObject * obj0 = 0 ;
5255 PyObject * obj1 = 0 ;
5256 PyObject * obj2 = 0 ;
5257 char *kwnames[] = {
5258 (char *) "self",(char *) "x",(char *) "y", NULL
5259 };
5260
5261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5264 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5265 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5266 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5267 if (PyErr_Occurred()) SWIG_fail;
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 (arg1)->Move(arg2,arg3);
5271
5272 wxPyEndAllowThreads(__tstate);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 Py_INCREF(Py_None); resultobj = Py_None;
5276 return resultobj;
5277 fail:
5278 return NULL;
5279}
5280
5281
c32bde28 5282static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5283 PyObject *resultobj;
5284 wxCaret *arg1 = (wxCaret *) 0 ;
5285 wxPoint *arg2 = 0 ;
5286 wxPoint temp2 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char *kwnames[] = {
5290 (char *) "self",(char *) "pt", NULL
5291 };
5292
5293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5296 {
5297 arg2 = &temp2;
5298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5299 }
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 (arg1)->Move((wxPoint const &)*arg2);
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 Py_INCREF(Py_None); resultobj = Py_None;
5308 return resultobj;
5309 fail:
5310 return NULL;
5311}
5312
5313
c32bde28 5314static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5315 PyObject *resultobj;
5316 wxCaret *arg1 = (wxCaret *) 0 ;
5317 int arg2 ;
5318 int arg3 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 PyObject * obj2 = 0 ;
5322 char *kwnames[] = {
5323 (char *) "self",(char *) "width",(char *) "height", NULL
5324 };
5325
5326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5329 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5330 if (PyErr_Occurred()) SWIG_fail;
c32bde28 5331 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5332 if (PyErr_Occurred()) SWIG_fail;
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 (arg1)->SetSize(arg2,arg3);
5336
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 Py_INCREF(Py_None); resultobj = Py_None;
5341 return resultobj;
5342 fail:
5343 return NULL;
5344}
5345
5346
c32bde28 5347static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5348 PyObject *resultobj;
5349 wxCaret *arg1 = (wxCaret *) 0 ;
5350 wxSize *arg2 = 0 ;
5351 wxSize temp2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char *kwnames[] = {
5355 (char *) "self",(char *) "size", NULL
5356 };
5357
5358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5361 {
5362 arg2 = &temp2;
5363 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5364 }
5365 {
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 (arg1)->SetSize((wxSize const &)*arg2);
5368
5369 wxPyEndAllowThreads(__tstate);
5370 if (PyErr_Occurred()) SWIG_fail;
5371 }
5372 Py_INCREF(Py_None); resultobj = Py_None;
5373 return resultobj;
5374 fail:
5375 return NULL;
5376}
5377
5378
c32bde28 5379static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5380 PyObject *resultobj;
5381 wxCaret *arg1 = (wxCaret *) 0 ;
5382 int arg2 = (int) True ;
5383 PyObject * obj0 = 0 ;
5384 PyObject * obj1 = 0 ;
5385 char *kwnames[] = {
5386 (char *) "self",(char *) "show", NULL
5387 };
5388
5389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5392 if (obj1) {
c32bde28 5393 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 (arg1)->Show(arg2);
5399
5400 wxPyEndAllowThreads(__tstate);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 }
5403 Py_INCREF(Py_None); resultobj = Py_None;
5404 return resultobj;
5405 fail:
5406 return NULL;
5407}
5408
5409
c32bde28 5410static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5411 PyObject *resultobj;
5412 wxCaret *arg1 = (wxCaret *) 0 ;
5413 PyObject * obj0 = 0 ;
5414 char *kwnames[] = {
5415 (char *) "self", NULL
5416 };
5417
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 (arg1)->Hide();
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 Py_INCREF(Py_None); resultobj = Py_None;
5429 return resultobj;
5430 fail:
5431 return NULL;
5432}
5433
5434
c32bde28 5435static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5436 PyObject *obj;
5437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5438 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5439 Py_INCREF(obj);
5440 return Py_BuildValue((char *)"");
5441}
c32bde28 5442static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5443 PyObject *resultobj;
5444 int result;
5445 char *kwnames[] = {
5446 NULL
5447 };
5448
5449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 result = (int)wxCaret_GetBlinkTime();
5453
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
c32bde28 5457 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5458 return resultobj;
5459 fail:
5460 return NULL;
5461}
5462
5463
c32bde28 5464static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5465 PyObject *resultobj;
5466 int arg1 ;
5467 PyObject * obj0 = 0 ;
5468 char *kwnames[] = {
5469 (char *) "milliseconds", NULL
5470 };
5471
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
c32bde28 5473 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5474 if (PyErr_Occurred()) SWIG_fail;
5475 {
5476 PyThreadState* __tstate = wxPyBeginAllowThreads();
5477 wxCaret_SetBlinkTime(arg1);
5478
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 Py_INCREF(Py_None); resultobj = Py_None;
5483 return resultobj;
5484 fail:
5485 return NULL;
5486}
5487
5488
c32bde28 5489static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5490 PyObject *resultobj;
5491 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5492 wxBusyCursor *result;
5493 PyObject * obj0 = 0 ;
5494 char *kwnames[] = {
5495 (char *) "cursor", NULL
5496 };
5497
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5499 if (obj0) {
5500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5502 }
5503 {
0439c23b 5504 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5507
5508 wxPyEndAllowThreads(__tstate);
110da5b0 5509 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5510 }
5511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5512 return resultobj;
5513 fail:
5514 return NULL;
5515}
5516
5517
c32bde28 5518static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5519 PyObject *resultobj;
5520 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5521 PyObject * obj0 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 delete arg1;
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 Py_INCREF(Py_None); resultobj = Py_None;
5537 return resultobj;
5538 fail:
5539 return NULL;
5540}
5541
5542
c32bde28 5543static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5544 PyObject *obj;
5545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5546 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5547 Py_INCREF(obj);
5548 return Py_BuildValue((char *)"");
5549}
c32bde28 5550static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5551 PyObject *resultobj;
5552 wxWindow *arg1 = (wxWindow *) NULL ;
5553 wxWindowDisabler *result;
5554 PyObject * obj0 = 0 ;
5555 char *kwnames[] = {
5556 (char *) "winToSkip", NULL
5557 };
5558
5559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5560 if (obj0) {
5561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5563 }
5564 {
0439c23b 5565 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5568
5569 wxPyEndAllowThreads(__tstate);
110da5b0 5570 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5571 }
5572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5573 return resultobj;
5574 fail:
5575 return NULL;
5576}
5577
5578
c32bde28 5579static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5580 PyObject *resultobj;
5581 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5582 PyObject * obj0 = 0 ;
5583 char *kwnames[] = {
5584 (char *) "self", NULL
5585 };
5586
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 delete arg1;
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 Py_INCREF(Py_None); resultobj = Py_None;
5598 return resultobj;
5599 fail:
5600 return NULL;
5601}
5602
5603
c32bde28 5604static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5605 PyObject *obj;
5606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5607 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5608 Py_INCREF(obj);
5609 return Py_BuildValue((char *)"");
5610}
c32bde28 5611static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5612 PyObject *resultobj;
5613 wxString *arg1 = 0 ;
5614 wxBusyInfo *result;
5615 bool temp1 = False ;
5616 PyObject * obj0 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "message", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5622 {
5623 arg1 = wxString_in_helper(obj0);
5624 if (arg1 == NULL) SWIG_fail;
5625 temp1 = True;
5626 }
5627 {
0439c23b 5628 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5631
5632 wxPyEndAllowThreads(__tstate);
110da5b0 5633 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5634 }
5635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5636 {
5637 if (temp1)
5638 delete arg1;
5639 }
5640 return resultobj;
5641 fail:
5642 {
5643 if (temp1)
5644 delete arg1;
5645 }
5646 return NULL;
5647}
5648
5649
c32bde28 5650static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5651 PyObject *resultobj;
5652 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5653 PyObject * obj0 = 0 ;
5654 char *kwnames[] = {
5655 (char *) "self", NULL
5656 };
5657
5658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 delete arg1;
5664
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 Py_INCREF(Py_None); resultobj = Py_None;
5669 return resultobj;
5670 fail:
5671 return NULL;
5672}
5673
5674
c32bde28 5675static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5676 PyObject *obj;
5677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5678 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5679 Py_INCREF(obj);
5680 return Py_BuildValue((char *)"");
5681}
c32bde28 5682static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5683 PyObject *resultobj;
5684 wxStopWatch *result;
5685 char *kwnames[] = {
5686 NULL
5687 };
5688
5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (wxStopWatch *)new wxStopWatch();
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
5697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5698 return resultobj;
5699 fail:
5700 return NULL;
5701}
5702
5703
c32bde28 5704static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5705 PyObject *resultobj;
5706 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5707 long arg2 = (long) 0 ;
5708 PyObject * obj0 = 0 ;
5709 PyObject * obj1 = 0 ;
5710 char *kwnames[] = {
5711 (char *) "self",(char *) "t0", NULL
5712 };
5713
5714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5717 if (obj1) {
c32bde28 5718 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 (arg1)->Start(arg2);
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 Py_INCREF(Py_None); resultobj = Py_None;
5729 return resultobj;
5730 fail:
5731 return NULL;
5732}
5733
5734
c32bde28 5735static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5736 PyObject *resultobj;
5737 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5738 PyObject * obj0 = 0 ;
5739 char *kwnames[] = {
5740 (char *) "self", NULL
5741 };
5742
5743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5746 {
5747 PyThreadState* __tstate = wxPyBeginAllowThreads();
5748 (arg1)->Pause();
5749
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 Py_INCREF(Py_None); resultobj = Py_None;
5754 return resultobj;
5755 fail:
5756 return NULL;
5757}
5758
5759
c32bde28 5760static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5761 PyObject *resultobj;
5762 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5763 PyObject * obj0 = 0 ;
5764 char *kwnames[] = {
5765 (char *) "self", NULL
5766 };
5767
5768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5771 {
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 (arg1)->Resume();
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 Py_INCREF(Py_None); resultobj = Py_None;
5779 return resultobj;
5780 fail:
5781 return NULL;
5782}
5783
5784
c32bde28 5785static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5786 PyObject *resultobj;
5787 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5788 long result;
5789 PyObject * obj0 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (long)((wxStopWatch const *)arg1)->Time();
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
c32bde28 5804 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
5805 return resultobj;
5806 fail:
5807 return NULL;
5808}
5809
5810
c32bde28 5811static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5812 PyObject *obj;
5813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5814 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5815 Py_INCREF(obj);
5816 return Py_BuildValue((char *)"");
5817}
c32bde28 5818static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5819 PyObject *resultobj;
5820 int arg1 = (int) 9 ;
4cf4100f 5821 int arg2 = (int) wxID_FILE1 ;
d55e5bfc
RD
5822 wxFileHistory *result;
5823 PyObject * obj0 = 0 ;
4cf4100f 5824 PyObject * obj1 = 0 ;
d55e5bfc 5825 char *kwnames[] = {
4cf4100f 5826 (char *) "maxFiles",(char *) "idBase", NULL
d55e5bfc
RD
5827 };
5828
4cf4100f 5829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 5830 if (obj0) {
c32bde28 5831 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5832 if (PyErr_Occurred()) SWIG_fail;
5833 }
4cf4100f 5834 if (obj1) {
c32bde28 5835 arg2 = (int)SWIG_As_int(obj1);
4cf4100f
RD
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
d55e5bfc
RD
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4cf4100f 5840 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
d55e5bfc
RD
5841
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5846 return resultobj;
5847 fail:
5848 return NULL;
5849}
5850
5851
c32bde28 5852static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5853 PyObject *resultobj;
5854 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5855 PyObject * obj0 = 0 ;
5856 char *kwnames[] = {
5857 (char *) "self", NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 delete arg1;
5866
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 Py_INCREF(Py_None); resultobj = Py_None;
5871 return resultobj;
5872 fail:
5873 return NULL;
5874}
5875
5876
c32bde28 5877static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5878 PyObject *resultobj;
5879 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5880 wxString *arg2 = 0 ;
5881 bool temp2 = False ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self",(char *) "file", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 arg2 = wxString_in_helper(obj1);
5893 if (arg2 == NULL) SWIG_fail;
5894 temp2 = True;
5895 }
5896 {
5897 PyThreadState* __tstate = wxPyBeginAllowThreads();
5898 (arg1)->AddFileToHistory((wxString const &)*arg2);
5899
5900 wxPyEndAllowThreads(__tstate);
5901 if (PyErr_Occurred()) SWIG_fail;
5902 }
5903 Py_INCREF(Py_None); resultobj = Py_None;
5904 {
5905 if (temp2)
5906 delete arg2;
5907 }
5908 return resultobj;
5909 fail:
5910 {
5911 if (temp2)
5912 delete arg2;
5913 }
5914 return NULL;
5915}
5916
5917
c32bde28 5918static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5919 PyObject *resultobj;
5920 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5921 int arg2 ;
5922 PyObject * obj0 = 0 ;
5923 PyObject * obj1 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self",(char *) "i", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5931 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5932 if (PyErr_Occurred()) SWIG_fail;
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->RemoveFileFromHistory(arg2);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 Py_INCREF(Py_None); resultobj = Py_None;
5941 return resultobj;
5942 fail:
5943 return NULL;
5944}
5945
5946
c32bde28 5947static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5948 PyObject *resultobj;
5949 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5950 int result;
5951 PyObject * obj0 = 0 ;
5952 char *kwnames[] = {
5953 (char *) "self", NULL
5954 };
5955
5956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5959 {
5960 PyThreadState* __tstate = wxPyBeginAllowThreads();
5961 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5962
5963 wxPyEndAllowThreads(__tstate);
5964 if (PyErr_Occurred()) SWIG_fail;
5965 }
c32bde28 5966 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5967 return resultobj;
5968 fail:
5969 return NULL;
5970}
5971
5972
c32bde28 5973static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5974 PyObject *resultobj;
5975 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5976 wxMenu *arg2 = (wxMenu *) 0 ;
5977 PyObject * obj0 = 0 ;
5978 PyObject * obj1 = 0 ;
5979 char *kwnames[] = {
5980 (char *) "self",(char *) "menu", NULL
5981 };
5982
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 (arg1)->UseMenu(arg2);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 return resultobj;
5997 fail:
5998 return NULL;
5999}
6000
6001
c32bde28 6002static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6003 PyObject *resultobj;
6004 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6005 wxMenu *arg2 = (wxMenu *) 0 ;
6006 PyObject * obj0 = 0 ;
6007 PyObject * obj1 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self",(char *) "menu", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 (arg1)->RemoveMenu(arg2);
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 Py_INCREF(Py_None); resultobj = Py_None;
6025 return resultobj;
6026 fail:
6027 return NULL;
6028}
6029
6030
c32bde28 6031static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6032 PyObject *resultobj;
6033 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6034 wxConfigBase *arg2 = 0 ;
6035 PyObject * obj0 = 0 ;
6036 PyObject * obj1 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "self",(char *) "config", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6045 SWIG_POINTER_EXCEPTION | 0)) == -1)
6046 SWIG_fail;
6047 if (arg2 == NULL) {
6048 PyErr_SetString(PyExc_TypeError,"null reference");
6049 SWIG_fail;
6050 }
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 (arg1)->Load(*arg2);
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 Py_INCREF(Py_None); resultobj = Py_None;
6059 return resultobj;
6060 fail:
6061 return NULL;
6062}
6063
6064
c32bde28 6065static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6066 PyObject *resultobj;
6067 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6068 wxConfigBase *arg2 = 0 ;
6069 PyObject * obj0 = 0 ;
6070 PyObject * obj1 = 0 ;
6071 char *kwnames[] = {
6072 (char *) "self",(char *) "config", NULL
6073 };
6074
6075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6079 SWIG_POINTER_EXCEPTION | 0)) == -1)
6080 SWIG_fail;
6081 if (arg2 == NULL) {
6082 PyErr_SetString(PyExc_TypeError,"null reference");
6083 SWIG_fail;
6084 }
6085 {
6086 PyThreadState* __tstate = wxPyBeginAllowThreads();
6087 (arg1)->Save(*arg2);
6088
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 Py_INCREF(Py_None); resultobj = Py_None;
6093 return resultobj;
6094 fail:
6095 return NULL;
6096}
6097
6098
c32bde28 6099static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6100 PyObject *resultobj;
6101 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6102 PyObject * obj0 = 0 ;
6103 char *kwnames[] = {
6104 (char *) "self", NULL
6105 };
6106
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 (arg1)->AddFilesToMenu();
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 Py_INCREF(Py_None); resultobj = Py_None;
6118 return resultobj;
6119 fail:
6120 return NULL;
6121}
6122
6123
c32bde28 6124static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6125 PyObject *resultobj;
6126 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6127 wxMenu *arg2 = (wxMenu *) 0 ;
6128 PyObject * obj0 = 0 ;
6129 PyObject * obj1 = 0 ;
6130 char *kwnames[] = {
6131 (char *) "self",(char *) "menu", NULL
6132 };
6133
6134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6139 {
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 (arg1)->AddFilesToMenu(arg2);
6142
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 Py_INCREF(Py_None); resultobj = Py_None;
6147 return resultobj;
6148 fail:
6149 return NULL;
6150}
6151
6152
c32bde28 6153static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6154 PyObject *resultobj;
6155 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6156 int arg2 ;
6157 wxString result;
6158 PyObject * obj0 = 0 ;
6159 PyObject * obj1 = 0 ;
6160 char *kwnames[] = {
6161 (char *) "self",(char *) "i", NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6167 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6168 if (PyErr_Occurred()) SWIG_fail;
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6172
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 {
6177#if wxUSE_UNICODE
6178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6179#else
6180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6181#endif
6182 }
6183 return resultobj;
6184 fail:
6185 return NULL;
6186}
6187
6188
c32bde28 6189static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6190 PyObject *resultobj;
6191 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6192 int result;
6193 PyObject * obj0 = 0 ;
6194 char *kwnames[] = {
6195 (char *) "self", NULL
6196 };
6197
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6201 {
6202 PyThreadState* __tstate = wxPyBeginAllowThreads();
6203 result = (int)((wxFileHistory const *)arg1)->GetCount();
6204
6205 wxPyEndAllowThreads(__tstate);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
c32bde28 6208 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6209 return resultobj;
6210 fail:
6211 return NULL;
6212}
6213
6214
c32bde28 6215static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6216 PyObject *obj;
6217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6218 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6219 Py_INCREF(obj);
6220 return Py_BuildValue((char *)"");
6221}
c32bde28 6222static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6223 PyObject *resultobj;
6224 wxString *arg1 = 0 ;
6225 wxString const &arg2_defvalue = wxPyEmptyString ;
6226 wxString *arg2 = (wxString *) &arg2_defvalue ;
6227 wxSingleInstanceChecker *result;
6228 bool temp1 = False ;
6229 bool temp2 = False ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "name",(char *) "path", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6237 {
6238 arg1 = wxString_in_helper(obj0);
6239 if (arg1 == NULL) SWIG_fail;
6240 temp1 = True;
6241 }
6242 if (obj1) {
6243 {
6244 arg2 = wxString_in_helper(obj1);
6245 if (arg2 == NULL) SWIG_fail;
6246 temp2 = True;
6247 }
6248 }
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6252
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6257 {
6258 if (temp1)
6259 delete arg1;
6260 }
6261 {
6262 if (temp2)
6263 delete arg2;
6264 }
6265 return resultobj;
6266 fail:
6267 {
6268 if (temp1)
6269 delete arg1;
6270 }
6271 {
6272 if (temp2)
6273 delete arg2;
6274 }
6275 return NULL;
6276}
6277
6278
c32bde28 6279static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6280 PyObject *resultobj;
6281 wxSingleInstanceChecker *result;
6282 char *kwnames[] = {
6283 NULL
6284 };
6285
6286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6287 {
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6290
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6295 return resultobj;
6296 fail:
6297 return NULL;
6298}
6299
6300
c32bde28 6301static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6302 PyObject *resultobj;
6303 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6304 PyObject * obj0 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self", NULL
6307 };
6308
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6312 {
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 delete arg1;
6315
6316 wxPyEndAllowThreads(__tstate);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 Py_INCREF(Py_None); resultobj = Py_None;
6320 return resultobj;
6321 fail:
6322 return NULL;
6323}
6324
6325
c32bde28 6326static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6327 PyObject *resultobj;
6328 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6329 wxString *arg2 = 0 ;
6330 wxString const &arg3_defvalue = wxPyEmptyString ;
6331 wxString *arg3 = (wxString *) &arg3_defvalue ;
6332 bool result;
6333 bool temp2 = False ;
6334 bool temp3 = False ;
6335 PyObject * obj0 = 0 ;
6336 PyObject * obj1 = 0 ;
6337 PyObject * obj2 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "self",(char *) "name",(char *) "path", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6345 {
6346 arg2 = wxString_in_helper(obj1);
6347 if (arg2 == NULL) SWIG_fail;
6348 temp2 = True;
6349 }
6350 if (obj2) {
6351 {
6352 arg3 = wxString_in_helper(obj2);
6353 if (arg3 == NULL) SWIG_fail;
6354 temp3 = True;
6355 }
6356 }
6357 {
6358 PyThreadState* __tstate = wxPyBeginAllowThreads();
6359 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6360
6361 wxPyEndAllowThreads(__tstate);
6362 if (PyErr_Occurred()) SWIG_fail;
6363 }
6364 {
6365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6366 }
6367 {
6368 if (temp2)
6369 delete arg2;
6370 }
6371 {
6372 if (temp3)
6373 delete arg3;
6374 }
6375 return resultobj;
6376 fail:
6377 {
6378 if (temp2)
6379 delete arg2;
6380 }
6381 {
6382 if (temp3)
6383 delete arg3;
6384 }
6385 return NULL;
6386}
6387
6388
c32bde28 6389static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6390 PyObject *resultobj;
6391 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6392 bool result;
6393 PyObject * obj0 = 0 ;
6394 char *kwnames[] = {
6395 (char *) "self", NULL
6396 };
6397
6398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6401 {
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 {
6409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6410 }
6411 return resultobj;
6412 fail:
6413 return NULL;
6414}
6415
6416
c32bde28 6417static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6418 PyObject *obj;
6419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6420 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6421 Py_INCREF(obj);
6422 return Py_BuildValue((char *)"");
6423}
c32bde28 6424static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6425 PyObject *resultobj;
6426 wxWindow *arg1 = (wxWindow *) 0 ;
6427 wxDC *arg2 = 0 ;
6428 int arg3 ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 PyObject * obj2 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "window",(char *) "dc",(char *) "method", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6440 SWIG_POINTER_EXCEPTION | 0)) == -1)
6441 SWIG_fail;
6442 if (arg2 == NULL) {
6443 PyErr_SetString(PyExc_TypeError,"null reference");
6444 SWIG_fail;
6445 }
c32bde28 6446 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6447 if (PyErr_Occurred()) SWIG_fail;
6448 {
6449 PyThreadState* __tstate = wxPyBeginAllowThreads();
6450 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6451
6452 wxPyEndAllowThreads(__tstate);
6453 if (PyErr_Occurred()) SWIG_fail;
6454 }
6455 Py_INCREF(Py_None); resultobj = Py_None;
6456 return resultobj;
6457 fail:
6458 return NULL;
6459}
6460
6461
c32bde28 6462static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6463 PyObject *resultobj;
6464 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6465 PyObject * obj0 = 0 ;
6466 char *kwnames[] = {
6467 (char *) "self", NULL
6468 };
6469
6470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6473 {
6474 PyThreadState* __tstate = wxPyBeginAllowThreads();
6475 delete arg1;
6476
6477 wxPyEndAllowThreads(__tstate);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 Py_INCREF(Py_None); resultobj = Py_None;
6481 return resultobj;
6482 fail:
6483 return NULL;
6484}
6485
6486
c32bde28 6487static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6488 PyObject *resultobj;
6489 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6490 wxString result;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (arg1)->GetTip();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507#if wxUSE_UNICODE
6508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6509#else
6510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6511#endif
6512 }
6513 return resultobj;
6514 fail:
6515 return NULL;
6516}
6517
6518
c32bde28 6519static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6520 PyObject *resultobj;
6521 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6522 size_t result;
6523 PyObject * obj0 = 0 ;
6524 char *kwnames[] = {
6525 (char *) "self", NULL
6526 };
6527
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 result = (size_t)(arg1)->GetCurrentTip();
6534
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
c32bde28 6538 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
6539 return resultobj;
6540 fail:
6541 return NULL;
6542}
6543
6544
c32bde28 6545static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6546 PyObject *resultobj;
6547 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6548 wxString *arg2 = 0 ;
6549 wxString result;
6550 bool temp2 = False ;
6551 PyObject * obj0 = 0 ;
6552 PyObject * obj1 = 0 ;
6553 char *kwnames[] = {
6554 (char *) "self",(char *) "tip", NULL
6555 };
6556
6557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6560 {
6561 arg2 = wxString_in_helper(obj1);
6562 if (arg2 == NULL) SWIG_fail;
6563 temp2 = True;
6564 }
6565 {
6566 PyThreadState* __tstate = wxPyBeginAllowThreads();
6567 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6568
6569 wxPyEndAllowThreads(__tstate);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 {
6573#if wxUSE_UNICODE
6574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6575#else
6576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6577#endif
6578 }
6579 {
6580 if (temp2)
6581 delete arg2;
6582 }
6583 return resultobj;
6584 fail:
6585 {
6586 if (temp2)
6587 delete arg2;
6588 }
6589 return NULL;
6590}
6591
6592
c32bde28 6593static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6594 PyObject *obj;
6595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6596 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6597 Py_INCREF(obj);
6598 return Py_BuildValue((char *)"");
6599}
c32bde28 6600static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6601 PyObject *resultobj;
6602 size_t arg1 ;
6603 wxPyTipProvider *result;
6604 PyObject * obj0 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "currentTip", NULL
6607 };
6608
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
c32bde28 6610 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
6611 if (PyErr_Occurred()) SWIG_fail;
6612 {
6613 PyThreadState* __tstate = wxPyBeginAllowThreads();
6614 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6615
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6620 return resultobj;
6621 fail:
6622 return NULL;
6623}
6624
6625
c32bde28 6626static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6627 PyObject *resultobj;
6628 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6629 PyObject *arg2 = (PyObject *) 0 ;
6630 PyObject *arg3 = (PyObject *) 0 ;
6631 PyObject * obj0 = 0 ;
6632 PyObject * obj1 = 0 ;
6633 PyObject * obj2 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self",(char *) "self",(char *) "_class", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6641 arg2 = obj1;
6642 arg3 = obj2;
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 (arg1)->_setCallbackInfo(arg2,arg3);
6646
6647 wxPyEndAllowThreads(__tstate);
6648 if (PyErr_Occurred()) SWIG_fail;
6649 }
6650 Py_INCREF(Py_None); resultobj = Py_None;
6651 return resultobj;
6652 fail:
6653 return NULL;
6654}
6655
6656
c32bde28 6657static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6658 PyObject *obj;
6659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6660 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6661 Py_INCREF(obj);
6662 return Py_BuildValue((char *)"");
6663}
c32bde28 6664static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6665 PyObject *resultobj;
6666 wxWindow *arg1 = (wxWindow *) 0 ;
6667 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6668 bool arg3 = (bool) True ;
6669 bool result;
6670 PyObject * obj0 = 0 ;
6671 PyObject * obj1 = 0 ;
6672 PyObject * obj2 = 0 ;
6673 char *kwnames[] = {
6674 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6675 };
6676
6677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6680 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6682 if (obj2) {
c32bde28 6683 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 {
0439c23b 6687 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 result = (bool)wxShowTip(arg1,arg2,arg3);
6690
6691 wxPyEndAllowThreads(__tstate);
110da5b0 6692 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6693 }
6694 {
6695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6696 }
6697 return resultobj;
6698 fail:
6699 return NULL;
6700}
6701
6702
c32bde28 6703static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6704 PyObject *resultobj;
6705 wxString *arg1 = 0 ;
6706 size_t arg2 ;
6707 wxTipProvider *result;
6708 bool temp1 = False ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "filename",(char *) "currentTip", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6716 {
6717 arg1 = wxString_in_helper(obj0);
6718 if (arg1 == NULL) SWIG_fail;
6719 temp1 = True;
6720 }
c32bde28 6721 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
6722 if (PyErr_Occurred()) SWIG_fail;
6723 {
0439c23b 6724 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6727
6728 wxPyEndAllowThreads(__tstate);
110da5b0 6729 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6730 }
6731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6732 {
6733 if (temp1)
6734 delete arg1;
6735 }
6736 return resultobj;
6737 fail:
6738 {
6739 if (temp1)
6740 delete arg1;
6741 }
6742 return NULL;
6743}
6744
6745
c32bde28 6746static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6747 PyObject *resultobj;
6748 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6749 int arg2 = (int) -1 ;
6750 wxPyTimer *result;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "owner",(char *) "id", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6758 if (obj0) {
6759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6761 }
6762 if (obj1) {
c32bde28 6763 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 {
0439c23b 6767 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6770
6771 wxPyEndAllowThreads(__tstate);
110da5b0 6772 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6773 }
6774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6775 return resultobj;
6776 fail:
6777 return NULL;
6778}
6779
6780
c32bde28 6781static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6782 PyObject *resultobj;
6783 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6784 PyObject * obj0 = 0 ;
6785 char *kwnames[] = {
6786 (char *) "self", NULL
6787 };
6788
6789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6792 {
6793 PyThreadState* __tstate = wxPyBeginAllowThreads();
6794 delete arg1;
6795
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 Py_INCREF(Py_None); resultobj = Py_None;
6800 return resultobj;
6801 fail:
6802 return NULL;
6803}
6804
6805
c32bde28 6806static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6807 PyObject *resultobj;
6808 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6809 PyObject *arg2 = (PyObject *) 0 ;
6810 PyObject *arg3 = (PyObject *) 0 ;
6811 int arg4 = (int) 1 ;
6812 PyObject * obj0 = 0 ;
6813 PyObject * obj1 = 0 ;
6814 PyObject * obj2 = 0 ;
6815 PyObject * obj3 = 0 ;
6816 char *kwnames[] = {
6817 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6818 };
6819
6820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6823 arg2 = obj1;
6824 arg3 = obj2;
6825 if (obj3) {
c32bde28 6826 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6832
6833 wxPyEndAllowThreads(__tstate);
6834 if (PyErr_Occurred()) SWIG_fail;
6835 }
6836 Py_INCREF(Py_None); resultobj = Py_None;
6837 return resultobj;
6838 fail:
6839 return NULL;
6840}
6841
6842
c32bde28 6843static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6844 PyObject *resultobj;
6845 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6846 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6847 int arg3 = (int) -1 ;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 PyObject * obj2 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "self",(char *) "owner",(char *) "id", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 if (obj2) {
c32bde28 6861 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 {
6865 PyThreadState* __tstate = wxPyBeginAllowThreads();
6866 (arg1)->SetOwner(arg2,arg3);
6867
6868 wxPyEndAllowThreads(__tstate);
6869 if (PyErr_Occurred()) SWIG_fail;
6870 }
6871 Py_INCREF(Py_None); resultobj = Py_None;
6872 return resultobj;
6873 fail:
6874 return NULL;
6875}
6876
6877
c32bde28 6878static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
1a6bba1e
RD
6879 PyObject *resultobj;
6880 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6881 wxEvtHandler *result;
6882 PyObject * obj0 = 0 ;
6883 char *kwnames[] = {
6884 (char *) "self", NULL
6885 };
6886
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 result = (wxEvtHandler *)(arg1)->GetOwner();
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 {
412d302d 6898 resultobj = wxPyMake_wxObject(result, 0);
1a6bba1e
RD
6899 }
6900 return resultobj;
6901 fail:
6902 return NULL;
6903}
6904
6905
c32bde28 6906static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6907 PyObject *resultobj;
6908 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6909 int arg2 = (int) -1 ;
6910 bool arg3 = (bool) False ;
6911 bool result;
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 PyObject * obj2 = 0 ;
6915 char *kwnames[] = {
6916 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6917 };
6918
6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6922 if (obj1) {
c32bde28 6923 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 if (obj2) {
c32bde28 6927 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (bool)(arg1)->Start(arg2,arg3);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 {
6938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6939 }
6940 return resultobj;
6941 fail:
6942 return NULL;
6943}
6944
6945
c32bde28 6946static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6947 PyObject *resultobj;
6948 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6949 PyObject * obj0 = 0 ;
6950 char *kwnames[] = {
6951 (char *) "self", NULL
6952 };
6953
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 (arg1)->Stop();
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 Py_INCREF(Py_None); resultobj = Py_None;
6965 return resultobj;
6966 fail:
6967 return NULL;
6968}
6969
6970
c32bde28 6971static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6972 PyObject *resultobj;
6973 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6974 bool result;
6975 PyObject * obj0 = 0 ;
6976 char *kwnames[] = {
6977 (char *) "self", NULL
6978 };
6979
6980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6983 {
6984 PyThreadState* __tstate = wxPyBeginAllowThreads();
6985 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6986
6987 wxPyEndAllowThreads(__tstate);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 {
6991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6992 }
6993 return resultobj;
6994 fail:
6995 return NULL;
6996}
6997
6998
c32bde28 6999static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7000 PyObject *resultobj;
7001 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7002 int result;
7003 PyObject * obj0 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
c32bde28 7018 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7019 return resultobj;
7020 fail:
7021 return NULL;
7022}
7023
7024
c32bde28 7025static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7026 PyObject *resultobj;
7027 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7028 bool result;
7029 PyObject * obj0 = 0 ;
7030 char *kwnames[] = {
7031 (char *) "self", NULL
7032 };
7033
7034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7040
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 {
7045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7046 }
7047 return resultobj;
7048 fail:
7049 return NULL;
7050}
7051
7052
c32bde28 7053static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7054 PyObject *resultobj;
7055 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7056 int result;
7057 PyObject * obj0 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = (int)((wxPyTimer const *)arg1)->GetId();
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
c32bde28 7072 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7073 return resultobj;
7074 fail:
7075 return NULL;
7076}
7077
7078
c32bde28 7079static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7080 PyObject *obj;
7081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7082 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7083 Py_INCREF(obj);
7084 return Py_BuildValue((char *)"");
7085}
c32bde28 7086static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7087 PyObject *resultobj;
7088 int arg1 = (int) 0 ;
7089 int arg2 = (int) 0 ;
7090 wxTimerEvent *result;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char *kwnames[] = {
7094 (char *) "timerid",(char *) "interval", NULL
7095 };
7096
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7098 if (obj0) {
c32bde28 7099 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 if (obj1) {
c32bde28 7103 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7109
7110 wxPyEndAllowThreads(__tstate);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7114 return resultobj;
7115 fail:
7116 return NULL;
7117}
7118
7119
c32bde28 7120static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7121 PyObject *resultobj;
7122 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7123 int result;
7124 PyObject * obj0 = 0 ;
7125 char *kwnames[] = {
7126 (char *) "self", NULL
7127 };
7128
7129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
c32bde28 7139 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7140 return resultobj;
7141 fail:
7142 return NULL;
7143}
7144
7145
c32bde28 7146static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7147 PyObject *obj;
7148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7149 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7150 Py_INCREF(obj);
7151 return Py_BuildValue((char *)"");
7152}
c32bde28 7153static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
7154 PyObject *resultobj;
7155 wxTimer *arg1 = 0 ;
7156 wxTimerRunner *result;
7157 PyObject * obj0 = 0 ;
7158
7159 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7161 SWIG_POINTER_EXCEPTION | 0)) == -1)
7162 SWIG_fail;
7163 if (arg1 == NULL) {
7164 PyErr_SetString(PyExc_TypeError,"null reference");
7165 SWIG_fail;
7166 }
7167 {
0439c23b 7168 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7169 PyThreadState* __tstate = wxPyBeginAllowThreads();
7170 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7171
7172 wxPyEndAllowThreads(__tstate);
110da5b0 7173 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7174 }
7175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7176 return resultobj;
7177 fail:
7178 return NULL;
7179}
7180
7181
c32bde28 7182static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
7183 PyObject *resultobj;
7184 wxTimer *arg1 = 0 ;
7185 int arg2 ;
7186 bool arg3 = (bool) False ;
7187 wxTimerRunner *result;
7188 PyObject * obj0 = 0 ;
7189 PyObject * obj1 = 0 ;
7190 PyObject * obj2 = 0 ;
7191
7192 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7194 SWIG_POINTER_EXCEPTION | 0)) == -1)
7195 SWIG_fail;
7196 if (arg1 == NULL) {
7197 PyErr_SetString(PyExc_TypeError,"null reference");
7198 SWIG_fail;
7199 }
c32bde28 7200 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7201 if (PyErr_Occurred()) SWIG_fail;
7202 if (obj2) {
c32bde28 7203 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 {
0439c23b 7207 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7210
7211 wxPyEndAllowThreads(__tstate);
110da5b0 7212 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7213 }
7214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7215 return resultobj;
7216 fail:
7217 return NULL;
7218}
7219
7220
7221static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7222 int argc;
7223 PyObject *argv[4];
7224 int ii;
7225
7226 argc = PyObject_Length(args);
7227 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7228 argv[ii] = PyTuple_GetItem(args,ii);
7229 }
7230 if (argc == 1) {
7231 int _v;
7232 {
7233 void *ptr;
7234 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7235 _v = 0;
7236 PyErr_Clear();
7237 } else {
7238 _v = 1;
7239 }
7240 }
7241 if (_v) {
7242 return _wrap_new_TimerRunner__SWIG_0(self,args);
7243 }
7244 }
7245 if ((argc >= 2) && (argc <= 3)) {
7246 int _v;
7247 {
7248 void *ptr;
7249 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7250 _v = 0;
7251 PyErr_Clear();
7252 } else {
7253 _v = 1;
7254 }
7255 }
7256 if (_v) {
c32bde28 7257 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
7258 if (_v) {
7259 if (argc <= 2) {
7260 return _wrap_new_TimerRunner__SWIG_1(self,args);
7261 }
c32bde28 7262 _v = SWIG_Check_bool(argv[2]);
d55e5bfc
RD
7263 if (_v) {
7264 return _wrap_new_TimerRunner__SWIG_1(self,args);
7265 }
7266 }
7267 }
7268 }
7269
7270 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7271 return NULL;
7272}
7273
7274
c32bde28 7275static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7276 PyObject *resultobj;
7277 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7278 PyObject * obj0 = 0 ;
7279 char *kwnames[] = {
7280 (char *) "self", NULL
7281 };
7282
7283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 delete arg1;
7289
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 Py_INCREF(Py_None); resultobj = Py_None;
7294 return resultobj;
7295 fail:
7296 return NULL;
7297}
7298
7299
c32bde28 7300static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7301 PyObject *resultobj;
7302 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7303 int arg2 ;
7304 bool arg3 = (bool) False ;
7305 PyObject * obj0 = 0 ;
7306 PyObject * obj1 = 0 ;
7307 PyObject * obj2 = 0 ;
7308 char *kwnames[] = {
7309 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7310 };
7311
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7315 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7316 if (PyErr_Occurred()) SWIG_fail;
7317 if (obj2) {
c32bde28 7318 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 {
7322 PyThreadState* __tstate = wxPyBeginAllowThreads();
7323 (arg1)->Start(arg2,arg3);
7324
7325 wxPyEndAllowThreads(__tstate);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 Py_INCREF(Py_None); resultobj = Py_None;
7329 return resultobj;
7330 fail:
7331 return NULL;
7332}
7333
7334
c32bde28 7335static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7336 PyObject *obj;
7337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7338 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7339 Py_INCREF(obj);
7340 return Py_BuildValue((char *)"");
7341}
c32bde28 7342static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7343 PyObject *resultobj;
7344 wxLog *result;
7345 char *kwnames[] = {
7346 NULL
7347 };
7348
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 result = (wxLog *)new wxLog();
7353
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7358 return resultobj;
7359 fail:
7360 return NULL;
7361}
7362
7363
c32bde28 7364static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7365 PyObject *resultobj;
7366 bool result;
7367 char *kwnames[] = {
7368 NULL
7369 };
7370
7371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (bool)wxLog::IsEnabled();
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 {
7380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7381 }
7382 return resultobj;
7383 fail:
7384 return NULL;
7385}
7386
7387
c32bde28 7388static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7389 PyObject *resultobj;
7390 bool arg1 = (bool) True ;
7391 bool result;
7392 PyObject * obj0 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "doIt", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7398 if (obj0) {
c32bde28 7399 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 {
7403 PyThreadState* __tstate = wxPyBeginAllowThreads();
7404 result = (bool)wxLog::EnableLogging(arg1);
7405
7406 wxPyEndAllowThreads(__tstate);
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 {
7410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7411 }
7412 return resultobj;
7413 fail:
7414 return NULL;
7415}
7416
7417
c32bde28 7418static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7419 PyObject *resultobj;
7420 wxLogLevel arg1 ;
7421 wxChar *arg2 = (wxChar *) 0 ;
7422 time_t arg3 ;
7423 PyObject * obj0 = 0 ;
7424 PyObject * obj1 = 0 ;
7425 PyObject * obj2 = 0 ;
7426 char *kwnames[] = {
7427 (char *) "level",(char *) "szString",(char *) "t", NULL
7428 };
7429
7430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 7431 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7432 if (PyErr_Occurred()) SWIG_fail;
7433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 7435 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
d55e5bfc
RD
7436 if (PyErr_Occurred()) SWIG_fail;
7437 {
7438 PyThreadState* __tstate = wxPyBeginAllowThreads();
7439 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7440
7441 wxPyEndAllowThreads(__tstate);
7442 if (PyErr_Occurred()) SWIG_fail;
7443 }
7444 Py_INCREF(Py_None); resultobj = Py_None;
7445 return resultobj;
7446 fail:
7447 return NULL;
7448}
7449
7450
c32bde28 7451static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7452 PyObject *resultobj;
7453 wxLog *arg1 = (wxLog *) 0 ;
7454 PyObject * obj0 = 0 ;
7455 char *kwnames[] = {
7456 (char *) "self", NULL
7457 };
7458
7459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7462 {
7463 PyThreadState* __tstate = wxPyBeginAllowThreads();
7464 (arg1)->Flush();
7465
7466 wxPyEndAllowThreads(__tstate);
7467 if (PyErr_Occurred()) SWIG_fail;
7468 }
7469 Py_INCREF(Py_None); resultobj = Py_None;
7470 return resultobj;
7471 fail:
7472 return NULL;
7473}
7474
7475
c32bde28 7476static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7477 PyObject *resultobj;
7478 char *kwnames[] = {
7479 NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 wxLog::FlushActive();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 Py_INCREF(Py_None); resultobj = Py_None;
7491 return resultobj;
7492 fail:
7493 return NULL;
7494}
7495
7496
c32bde28 7497static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7498 PyObject *resultobj;
7499 wxLog *result;
7500 char *kwnames[] = {
7501 NULL
7502 };
7503
7504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (wxLog *)wxLog::GetActiveTarget();
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7513 return resultobj;
7514 fail:
7515 return NULL;
7516}
7517
7518
c32bde28 7519static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7520 PyObject *resultobj;
7521 wxLog *arg1 = (wxLog *) 0 ;
7522 wxLog *result;
7523 PyObject * obj0 = 0 ;
7524 char *kwnames[] = {
7525 (char *) "pLogger", NULL
7526 };
7527
7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7539 return resultobj;
7540 fail:
7541 return NULL;
7542}
7543
7544
c32bde28 7545static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7546 PyObject *resultobj;
7547 char *kwnames[] = {
7548 NULL
7549 };
7550
7551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7552 {
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 wxLog::Suspend();
7555
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 Py_INCREF(Py_None); resultobj = Py_None;
7560 return resultobj;
7561 fail:
7562 return NULL;
7563}
7564
7565
c32bde28 7566static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7567 PyObject *resultobj;
7568 char *kwnames[] = {
7569 NULL
7570 };
7571
7572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7573 {
7574 PyThreadState* __tstate = wxPyBeginAllowThreads();
7575 wxLog::Resume();
7576
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 Py_INCREF(Py_None); resultobj = Py_None;
7581 return resultobj;
7582 fail:
7583 return NULL;
7584}
7585
7586
c32bde28 7587static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7588 PyObject *resultobj;
7589 bool arg1 = (bool) True ;
7590 PyObject * obj0 = 0 ;
7591 char *kwnames[] = {
7592 (char *) "bVerbose", NULL
7593 };
7594
7595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7596 if (obj0) {
c32bde28 7597 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 wxLog::SetVerbose(arg1);
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 Py_INCREF(Py_None); resultobj = Py_None;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611}
7612
7613
c32bde28 7614static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7615 PyObject *resultobj;
7616 wxLogLevel arg1 ;
7617 PyObject * obj0 = 0 ;
7618 char *kwnames[] = {
7619 (char *) "logLevel", NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
c32bde28 7623 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7624 if (PyErr_Occurred()) SWIG_fail;
7625 {
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 wxLog::SetLogLevel(arg1);
7628
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 Py_INCREF(Py_None); resultobj = Py_None;
7633 return resultobj;
7634 fail:
7635 return NULL;
7636}
7637
7638
c32bde28 7639static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7640 PyObject *resultobj;
7641 char *kwnames[] = {
7642 NULL
7643 };
7644
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7646 {
7647 PyThreadState* __tstate = wxPyBeginAllowThreads();
7648 wxLog::DontCreateOnDemand();
7649
7650 wxPyEndAllowThreads(__tstate);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 Py_INCREF(Py_None); resultobj = Py_None;
7654 return resultobj;
7655 fail:
7656 return NULL;
7657}
7658
7659
c32bde28 7660static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7661 PyObject *resultobj;
7662 wxTraceMask arg1 ;
7663 PyObject * obj0 = 0 ;
7664 char *kwnames[] = {
7665 (char *) "ulMask", NULL
7666 };
7667
7668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
c32bde28 7669 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7670 if (PyErr_Occurred()) SWIG_fail;
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 wxLog::SetTraceMask(arg1);
7674
7675 wxPyEndAllowThreads(__tstate);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 Py_INCREF(Py_None); resultobj = Py_None;
7679 return resultobj;
7680 fail:
7681 return NULL;
7682}
7683
7684
c32bde28 7685static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7686 PyObject *resultobj;
7687 wxString *arg1 = 0 ;
7688 bool temp1 = False ;
7689 PyObject * obj0 = 0 ;
7690 char *kwnames[] = {
7691 (char *) "str", NULL
7692 };
7693
7694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7695 {
7696 arg1 = wxString_in_helper(obj0);
7697 if (arg1 == NULL) SWIG_fail;
7698 temp1 = True;
7699 }
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 wxLog::AddTraceMask((wxString const &)*arg1);
7703
7704 wxPyEndAllowThreads(__tstate);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 Py_INCREF(Py_None); resultobj = Py_None;
7708 {
7709 if (temp1)
7710 delete arg1;
7711 }
7712 return resultobj;
7713 fail:
7714 {
7715 if (temp1)
7716 delete arg1;
7717 }
7718 return NULL;
7719}
7720
7721
c32bde28 7722static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7723 PyObject *resultobj;
7724 wxString *arg1 = 0 ;
7725 bool temp1 = False ;
7726 PyObject * obj0 = 0 ;
7727 char *kwnames[] = {
7728 (char *) "str", NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7732 {
7733 arg1 = wxString_in_helper(obj0);
7734 if (arg1 == NULL) SWIG_fail;
7735 temp1 = True;
7736 }
7737 {
7738 PyThreadState* __tstate = wxPyBeginAllowThreads();
7739 wxLog::RemoveTraceMask((wxString const &)*arg1);
7740
7741 wxPyEndAllowThreads(__tstate);
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 Py_INCREF(Py_None); resultobj = Py_None;
7745 {
7746 if (temp1)
7747 delete arg1;
7748 }
7749 return resultobj;
7750 fail:
7751 {
7752 if (temp1)
7753 delete arg1;
7754 }
7755 return NULL;
7756}
7757
7758
c32bde28 7759static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7760 PyObject *resultobj;
7761 char *kwnames[] = {
7762 NULL
7763 };
7764
7765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7766 {
7767 PyThreadState* __tstate = wxPyBeginAllowThreads();
7768 wxLog::ClearTraceMasks();
7769
7770 wxPyEndAllowThreads(__tstate);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 Py_INCREF(Py_None); resultobj = Py_None;
7774 return resultobj;
7775 fail:
7776 return NULL;
7777}
7778
7779
c32bde28 7780static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7781 PyObject *resultobj;
7782 wxArrayString *result;
7783 char *kwnames[] = {
7784 NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7788 {
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 {
7791 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7792 result = (wxArrayString *) &_result_ref;
7793 }
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 resultobj = wxArrayString2PyList_helper(*result);
7800 }
7801 return resultobj;
7802 fail:
7803 return NULL;
7804}
7805
7806
c32bde28 7807static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7808 PyObject *resultobj;
7809 wxChar *arg1 = (wxChar *) 0 ;
7810 PyObject * obj0 = 0 ;
7811 char *kwnames[] = {
7812 (char *) "ts", NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7818 {
7819 PyThreadState* __tstate = wxPyBeginAllowThreads();
7820 wxLog::SetTimestamp((wxChar const *)arg1);
7821
7822 wxPyEndAllowThreads(__tstate);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 Py_INCREF(Py_None); resultobj = Py_None;
7826 return resultobj;
7827 fail:
7828 return NULL;
7829}
7830
7831
c32bde28 7832static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7833 PyObject *resultobj;
7834 bool result;
7835 char *kwnames[] = {
7836 NULL
7837 };
7838
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 result = (bool)wxLog::GetVerbose();
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 {
7848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7849 }
7850 return resultobj;
7851 fail:
7852 return NULL;
7853}
7854
7855
c32bde28 7856static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7857 PyObject *resultobj;
7858 wxTraceMask result;
7859 char *kwnames[] = {
7860 NULL
7861 };
7862
7863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (wxTraceMask)wxLog::GetTraceMask();
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
c32bde28 7871 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7872 return resultobj;
7873 fail:
7874 return NULL;
7875}
7876
7877
c32bde28 7878static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7879 PyObject *resultobj;
7880 wxChar *arg1 = (wxChar *) 0 ;
7881 bool result;
7882 PyObject * obj0 = 0 ;
7883 char *kwnames[] = {
7884 (char *) "mask", NULL
7885 };
7886
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7890 {
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 {
7898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7899 }
7900 return resultobj;
7901 fail:
7902 return NULL;
7903}
7904
7905
c32bde28 7906static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7907 PyObject *resultobj;
7908 wxLogLevel result;
7909 char *kwnames[] = {
7910 NULL
7911 };
7912
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (wxLogLevel)wxLog::GetLogLevel();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
c32bde28 7921 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
7922 return resultobj;
7923 fail:
7924 return NULL;
7925}
7926
7927
c32bde28 7928static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7929 PyObject *resultobj;
7930 wxChar *result;
7931 char *kwnames[] = {
7932 NULL
7933 };
7934
7935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7936 {
7937 PyThreadState* __tstate = wxPyBeginAllowThreads();
7938 result = (wxChar *)wxLog::GetTimestamp();
7939
7940 wxPyEndAllowThreads(__tstate);
7941 if (PyErr_Occurred()) SWIG_fail;
7942 }
7943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7944 return resultobj;
7945 fail:
7946 return NULL;
7947}
7948
7949
c32bde28 7950static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7951 PyObject *resultobj;
7952 wxString result;
7953 char *kwnames[] = {
7954 NULL
7955 };
7956
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = Log_TimeStamp();
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 {
7966#if wxUSE_UNICODE
7967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7968#else
7969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7970#endif
7971 }
7972 return resultobj;
7973 fail:
7974 return NULL;
7975}
7976
7977
c32bde28 7978static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7979 PyObject *resultobj;
7980 wxLog *arg1 = (wxLog *) 0 ;
7981 PyObject * obj0 = 0 ;
7982 char *kwnames[] = {
7983 (char *) "self", NULL
7984 };
7985
7986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7989 {
7990 PyThreadState* __tstate = wxPyBeginAllowThreads();
7991 wxLog_Destroy(arg1);
7992
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 Py_INCREF(Py_None); resultobj = Py_None;
7997 return resultobj;
7998 fail:
7999 return NULL;
8000}
8001
8002
c32bde28 8003static PyObject * Log_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8004 PyObject *obj;
8005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8006 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8007 Py_INCREF(obj);
8008 return Py_BuildValue((char *)"");
8009}
c32bde28 8010static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8011 PyObject *resultobj;
8012 wxLogStderr *result;
8013 char *kwnames[] = {
8014 NULL
8015 };
8016
8017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (wxLogStderr *)new wxLogStderr();
8021
8022 wxPyEndAllowThreads(__tstate);
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8026 return resultobj;
8027 fail:
8028 return NULL;
8029}
8030
8031
c32bde28 8032static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8033 PyObject *obj;
8034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8035 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8036 Py_INCREF(obj);
8037 return Py_BuildValue((char *)"");
8038}
c32bde28 8039static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8040 PyObject *resultobj;
8041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8042 wxLogTextCtrl *result;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "pTextCtrl", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8054
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8059 return resultobj;
8060 fail:
8061 return NULL;
8062}
8063
8064
c32bde28 8065static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8066 PyObject *obj;
8067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8068 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8069 Py_INCREF(obj);
8070 return Py_BuildValue((char *)"");
8071}
c32bde28 8072static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8073 PyObject *resultobj;
8074 wxLogGui *result;
8075 char *kwnames[] = {
8076 NULL
8077 };
8078
8079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8080 {
8081 PyThreadState* __tstate = wxPyBeginAllowThreads();
8082 result = (wxLogGui *)new wxLogGui();
8083
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8088 return resultobj;
8089 fail:
8090 return NULL;
8091}
8092
8093
c32bde28 8094static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8095 PyObject *obj;
8096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8097 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8098 Py_INCREF(obj);
8099 return Py_BuildValue((char *)"");
8100}
c32bde28 8101static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8102 PyObject *resultobj;
8103 wxFrame *arg1 = (wxFrame *) 0 ;
8104 wxString *arg2 = 0 ;
8105 bool arg3 = (bool) True ;
8106 bool arg4 = (bool) True ;
8107 wxLogWindow *result;
8108 bool temp2 = False ;
8109 PyObject * obj0 = 0 ;
8110 PyObject * obj1 = 0 ;
8111 PyObject * obj2 = 0 ;
8112 PyObject * obj3 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8120 {
8121 arg2 = wxString_in_helper(obj1);
8122 if (arg2 == NULL) SWIG_fail;
8123 temp2 = True;
8124 }
8125 if (obj2) {
c32bde28 8126 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 if (obj3) {
c32bde28 8130 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8136
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8141 {
8142 if (temp2)
8143 delete arg2;
8144 }
8145 return resultobj;
8146 fail:
8147 {
8148 if (temp2)
8149 delete arg2;
8150 }
8151 return NULL;
8152}
8153
8154
c32bde28 8155static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8156 PyObject *resultobj;
8157 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8158 bool arg2 = (bool) True ;
8159 PyObject * obj0 = 0 ;
8160 PyObject * obj1 = 0 ;
8161 char *kwnames[] = {
8162 (char *) "self",(char *) "bShow", NULL
8163 };
8164
8165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8168 if (obj1) {
c32bde28 8169 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 {
8173 PyThreadState* __tstate = wxPyBeginAllowThreads();
8174 (arg1)->Show(arg2);
8175
8176 wxPyEndAllowThreads(__tstate);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 Py_INCREF(Py_None); resultobj = Py_None;
8180 return resultobj;
8181 fail:
8182 return NULL;
8183}
8184
8185
c32bde28 8186static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8187 PyObject *resultobj;
8188 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8189 wxFrame *result;
8190 PyObject * obj0 = 0 ;
8191 char *kwnames[] = {
8192 (char *) "self", NULL
8193 };
8194
8195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8198 {
8199 PyThreadState* __tstate = wxPyBeginAllowThreads();
8200 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8201
8202 wxPyEndAllowThreads(__tstate);
8203 if (PyErr_Occurred()) SWIG_fail;
8204 }
8205 {
412d302d 8206 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
8207 }
8208 return resultobj;
8209 fail:
8210 return NULL;
8211}
8212
8213
c32bde28 8214static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8215 PyObject *resultobj;
8216 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8217 wxLog *result;
8218 PyObject * obj0 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8226 {
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8229
8230 wxPyEndAllowThreads(__tstate);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8234 return resultobj;
8235 fail:
8236 return NULL;
8237}
8238
8239
c32bde28 8240static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8241 PyObject *resultobj;
8242 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8243 bool result;
8244 PyObject * obj0 = 0 ;
8245 char *kwnames[] = {
8246 (char *) "self", NULL
8247 };
8248
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8252 {
8253 PyThreadState* __tstate = wxPyBeginAllowThreads();
8254 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8255
8256 wxPyEndAllowThreads(__tstate);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 {
8260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8261 }
8262 return resultobj;
8263 fail:
8264 return NULL;
8265}
8266
8267
c32bde28 8268static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8269 PyObject *resultobj;
8270 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8271 bool arg2 ;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 char *kwnames[] = {
8275 (char *) "self",(char *) "bDoPass", NULL
8276 };
8277
8278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8281 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8282 if (PyErr_Occurred()) SWIG_fail;
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
8285 (arg1)->PassMessages(arg2);
8286
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 Py_INCREF(Py_None); resultobj = Py_None;
8291 return resultobj;
8292 fail:
8293 return NULL;
8294}
8295
8296
c32bde28 8297static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8298 PyObject *obj;
8299 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8300 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8301 Py_INCREF(obj);
8302 return Py_BuildValue((char *)"");
8303}
c32bde28 8304static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8305 PyObject *resultobj;
8306 wxLog *arg1 = (wxLog *) 0 ;
8307 wxLogChain *result;
8308 PyObject * obj0 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "logger", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 result = (wxLogChain *)new wxLogChain(arg1);
8319
8320 wxPyEndAllowThreads(__tstate);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8324 return resultobj;
8325 fail:
8326 return NULL;
8327}
8328
8329
c32bde28 8330static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8331 PyObject *resultobj;
8332 wxLogChain *arg1 = (wxLogChain *) 0 ;
8333 wxLog *arg2 = (wxLog *) 0 ;
8334 PyObject * obj0 = 0 ;
8335 PyObject * obj1 = 0 ;
8336 char *kwnames[] = {
8337 (char *) "self",(char *) "logger", NULL
8338 };
8339
8340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8345 {
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 (arg1)->SetLog(arg2);
8348
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 Py_INCREF(Py_None); resultobj = Py_None;
8353 return resultobj;
8354 fail:
8355 return NULL;
8356}
8357
8358
c32bde28 8359static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8360 PyObject *resultobj;
8361 wxLogChain *arg1 = (wxLogChain *) 0 ;
8362 bool arg2 ;
8363 PyObject * obj0 = 0 ;
8364 PyObject * obj1 = 0 ;
8365 char *kwnames[] = {
8366 (char *) "self",(char *) "bDoPass", NULL
8367 };
8368
8369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8372 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8373 if (PyErr_Occurred()) SWIG_fail;
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 (arg1)->PassMessages(arg2);
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 Py_INCREF(Py_None); resultobj = Py_None;
8382 return resultobj;
8383 fail:
8384 return NULL;
8385}
8386
8387
c32bde28 8388static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8389 PyObject *resultobj;
8390 wxLogChain *arg1 = (wxLogChain *) 0 ;
8391 bool result;
8392 PyObject * obj0 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "self", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8400 {
8401 PyThreadState* __tstate = wxPyBeginAllowThreads();
8402 result = (bool)(arg1)->IsPassingMessages();
8403
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 {
8408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8409 }
8410 return resultobj;
8411 fail:
8412 return NULL;
8413}
8414
8415
c32bde28 8416static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8417 PyObject *resultobj;
8418 wxLogChain *arg1 = (wxLogChain *) 0 ;
8419 wxLog *result;
8420 PyObject * obj0 = 0 ;
8421 char *kwnames[] = {
8422 (char *) "self", NULL
8423 };
8424
8425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8428 {
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = (wxLog *)(arg1)->GetOldLog();
8431
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8436 return resultobj;
8437 fail:
8438 return NULL;
8439}
8440
8441
c32bde28 8442static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8443 PyObject *obj;
8444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8445 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8446 Py_INCREF(obj);
8447 return Py_BuildValue((char *)"");
8448}
c32bde28 8449static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8450 PyObject *resultobj;
8451 unsigned long result;
8452 char *kwnames[] = {
8453 NULL
8454 };
8455
8456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8457 {
8458 PyThreadState* __tstate = wxPyBeginAllowThreads();
8459 result = (unsigned long)wxSysErrorCode();
8460
8461 wxPyEndAllowThreads(__tstate);
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
c32bde28 8464 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
8465 return resultobj;
8466 fail:
8467 return NULL;
8468}
8469
8470
c32bde28 8471static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8472 PyObject *resultobj;
8473 unsigned long arg1 = (unsigned long) 0 ;
8474 wxString result;
8475 PyObject * obj0 = 0 ;
8476 char *kwnames[] = {
8477 (char *) "nErrCode", NULL
8478 };
8479
8480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8481 if (obj0) {
c32bde28 8482 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 {
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 result = wxSysErrorMsg(arg1);
8488
8489 wxPyEndAllowThreads(__tstate);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 {
8493#if wxUSE_UNICODE
8494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8495#else
8496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8497#endif
8498 }
8499 return resultobj;
8500 fail:
8501 return NULL;
8502}
8503
8504
c32bde28 8505static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8506 PyObject *resultobj;
8507 wxString *arg1 = 0 ;
8508 bool temp1 = False ;
8509 PyObject * obj0 = 0 ;
8510 char *kwnames[] = {
8511 (char *) "msg", NULL
8512 };
8513
8514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8515 {
8516 arg1 = wxString_in_helper(obj0);
8517 if (arg1 == NULL) SWIG_fail;
8518 temp1 = True;
8519 }
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 wxLogFatalError((wxString const &)*arg1);
8523
8524 wxPyEndAllowThreads(__tstate);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 Py_INCREF(Py_None); resultobj = Py_None;
8528 {
8529 if (temp1)
8530 delete arg1;
8531 }
8532 return resultobj;
8533 fail:
8534 {
8535 if (temp1)
8536 delete arg1;
8537 }
8538 return NULL;
8539}
8540
8541
c32bde28 8542static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8543 PyObject *resultobj;
8544 wxString *arg1 = 0 ;
8545 bool temp1 = False ;
8546 PyObject * obj0 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "msg", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8552 {
8553 arg1 = wxString_in_helper(obj0);
8554 if (arg1 == NULL) SWIG_fail;
8555 temp1 = True;
8556 }
8557 {
8558 PyThreadState* __tstate = wxPyBeginAllowThreads();
8559 wxLogError((wxString const &)*arg1);
8560
8561 wxPyEndAllowThreads(__tstate);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 Py_INCREF(Py_None); resultobj = Py_None;
8565 {
8566 if (temp1)
8567 delete arg1;
8568 }
8569 return resultobj;
8570 fail:
8571 {
8572 if (temp1)
8573 delete arg1;
8574 }
8575 return NULL;
8576}
8577
8578
c32bde28 8579static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8580 PyObject *resultobj;
8581 wxString *arg1 = 0 ;
8582 bool temp1 = False ;
8583 PyObject * obj0 = 0 ;
8584 char *kwnames[] = {
8585 (char *) "msg", NULL
8586 };
8587
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8589 {
8590 arg1 = wxString_in_helper(obj0);
8591 if (arg1 == NULL) SWIG_fail;
8592 temp1 = True;
8593 }
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 wxLogWarning((wxString const &)*arg1);
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 Py_INCREF(Py_None); resultobj = Py_None;
8602 {
8603 if (temp1)
8604 delete arg1;
8605 }
8606 return resultobj;
8607 fail:
8608 {
8609 if (temp1)
8610 delete arg1;
8611 }
8612 return NULL;
8613}
8614
8615
c32bde28 8616static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8617 PyObject *resultobj;
8618 wxString *arg1 = 0 ;
8619 bool temp1 = False ;
8620 PyObject * obj0 = 0 ;
8621 char *kwnames[] = {
8622 (char *) "msg", NULL
8623 };
8624
8625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8626 {
8627 arg1 = wxString_in_helper(obj0);
8628 if (arg1 == NULL) SWIG_fail;
8629 temp1 = True;
8630 }
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 wxLogMessage((wxString const &)*arg1);
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 Py_INCREF(Py_None); resultobj = Py_None;
8639 {
8640 if (temp1)
8641 delete arg1;
8642 }
8643 return resultobj;
8644 fail:
8645 {
8646 if (temp1)
8647 delete arg1;
8648 }
8649 return NULL;
8650}
8651
8652
c32bde28 8653static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8654 PyObject *resultobj;
8655 wxString *arg1 = 0 ;
8656 bool temp1 = False ;
8657 PyObject * obj0 = 0 ;
8658 char *kwnames[] = {
8659 (char *) "msg", NULL
8660 };
8661
8662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8663 {
8664 arg1 = wxString_in_helper(obj0);
8665 if (arg1 == NULL) SWIG_fail;
8666 temp1 = True;
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 wxLogInfo((wxString const &)*arg1);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 Py_INCREF(Py_None); resultobj = Py_None;
8676 {
8677 if (temp1)
8678 delete arg1;
8679 }
8680 return resultobj;
8681 fail:
8682 {
8683 if (temp1)
8684 delete arg1;
8685 }
8686 return NULL;
8687}
8688
8689
c32bde28 8690static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8691 PyObject *resultobj;
8692 wxString *arg1 = 0 ;
8693 bool temp1 = False ;
8694 PyObject * obj0 = 0 ;
8695 char *kwnames[] = {
8696 (char *) "msg", NULL
8697 };
8698
8699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8700 {
8701 arg1 = wxString_in_helper(obj0);
8702 if (arg1 == NULL) SWIG_fail;
8703 temp1 = True;
8704 }
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 wxLogDebug((wxString const &)*arg1);
8708
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 Py_INCREF(Py_None); resultobj = Py_None;
8713 {
8714 if (temp1)
8715 delete arg1;
8716 }
8717 return resultobj;
8718 fail:
8719 {
8720 if (temp1)
8721 delete arg1;
8722 }
8723 return NULL;
8724}
8725
8726
c32bde28 8727static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8728 PyObject *resultobj;
8729 wxString *arg1 = 0 ;
8730 bool temp1 = False ;
8731 PyObject * obj0 = 0 ;
8732 char *kwnames[] = {
8733 (char *) "msg", NULL
8734 };
8735
8736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8737 {
8738 arg1 = wxString_in_helper(obj0);
8739 if (arg1 == NULL) SWIG_fail;
8740 temp1 = True;
8741 }
8742 {
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 wxLogVerbose((wxString const &)*arg1);
8745
8746 wxPyEndAllowThreads(__tstate);
8747 if (PyErr_Occurred()) SWIG_fail;
8748 }
8749 Py_INCREF(Py_None); resultobj = Py_None;
8750 {
8751 if (temp1)
8752 delete arg1;
8753 }
8754 return resultobj;
8755 fail:
8756 {
8757 if (temp1)
8758 delete arg1;
8759 }
8760 return NULL;
8761}
8762
8763
c32bde28 8764static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8765 PyObject *resultobj;
8766 wxString *arg1 = 0 ;
8767 bool temp1 = False ;
8768 PyObject * obj0 = 0 ;
8769 char *kwnames[] = {
8770 (char *) "msg", NULL
8771 };
8772
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8774 {
8775 arg1 = wxString_in_helper(obj0);
8776 if (arg1 == NULL) SWIG_fail;
8777 temp1 = True;
8778 }
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 wxLogStatus((wxString const &)*arg1);
8782
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 Py_INCREF(Py_None); resultobj = Py_None;
8787 {
8788 if (temp1)
8789 delete arg1;
8790 }
8791 return resultobj;
8792 fail:
8793 {
8794 if (temp1)
8795 delete arg1;
8796 }
8797 return NULL;
8798}
8799
8800
c32bde28 8801static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8802 PyObject *resultobj;
8803 wxFrame *arg1 = (wxFrame *) 0 ;
8804 wxString *arg2 = 0 ;
8805 bool temp2 = False ;
8806 PyObject * obj0 = 0 ;
8807 PyObject * obj1 = 0 ;
8808 char *kwnames[] = {
8809 (char *) "pFrame",(char *) "msg", NULL
8810 };
8811
8812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8815 {
8816 arg2 = wxString_in_helper(obj1);
8817 if (arg2 == NULL) SWIG_fail;
8818 temp2 = True;
8819 }
8820 {
8821 PyThreadState* __tstate = wxPyBeginAllowThreads();
8822 wxLogStatus(arg1,(wxString const &)*arg2);
8823
8824 wxPyEndAllowThreads(__tstate);
8825 if (PyErr_Occurred()) SWIG_fail;
8826 }
8827 Py_INCREF(Py_None); resultobj = Py_None;
8828 {
8829 if (temp2)
8830 delete arg2;
8831 }
8832 return resultobj;
8833 fail:
8834 {
8835 if (temp2)
8836 delete arg2;
8837 }
8838 return NULL;
8839}
8840
8841
c32bde28 8842static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8843 PyObject *resultobj;
8844 wxString *arg1 = 0 ;
8845 bool temp1 = False ;
8846 PyObject * obj0 = 0 ;
8847 char *kwnames[] = {
8848 (char *) "msg", NULL
8849 };
8850
8851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8852 {
8853 arg1 = wxString_in_helper(obj0);
8854 if (arg1 == NULL) SWIG_fail;
8855 temp1 = True;
8856 }
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 wxLogSysError((wxString const &)*arg1);
8860
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 Py_INCREF(Py_None); resultobj = Py_None;
8865 {
8866 if (temp1)
8867 delete arg1;
8868 }
8869 return resultobj;
8870 fail:
8871 {
8872 if (temp1)
8873 delete arg1;
8874 }
8875 return NULL;
8876}
8877
8878
c32bde28 8879static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
8880 PyObject *resultobj;
8881 unsigned long arg1 ;
8882 wxString *arg2 = 0 ;
8883 bool temp2 = False ;
8884 PyObject * obj0 = 0 ;
8885 PyObject * obj1 = 0 ;
8886
8887 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
c32bde28 8888 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
8889 if (PyErr_Occurred()) SWIG_fail;
8890 {
8891 arg2 = wxString_in_helper(obj1);
8892 if (arg2 == NULL) SWIG_fail;
8893 temp2 = True;
8894 }
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 wxLogTrace(arg1,(wxString const &)*arg2);
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 Py_INCREF(Py_None); resultobj = Py_None;
8903 {
8904 if (temp2)
8905 delete arg2;
8906 }
8907 return resultobj;
8908 fail:
8909 {
8910 if (temp2)
8911 delete arg2;
8912 }
8913 return NULL;
8914}
8915
8916
c32bde28 8917static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
8918 PyObject *resultobj;
8919 wxString *arg1 = 0 ;
8920 wxString *arg2 = 0 ;
8921 bool temp1 = False ;
8922 bool temp2 = False ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925
8926 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8927 {
8928 arg1 = wxString_in_helper(obj0);
8929 if (arg1 == NULL) SWIG_fail;
8930 temp1 = True;
8931 }
8932 {
8933 arg2 = wxString_in_helper(obj1);
8934 if (arg2 == NULL) SWIG_fail;
8935 temp2 = True;
8936 }
8937 {
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8940
8941 wxPyEndAllowThreads(__tstate);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
8944 Py_INCREF(Py_None); resultobj = Py_None;
8945 {
8946 if (temp1)
8947 delete arg1;
8948 }
8949 {
8950 if (temp2)
8951 delete arg2;
8952 }
8953 return resultobj;
8954 fail:
8955 {
8956 if (temp1)
8957 delete arg1;
8958 }
8959 {
8960 if (temp2)
8961 delete arg2;
8962 }
8963 return NULL;
8964}
8965
8966
8967static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8968 int argc;
8969 PyObject *argv[3];
8970 int ii;
8971
8972 argc = PyObject_Length(args);
8973 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8974 argv[ii] = PyTuple_GetItem(args,ii);
8975 }
8976 if (argc == 2) {
8977 int _v;
8978 {
8979 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8980 }
8981 if (_v) {
8982 {
8983 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8984 }
8985 if (_v) {
8986 return _wrap_LogTrace__SWIG_1(self,args);
8987 }
8988 }
8989 }
8990 if (argc == 2) {
8991 int _v;
c32bde28 8992 _v = SWIG_Check_unsigned_SS_long(argv[0]);
d55e5bfc
RD
8993 if (_v) {
8994 {
8995 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8996 }
8997 if (_v) {
8998 return _wrap_LogTrace__SWIG_0(self,args);
8999 }
9000 }
9001 }
9002
9003 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9004 return NULL;
9005}
9006
9007
c32bde28 9008static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9009 PyObject *resultobj;
9010 unsigned long arg1 ;
9011 wxString *arg2 = 0 ;
9012 bool temp2 = False ;
9013 PyObject * obj0 = 0 ;
9014 PyObject * obj1 = 0 ;
9015 char *kwnames[] = {
9016 (char *) "level",(char *) "msg", NULL
9017 };
9018
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
c32bde28 9020 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
9021 if (PyErr_Occurred()) SWIG_fail;
9022 {
9023 arg2 = wxString_in_helper(obj1);
9024 if (arg2 == NULL) SWIG_fail;
9025 temp2 = True;
9026 }
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 wxLogGeneric(arg1,(wxString const &)*arg2);
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 Py_INCREF(Py_None); resultobj = Py_None;
9035 {
9036 if (temp2)
9037 delete arg2;
9038 }
9039 return resultobj;
9040 fail:
9041 {
9042 if (temp2)
9043 delete arg2;
9044 }
9045 return NULL;
9046}
9047
9048
c32bde28 9049static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9050 PyObject *resultobj;
9051 wxString *arg1 = 0 ;
9052 wxString *arg2 = 0 ;
9053 bool temp1 = False ;
9054 bool temp2 = False ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "title",(char *) "text", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9062 {
9063 arg1 = wxString_in_helper(obj0);
9064 if (arg1 == NULL) SWIG_fail;
9065 temp1 = True;
9066 }
9067 {
9068 arg2 = wxString_in_helper(obj1);
9069 if (arg2 == NULL) SWIG_fail;
9070 temp2 = True;
9071 }
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9075
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 Py_INCREF(Py_None); resultobj = Py_None;
9080 {
9081 if (temp1)
9082 delete arg1;
9083 }
9084 {
9085 if (temp2)
9086 delete arg2;
9087 }
9088 return resultobj;
9089 fail:
9090 {
9091 if (temp1)
9092 delete arg1;
9093 }
9094 {
9095 if (temp2)
9096 delete arg2;
9097 }
9098 return NULL;
9099}
9100
9101
c32bde28 9102static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9103 PyObject *resultobj;
9104 wxLogNull *result;
9105 char *kwnames[] = {
9106 NULL
9107 };
9108
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 result = (wxLogNull *)new wxLogNull();
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9118 return resultobj;
9119 fail:
9120 return NULL;
9121}
9122
9123
c32bde28 9124static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9125 PyObject *resultobj;
9126 wxLogNull *arg1 = (wxLogNull *) 0 ;
9127 PyObject * obj0 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 {
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 delete arg1;
9138
9139 wxPyEndAllowThreads(__tstate);
9140 if (PyErr_Occurred()) SWIG_fail;
9141 }
9142 Py_INCREF(Py_None); resultobj = Py_None;
9143 return resultobj;
9144 fail:
9145 return NULL;
9146}
9147
9148
c32bde28 9149static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9150 PyObject *obj;
9151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9152 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9153 Py_INCREF(obj);
9154 return Py_BuildValue((char *)"");
9155}
c32bde28 9156static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9157 PyObject *resultobj;
9158 wxPyLog *result;
9159 char *kwnames[] = {
9160 NULL
9161 };
9162
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 result = (wxPyLog *)new wxPyLog();
9167
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9172 return resultobj;
9173 fail:
9174 return NULL;
9175}
9176
9177
c32bde28 9178static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9179 PyObject *resultobj;
9180 wxPyLog *arg1 = (wxPyLog *) 0 ;
9181 PyObject *arg2 = (PyObject *) 0 ;
9182 PyObject *arg3 = (PyObject *) 0 ;
9183 PyObject * obj0 = 0 ;
9184 PyObject * obj1 = 0 ;
9185 PyObject * obj2 = 0 ;
9186 char *kwnames[] = {
9187 (char *) "self",(char *) "self",(char *) "_class", NULL
9188 };
9189
9190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9193 arg2 = obj1;
9194 arg3 = obj2;
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 (arg1)->_setCallbackInfo(arg2,arg3);
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 Py_INCREF(Py_None); resultobj = Py_None;
9203 return resultobj;
9204 fail:
9205 return NULL;
9206}
9207
9208
c32bde28 9209static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9210 PyObject *obj;
9211 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9212 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9213 Py_INCREF(obj);
9214 return Py_BuildValue((char *)"");
9215}
c32bde28 9216static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9217 PyObject *resultobj;
9218 int arg1 ;
9219 int arg2 = (int) wxSIGTERM ;
9220 int result;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "pid",(char *) "sig", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
c32bde28 9228 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9229 if (PyErr_Occurred()) SWIG_fail;
9230 if (obj1) {
c32bde28 9231 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9237
9238 wxPyEndAllowThreads(__tstate);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 }
c32bde28 9241 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9242 return resultobj;
9243 fail:
9244 return NULL;
9245}
9246
9247
c32bde28 9248static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9249 PyObject *resultobj;
9250 int arg1 ;
9251 bool result;
9252 PyObject * obj0 = 0 ;
9253 char *kwnames[] = {
9254 (char *) "pid", NULL
9255 };
9256
9257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
c32bde28 9258 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9259 if (PyErr_Occurred()) SWIG_fail;
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 result = (bool)wxPyProcess::Exists(arg1);
9263
9264 wxPyEndAllowThreads(__tstate);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 {
9268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9269 }
9270 return resultobj;
9271 fail:
9272 return NULL;
9273}
9274
9275
c32bde28 9276static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9277 PyObject *resultobj;
9278 wxString *arg1 = 0 ;
9279 int arg2 = (int) wxEXEC_ASYNC ;
9280 wxPyProcess *result;
9281 bool temp1 = False ;
9282 PyObject * obj0 = 0 ;
9283 PyObject * obj1 = 0 ;
9284 char *kwnames[] = {
9285 (char *) "cmd",(char *) "flags", NULL
9286 };
9287
9288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9289 {
9290 arg1 = wxString_in_helper(obj0);
9291 if (arg1 == NULL) SWIG_fail;
9292 temp1 = True;
9293 }
9294 if (obj1) {
c32bde28 9295 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9306 {
9307 if (temp1)
9308 delete arg1;
9309 }
9310 return resultobj;
9311 fail:
9312 {
9313 if (temp1)
9314 delete arg1;
9315 }
9316 return NULL;
9317}
9318
9319
c32bde28 9320static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9321 PyObject *resultobj;
9322 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9323 int arg2 = (int) -1 ;
9324 wxPyProcess *result;
9325 PyObject * obj0 = 0 ;
9326 PyObject * obj1 = 0 ;
9327 char *kwnames[] = {
9328 (char *) "parent",(char *) "id", NULL
9329 };
9330
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9332 if (obj0) {
9333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9335 }
9336 if (obj1) {
c32bde28 9337 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9343
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9348 return resultobj;
9349 fail:
9350 return NULL;
9351}
9352
9353
c32bde28 9354static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9355 PyObject *resultobj;
9356 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9357 PyObject *arg2 = (PyObject *) 0 ;
9358 PyObject *arg3 = (PyObject *) 0 ;
9359 PyObject * obj0 = 0 ;
9360 PyObject * obj1 = 0 ;
9361 PyObject * obj2 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self",(char *) "self",(char *) "_class", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9369 arg2 = obj1;
9370 arg3 = obj2;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 (arg1)->_setCallbackInfo(arg2,arg3);
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 Py_INCREF(Py_None); resultobj = Py_None;
9379 return resultobj;
9380 fail:
9381 return NULL;
9382}
9383
9384
c32bde28 9385static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9386 PyObject *resultobj;
9387 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9388 int arg2 ;
9389 int arg3 ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 PyObject * obj2 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self",(char *) "pid",(char *) "status", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9400 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9401 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9402 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9403 if (PyErr_Occurred()) SWIG_fail;
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 (arg1)->base_OnTerminate(arg2,arg3);
9407
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 Py_INCREF(Py_None); resultobj = Py_None;
9412 return resultobj;
9413 fail:
9414 return NULL;
9415}
9416
9417
c32bde28 9418static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9419 PyObject *resultobj;
9420 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "self", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 (arg1)->Redirect();
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 Py_INCREF(Py_None); resultobj = Py_None;
9437 return resultobj;
9438 fail:
9439 return NULL;
9440}
9441
9442
c32bde28 9443static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9444 PyObject *resultobj;
9445 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9446 bool result;
9447 PyObject * obj0 = 0 ;
9448 char *kwnames[] = {
9449 (char *) "self", NULL
9450 };
9451
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9455 {
9456 PyThreadState* __tstate = wxPyBeginAllowThreads();
9457 result = (bool)(arg1)->IsRedirected();
9458
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 {
9463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9464 }
9465 return resultobj;
9466 fail:
9467 return NULL;
9468}
9469
9470
c32bde28 9471static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9472 PyObject *resultobj;
9473 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9474 PyObject * obj0 = 0 ;
9475 char *kwnames[] = {
9476 (char *) "self", NULL
9477 };
9478
9479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 (arg1)->Detach();
9485
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 Py_INCREF(Py_None); resultobj = Py_None;
9490 return resultobj;
9491 fail:
9492 return NULL;
9493}
9494
9495
c32bde28 9496static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9497 PyObject *resultobj;
9498 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9499 wxInputStream *result;
9500 PyObject * obj0 = 0 ;
9501 char *kwnames[] = {
9502 (char *) "self", NULL
9503 };
9504
9505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 result = (wxInputStream *)(arg1)->GetInputStream();
9511
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 {
9516 wxPyInputStream * _ptr = NULL;
9517
9518 if (result) {
9519 _ptr = new wxPyInputStream(result);
9520 }
9521 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9522 }
9523 return resultobj;
9524 fail:
9525 return NULL;
9526}
9527
9528
c32bde28 9529static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9530 PyObject *resultobj;
9531 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9532 wxInputStream *result;
9533 PyObject * obj0 = 0 ;
9534 char *kwnames[] = {
9535 (char *) "self", NULL
9536 };
9537
9538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 result = (wxInputStream *)(arg1)->GetErrorStream();
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 {
9549 wxPyInputStream * _ptr = NULL;
9550
9551 if (result) {
9552 _ptr = new wxPyInputStream(result);
9553 }
9554 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9555 }
9556 return resultobj;
9557 fail:
9558 return NULL;
9559}
9560
9561
c32bde28 9562static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9563 PyObject *resultobj;
9564 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9565 wxOutputStream *result;
9566 PyObject * obj0 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self", NULL
9569 };
9570
9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (wxOutputStream *)(arg1)->GetOutputStream();
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9582 return resultobj;
9583 fail:
9584 return NULL;
9585}
9586
9587
c32bde28 9588static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9589 PyObject *resultobj;
9590 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9591 PyObject * obj0 = 0 ;
9592 char *kwnames[] = {
9593 (char *) "self", NULL
9594 };
9595
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 (arg1)->CloseOutput();
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 Py_INCREF(Py_None); resultobj = Py_None;
9607 return resultobj;
9608 fail:
9609 return NULL;
9610}
9611
9612
c32bde28 9613static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9614 PyObject *resultobj;
9615 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9616 bool result;
9617 PyObject * obj0 = 0 ;
9618 char *kwnames[] = {
9619 (char *) "self", NULL
9620 };
9621
9622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9628
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 {
9633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9634 }
9635 return resultobj;
9636 fail:
9637 return NULL;
9638}
9639
9640
c32bde28 9641static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9642 PyObject *resultobj;
9643 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9644 bool result;
9645 PyObject * obj0 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9656
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 {
9661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9662 }
9663 return resultobj;
9664 fail:
9665 return NULL;
9666}
9667
9668
c32bde28 9669static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9670 PyObject *resultobj;
9671 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9672 bool result;
9673 PyObject * obj0 = 0 ;
9674 char *kwnames[] = {
9675 (char *) "self", NULL
9676 };
9677
9678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 {
9689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694}
9695
9696
c32bde28 9697static PyObject * Process_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9698 PyObject *obj;
9699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9700 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9701 Py_INCREF(obj);
9702 return Py_BuildValue((char *)"");
9703}
c32bde28 9704static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9705 PyObject *resultobj;
9706 int arg1 = (int) 0 ;
9707 int arg2 = (int) 0 ;
9708 int arg3 = (int) 0 ;
9709 wxProcessEvent *result;
9710 PyObject * obj0 = 0 ;
9711 PyObject * obj1 = 0 ;
9712 PyObject * obj2 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9718 if (obj0) {
c32bde28 9719 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9720 if (PyErr_Occurred()) SWIG_fail;
9721 }
9722 if (obj1) {
c32bde28 9723 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 if (obj2) {
c32bde28 9727 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9733
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9738 return resultobj;
9739 fail:
9740 return NULL;
9741}
9742
9743
c32bde28 9744static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9745 PyObject *resultobj;
9746 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9747 int result;
9748 PyObject * obj0 = 0 ;
9749 char *kwnames[] = {
9750 (char *) "self", NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 result = (int)(arg1)->GetPid();
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
c32bde28 9763 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9764 return resultobj;
9765 fail:
9766 return NULL;
9767}
9768
9769
c32bde28 9770static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9771 PyObject *resultobj;
9772 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9773 int result;
9774 PyObject * obj0 = 0 ;
9775 char *kwnames[] = {
9776 (char *) "self", NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (int)(arg1)->GetExitCode();
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
c32bde28 9789 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9790 return resultobj;
9791 fail:
9792 return NULL;
9793}
9794
9795
c32bde28 9796static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9797 PyObject *resultobj;
9798 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9799 int arg2 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "self",(char *) "m_pid", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9809 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9810 if (PyErr_Occurred()) SWIG_fail;
9811 if (arg1) (arg1)->m_pid = arg2;
9812
9813 Py_INCREF(Py_None); resultobj = Py_None;
9814 return resultobj;
9815 fail:
9816 return NULL;
9817}
9818
9819
c32bde28 9820static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9821 PyObject *resultobj;
9822 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9823 int result;
9824 PyObject * obj0 = 0 ;
9825 char *kwnames[] = {
9826 (char *) "self", NULL
9827 };
9828
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9832 result = (int) ((arg1)->m_pid);
9833
c32bde28 9834 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9835 return resultobj;
9836 fail:
9837 return NULL;
9838}
9839
9840
c32bde28 9841static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9842 PyObject *resultobj;
9843 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9844 int arg2 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self",(char *) "m_exitcode", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9854 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9855 if (PyErr_Occurred()) SWIG_fail;
9856 if (arg1) (arg1)->m_exitcode = arg2;
9857
9858 Py_INCREF(Py_None); resultobj = Py_None;
9859 return resultobj;
9860 fail:
9861 return NULL;
9862}
9863
9864
c32bde28 9865static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9866 PyObject *resultobj;
9867 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9868 int result;
9869 PyObject * obj0 = 0 ;
9870 char *kwnames[] = {
9871 (char *) "self", NULL
9872 };
9873
9874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9877 result = (int) ((arg1)->m_exitcode);
9878
c32bde28 9879 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9880 return resultobj;
9881 fail:
9882 return NULL;
9883}
9884
9885
c32bde28 9886static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9887 PyObject *obj;
9888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9889 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9890 Py_INCREF(obj);
9891 return Py_BuildValue((char *)"");
9892}
c32bde28 9893static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9894 PyObject *resultobj;
9895 wxString *arg1 = 0 ;
9896 int arg2 = (int) wxEXEC_ASYNC ;
9897 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9898 long result;
9899 bool temp1 = False ;
9900 PyObject * obj0 = 0 ;
9901 PyObject * obj1 = 0 ;
9902 PyObject * obj2 = 0 ;
9903 char *kwnames[] = {
9904 (char *) "command",(char *) "flags",(char *) "process", NULL
9905 };
9906
9907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9908 {
9909 arg1 = wxString_in_helper(obj0);
9910 if (arg1 == NULL) SWIG_fail;
9911 temp1 = True;
9912 }
9913 if (obj1) {
c32bde28 9914 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 if (obj2) {
9918 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9920 }
9921 {
0439c23b 9922 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9925
9926 wxPyEndAllowThreads(__tstate);
110da5b0 9927 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 9928 }
c32bde28 9929 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
9930 {
9931 if (temp1)
9932 delete arg1;
9933 }
9934 return resultobj;
9935 fail:
9936 {
9937 if (temp1)
9938 delete arg1;
9939 }
9940 return NULL;
9941}
9942
9943
c32bde28 9944static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9945 PyObject *resultobj;
9946 int arg1 = (int) wxJOYSTICK1 ;
9947 wxJoystick *result;
9948 PyObject * obj0 = 0 ;
9949 char *kwnames[] = {
9950 (char *) "joystick", NULL
9951 };
9952
9953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9954 if (obj0) {
c32bde28 9955 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 {
0439c23b 9959 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 result = (wxJoystick *)new wxJoystick(arg1);
9962
9963 wxPyEndAllowThreads(__tstate);
110da5b0 9964 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9965 }
9966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9967 return resultobj;
9968 fail:
9969 return NULL;
9970}
9971
9972
c32bde28 9973static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9974 PyObject *resultobj;
9975 wxJoystick *arg1 = (wxJoystick *) 0 ;
9976 PyObject * obj0 = 0 ;
9977 char *kwnames[] = {
9978 (char *) "self", NULL
9979 };
9980
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9984 {
9985 PyThreadState* __tstate = wxPyBeginAllowThreads();
9986 delete arg1;
9987
9988 wxPyEndAllowThreads(__tstate);
9989 if (PyErr_Occurred()) SWIG_fail;
9990 }
9991 Py_INCREF(Py_None); resultobj = Py_None;
9992 return resultobj;
9993 fail:
9994 return NULL;
9995}
9996
9997
c32bde28 9998static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9999 PyObject *resultobj;
10000 wxJoystick *arg1 = (wxJoystick *) 0 ;
10001 wxPoint result;
10002 PyObject * obj0 = 0 ;
10003 char *kwnames[] = {
10004 (char *) "self", NULL
10005 };
10006
10007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (arg1)->GetPosition();
10013
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 {
10018 wxPoint * resultptr;
10019 resultptr = new wxPoint((wxPoint &) result);
10020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10021 }
10022 return resultobj;
10023 fail:
10024 return NULL;
10025}
10026
10027
c32bde28 10028static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10029 PyObject *resultobj;
10030 wxJoystick *arg1 = (wxJoystick *) 0 ;
10031 int result;
10032 PyObject * obj0 = 0 ;
10033 char *kwnames[] = {
10034 (char *) "self", NULL
10035 };
10036
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (int)(arg1)->GetZPosition();
10043
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
c32bde28 10047 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10048 return resultobj;
10049 fail:
10050 return NULL;
10051}
10052
10053
c32bde28 10054static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10055 PyObject *resultobj;
10056 wxJoystick *arg1 = (wxJoystick *) 0 ;
10057 int result;
10058 PyObject * obj0 = 0 ;
10059 char *kwnames[] = {
10060 (char *) "self", NULL
10061 };
10062
10063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (int)(arg1)->GetButtonState();
10069
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
c32bde28 10073 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10074 return resultobj;
10075 fail:
10076 return NULL;
10077}
10078
10079
c32bde28 10080static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10081 PyObject *resultobj;
10082 wxJoystick *arg1 = (wxJoystick *) 0 ;
10083 int result;
10084 PyObject * obj0 = 0 ;
10085 char *kwnames[] = {
10086 (char *) "self", NULL
10087 };
10088
10089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (int)(arg1)->GetPOVPosition();
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
c32bde28 10099 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10100 return resultobj;
10101 fail:
10102 return NULL;
10103}
10104
10105
c32bde28 10106static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10107 PyObject *resultobj;
10108 wxJoystick *arg1 = (wxJoystick *) 0 ;
10109 int result;
10110 PyObject * obj0 = 0 ;
10111 char *kwnames[] = {
10112 (char *) "self", NULL
10113 };
10114
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (int)(arg1)->GetPOVCTSPosition();
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
c32bde28 10125 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10126 return resultobj;
10127 fail:
10128 return NULL;
10129}
10130
10131
c32bde28 10132static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10133 PyObject *resultobj;
10134 wxJoystick *arg1 = (wxJoystick *) 0 ;
10135 int result;
10136 PyObject * obj0 = 0 ;
10137 char *kwnames[] = {
10138 (char *) "self", NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 result = (int)(arg1)->GetRudderPosition();
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
c32bde28 10151 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10152 return resultobj;
10153 fail:
10154 return NULL;
10155}
10156
10157
c32bde28 10158static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10159 PyObject *resultobj;
10160 wxJoystick *arg1 = (wxJoystick *) 0 ;
10161 int result;
10162 PyObject * obj0 = 0 ;
10163 char *kwnames[] = {
10164 (char *) "self", NULL
10165 };
10166
10167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (int)(arg1)->GetUPosition();
10173
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
c32bde28 10177 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10178 return resultobj;
10179 fail:
10180 return NULL;
10181}
10182
10183
c32bde28 10184static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10185 PyObject *resultobj;
10186 wxJoystick *arg1 = (wxJoystick *) 0 ;
10187 int result;
10188 PyObject * obj0 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (int)(arg1)->GetVPosition();
10199
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
c32bde28 10203 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10204 return resultobj;
10205 fail:
10206 return NULL;
10207}
10208
10209
c32bde28 10210static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10211 PyObject *resultobj;
10212 wxJoystick *arg1 = (wxJoystick *) 0 ;
10213 int result;
10214 PyObject * obj0 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (int)(arg1)->GetMovementThreshold();
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
c32bde28 10229 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10230 return resultobj;
10231 fail:
10232 return NULL;
10233}
10234
10235
c32bde28 10236static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10237 PyObject *resultobj;
10238 wxJoystick *arg1 = (wxJoystick *) 0 ;
10239 int arg2 ;
10240 PyObject * obj0 = 0 ;
10241 PyObject * obj1 = 0 ;
10242 char *kwnames[] = {
10243 (char *) "self",(char *) "threshold", NULL
10244 };
10245
10246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 10249 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10250 if (PyErr_Occurred()) SWIG_fail;
10251 {
10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
10253 (arg1)->SetMovementThreshold(arg2);
10254
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 Py_INCREF(Py_None); resultobj = Py_None;
10259 return resultobj;
10260 fail:
10261 return NULL;
10262}
10263
10264
c32bde28 10265static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10266 PyObject *resultobj;
10267 wxJoystick *arg1 = (wxJoystick *) 0 ;
10268 bool result;
10269 PyObject * obj0 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "self", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (bool)(arg1)->IsOk();
10280
10281 wxPyEndAllowThreads(__tstate);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 {
10285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10286 }
10287 return resultobj;
10288 fail:
10289 return NULL;
10290}
10291
10292
c32bde28 10293static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10294 PyObject *resultobj;
10295 wxJoystick *arg1 = (wxJoystick *) 0 ;
10296 int result;
10297 PyObject * obj0 = 0 ;
10298 char *kwnames[] = {
10299 (char *) "self", NULL
10300 };
10301
10302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (int)(arg1)->GetNumberJoysticks();
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
c32bde28 10312 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10313 return resultobj;
10314 fail:
10315 return NULL;
10316}
10317
10318
c32bde28 10319static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10320 PyObject *resultobj;
10321 wxJoystick *arg1 = (wxJoystick *) 0 ;
10322 int result;
10323 PyObject * obj0 = 0 ;
10324 char *kwnames[] = {
10325 (char *) "self", NULL
10326 };
10327
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (int)(arg1)->GetManufacturerId();
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
c32bde28 10338 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10339 return resultobj;
10340 fail:
10341 return NULL;
10342}
10343
10344
c32bde28 10345static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10346 PyObject *resultobj;
10347 wxJoystick *arg1 = (wxJoystick *) 0 ;
10348 int result;
10349 PyObject * obj0 = 0 ;
10350 char *kwnames[] = {
10351 (char *) "self", NULL
10352 };
10353
10354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 result = (int)(arg1)->GetProductId();
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
c32bde28 10364 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10365 return resultobj;
10366 fail:
10367 return NULL;
10368}
10369
10370
c32bde28 10371static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10372 PyObject *resultobj;
10373 wxJoystick *arg1 = (wxJoystick *) 0 ;
10374 wxString result;
10375 PyObject * obj0 = 0 ;
10376 char *kwnames[] = {
10377 (char *) "self", NULL
10378 };
10379
10380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (arg1)->GetProductName();
10386
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 {
10391#if wxUSE_UNICODE
10392 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10393#else
10394 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10395#endif
10396 }
10397 return resultobj;
10398 fail:
10399 return NULL;
10400}
10401
10402
c32bde28 10403static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10404 PyObject *resultobj;
10405 wxJoystick *arg1 = (wxJoystick *) 0 ;
10406 int result;
10407 PyObject * obj0 = 0 ;
10408 char *kwnames[] = {
10409 (char *) "self", NULL
10410 };
10411
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10415 {
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 result = (int)(arg1)->GetXMin();
10418
10419 wxPyEndAllowThreads(__tstate);
10420 if (PyErr_Occurred()) SWIG_fail;
10421 }
c32bde28 10422 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10423 return resultobj;
10424 fail:
10425 return NULL;
10426}
10427
10428
c32bde28 10429static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10430 PyObject *resultobj;
10431 wxJoystick *arg1 = (wxJoystick *) 0 ;
10432 int result;
10433 PyObject * obj0 = 0 ;
10434 char *kwnames[] = {
10435 (char *) "self", NULL
10436 };
10437
10438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10441 {
10442 PyThreadState* __tstate = wxPyBeginAllowThreads();
10443 result = (int)(arg1)->GetYMin();
10444
10445 wxPyEndAllowThreads(__tstate);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
c32bde28 10448 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10449 return resultobj;
10450 fail:
10451 return NULL;
10452}
10453
10454
c32bde28 10455static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10456 PyObject *resultobj;
10457 wxJoystick *arg1 = (wxJoystick *) 0 ;
10458 int result;
10459 PyObject * obj0 = 0 ;
10460 char *kwnames[] = {
10461 (char *) "self", NULL
10462 };
10463
10464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = (int)(arg1)->GetZMin();
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
c32bde28 10474 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10475 return resultobj;
10476 fail:
10477 return NULL;
10478}
10479
10480
c32bde28 10481static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10482 PyObject *resultobj;
10483 wxJoystick *arg1 = (wxJoystick *) 0 ;
10484 int result;
10485 PyObject * obj0 = 0 ;
10486 char *kwnames[] = {
10487 (char *) "self", NULL
10488 };
10489
10490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 result = (int)(arg1)->GetXMax();
10496
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
c32bde28 10500 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10501 return resultobj;
10502 fail:
10503 return NULL;
10504}
10505
10506
c32bde28 10507static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10508 PyObject *resultobj;
10509 wxJoystick *arg1 = (wxJoystick *) 0 ;
10510 int result;
10511 PyObject * obj0 = 0 ;
10512 char *kwnames[] = {
10513 (char *) "self", NULL
10514 };
10515
10516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 result = (int)(arg1)->GetYMax();
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
c32bde28 10526 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10527 return resultobj;
10528 fail:
10529 return NULL;
10530}
10531
10532
c32bde28 10533static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10534 PyObject *resultobj;
10535 wxJoystick *arg1 = (wxJoystick *) 0 ;
10536 int result;
10537 PyObject * obj0 = 0 ;
10538 char *kwnames[] = {
10539 (char *) "self", NULL
10540 };
10541
10542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (int)(arg1)->GetZMax();
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
c32bde28 10552 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10553 return resultobj;
10554 fail:
10555 return NULL;
10556}
10557
10558
c32bde28 10559static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10560 PyObject *resultobj;
10561 wxJoystick *arg1 = (wxJoystick *) 0 ;
10562 int result;
10563 PyObject * obj0 = 0 ;
10564 char *kwnames[] = {
10565 (char *) "self", NULL
10566 };
10567
10568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 result = (int)(arg1)->GetNumberButtons();
10574
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
c32bde28 10578 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10579 return resultobj;
10580 fail:
10581 return NULL;
10582}
10583
10584
c32bde28 10585static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10586 PyObject *resultobj;
10587 wxJoystick *arg1 = (wxJoystick *) 0 ;
10588 int result;
10589 PyObject * obj0 = 0 ;
10590 char *kwnames[] = {
10591 (char *) "self", NULL
10592 };
10593
10594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10597 {
10598 PyThreadState* __tstate = wxPyBeginAllowThreads();
10599 result = (int)(arg1)->GetNumberAxes();
10600
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
c32bde28 10604 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10605 return resultobj;
10606 fail:
10607 return NULL;
10608}
10609
10610
c32bde28 10611static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10612 PyObject *resultobj;
10613 wxJoystick *arg1 = (wxJoystick *) 0 ;
10614 int result;
10615 PyObject * obj0 = 0 ;
10616 char *kwnames[] = {
10617 (char *) "self", NULL
10618 };
10619
10620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (int)(arg1)->GetMaxButtons();
10626
10627 wxPyEndAllowThreads(__tstate);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 }
c32bde28 10630 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10631 return resultobj;
10632 fail:
10633 return NULL;
10634}
10635
10636
c32bde28 10637static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10638 PyObject *resultobj;
10639 wxJoystick *arg1 = (wxJoystick *) 0 ;
10640 int result;
10641 PyObject * obj0 = 0 ;
10642 char *kwnames[] = {
10643 (char *) "self", NULL
10644 };
10645
10646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 result = (int)(arg1)->GetMaxAxes();
10652
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
c32bde28 10656 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10657 return resultobj;
10658 fail:
10659 return NULL;
10660}
10661
10662
c32bde28 10663static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10664 PyObject *resultobj;
10665 wxJoystick *arg1 = (wxJoystick *) 0 ;
10666 int result;
10667 PyObject * obj0 = 0 ;
10668 char *kwnames[] = {
10669 (char *) "self", NULL
10670 };
10671
10672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10675 {
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 result = (int)(arg1)->GetPollingMin();
10678
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
c32bde28 10682 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10683 return resultobj;
10684 fail:
10685 return NULL;
10686}
10687
10688
c32bde28 10689static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10690 PyObject *resultobj;
10691 wxJoystick *arg1 = (wxJoystick *) 0 ;
10692 int result;
10693 PyObject * obj0 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (int)(arg1)->GetPollingMax();
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
c32bde28 10708 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10709 return resultobj;
10710 fail:
10711 return NULL;
10712}
10713
10714
c32bde28 10715static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10716 PyObject *resultobj;
10717 wxJoystick *arg1 = (wxJoystick *) 0 ;
10718 int result;
10719 PyObject * obj0 = 0 ;
10720 char *kwnames[] = {
10721 (char *) "self", NULL
10722 };
10723
10724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (int)(arg1)->GetRudderMin();
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
c32bde28 10734 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10735 return resultobj;
10736 fail:
10737 return NULL;
10738}
10739
10740
c32bde28 10741static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10742 PyObject *resultobj;
10743 wxJoystick *arg1 = (wxJoystick *) 0 ;
10744 int result;
10745 PyObject * obj0 = 0 ;
10746 char *kwnames[] = {
10747 (char *) "self", NULL
10748 };
10749
10750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10753 {
10754 PyThreadState* __tstate = wxPyBeginAllowThreads();
10755 result = (int)(arg1)->GetRudderMax();
10756
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
c32bde28 10760 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10761 return resultobj;
10762 fail:
10763 return NULL;
10764}
10765
10766
c32bde28 10767static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10768 PyObject *resultobj;
10769 wxJoystick *arg1 = (wxJoystick *) 0 ;
10770 int result;
10771 PyObject * obj0 = 0 ;
10772 char *kwnames[] = {
10773 (char *) "self", NULL
10774 };
10775
10776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10779 {
10780 PyThreadState* __tstate = wxPyBeginAllowThreads();
10781 result = (int)(arg1)->GetUMin();
10782
10783 wxPyEndAllowThreads(__tstate);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 }
c32bde28 10786 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10787 return resultobj;
10788 fail:
10789 return NULL;
10790}
10791
10792
c32bde28 10793static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10794 PyObject *resultobj;
10795 wxJoystick *arg1 = (wxJoystick *) 0 ;
10796 int result;
10797 PyObject * obj0 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10805 {
10806 PyThreadState* __tstate = wxPyBeginAllowThreads();
10807 result = (int)(arg1)->GetUMax();
10808
10809 wxPyEndAllowThreads(__tstate);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
c32bde28 10812 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10813 return resultobj;
10814 fail:
10815 return NULL;
10816}
10817
10818
c32bde28 10819static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10820 PyObject *resultobj;
10821 wxJoystick *arg1 = (wxJoystick *) 0 ;
10822 int result;
10823 PyObject * obj0 = 0 ;
10824 char *kwnames[] = {
10825 (char *) "self", NULL
10826 };
10827
10828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 result = (int)(arg1)->GetVMin();
10834
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
c32bde28 10838 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10839 return resultobj;
10840 fail:
10841 return NULL;
10842}
10843
10844
c32bde28 10845static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10846 PyObject *resultobj;
10847 wxJoystick *arg1 = (wxJoystick *) 0 ;
10848 int result;
10849 PyObject * obj0 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 result = (int)(arg1)->GetVMax();
10860
10861 wxPyEndAllowThreads(__tstate);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
c32bde28 10864 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10865 return resultobj;
10866 fail:
10867 return NULL;
10868}
10869
10870
c32bde28 10871static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10872 PyObject *resultobj;
10873 wxJoystick *arg1 = (wxJoystick *) 0 ;
10874 bool result;
10875 PyObject * obj0 = 0 ;
10876 char *kwnames[] = {
10877 (char *) "self", NULL
10878 };
10879
10880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10883 {
10884 PyThreadState* __tstate = wxPyBeginAllowThreads();
10885 result = (bool)(arg1)->HasRudder();
10886
10887 wxPyEndAllowThreads(__tstate);
10888 if (PyErr_Occurred()) SWIG_fail;
10889 }
10890 {
10891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10892 }
10893 return resultobj;
10894 fail:
10895 return NULL;
10896}
10897
10898
c32bde28 10899static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10900 PyObject *resultobj;
10901 wxJoystick *arg1 = (wxJoystick *) 0 ;
10902 bool result;
10903 PyObject * obj0 = 0 ;
10904 char *kwnames[] = {
10905 (char *) "self", NULL
10906 };
10907
10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = (bool)(arg1)->HasZ();
10914
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 }
10918 {
10919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10920 }
10921 return resultobj;
10922 fail:
10923 return NULL;
10924}
10925
10926
c32bde28 10927static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10928 PyObject *resultobj;
10929 wxJoystick *arg1 = (wxJoystick *) 0 ;
10930 bool result;
10931 PyObject * obj0 = 0 ;
10932 char *kwnames[] = {
10933 (char *) "self", NULL
10934 };
10935
10936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = (bool)(arg1)->HasU();
10942
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 {
10947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10948 }
10949 return resultobj;
10950 fail:
10951 return NULL;
10952}
10953
10954
c32bde28 10955static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10956 PyObject *resultobj;
10957 wxJoystick *arg1 = (wxJoystick *) 0 ;
10958 bool result;
10959 PyObject * obj0 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (bool)(arg1)->HasV();
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 return resultobj;
10978 fail:
10979 return NULL;
10980}
10981
10982
c32bde28 10983static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10984 PyObject *resultobj;
10985 wxJoystick *arg1 = (wxJoystick *) 0 ;
10986 bool result;
10987 PyObject * obj0 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)(arg1)->HasPOV();
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11004 }
11005 return resultobj;
11006 fail:
11007 return NULL;
11008}
11009
11010
c32bde28 11011static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11012 PyObject *resultobj;
11013 wxJoystick *arg1 = (wxJoystick *) 0 ;
11014 bool result;
11015 PyObject * obj0 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)(arg1)->HasPOV4Dir();
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034 fail:
11035 return NULL;
11036}
11037
11038
c32bde28 11039static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11040 PyObject *resultobj;
11041 wxJoystick *arg1 = (wxJoystick *) 0 ;
11042 bool result;
11043 PyObject * obj0 = 0 ;
11044 char *kwnames[] = {
11045 (char *) "self", NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (bool)(arg1)->HasPOVCTS();
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 }
11061 return resultobj;
11062 fail:
11063 return NULL;
11064}
11065
11066
c32bde28 11067static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11068 PyObject *resultobj;
11069 wxJoystick *arg1 = (wxJoystick *) 0 ;
11070 wxWindow *arg2 = (wxWindow *) 0 ;
11071 int arg3 = (int) 0 ;
11072 bool result;
11073 PyObject * obj0 = 0 ;
11074 PyObject * obj1 = 0 ;
11075 PyObject * obj2 = 0 ;
11076 char *kwnames[] = {
11077 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11078 };
11079
11080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 if (obj2) {
c32bde28 11086 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 result = (bool)(arg1)->SetCapture(arg2,arg3);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 {
11097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11098 }
11099 return resultobj;
11100 fail:
11101 return NULL;
11102}
11103
11104
c32bde28 11105static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11106 PyObject *resultobj;
11107 wxJoystick *arg1 = (wxJoystick *) 0 ;
11108 bool result;
11109 PyObject * obj0 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "self", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (bool)(arg1)->ReleaseCapture();
11120
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;
11128 fail:
11129 return NULL;
11130}
11131
11132
c32bde28 11133static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11134 PyObject *obj;
11135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11136 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11137 Py_INCREF(obj);
11138 return Py_BuildValue((char *)"");
11139}
c32bde28 11140static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11141 PyObject *resultobj;
11142 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11143 wxPoint *arg2 = (wxPoint *) 0 ;
11144 PyObject * obj0 = 0 ;
11145 PyObject * obj1 = 0 ;
11146 char *kwnames[] = {
11147 (char *) "self",(char *) "m_pos", NULL
11148 };
11149
11150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11155 if (arg1) (arg1)->m_pos = *arg2;
11156
11157 Py_INCREF(Py_None); resultobj = Py_None;
11158 return resultobj;
11159 fail:
11160 return NULL;
11161}
11162
11163
c32bde28 11164static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11165 PyObject *resultobj;
11166 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11167 wxPoint *result;
11168 PyObject * obj0 = 0 ;
11169 char *kwnames[] = {
11170 (char *) "self", NULL
11171 };
11172
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11176 result = (wxPoint *)& ((arg1)->m_pos);
11177
11178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11179 return resultobj;
11180 fail:
11181 return NULL;
11182}
11183
11184
c32bde28 11185static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11186 PyObject *resultobj;
11187 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11188 int arg2 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 char *kwnames[] = {
11192 (char *) "self",(char *) "m_zPosition", NULL
11193 };
11194
11195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11198 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11199 if (PyErr_Occurred()) SWIG_fail;
11200 if (arg1) (arg1)->m_zPosition = arg2;
11201
11202 Py_INCREF(Py_None); resultobj = Py_None;
11203 return resultobj;
11204 fail:
11205 return NULL;
11206}
11207
11208
c32bde28 11209static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11210 PyObject *resultobj;
11211 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11212 int result;
11213 PyObject * obj0 = 0 ;
11214 char *kwnames[] = {
11215 (char *) "self", NULL
11216 };
11217
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11221 result = (int) ((arg1)->m_zPosition);
11222
c32bde28 11223 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11224 return resultobj;
11225 fail:
11226 return NULL;
11227}
11228
11229
c32bde28 11230static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11231 PyObject *resultobj;
11232 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11233 int arg2 ;
11234 PyObject * obj0 = 0 ;
11235 PyObject * obj1 = 0 ;
11236 char *kwnames[] = {
11237 (char *) "self",(char *) "m_buttonChange", NULL
11238 };
11239
11240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11243 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11244 if (PyErr_Occurred()) SWIG_fail;
11245 if (arg1) (arg1)->m_buttonChange = arg2;
11246
11247 Py_INCREF(Py_None); resultobj = Py_None;
11248 return resultobj;
11249 fail:
11250 return NULL;
11251}
11252
11253
c32bde28 11254static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11255 PyObject *resultobj;
11256 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11257 int result;
11258 PyObject * obj0 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 result = (int) ((arg1)->m_buttonChange);
11267
c32bde28 11268 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11269 return resultobj;
11270 fail:
11271 return NULL;
11272}
11273
11274
c32bde28 11275static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11276 PyObject *resultobj;
11277 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11278 int arg2 ;
11279 PyObject * obj0 = 0 ;
11280 PyObject * obj1 = 0 ;
11281 char *kwnames[] = {
11282 (char *) "self",(char *) "m_buttonState", NULL
11283 };
11284
11285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11288 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11289 if (PyErr_Occurred()) SWIG_fail;
11290 if (arg1) (arg1)->m_buttonState = arg2;
11291
11292 Py_INCREF(Py_None); resultobj = Py_None;
11293 return resultobj;
11294 fail:
11295 return NULL;
11296}
11297
11298
c32bde28 11299static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11300 PyObject *resultobj;
11301 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11302 int result;
11303 PyObject * obj0 = 0 ;
11304 char *kwnames[] = {
11305 (char *) "self", NULL
11306 };
11307
11308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11311 result = (int) ((arg1)->m_buttonState);
11312
c32bde28 11313 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11314 return resultobj;
11315 fail:
11316 return NULL;
11317}
11318
11319
c32bde28 11320static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11321 PyObject *resultobj;
11322 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11323 int arg2 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "m_joyStick", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11333 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11334 if (PyErr_Occurred()) SWIG_fail;
11335 if (arg1) (arg1)->m_joyStick = arg2;
11336
11337 Py_INCREF(Py_None); resultobj = Py_None;
11338 return resultobj;
11339 fail:
11340 return NULL;
11341}
11342
11343
c32bde28 11344static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11345 PyObject *resultobj;
11346 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11347 int result;
11348 PyObject * obj0 = 0 ;
11349 char *kwnames[] = {
11350 (char *) "self", NULL
11351 };
11352
11353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11356 result = (int) ((arg1)->m_joyStick);
11357
c32bde28 11358 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11359 return resultobj;
11360 fail:
11361 return NULL;
11362}
11363
11364
c32bde28 11365static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11366 PyObject *resultobj;
11367 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11368 int arg2 = (int) 0 ;
11369 int arg3 = (int) wxJOYSTICK1 ;
11370 int arg4 = (int) 0 ;
11371 wxJoystickEvent *result;
11372 PyObject * obj0 = 0 ;
11373 PyObject * obj1 = 0 ;
11374 PyObject * obj2 = 0 ;
11375 PyObject * obj3 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11381 if (obj0) {
c32bde28 11382 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 if (obj1) {
c32bde28 11386 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 if (obj2) {
c32bde28 11390 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 if (obj3) {
c32bde28 11394 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 {
11398 PyThreadState* __tstate = wxPyBeginAllowThreads();
11399 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11400
11401 wxPyEndAllowThreads(__tstate);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 }
11404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11405 return resultobj;
11406 fail:
11407 return NULL;
11408}
11409
11410
c32bde28 11411static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11412 PyObject *resultobj;
11413 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11414 wxPoint result;
11415 PyObject * obj0 = 0 ;
11416 char *kwnames[] = {
11417 (char *) "self", NULL
11418 };
11419
11420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11423 {
11424 PyThreadState* __tstate = wxPyBeginAllowThreads();
11425 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11426
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 wxPoint * resultptr;
11432 resultptr = new wxPoint((wxPoint &) result);
11433 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11434 }
11435 return resultobj;
11436 fail:
11437 return NULL;
11438}
11439
11440
c32bde28 11441static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11442 PyObject *resultobj;
11443 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11444 int result;
11445 PyObject * obj0 = 0 ;
11446 char *kwnames[] = {
11447 (char *) "self", NULL
11448 };
11449
11450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
c32bde28 11460 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11461 return resultobj;
11462 fail:
11463 return NULL;
11464}
11465
11466
c32bde28 11467static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11468 PyObject *resultobj;
11469 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11470 int result;
11471 PyObject * obj0 = 0 ;
11472 char *kwnames[] = {
11473 (char *) "self", NULL
11474 };
11475
11476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11482
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
c32bde28 11486 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11487 return resultobj;
11488 fail:
11489 return NULL;
11490}
11491
11492
c32bde28 11493static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11494 PyObject *resultobj;
11495 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11496 int result;
11497 PyObject * obj0 = 0 ;
11498 char *kwnames[] = {
11499 (char *) "self", NULL
11500 };
11501
11502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
c32bde28 11512 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11513 return resultobj;
11514 fail:
11515 return NULL;
11516}
11517
11518
c32bde28 11519static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11520 PyObject *resultobj;
11521 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11522 int result;
11523 PyObject * obj0 = 0 ;
11524 char *kwnames[] = {
11525 (char *) "self", NULL
11526 };
11527
11528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
c32bde28 11538 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11539 return resultobj;
11540 fail:
11541 return NULL;
11542}
11543
11544
c32bde28 11545static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11546 PyObject *resultobj;
11547 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11548 int arg2 ;
11549 PyObject * obj0 = 0 ;
11550 PyObject * obj1 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self",(char *) "stick", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11558 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11559 if (PyErr_Occurred()) SWIG_fail;
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 (arg1)->SetJoystick(arg2);
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 Py_INCREF(Py_None); resultobj = Py_None;
11568 return resultobj;
11569 fail:
11570 return NULL;
11571}
11572
11573
c32bde28 11574static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11575 PyObject *resultobj;
11576 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11577 int arg2 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 char *kwnames[] = {
11581 (char *) "self",(char *) "state", NULL
11582 };
11583
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11587 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11588 if (PyErr_Occurred()) SWIG_fail;
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->SetButtonState(arg2);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 Py_INCREF(Py_None); resultobj = Py_None;
11597 return resultobj;
11598 fail:
11599 return NULL;
11600}
11601
11602
c32bde28 11603static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11604 PyObject *resultobj;
11605 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11606 int arg2 ;
11607 PyObject * obj0 = 0 ;
11608 PyObject * obj1 = 0 ;
11609 char *kwnames[] = {
11610 (char *) "self",(char *) "change", NULL
11611 };
11612
11613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11616 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11617 if (PyErr_Occurred()) SWIG_fail;
11618 {
11619 PyThreadState* __tstate = wxPyBeginAllowThreads();
11620 (arg1)->SetButtonChange(arg2);
11621
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 Py_INCREF(Py_None); resultobj = Py_None;
11626 return resultobj;
11627 fail:
11628 return NULL;
11629}
11630
11631
c32bde28 11632static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11633 PyObject *resultobj;
11634 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11635 wxPoint *arg2 = 0 ;
11636 wxPoint temp2 ;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 char *kwnames[] = {
11640 (char *) "self",(char *) "pos", NULL
11641 };
11642
11643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11646 {
11647 arg2 = &temp2;
11648 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11649 }
11650 {
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 (arg1)->SetPosition((wxPoint const &)*arg2);
11653
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 Py_INCREF(Py_None); resultobj = Py_None;
11658 return resultobj;
11659 fail:
11660 return NULL;
11661}
11662
11663
c32bde28 11664static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11665 PyObject *resultobj;
11666 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11667 int arg2 ;
11668 PyObject * obj0 = 0 ;
11669 PyObject * obj1 = 0 ;
11670 char *kwnames[] = {
11671 (char *) "self",(char *) "zPos", NULL
11672 };
11673
11674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11677 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11678 if (PyErr_Occurred()) SWIG_fail;
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 (arg1)->SetZPosition(arg2);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 return resultobj;
11688 fail:
11689 return NULL;
11690}
11691
11692
c32bde28 11693static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11694 PyObject *resultobj;
11695 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11696 bool result;
11697 PyObject * obj0 = 0 ;
11698 char *kwnames[] = {
11699 (char *) "self", NULL
11700 };
11701
11702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 {
11713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11714 }
11715 return resultobj;
11716 fail:
11717 return NULL;
11718}
11719
11720
c32bde28 11721static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11722 PyObject *resultobj;
11723 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11724 bool result;
11725 PyObject * obj0 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 PyThreadState* __tstate = wxPyBeginAllowThreads();
11735 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11736
11737 wxPyEndAllowThreads(__tstate);
11738 if (PyErr_Occurred()) SWIG_fail;
11739 }
11740 {
11741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11742 }
11743 return resultobj;
11744 fail:
11745 return NULL;
11746}
11747
11748
c32bde28 11749static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11750 PyObject *resultobj;
11751 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11752 bool result;
11753 PyObject * obj0 = 0 ;
11754 char *kwnames[] = {
11755 (char *) "self", NULL
11756 };
11757
11758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11761 {
11762 PyThreadState* __tstate = wxPyBeginAllowThreads();
11763 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11764
11765 wxPyEndAllowThreads(__tstate);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 {
11769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11770 }
11771 return resultobj;
11772 fail:
11773 return NULL;
11774}
11775
11776
c32bde28 11777static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11778 PyObject *resultobj;
11779 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11780 int arg2 = (int) wxJOY_BUTTON_ANY ;
11781 bool result;
11782 PyObject * obj0 = 0 ;
11783 PyObject * obj1 = 0 ;
11784 char *kwnames[] = {
11785 (char *) "self",(char *) "but", NULL
11786 };
11787
11788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11791 if (obj1) {
c32bde28 11792 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11798
11799 wxPyEndAllowThreads(__tstate);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 {
11803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11804 }
11805 return resultobj;
11806 fail:
11807 return NULL;
11808}
11809
11810
c32bde28 11811static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11812 PyObject *resultobj;
11813 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11814 int arg2 = (int) wxJOY_BUTTON_ANY ;
11815 bool result;
11816 PyObject * obj0 = 0 ;
11817 PyObject * obj1 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "self",(char *) "but", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11825 if (obj1) {
c32bde28 11826 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 {
11830 PyThreadState* __tstate = wxPyBeginAllowThreads();
11831 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11832
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 {
11837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11838 }
11839 return resultobj;
11840 fail:
11841 return NULL;
11842}
11843
11844
c32bde28 11845static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11846 PyObject *resultobj;
11847 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11848 int arg2 = (int) wxJOY_BUTTON_ANY ;
11849 bool result;
11850 PyObject * obj0 = 0 ;
11851 PyObject * obj1 = 0 ;
11852 char *kwnames[] = {
11853 (char *) "self",(char *) "but", NULL
11854 };
11855
11856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11859 if (obj1) {
c32bde28 11860 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11866
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;
11874 fail:
11875 return NULL;
11876}
11877
11878
c32bde28 11879static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11880 PyObject *obj;
11881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11882 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11883 Py_INCREF(obj);
11884 return Py_BuildValue((char *)"");
11885}
c32bde28 11886static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11887 PyObject *resultobj;
b1f29bf7
RD
11888 wxString const &arg1_defvalue = wxPyEmptyString ;
11889 wxString *arg1 = (wxString *) &arg1_defvalue ;
d55e5bfc
RD
11890 wxSound *result;
11891 bool temp1 = False ;
11892 PyObject * obj0 = 0 ;
b1f29bf7
RD
11893 char *kwnames[] = {
11894 (char *) "fileName", NULL
11895 };
d55e5bfc 11896
b1f29bf7
RD
11897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11898 if (obj0) {
11899 {
11900 arg1 = wxString_in_helper(obj0);
11901 if (arg1 == NULL) SWIG_fail;
11902 temp1 = True;
11903 }
d55e5bfc
RD
11904 }
11905 {
0439c23b 11906 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1f29bf7 11908 result = (wxSound *)new_wxSound((wxString const &)*arg1);
d55e5bfc
RD
11909
11910 wxPyEndAllowThreads(__tstate);
110da5b0 11911 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11912 }
11913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11914 {
11915 if (temp1)
11916 delete arg1;
11917 }
11918 return resultobj;
11919 fail:
11920 {
11921 if (temp1)
11922 delete arg1;
11923 }
11924 return NULL;
11925}
11926
11927
c32bde28 11928static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 11929 PyObject *resultobj;
b1f29bf7 11930 PyObject *arg1 = (PyObject *) 0 ;
d55e5bfc
RD
11931 wxSound *result;
11932 PyObject * obj0 = 0 ;
b1f29bf7
RD
11933 char *kwnames[] = {
11934 (char *) "data", NULL
11935 };
d55e5bfc 11936
b1f29bf7
RD
11937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11938 arg1 = obj0;
d55e5bfc 11939 {
0439c23b 11940 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1f29bf7 11942 result = (wxSound *)new_wxSound(arg1);
d55e5bfc
RD
11943
11944 wxPyEndAllowThreads(__tstate);
110da5b0 11945 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11946 }
11947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11948 return resultobj;
11949 fail:
11950 return NULL;
11951}
11952
11953
c32bde28 11954static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11955 PyObject *resultobj;
11956 wxSound *arg1 = (wxSound *) 0 ;
11957 PyObject * obj0 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 delete arg1;
11968
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 Py_INCREF(Py_None); resultobj = Py_None;
11973 return resultobj;
11974 fail:
11975 return NULL;
11976}
11977
11978
c32bde28 11979static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11980 PyObject *resultobj;
11981 wxSound *arg1 = (wxSound *) 0 ;
11982 wxString *arg2 = 0 ;
d55e5bfc
RD
11983 bool result;
11984 bool temp2 = False ;
11985 PyObject * obj0 = 0 ;
11986 PyObject * obj1 = 0 ;
b1f29bf7
RD
11987 char *kwnames[] = {
11988 (char *) "self",(char *) "fileName", NULL
11989 };
d55e5bfc 11990
b1f29bf7 11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11994 {
11995 arg2 = wxString_in_helper(obj1);
11996 if (arg2 == NULL) SWIG_fail;
11997 temp2 = True;
11998 }
d55e5bfc
RD
11999 {
12000 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1f29bf7 12001 result = (bool)(arg1)->Create((wxString const &)*arg2);
d55e5bfc
RD
12002
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 {
12007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12008 }
12009 {
12010 if (temp2)
12011 delete arg2;
12012 }
12013 return resultobj;
12014 fail:
12015 {
12016 if (temp2)
12017 delete arg2;
12018 }
12019 return NULL;
12020}
12021
12022
c32bde28 12023static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12024 PyObject *resultobj;
12025 wxSound *arg1 = (wxSound *) 0 ;
b1f29bf7 12026 PyObject *arg2 = (PyObject *) 0 ;
d55e5bfc
RD
12027 bool result;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
b1f29bf7
RD
12030 char *kwnames[] = {
12031 (char *) "self",(char *) "data", NULL
12032 };
d55e5bfc 12033
b1f29bf7 12034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b1f29bf7 12037 arg2 = obj1;
d55e5bfc
RD
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1f29bf7 12040 result = (bool)wxSound_CreateFromData(arg1,arg2);
d55e5bfc
RD
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 {
12046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12047 }
12048 return resultobj;
12049 fail:
12050 return NULL;
12051}
12052
12053
c32bde28 12054static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12055 PyObject *resultobj;
12056 wxSound *arg1 = (wxSound *) 0 ;
12057 bool result;
12058 PyObject * obj0 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "self", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (bool)(arg1)->IsOk();
12069
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 {
12074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12075 }
12076 return resultobj;
12077 fail:
12078 return NULL;
12079}
12080
12081
c32bde28 12082static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12083 PyObject *resultobj;
12084 wxSound *arg1 = (wxSound *) 0 ;
12085 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12086 bool result;
12087 PyObject * obj0 = 0 ;
12088 PyObject * obj1 = 0 ;
b1f29bf7
RD
12089 char *kwnames[] = {
12090 (char *) "self",(char *) "flags", NULL
12091 };
d55e5bfc 12092
b1f29bf7 12093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12096 if (obj1) {
c32bde28 12097 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 {
0439c23b 12101 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (bool)((wxSound const *)arg1)->Play(arg2);
12104
12105 wxPyEndAllowThreads(__tstate);
110da5b0 12106 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12107 }
12108 {
12109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12110 }
12111 return resultobj;
12112 fail:
12113 return NULL;
12114}
12115
12116
c32bde28 12117static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12118 PyObject *resultobj;
12119 wxString *arg1 = 0 ;
12120 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12121 bool result;
12122 bool temp1 = False ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
b1f29bf7
RD
12125 char *kwnames[] = {
12126 (char *) "filename",(char *) "flags", NULL
12127 };
d55e5bfc 12128
b1f29bf7 12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12130 {
12131 arg1 = wxString_in_helper(obj0);
12132 if (arg1 == NULL) SWIG_fail;
12133 temp1 = True;
12134 }
12135 if (obj1) {
c32bde28 12136 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
0439c23b 12140 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12143
12144 wxPyEndAllowThreads(__tstate);
110da5b0 12145 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12146 }
12147 {
12148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12149 }
12150 {
12151 if (temp1)
12152 delete arg1;
12153 }
12154 return resultobj;
12155 fail:
12156 {
12157 if (temp1)
12158 delete arg1;
12159 }
12160 return NULL;
12161}
12162
12163
c32bde28 12164static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12165 PyObject *resultobj;
12166 char *kwnames[] = {
12167 NULL
12168 };
12169
12170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12171 {
0439c23b 12172 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 wxSound::Stop();
12175
12176 wxPyEndAllowThreads(__tstate);
110da5b0 12177 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12178 }
12179 Py_INCREF(Py_None); resultobj = Py_None;
12180 return resultobj;
12181 fail:
12182 return NULL;
12183}
12184
12185
c32bde28 12186static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12187 PyObject *obj;
12188 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12189 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12190 Py_INCREF(obj);
12191 return Py_BuildValue((char *)"");
12192}
c32bde28 12193static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12194 PyObject *resultobj;
12195 wxString *arg1 = 0 ;
12196 wxString *arg2 = 0 ;
12197 wxString *arg3 = 0 ;
12198 wxString *arg4 = 0 ;
12199 wxFileTypeInfo *result;
12200 bool temp1 = False ;
12201 bool temp2 = False ;
12202 bool temp3 = False ;
12203 bool temp4 = False ;
12204 PyObject * obj0 = 0 ;
12205 PyObject * obj1 = 0 ;
12206 PyObject * obj2 = 0 ;
12207 PyObject * obj3 = 0 ;
12208 char *kwnames[] = {
12209 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12210 };
12211
12212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12213 {
12214 arg1 = wxString_in_helper(obj0);
12215 if (arg1 == NULL) SWIG_fail;
12216 temp1 = True;
12217 }
12218 {
12219 arg2 = wxString_in_helper(obj1);
12220 if (arg2 == NULL) SWIG_fail;
12221 temp2 = True;
12222 }
12223 {
12224 arg3 = wxString_in_helper(obj2);
12225 if (arg3 == NULL) SWIG_fail;
12226 temp3 = True;
12227 }
12228 {
12229 arg4 = wxString_in_helper(obj3);
12230 if (arg4 == NULL) SWIG_fail;
12231 temp4 = True;
12232 }
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12236
12237 wxPyEndAllowThreads(__tstate);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 }
12240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12241 {
12242 if (temp1)
12243 delete arg1;
12244 }
12245 {
12246 if (temp2)
12247 delete arg2;
12248 }
12249 {
12250 if (temp3)
12251 delete arg3;
12252 }
12253 {
12254 if (temp4)
12255 delete arg4;
12256 }
12257 return resultobj;
12258 fail:
12259 {
12260 if (temp1)
12261 delete arg1;
12262 }
12263 {
12264 if (temp2)
12265 delete arg2;
12266 }
12267 {
12268 if (temp3)
12269 delete arg3;
12270 }
12271 {
12272 if (temp4)
12273 delete arg4;
12274 }
12275 return NULL;
12276}
12277
12278
c32bde28 12279static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12280 PyObject *resultobj;
12281 wxArrayString *arg1 = 0 ;
12282 wxFileTypeInfo *result;
12283 bool temp1 = False ;
12284 PyObject * obj0 = 0 ;
12285 char *kwnames[] = {
12286 (char *) "sArray", NULL
12287 };
12288
12289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12290 {
12291 if (! PySequence_Check(obj0)) {
12292 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12293 SWIG_fail;
12294 }
12295 arg1 = new wxArrayString;
12296 temp1 = True;
12297 int i, len=PySequence_Length(obj0);
12298 for (i=0; i<len; i++) {
12299 PyObject* item = PySequence_GetItem(obj0, i);
12300#if wxUSE_UNICODE
12301 PyObject* str = PyObject_Unicode(item);
12302#else
12303 PyObject* str = PyObject_Str(item);
12304#endif
12305 if (PyErr_Occurred()) SWIG_fail;
12306 arg1->Add(Py2wxString(str));
12307 Py_DECREF(item);
12308 Py_DECREF(str);
12309 }
12310 }
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12319 {
12320 if (temp1) delete arg1;
12321 }
12322 return resultobj;
12323 fail:
12324 {
12325 if (temp1) delete arg1;
12326 }
12327 return NULL;
12328}
12329
12330
c32bde28 12331static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12332 PyObject *resultobj;
12333 wxFileTypeInfo *result;
12334 char *kwnames[] = {
12335 NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12342
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12347 return resultobj;
12348 fail:
12349 return NULL;
12350}
12351
12352
c32bde28 12353static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12354 PyObject *resultobj;
12355 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12356 bool result;
12357 PyObject * obj0 = 0 ;
12358 char *kwnames[] = {
12359 (char *) "self", NULL
12360 };
12361
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 {
12373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12374 }
12375 return resultobj;
12376 fail:
12377 return NULL;
12378}
12379
12380
c32bde28 12381static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12382 PyObject *resultobj;
12383 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12384 wxString *arg2 = 0 ;
12385 int arg3 = (int) 0 ;
12386 bool temp2 = False ;
12387 PyObject * obj0 = 0 ;
12388 PyObject * obj1 = 0 ;
12389 PyObject * obj2 = 0 ;
12390 char *kwnames[] = {
12391 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12392 };
12393
12394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12397 {
12398 arg2 = wxString_in_helper(obj1);
12399 if (arg2 == NULL) SWIG_fail;
12400 temp2 = True;
12401 }
12402 if (obj2) {
c32bde28 12403 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12409
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 Py_INCREF(Py_None); resultobj = Py_None;
12414 {
12415 if (temp2)
12416 delete arg2;
12417 }
12418 return resultobj;
12419 fail:
12420 {
12421 if (temp2)
12422 delete arg2;
12423 }
12424 return NULL;
12425}
12426
12427
c32bde28 12428static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12429 PyObject *resultobj;
12430 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12431 wxString *arg2 = 0 ;
12432 bool temp2 = False ;
12433 PyObject * obj0 = 0 ;
12434 PyObject * obj1 = 0 ;
12435 char *kwnames[] = {
12436 (char *) "self",(char *) "shortDesc", NULL
12437 };
12438
12439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12442 {
12443 arg2 = wxString_in_helper(obj1);
12444 if (arg2 == NULL) SWIG_fail;
12445 temp2 = True;
12446 }
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 (arg1)->SetShortDesc((wxString const &)*arg2);
12450
12451 wxPyEndAllowThreads(__tstate);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 }
12454 Py_INCREF(Py_None); resultobj = Py_None;
12455 {
12456 if (temp2)
12457 delete arg2;
12458 }
12459 return resultobj;
12460 fail:
12461 {
12462 if (temp2)
12463 delete arg2;
12464 }
12465 return NULL;
12466}
12467
12468
c32bde28 12469static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12470 PyObject *resultobj;
12471 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12472 wxString *result;
12473 PyObject * obj0 = 0 ;
12474 char *kwnames[] = {
12475 (char *) "self", NULL
12476 };
12477
12478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 {
12484 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12485 result = (wxString *) &_result_ref;
12486 }
12487
12488 wxPyEndAllowThreads(__tstate);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 {
12492#if wxUSE_UNICODE
12493 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12494#else
12495 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12496#endif
12497 }
12498 return resultobj;
12499 fail:
12500 return NULL;
12501}
12502
12503
c32bde28 12504static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12505 PyObject *resultobj;
12506 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12507 wxString *result;
12508 PyObject * obj0 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 {
12519 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12520 result = (wxString *) &_result_ref;
12521 }
12522
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527#if wxUSE_UNICODE
12528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12529#else
12530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12531#endif
12532 }
12533 return resultobj;
12534 fail:
12535 return NULL;
12536}
12537
12538
c32bde28 12539static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12540 PyObject *resultobj;
12541 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12542 wxString *result;
12543 PyObject * obj0 = 0 ;
12544 char *kwnames[] = {
12545 (char *) "self", NULL
12546 };
12547
12548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 {
12554 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12555 result = (wxString *) &_result_ref;
12556 }
12557
12558 wxPyEndAllowThreads(__tstate);
12559 if (PyErr_Occurred()) SWIG_fail;
12560 }
12561 {
12562#if wxUSE_UNICODE
12563 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12564#else
12565 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12566#endif
12567 }
12568 return resultobj;
12569 fail:
12570 return NULL;
12571}
12572
12573
c32bde28 12574static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12575 PyObject *resultobj;
12576 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12577 wxString *result;
12578 PyObject * obj0 = 0 ;
12579 char *kwnames[] = {
12580 (char *) "self", NULL
12581 };
12582
12583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 {
12589 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12590 result = (wxString *) &_result_ref;
12591 }
12592
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 {
12597#if wxUSE_UNICODE
12598 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12599#else
12600 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12601#endif
12602 }
12603 return resultobj;
12604 fail:
12605 return NULL;
12606}
12607
12608
c32bde28 12609static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12610 PyObject *resultobj;
12611 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12612 wxString *result;
12613 PyObject * obj0 = 0 ;
12614 char *kwnames[] = {
12615 (char *) "self", NULL
12616 };
12617
12618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 {
12624 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12625 result = (wxString *) &_result_ref;
12626 }
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 {
12632#if wxUSE_UNICODE
12633 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12634#else
12635 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12636#endif
12637 }
12638 return resultobj;
12639 fail:
12640 return NULL;
12641}
12642
12643
c32bde28 12644static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12645 PyObject *resultobj;
12646 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12647 wxArrayString *result;
12648 PyObject * obj0 = 0 ;
12649 char *kwnames[] = {
12650 (char *) "self", NULL
12651 };
12652
12653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 {
12659 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12660 result = (wxArrayString *) &_result_ref;
12661 }
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 {
12667 resultobj = wxArrayString2PyList_helper(*result);
12668 }
12669 return resultobj;
12670 fail:
12671 return NULL;
12672}
12673
12674
c32bde28 12675static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12676 PyObject *resultobj;
12677 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12678 int result;
12679 PyObject * obj0 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "self", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12690
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
c32bde28 12694 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12695 return resultobj;
12696 fail:
12697 return NULL;
12698}
12699
12700
c32bde28 12701static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12702 PyObject *resultobj;
12703 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12704 wxString *result;
12705 PyObject * obj0 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self", NULL
12708 };
12709
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 {
12716 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12717 result = (wxString *) &_result_ref;
12718 }
12719
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724#if wxUSE_UNICODE
12725 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12726#else
12727 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12728#endif
12729 }
12730 return resultobj;
12731 fail:
12732 return NULL;
12733}
12734
12735
c32bde28 12736static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12737 PyObject *resultobj;
12738 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12739 int result;
12740 PyObject * obj0 = 0 ;
12741 char *kwnames[] = {
12742 (char *) "self", NULL
12743 };
12744
12745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12751
12752 wxPyEndAllowThreads(__tstate);
12753 if (PyErr_Occurred()) SWIG_fail;
12754 }
c32bde28 12755 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12756 return resultobj;
12757 fail:
12758 return NULL;
12759}
12760
12761
c32bde28 12762static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12763 PyObject *obj;
12764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12765 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12766 Py_INCREF(obj);
12767 return Py_BuildValue((char *)"");
12768}
c32bde28 12769static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12770 PyObject *resultobj;
12771 wxFileTypeInfo *arg1 = 0 ;
12772 wxFileType *result;
12773 PyObject * obj0 = 0 ;
12774 char *kwnames[] = {
12775 (char *) "ftInfo", NULL
12776 };
12777
12778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12780 SWIG_POINTER_EXCEPTION | 0)) == -1)
12781 SWIG_fail;
12782 if (arg1 == NULL) {
12783 PyErr_SetString(PyExc_TypeError,"null reference");
12784 SWIG_fail;
12785 }
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12789
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12794 return resultobj;
12795 fail:
12796 return NULL;
12797}
12798
12799
c32bde28 12800static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12801 PyObject *resultobj;
12802 wxFileType *arg1 = (wxFileType *) 0 ;
12803 PyObject * obj0 = 0 ;
12804 char *kwnames[] = {
12805 (char *) "self", NULL
12806 };
12807
12808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12811 {
12812 PyThreadState* __tstate = wxPyBeginAllowThreads();
12813 delete arg1;
12814
12815 wxPyEndAllowThreads(__tstate);
12816 if (PyErr_Occurred()) SWIG_fail;
12817 }
12818 Py_INCREF(Py_None); resultobj = Py_None;
12819 return resultobj;
12820 fail:
12821 return NULL;
12822}
12823
12824
c32bde28 12825static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12826 PyObject *resultobj;
12827 wxFileType *arg1 = (wxFileType *) 0 ;
12828 PyObject *result;
12829 PyObject * obj0 = 0 ;
12830 char *kwnames[] = {
12831 (char *) "self", NULL
12832 };
12833
12834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (PyObject *)wxFileType_GetMimeType(arg1);
12840
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = result;
12845 return resultobj;
12846 fail:
12847 return NULL;
12848}
12849
12850
c32bde28 12851static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12852 PyObject *resultobj;
12853 wxFileType *arg1 = (wxFileType *) 0 ;
12854 PyObject *result;
12855 PyObject * obj0 = 0 ;
12856 char *kwnames[] = {
12857 (char *) "self", NULL
12858 };
12859
12860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12863 {
12864 PyThreadState* __tstate = wxPyBeginAllowThreads();
12865 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12866
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 resultobj = result;
12871 return resultobj;
12872 fail:
12873 return NULL;
12874}
12875
12876
c32bde28 12877static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12878 PyObject *resultobj;
12879 wxFileType *arg1 = (wxFileType *) 0 ;
12880 PyObject *result;
12881 PyObject * obj0 = 0 ;
12882 char *kwnames[] = {
12883 (char *) "self", NULL
12884 };
12885
12886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12889 {
12890 PyThreadState* __tstate = wxPyBeginAllowThreads();
12891 result = (PyObject *)wxFileType_GetExtensions(arg1);
12892
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 resultobj = result;
12897 return resultobj;
12898 fail:
12899 return NULL;
12900}
12901
12902
c32bde28 12903static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12904 PyObject *resultobj;
12905 wxFileType *arg1 = (wxFileType *) 0 ;
12906 wxIcon *result;
12907 PyObject * obj0 = 0 ;
12908 char *kwnames[] = {
12909 (char *) "self", NULL
12910 };
12911
12912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12915 {
12916 PyThreadState* __tstate = wxPyBeginAllowThreads();
12917 result = (wxIcon *)wxFileType_GetIcon(arg1);
12918
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12923 return resultobj;
12924 fail:
12925 return NULL;
12926}
12927
12928
c32bde28 12929static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12930 PyObject *resultobj;
12931 wxFileType *arg1 = (wxFileType *) 0 ;
12932 PyObject *result;
12933 PyObject * obj0 = 0 ;
12934 char *kwnames[] = {
12935 (char *) "self", NULL
12936 };
12937
12938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12941 {
12942 PyThreadState* __tstate = wxPyBeginAllowThreads();
12943 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12944
12945 wxPyEndAllowThreads(__tstate);
12946 if (PyErr_Occurred()) SWIG_fail;
12947 }
12948 resultobj = result;
12949 return resultobj;
12950 fail:
12951 return NULL;
12952}
12953
12954
c32bde28 12955static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12956 PyObject *resultobj;
12957 wxFileType *arg1 = (wxFileType *) 0 ;
12958 PyObject *result;
12959 PyObject * obj0 = 0 ;
12960 char *kwnames[] = {
12961 (char *) "self", NULL
12962 };
12963
12964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (PyObject *)wxFileType_GetDescription(arg1);
12970
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = result;
12975 return resultobj;
12976 fail:
12977 return NULL;
12978}
12979
12980
c32bde28 12981static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12982 PyObject *resultobj;
12983 wxFileType *arg1 = (wxFileType *) 0 ;
12984 wxString *arg2 = 0 ;
12985 wxString const &arg3_defvalue = wxPyEmptyString ;
12986 wxString *arg3 = (wxString *) &arg3_defvalue ;
12987 PyObject *result;
12988 bool temp2 = False ;
12989 bool temp3 = False ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 PyObject * obj2 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 {
13001 arg2 = wxString_in_helper(obj1);
13002 if (arg2 == NULL) SWIG_fail;
13003 temp2 = True;
13004 }
13005 if (obj2) {
13006 {
13007 arg3 = wxString_in_helper(obj2);
13008 if (arg3 == NULL) SWIG_fail;
13009 temp3 = True;
13010 }
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = result;
13020 {
13021 if (temp2)
13022 delete arg2;
13023 }
13024 {
13025 if (temp3)
13026 delete arg3;
13027 }
13028 return resultobj;
13029 fail:
13030 {
13031 if (temp2)
13032 delete arg2;
13033 }
13034 {
13035 if (temp3)
13036 delete arg3;
13037 }
13038 return NULL;
13039}
13040
13041
c32bde28 13042static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13043 PyObject *resultobj;
13044 wxFileType *arg1 = (wxFileType *) 0 ;
13045 wxString *arg2 = 0 ;
13046 wxString const &arg3_defvalue = wxPyEmptyString ;
13047 wxString *arg3 = (wxString *) &arg3_defvalue ;
13048 PyObject *result;
13049 bool temp2 = False ;
13050 bool temp3 = False ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 PyObject * obj2 = 0 ;
13054 char *kwnames[] = {
13055 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13056 };
13057
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13061 {
13062 arg2 = wxString_in_helper(obj1);
13063 if (arg2 == NULL) SWIG_fail;
13064 temp2 = True;
13065 }
13066 if (obj2) {
13067 {
13068 arg3 = wxString_in_helper(obj2);
13069 if (arg3 == NULL) SWIG_fail;
13070 temp3 = True;
13071 }
13072 }
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13076
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = result;
13081 {
13082 if (temp2)
13083 delete arg2;
13084 }
13085 {
13086 if (temp3)
13087 delete arg3;
13088 }
13089 return resultobj;
13090 fail:
13091 {
13092 if (temp2)
13093 delete arg2;
13094 }
13095 {
13096 if (temp3)
13097 delete arg3;
13098 }
13099 return NULL;
13100}
13101
13102
c32bde28 13103static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13104 PyObject *resultobj;
13105 wxFileType *arg1 = (wxFileType *) 0 ;
13106 wxString *arg2 = 0 ;
13107 wxString const &arg3_defvalue = wxPyEmptyString ;
13108 wxString *arg3 = (wxString *) &arg3_defvalue ;
13109 PyObject *result;
13110 bool temp2 = False ;
13111 bool temp3 = False ;
13112 PyObject * obj0 = 0 ;
13113 PyObject * obj1 = 0 ;
13114 PyObject * obj2 = 0 ;
13115 char *kwnames[] = {
13116 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13117 };
13118
13119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13122 {
13123 arg2 = wxString_in_helper(obj1);
13124 if (arg2 == NULL) SWIG_fail;
13125 temp2 = True;
13126 }
13127 if (obj2) {
13128 {
13129 arg3 = wxString_in_helper(obj2);
13130 if (arg3 == NULL) SWIG_fail;
13131 temp3 = True;
13132 }
13133 }
13134 {
13135 PyThreadState* __tstate = wxPyBeginAllowThreads();
13136 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13137
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 resultobj = result;
13142 {
13143 if (temp2)
13144 delete arg2;
13145 }
13146 {
13147 if (temp3)
13148 delete arg3;
13149 }
13150 return resultobj;
13151 fail:
13152 {
13153 if (temp2)
13154 delete arg2;
13155 }
13156 {
13157 if (temp3)
13158 delete arg3;
13159 }
13160 return NULL;
13161}
13162
13163
c32bde28 13164static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13165 PyObject *resultobj;
13166 wxFileType *arg1 = (wxFileType *) 0 ;
13167 wxString *arg2 = 0 ;
13168 wxString *arg3 = 0 ;
13169 bool arg4 = (bool) True ;
13170 bool result;
13171 bool temp2 = False ;
13172 bool temp3 = False ;
13173 PyObject * obj0 = 0 ;
13174 PyObject * obj1 = 0 ;
13175 PyObject * obj2 = 0 ;
13176 PyObject * obj3 = 0 ;
13177 char *kwnames[] = {
13178 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13179 };
13180
13181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13184 {
13185 arg2 = wxString_in_helper(obj1);
13186 if (arg2 == NULL) SWIG_fail;
13187 temp2 = True;
13188 }
13189 {
13190 arg3 = wxString_in_helper(obj2);
13191 if (arg3 == NULL) SWIG_fail;
13192 temp3 = True;
13193 }
13194 if (obj3) {
c32bde28 13195 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13201
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 {
13206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13207 }
13208 {
13209 if (temp2)
13210 delete arg2;
13211 }
13212 {
13213 if (temp3)
13214 delete arg3;
13215 }
13216 return resultobj;
13217 fail:
13218 {
13219 if (temp2)
13220 delete arg2;
13221 }
13222 {
13223 if (temp3)
13224 delete arg3;
13225 }
13226 return NULL;
13227}
13228
13229
c32bde28 13230static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13231 PyObject *resultobj;
13232 wxFileType *arg1 = (wxFileType *) 0 ;
13233 wxString const &arg2_defvalue = wxPyEmptyString ;
13234 wxString *arg2 = (wxString *) &arg2_defvalue ;
13235 int arg3 = (int) 0 ;
13236 bool result;
13237 bool temp2 = False ;
13238 PyObject * obj0 = 0 ;
13239 PyObject * obj1 = 0 ;
13240 PyObject * obj2 = 0 ;
13241 char *kwnames[] = {
13242 (char *) "self",(char *) "cmd",(char *) "index", NULL
13243 };
13244
13245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13248 if (obj1) {
13249 {
13250 arg2 = wxString_in_helper(obj1);
13251 if (arg2 == NULL) SWIG_fail;
13252 temp2 = True;
13253 }
13254 }
13255 if (obj2) {
c32bde28 13256 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 {
13260 PyThreadState* __tstate = wxPyBeginAllowThreads();
13261 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13262
13263 wxPyEndAllowThreads(__tstate);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 }
13266 {
13267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13268 }
13269 {
13270 if (temp2)
13271 delete arg2;
13272 }
13273 return resultobj;
13274 fail:
13275 {
13276 if (temp2)
13277 delete arg2;
13278 }
13279 return NULL;
13280}
13281
13282
c32bde28 13283static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13284 PyObject *resultobj;
13285 wxFileType *arg1 = (wxFileType *) 0 ;
13286 bool result;
13287 PyObject * obj0 = 0 ;
13288 char *kwnames[] = {
13289 (char *) "self", NULL
13290 };
13291
13292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (bool)(arg1)->Unassociate();
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 {
13303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13304 }
13305 return resultobj;
13306 fail:
13307 return NULL;
13308}
13309
13310
c32bde28 13311static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13312 PyObject *resultobj;
13313 wxString *arg1 = 0 ;
13314 wxString *arg2 = 0 ;
13315 wxString const &arg3_defvalue = wxPyEmptyString ;
13316 wxString *arg3 = (wxString *) &arg3_defvalue ;
13317 wxString result;
13318 bool temp1 = False ;
13319 bool temp2 = False ;
13320 bool temp3 = False ;
13321 PyObject * obj0 = 0 ;
13322 PyObject * obj1 = 0 ;
13323 PyObject * obj2 = 0 ;
13324 char *kwnames[] = {
13325 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13326 };
13327
13328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13329 {
13330 arg1 = wxString_in_helper(obj0);
13331 if (arg1 == NULL) SWIG_fail;
13332 temp1 = True;
13333 }
13334 {
13335 arg2 = wxString_in_helper(obj1);
13336 if (arg2 == NULL) SWIG_fail;
13337 temp2 = True;
13338 }
13339 if (obj2) {
13340 {
13341 arg3 = wxString_in_helper(obj2);
13342 if (arg3 == NULL) SWIG_fail;
13343 temp3 = True;
13344 }
13345 }
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354#if wxUSE_UNICODE
13355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13356#else
13357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13358#endif
13359 }
13360 {
13361 if (temp1)
13362 delete arg1;
13363 }
13364 {
13365 if (temp2)
13366 delete arg2;
13367 }
13368 {
13369 if (temp3)
13370 delete arg3;
13371 }
13372 return resultobj;
13373 fail:
13374 {
13375 if (temp1)
13376 delete arg1;
13377 }
13378 {
13379 if (temp2)
13380 delete arg2;
13381 }
13382 {
13383 if (temp3)
13384 delete arg3;
13385 }
13386 return NULL;
13387}
13388
13389
c32bde28 13390static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13391 PyObject *obj;
13392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13393 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13394 Py_INCREF(obj);
13395 return Py_BuildValue((char *)"");
13396}
c32bde28 13397static int _wrap_TheMimeTypesManager_set(PyObject *) {
d55e5bfc
RD
13398 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13399 return 1;
13400}
13401
13402
13403static PyObject *_wrap_TheMimeTypesManager_get() {
13404 PyObject *pyobj;
13405
13406 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13407 return pyobj;
13408}
13409
13410
c32bde28 13411static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13412 PyObject *resultobj;
13413 wxString *arg1 = 0 ;
13414 wxString *arg2 = 0 ;
13415 bool result;
13416 bool temp1 = False ;
13417 bool temp2 = False ;
13418 PyObject * obj0 = 0 ;
13419 PyObject * obj1 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "mimeType",(char *) "wildcard", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13425 {
13426 arg1 = wxString_in_helper(obj0);
13427 if (arg1 == NULL) SWIG_fail;
13428 temp1 = True;
13429 }
13430 {
13431 arg2 = wxString_in_helper(obj1);
13432 if (arg2 == NULL) SWIG_fail;
13433 temp2 = True;
13434 }
13435 {
13436 PyThreadState* __tstate = wxPyBeginAllowThreads();
13437 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13438
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 {
13443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13444 }
13445 {
13446 if (temp1)
13447 delete arg1;
13448 }
13449 {
13450 if (temp2)
13451 delete arg2;
13452 }
13453 return resultobj;
13454 fail:
13455 {
13456 if (temp1)
13457 delete arg1;
13458 }
13459 {
13460 if (temp2)
13461 delete arg2;
13462 }
13463 return NULL;
13464}
13465
13466
c32bde28 13467static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13468 PyObject *resultobj;
13469 wxMimeTypesManager *result;
13470 char *kwnames[] = {
13471 NULL
13472 };
13473
13474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13478
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13483 return resultobj;
13484 fail:
13485 return NULL;
13486}
13487
13488
c32bde28 13489static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13490 PyObject *resultobj;
13491 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13492 int arg2 = (int) wxMAILCAP_ALL ;
13493 wxString const &arg3_defvalue = wxPyEmptyString ;
13494 wxString *arg3 = (wxString *) &arg3_defvalue ;
13495 bool temp3 = False ;
13496 PyObject * obj0 = 0 ;
13497 PyObject * obj1 = 0 ;
13498 PyObject * obj2 = 0 ;
13499 char *kwnames[] = {
13500 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13501 };
13502
13503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13506 if (obj1) {
c32bde28 13507 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13508 if (PyErr_Occurred()) SWIG_fail;
13509 }
13510 if (obj2) {
13511 {
13512 arg3 = wxString_in_helper(obj2);
13513 if (arg3 == NULL) SWIG_fail;
13514 temp3 = True;
13515 }
13516 }
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 Py_INCREF(Py_None); resultobj = Py_None;
13525 {
13526 if (temp3)
13527 delete arg3;
13528 }
13529 return resultobj;
13530 fail:
13531 {
13532 if (temp3)
13533 delete arg3;
13534 }
13535 return NULL;
13536}
13537
13538
c32bde28 13539static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13540 PyObject *resultobj;
13541 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13542 PyObject * obj0 = 0 ;
13543 char *kwnames[] = {
13544 (char *) "self", NULL
13545 };
13546
13547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 (arg1)->ClearData();
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 Py_INCREF(Py_None); resultobj = Py_None;
13558 return resultobj;
13559 fail:
13560 return NULL;
13561}
13562
13563
c32bde28 13564static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13565 PyObject *resultobj;
13566 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13567 wxString *arg2 = 0 ;
13568 wxFileType *result;
13569 bool temp2 = False ;
13570 PyObject * obj0 = 0 ;
13571 PyObject * obj1 = 0 ;
13572 char *kwnames[] = {
13573 (char *) "self",(char *) "ext", NULL
13574 };
13575
13576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13579 {
13580 arg2 = wxString_in_helper(obj1);
13581 if (arg2 == NULL) SWIG_fail;
13582 temp2 = True;
13583 }
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13587
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13592 {
13593 if (temp2)
13594 delete arg2;
13595 }
13596 return resultobj;
13597 fail:
13598 {
13599 if (temp2)
13600 delete arg2;
13601 }
13602 return NULL;
13603}
13604
13605
c32bde28 13606static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13607 PyObject *resultobj;
13608 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13609 wxString *arg2 = 0 ;
13610 wxFileType *result;
13611 bool temp2 = False ;
13612 PyObject * obj0 = 0 ;
13613 PyObject * obj1 = 0 ;
13614 char *kwnames[] = {
13615 (char *) "self",(char *) "mimeType", NULL
13616 };
13617
13618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13621 {
13622 arg2 = wxString_in_helper(obj1);
13623 if (arg2 == NULL) SWIG_fail;
13624 temp2 = True;
13625 }
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13634 {
13635 if (temp2)
13636 delete arg2;
13637 }
13638 return resultobj;
13639 fail:
13640 {
13641 if (temp2)
13642 delete arg2;
13643 }
13644 return NULL;
13645}
13646
13647
c32bde28 13648static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13649 PyObject *resultobj;
13650 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13651 wxString *arg2 = 0 ;
13652 bool arg3 = (bool) False ;
13653 bool result;
13654 bool temp2 = False ;
13655 PyObject * obj0 = 0 ;
13656 PyObject * obj1 = 0 ;
13657 PyObject * obj2 = 0 ;
13658 char *kwnames[] = {
13659 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13660 };
13661
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13665 {
13666 arg2 = wxString_in_helper(obj1);
13667 if (arg2 == NULL) SWIG_fail;
13668 temp2 = True;
13669 }
13670 if (obj2) {
c32bde28 13671 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 {
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13677
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 {
13682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13683 }
13684 {
13685 if (temp2)
13686 delete arg2;
13687 }
13688 return resultobj;
13689 fail:
13690 {
13691 if (temp2)
13692 delete arg2;
13693 }
13694 return NULL;
13695}
13696
13697
c32bde28 13698static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13699 PyObject *resultobj;
13700 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13701 wxString *arg2 = 0 ;
13702 bool result;
13703 bool temp2 = False ;
13704 PyObject * obj0 = 0 ;
13705 PyObject * obj1 = 0 ;
13706 char *kwnames[] = {
13707 (char *) "self",(char *) "filename", NULL
13708 };
13709
13710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13713 {
13714 arg2 = wxString_in_helper(obj1);
13715 if (arg2 == NULL) SWIG_fail;
13716 temp2 = True;
13717 }
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 {
13726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13727 }
13728 {
13729 if (temp2)
13730 delete arg2;
13731 }
13732 return resultobj;
13733 fail:
13734 {
13735 if (temp2)
13736 delete arg2;
13737 }
13738 return NULL;
13739}
13740
13741
c32bde28 13742static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13743 PyObject *resultobj;
13744 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13745 PyObject *result;
13746 PyObject * obj0 = 0 ;
13747 char *kwnames[] = {
13748 (char *) "self", NULL
13749 };
13750
13751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13754 {
13755 PyThreadState* __tstate = wxPyBeginAllowThreads();
13756 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13757
13758 wxPyEndAllowThreads(__tstate);
13759 if (PyErr_Occurred()) SWIG_fail;
13760 }
13761 resultobj = result;
13762 return resultobj;
13763 fail:
13764 return NULL;
13765}
13766
13767
c32bde28 13768static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13769 PyObject *resultobj;
13770 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13771 wxFileTypeInfo *arg2 = 0 ;
13772 PyObject * obj0 = 0 ;
13773 PyObject * obj1 = 0 ;
13774 char *kwnames[] = {
13775 (char *) "self",(char *) "ft", NULL
13776 };
13777
13778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13782 SWIG_POINTER_EXCEPTION | 0)) == -1)
13783 SWIG_fail;
13784 if (arg2 == NULL) {
13785 PyErr_SetString(PyExc_TypeError,"null reference");
13786 SWIG_fail;
13787 }
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13791
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
13795 Py_INCREF(Py_None); resultobj = Py_None;
13796 return resultobj;
13797 fail:
13798 return NULL;
13799}
13800
13801
c32bde28 13802static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13803 PyObject *resultobj;
13804 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13805 wxFileTypeInfo *arg2 = 0 ;
13806 wxFileType *result;
13807 PyObject * obj0 = 0 ;
13808 PyObject * obj1 = 0 ;
13809 char *kwnames[] = {
13810 (char *) "self",(char *) "ftInfo", NULL
13811 };
13812
13813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13817 SWIG_POINTER_EXCEPTION | 0)) == -1)
13818 SWIG_fail;
13819 if (arg2 == NULL) {
13820 PyErr_SetString(PyExc_TypeError,"null reference");
13821 SWIG_fail;
13822 }
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13826
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13831 return resultobj;
13832 fail:
13833 return NULL;
13834}
13835
13836
c32bde28 13837static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13838 PyObject *resultobj;
13839 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13840 wxFileType *arg2 = (wxFileType *) 0 ;
13841 bool result;
13842 PyObject * obj0 = 0 ;
13843 PyObject * obj1 = 0 ;
13844 char *kwnames[] = {
13845 (char *) "self",(char *) "ft", NULL
13846 };
13847
13848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 result = (bool)(arg1)->Unassociate(arg2);
13856
13857 wxPyEndAllowThreads(__tstate);
13858 if (PyErr_Occurred()) SWIG_fail;
13859 }
13860 {
13861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13862 }
13863 return resultobj;
13864 fail:
13865 return NULL;
13866}
13867
13868
c32bde28 13869static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13870 PyObject *resultobj;
13871 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13872 PyObject * obj0 = 0 ;
13873 char *kwnames[] = {
13874 (char *) "self", NULL
13875 };
13876
13877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
13882 delete arg1;
13883
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 Py_INCREF(Py_None); resultobj = Py_None;
13888 return resultobj;
13889 fail:
13890 return NULL;
13891}
13892
13893
c32bde28 13894static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13895 PyObject *obj;
13896 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13897 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13898 Py_INCREF(obj);
13899 return Py_BuildValue((char *)"");
13900}
c32bde28 13901static int _wrap_ART_TOOLBAR_set(PyObject *) {
d55e5bfc
RD
13902 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13903 return 1;
13904}
13905
13906
13907static PyObject *_wrap_ART_TOOLBAR_get() {
13908 PyObject *pyobj;
13909
13910 {
13911#if wxUSE_UNICODE
13912 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13913#else
13914 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13915#endif
13916 }
13917 return pyobj;
13918}
13919
13920
c32bde28 13921static int _wrap_ART_MENU_set(PyObject *) {
d55e5bfc
RD
13922 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13923 return 1;
13924}
13925
13926
13927static PyObject *_wrap_ART_MENU_get() {
13928 PyObject *pyobj;
13929
13930 {
13931#if wxUSE_UNICODE
13932 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13933#else
13934 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13935#endif
13936 }
13937 return pyobj;
13938}
13939
13940
c32bde28 13941static int _wrap_ART_FRAME_ICON_set(PyObject *) {
d55e5bfc
RD
13942 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13943 return 1;
13944}
13945
13946
13947static PyObject *_wrap_ART_FRAME_ICON_get() {
13948 PyObject *pyobj;
13949
13950 {
13951#if wxUSE_UNICODE
13952 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13953#else
13954 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13955#endif
13956 }
13957 return pyobj;
13958}
13959
13960
c32bde28 13961static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
d55e5bfc
RD
13962 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13963 return 1;
13964}
13965
13966
13967static PyObject *_wrap_ART_CMN_DIALOG_get() {
13968 PyObject *pyobj;
13969
13970 {
13971#if wxUSE_UNICODE
13972 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13973#else
13974 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13975#endif
13976 }
13977 return pyobj;
13978}
13979
13980
c32bde28 13981static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
d55e5bfc
RD
13982 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13983 return 1;
13984}
13985
13986
13987static PyObject *_wrap_ART_HELP_BROWSER_get() {
13988 PyObject *pyobj;
13989
13990 {
13991#if wxUSE_UNICODE
13992 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13993#else
13994 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13995#endif
13996 }
13997 return pyobj;
13998}
13999
14000
c32bde28 14001static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
d55e5bfc
RD
14002 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14003 return 1;
14004}
14005
14006
14007static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14008 PyObject *pyobj;
14009
14010 {
14011#if wxUSE_UNICODE
14012 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14013#else
14014 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14015#endif
14016 }
14017 return pyobj;
14018}
14019
14020
c32bde28 14021static int _wrap_ART_BUTTON_set(PyObject *) {
4cf4100f
RD
14022 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14023 return 1;
14024}
14025
14026
14027static PyObject *_wrap_ART_BUTTON_get() {
14028 PyObject *pyobj;
14029
14030 {
14031#if wxUSE_UNICODE
14032 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14033#else
14034 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14035#endif
14036 }
14037 return pyobj;
14038}
14039
14040
c32bde28 14041static int _wrap_ART_OTHER_set(PyObject *) {
d55e5bfc
RD
14042 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14043 return 1;
14044}
14045
14046
14047static PyObject *_wrap_ART_OTHER_get() {
14048 PyObject *pyobj;
14049
14050 {
14051#if wxUSE_UNICODE
14052 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14053#else
14054 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14055#endif
14056 }
14057 return pyobj;
14058}
14059
14060
c32bde28 14061static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
d55e5bfc
RD
14062 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14063 return 1;
14064}
14065
14066
14067static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14068 PyObject *pyobj;
14069
14070 {
14071#if wxUSE_UNICODE
14072 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14073#else
14074 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14075#endif
14076 }
14077 return pyobj;
14078}
14079
14080
c32bde28 14081static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
d55e5bfc
RD
14082 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14083 return 1;
14084}
14085
14086
14087static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14088 PyObject *pyobj;
14089
14090 {
14091#if wxUSE_UNICODE
14092 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14093#else
14094 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14095#endif
14096 }
14097 return pyobj;
14098}
14099
14100
c32bde28 14101static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
d55e5bfc
RD
14102 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14103 return 1;
14104}
14105
14106
14107static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14108 PyObject *pyobj;
14109
14110 {
14111#if wxUSE_UNICODE
14112 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14113#else
14114 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14115#endif
14116 }
14117 return pyobj;
14118}
14119
14120
c32bde28 14121static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
d55e5bfc
RD
14122 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14123 return 1;
14124}
14125
14126
14127static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14128 PyObject *pyobj;
14129
14130 {
14131#if wxUSE_UNICODE
14132 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14133#else
14134 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14135#endif
14136 }
14137 return pyobj;
14138}
14139
14140
c32bde28 14141static int _wrap_ART_HELP_BOOK_set(PyObject *) {
d55e5bfc
RD
14142 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14143 return 1;
14144}
14145
14146
14147static PyObject *_wrap_ART_HELP_BOOK_get() {
14148 PyObject *pyobj;
14149
14150 {
14151#if wxUSE_UNICODE
14152 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14153#else
14154 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14155#endif
14156 }
14157 return pyobj;
14158}
14159
14160
c32bde28 14161static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
d55e5bfc
RD
14162 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14163 return 1;
14164}
14165
14166
14167static PyObject *_wrap_ART_HELP_FOLDER_get() {
14168 PyObject *pyobj;
14169
14170 {
14171#if wxUSE_UNICODE
14172 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14173#else
14174 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14175#endif
14176 }
14177 return pyobj;
14178}
14179
14180
c32bde28 14181static int _wrap_ART_HELP_PAGE_set(PyObject *) {
d55e5bfc
RD
14182 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14183 return 1;
14184}
14185
14186
14187static PyObject *_wrap_ART_HELP_PAGE_get() {
14188 PyObject *pyobj;
14189
14190 {
14191#if wxUSE_UNICODE
14192 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14193#else
14194 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14195#endif
14196 }
14197 return pyobj;
14198}
14199
14200
c32bde28 14201static int _wrap_ART_GO_BACK_set(PyObject *) {
d55e5bfc
RD
14202 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14203 return 1;
14204}
14205
14206
14207static PyObject *_wrap_ART_GO_BACK_get() {
14208 PyObject *pyobj;
14209
14210 {
14211#if wxUSE_UNICODE
14212 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14213#else
14214 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14215#endif
14216 }
14217 return pyobj;
14218}
14219
14220
c32bde28 14221static int _wrap_ART_GO_FORWARD_set(PyObject *) {
d55e5bfc
RD
14222 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14223 return 1;
14224}
14225
14226
14227static PyObject *_wrap_ART_GO_FORWARD_get() {
14228 PyObject *pyobj;
14229
14230 {
14231#if wxUSE_UNICODE
14232 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14233#else
14234 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14235#endif
14236 }
14237 return pyobj;
14238}
14239
14240
c32bde28 14241static int _wrap_ART_GO_UP_set(PyObject *) {
d55e5bfc
RD
14242 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14243 return 1;
14244}
14245
14246
14247static PyObject *_wrap_ART_GO_UP_get() {
14248 PyObject *pyobj;
14249
14250 {
14251#if wxUSE_UNICODE
14252 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14253#else
14254 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14255#endif
14256 }
14257 return pyobj;
14258}
14259
14260
c32bde28 14261static int _wrap_ART_GO_DOWN_set(PyObject *) {
d55e5bfc
RD
14262 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14263 return 1;
14264}
14265
14266
14267static PyObject *_wrap_ART_GO_DOWN_get() {
14268 PyObject *pyobj;
14269
14270 {
14271#if wxUSE_UNICODE
14272 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14273#else
14274 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14275#endif
14276 }
14277 return pyobj;
14278}
14279
14280
c32bde28 14281static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
d55e5bfc
RD
14282 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14283 return 1;
14284}
14285
14286
14287static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14288 PyObject *pyobj;
14289
14290 {
14291#if wxUSE_UNICODE
14292 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14293#else
14294 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14295#endif
14296 }
14297 return pyobj;
14298}
14299
14300
c32bde28 14301static int _wrap_ART_GO_HOME_set(PyObject *) {
d55e5bfc
RD
14302 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14303 return 1;
14304}
14305
14306
14307static PyObject *_wrap_ART_GO_HOME_get() {
14308 PyObject *pyobj;
14309
14310 {
14311#if wxUSE_UNICODE
14312 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14313#else
14314 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14315#endif
14316 }
14317 return pyobj;
14318}
14319
14320
c32bde28 14321static int _wrap_ART_FILE_OPEN_set(PyObject *) {
d55e5bfc
RD
14322 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14323 return 1;
14324}
14325
14326
14327static PyObject *_wrap_ART_FILE_OPEN_get() {
14328 PyObject *pyobj;
14329
14330 {
14331#if wxUSE_UNICODE
14332 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14333#else
14334 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14335#endif
14336 }
14337 return pyobj;
14338}
14339
14340
c32bde28 14341static int _wrap_ART_PRINT_set(PyObject *) {
d55e5bfc
RD
14342 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14343 return 1;
14344}
14345
14346
14347static PyObject *_wrap_ART_PRINT_get() {
14348 PyObject *pyobj;
14349
14350 {
14351#if wxUSE_UNICODE
14352 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14353#else
14354 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14355#endif
14356 }
14357 return pyobj;
14358}
14359
14360
c32bde28 14361static int _wrap_ART_HELP_set(PyObject *) {
d55e5bfc
RD
14362 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14363 return 1;
14364}
14365
14366
14367static PyObject *_wrap_ART_HELP_get() {
14368 PyObject *pyobj;
14369
14370 {
14371#if wxUSE_UNICODE
14372 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14373#else
14374 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14375#endif
14376 }
14377 return pyobj;
14378}
14379
14380
c32bde28 14381static int _wrap_ART_TIP_set(PyObject *) {
d55e5bfc
RD
14382 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14383 return 1;
14384}
14385
14386
14387static PyObject *_wrap_ART_TIP_get() {
14388 PyObject *pyobj;
14389
14390 {
14391#if wxUSE_UNICODE
14392 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14393#else
14394 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14395#endif
14396 }
14397 return pyobj;
14398}
14399
14400
c32bde28 14401static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
d55e5bfc
RD
14402 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14403 return 1;
14404}
14405
14406
14407static PyObject *_wrap_ART_REPORT_VIEW_get() {
14408 PyObject *pyobj;
14409
14410 {
14411#if wxUSE_UNICODE
14412 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14413#else
14414 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14415#endif
14416 }
14417 return pyobj;
14418}
14419
14420
c32bde28 14421static int _wrap_ART_LIST_VIEW_set(PyObject *) {
d55e5bfc
RD
14422 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14423 return 1;
14424}
14425
14426
14427static PyObject *_wrap_ART_LIST_VIEW_get() {
14428 PyObject *pyobj;
14429
14430 {
14431#if wxUSE_UNICODE
14432 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14433#else
14434 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14435#endif
14436 }
14437 return pyobj;
14438}
14439
14440
c32bde28 14441static int _wrap_ART_NEW_DIR_set(PyObject *) {
d55e5bfc
RD
14442 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14443 return 1;
14444}
14445
14446
14447static PyObject *_wrap_ART_NEW_DIR_get() {
14448 PyObject *pyobj;
14449
14450 {
14451#if wxUSE_UNICODE
14452 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14453#else
14454 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14455#endif
14456 }
14457 return pyobj;
14458}
14459
14460
c32bde28 14461static int _wrap_ART_FOLDER_set(PyObject *) {
d55e5bfc
RD
14462 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14463 return 1;
14464}
14465
14466
14467static PyObject *_wrap_ART_FOLDER_get() {
14468 PyObject *pyobj;
14469
14470 {
14471#if wxUSE_UNICODE
14472 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14473#else
14474 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14475#endif
14476 }
14477 return pyobj;
14478}
14479
14480
c32bde28 14481static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
d55e5bfc
RD
14482 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14483 return 1;
14484}
14485
14486
14487static PyObject *_wrap_ART_GO_DIR_UP_get() {
14488 PyObject *pyobj;
14489
14490 {
14491#if wxUSE_UNICODE
14492 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14493#else
14494 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14495#endif
14496 }
14497 return pyobj;
14498}
14499
14500
c32bde28 14501static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
d55e5bfc
RD
14502 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14503 return 1;
14504}
14505
14506
14507static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14508 PyObject *pyobj;
14509
14510 {
14511#if wxUSE_UNICODE
14512 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14513#else
14514 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14515#endif
14516 }
14517 return pyobj;
14518}
14519
14520
c32bde28 14521static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
d55e5bfc
RD
14522 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14523 return 1;
14524}
14525
14526
14527static PyObject *_wrap_ART_NORMAL_FILE_get() {
14528 PyObject *pyobj;
14529
14530 {
14531#if wxUSE_UNICODE
14532 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14533#else
14534 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14535#endif
14536 }
14537 return pyobj;
14538}
14539
14540
c32bde28 14541static int _wrap_ART_TICK_MARK_set(PyObject *) {
d55e5bfc
RD
14542 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14543 return 1;
14544}
14545
14546
14547static PyObject *_wrap_ART_TICK_MARK_get() {
14548 PyObject *pyobj;
14549
14550 {
14551#if wxUSE_UNICODE
14552 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14553#else
14554 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14555#endif
14556 }
14557 return pyobj;
14558}
14559
14560
c32bde28 14561static int _wrap_ART_CROSS_MARK_set(PyObject *) {
d55e5bfc
RD
14562 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14563 return 1;
14564}
14565
14566
14567static PyObject *_wrap_ART_CROSS_MARK_get() {
14568 PyObject *pyobj;
14569
14570 {
14571#if wxUSE_UNICODE
14572 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14573#else
14574 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14575#endif
14576 }
14577 return pyobj;
14578}
14579
14580
c32bde28 14581static int _wrap_ART_ERROR_set(PyObject *) {
d55e5bfc
RD
14582 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14583 return 1;
14584}
14585
14586
14587static PyObject *_wrap_ART_ERROR_get() {
14588 PyObject *pyobj;
14589
14590 {
14591#if wxUSE_UNICODE
14592 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14593#else
14594 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14595#endif
14596 }
14597 return pyobj;
14598}
14599
14600
c32bde28 14601static int _wrap_ART_QUESTION_set(PyObject *) {
d55e5bfc
RD
14602 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14603 return 1;
14604}
14605
14606
14607static PyObject *_wrap_ART_QUESTION_get() {
14608 PyObject *pyobj;
14609
14610 {
14611#if wxUSE_UNICODE
14612 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14613#else
14614 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14615#endif
14616 }
14617 return pyobj;
14618}
14619
14620
c32bde28 14621static int _wrap_ART_WARNING_set(PyObject *) {
d55e5bfc
RD
14622 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14623 return 1;
14624}
14625
14626
14627static PyObject *_wrap_ART_WARNING_get() {
14628 PyObject *pyobj;
14629
14630 {
14631#if wxUSE_UNICODE
14632 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14633#else
14634 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14635#endif
14636 }
14637 return pyobj;
14638}
14639
14640
c32bde28 14641static int _wrap_ART_INFORMATION_set(PyObject *) {
d55e5bfc
RD
14642 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14643 return 1;
14644}
14645
14646
14647static PyObject *_wrap_ART_INFORMATION_get() {
14648 PyObject *pyobj;
14649
14650 {
14651#if wxUSE_UNICODE
14652 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14653#else
14654 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14655#endif
14656 }
14657 return pyobj;
14658}
14659
14660
c32bde28 14661static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
d55e5bfc
RD
14662 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14663 return 1;
14664}
14665
14666
14667static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14668 PyObject *pyobj;
14669
14670 {
14671#if wxUSE_UNICODE
14672 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14673#else
14674 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14675#endif
14676 }
14677 return pyobj;
14678}
14679
14680
c32bde28 14681static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14682 PyObject *resultobj;
14683 wxPyArtProvider *result;
14684 char *kwnames[] = {
14685 NULL
14686 };
14687
14688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14689 {
0439c23b 14690 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = (wxPyArtProvider *)new wxPyArtProvider();
14693
14694 wxPyEndAllowThreads(__tstate);
110da5b0 14695 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14696 }
14697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14698 return resultobj;
14699 fail:
14700 return NULL;
14701}
14702
14703
c32bde28 14704static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14705 PyObject *resultobj;
14706 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14707 PyObject *arg2 = (PyObject *) 0 ;
14708 PyObject *arg3 = (PyObject *) 0 ;
14709 PyObject * obj0 = 0 ;
14710 PyObject * obj1 = 0 ;
14711 PyObject * obj2 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self",(char *) "self",(char *) "_class", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 arg2 = obj1;
14720 arg3 = obj2;
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 (arg1)->_setCallbackInfo(arg2,arg3);
14724
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 Py_INCREF(Py_None); resultobj = Py_None;
14729 return resultobj;
14730 fail:
14731 return NULL;
14732}
14733
14734
c32bde28 14735static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14736 PyObject *resultobj;
14737 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14738 PyObject * obj0 = 0 ;
14739 char *kwnames[] = {
14740 (char *) "provider", NULL
14741 };
14742
14743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 wxPyArtProvider::PushProvider(arg1);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 Py_INCREF(Py_None); resultobj = Py_None;
14754 return resultobj;
14755 fail:
14756 return NULL;
14757}
14758
14759
c32bde28 14760static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14761 PyObject *resultobj;
14762 bool result;
14763 char *kwnames[] = {
14764 NULL
14765 };
14766
14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (bool)wxPyArtProvider::PopProvider();
14771
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 {
14776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14777 }
14778 return resultobj;
14779 fail:
14780 return NULL;
14781}
14782
14783
c32bde28 14784static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14785 PyObject *resultobj;
14786 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14787 bool result;
14788 PyObject * obj0 = 0 ;
14789 char *kwnames[] = {
14790 (char *) "provider", NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14799
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
14803 {
14804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14805 }
14806 return resultobj;
14807 fail:
14808 return NULL;
14809}
14810
14811
c32bde28 14812static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14813 PyObject *resultobj;
14814 wxString *arg1 = 0 ;
14815 wxString const &arg2_defvalue = wxPyART_OTHER ;
14816 wxString *arg2 = (wxString *) &arg2_defvalue ;
14817 wxSize const &arg3_defvalue = wxDefaultSize ;
14818 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14819 wxBitmap result;
14820 bool temp1 = False ;
14821 bool temp2 = False ;
14822 wxSize temp3 ;
14823 PyObject * obj0 = 0 ;
14824 PyObject * obj1 = 0 ;
14825 PyObject * obj2 = 0 ;
14826 char *kwnames[] = {
14827 (char *) "id",(char *) "client",(char *) "size", NULL
14828 };
14829
14830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14831 {
14832 arg1 = wxString_in_helper(obj0);
14833 if (arg1 == NULL) SWIG_fail;
14834 temp1 = True;
14835 }
14836 if (obj1) {
14837 {
14838 arg2 = wxString_in_helper(obj1);
14839 if (arg2 == NULL) SWIG_fail;
14840 temp2 = True;
14841 }
14842 }
14843 if (obj2) {
14844 {
14845 arg3 = &temp3;
14846 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14847 }
14848 }
14849 {
0439c23b 14850 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14853
14854 wxPyEndAllowThreads(__tstate);
110da5b0 14855 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14856 }
14857 {
14858 wxBitmap * resultptr;
14859 resultptr = new wxBitmap((wxBitmap &) result);
14860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14861 }
14862 {
14863 if (temp1)
14864 delete arg1;
14865 }
14866 {
14867 if (temp2)
14868 delete arg2;
14869 }
14870 return resultobj;
14871 fail:
14872 {
14873 if (temp1)
14874 delete arg1;
14875 }
14876 {
14877 if (temp2)
14878 delete arg2;
14879 }
14880 return NULL;
14881}
14882
14883
c32bde28 14884static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14885 PyObject *resultobj;
14886 wxString *arg1 = 0 ;
14887 wxString const &arg2_defvalue = wxPyART_OTHER ;
14888 wxString *arg2 = (wxString *) &arg2_defvalue ;
14889 wxSize const &arg3_defvalue = wxDefaultSize ;
14890 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14891 wxIcon result;
14892 bool temp1 = False ;
14893 bool temp2 = False ;
14894 wxSize temp3 ;
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 PyObject * obj2 = 0 ;
14898 char *kwnames[] = {
14899 (char *) "id",(char *) "client",(char *) "size", NULL
14900 };
14901
14902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14903 {
14904 arg1 = wxString_in_helper(obj0);
14905 if (arg1 == NULL) SWIG_fail;
14906 temp1 = True;
14907 }
14908 if (obj1) {
14909 {
14910 arg2 = wxString_in_helper(obj1);
14911 if (arg2 == NULL) SWIG_fail;
14912 temp2 = True;
14913 }
14914 }
14915 if (obj2) {
14916 {
14917 arg3 = &temp3;
14918 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14919 }
14920 }
14921 {
0439c23b 14922 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14925
14926 wxPyEndAllowThreads(__tstate);
110da5b0 14927 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14928 }
14929 {
14930 wxIcon * resultptr;
14931 resultptr = new wxIcon((wxIcon &) result);
14932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14933 }
14934 {
14935 if (temp1)
14936 delete arg1;
14937 }
14938 {
14939 if (temp2)
14940 delete arg2;
14941 }
14942 return resultobj;
14943 fail:
14944 {
14945 if (temp1)
14946 delete arg1;
14947 }
14948 {
14949 if (temp2)
14950 delete arg2;
14951 }
14952 return NULL;
14953}
14954
14955
c32bde28 14956static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14957 PyObject *resultobj;
14958 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14959 PyObject * obj0 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 {
14968 PyThreadState* __tstate = wxPyBeginAllowThreads();
14969 wxPyArtProvider_Destroy(arg1);
14970
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 Py_INCREF(Py_None); resultobj = Py_None;
14975 return resultobj;
14976 fail:
14977 return NULL;
14978}
14979
14980
c32bde28 14981static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
14982 PyObject *obj;
14983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14984 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14985 Py_INCREF(obj);
14986 return Py_BuildValue((char *)"");
14987}
c32bde28 14988static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14989 PyObject *resultobj;
14990 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14991 PyObject * obj0 = 0 ;
14992 char *kwnames[] = {
14993 (char *) "self", NULL
14994 };
14995
14996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 delete arg1;
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 Py_INCREF(Py_None); resultobj = Py_None;
15007 return resultobj;
15008 fail:
15009 return NULL;
15010}
15011
15012
c32bde28 15013static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15014 PyObject *resultobj;
15015 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15016 wxConfigBase *result;
15017 PyObject * obj0 = 0 ;
15018 char *kwnames[] = {
15019 (char *) "config", NULL
15020 };
15021
15022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15025 {
15026 PyThreadState* __tstate = wxPyBeginAllowThreads();
15027 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15028
15029 wxPyEndAllowThreads(__tstate);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
15032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15033 return resultobj;
15034 fail:
15035 return NULL;
15036}
15037
15038
c32bde28 15039static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15040 PyObject *resultobj;
15041 bool arg1 = (bool) True ;
15042 wxConfigBase *result;
15043 PyObject * obj0 = 0 ;
15044 char *kwnames[] = {
15045 (char *) "createOnDemand", NULL
15046 };
15047
15048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15049 if (obj0) {
c32bde28 15050 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
15051 if (PyErr_Occurred()) SWIG_fail;
15052 }
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15061 return resultobj;
15062 fail:
15063 return NULL;
15064}
15065
15066
c32bde28 15067static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15068 PyObject *resultobj;
15069 wxConfigBase *result;
15070 char *kwnames[] = {
15071 NULL
15072 };
15073
15074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 result = (wxConfigBase *)wxConfigBase::Create();
15078
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15083 return resultobj;
15084 fail:
15085 return NULL;
15086}
15087
15088
c32bde28 15089static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15090 PyObject *resultobj;
15091 char *kwnames[] = {
15092 NULL
15093 };
15094
15095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15096 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
15098 wxConfigBase::DontCreateOnDemand();
15099
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 Py_INCREF(Py_None); resultobj = Py_None;
15104 return resultobj;
15105 fail:
15106 return NULL;
15107}
15108
15109
c32bde28 15110static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15111 PyObject *resultobj;
15112 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15113 wxString *arg2 = 0 ;
15114 bool temp2 = False ;
15115 PyObject * obj0 = 0 ;
15116 PyObject * obj1 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self",(char *) "path", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15124 {
15125 arg2 = wxString_in_helper(obj1);
15126 if (arg2 == NULL) SWIG_fail;
15127 temp2 = True;
15128 }
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 (arg1)->SetPath((wxString const &)*arg2);
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 Py_INCREF(Py_None); resultobj = Py_None;
15137 {
15138 if (temp2)
15139 delete arg2;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (temp2)
15145 delete arg2;
15146 }
15147 return NULL;
15148}
15149
15150
c32bde28 15151static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15152 PyObject *resultobj;
15153 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15154 wxString *result;
15155 PyObject * obj0 = 0 ;
15156 char *kwnames[] = {
15157 (char *) "self", NULL
15158 };
15159
15160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 {
15166 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15167 result = (wxString *) &_result_ref;
15168 }
15169
15170 wxPyEndAllowThreads(__tstate);
15171 if (PyErr_Occurred()) SWIG_fail;
15172 }
15173 {
15174#if wxUSE_UNICODE
15175 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15176#else
15177 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15178#endif
15179 }
15180 return resultobj;
15181 fail:
15182 return NULL;
15183}
15184
15185
c32bde28 15186static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15187 PyObject *resultobj;
15188 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15189 PyObject *result;
15190 PyObject * obj0 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 resultobj = result;
15206 return resultobj;
15207 fail:
15208 return NULL;
15209}
15210
15211
c32bde28 15212static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15213 PyObject *resultobj;
15214 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15215 long arg2 ;
15216 PyObject *result;
15217 PyObject * obj0 = 0 ;
15218 PyObject * obj1 = 0 ;
15219 char *kwnames[] = {
15220 (char *) "self",(char *) "index", NULL
15221 };
15222
15223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15226 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
15227 if (PyErr_Occurred()) SWIG_fail;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = result;
15236 return resultobj;
15237 fail:
15238 return NULL;
15239}
15240
15241
c32bde28 15242static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15243 PyObject *resultobj;
15244 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15245 PyObject *result;
15246 PyObject * obj0 = 0 ;
15247 char *kwnames[] = {
15248 (char *) "self", NULL
15249 };
15250
15251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15257
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = result;
15262 return resultobj;
15263 fail:
15264 return NULL;
15265}
15266
15267
c32bde28 15268static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15269 PyObject *resultobj;
15270 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15271 long arg2 ;
15272 PyObject *result;
15273 PyObject * obj0 = 0 ;
15274 PyObject * obj1 = 0 ;
15275 char *kwnames[] = {
15276 (char *) "self",(char *) "index", NULL
15277 };
15278
15279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15282 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
15283 if (PyErr_Occurred()) SWIG_fail;
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15287
15288 wxPyEndAllowThreads(__tstate);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 resultobj = result;
15292 return resultobj;
15293 fail:
15294 return NULL;
15295}
15296
15297
c32bde28 15298static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15299 PyObject *resultobj;
15300 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15301 bool arg2 = (bool) False ;
15302 size_t result;
15303 PyObject * obj0 = 0 ;
15304 PyObject * obj1 = 0 ;
15305 char *kwnames[] = {
15306 (char *) "self",(char *) "recursive", NULL
15307 };
15308
15309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15312 if (obj1) {
c32bde28 15313 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15319
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
c32bde28 15323 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
15324 return resultobj;
15325 fail:
15326 return NULL;
15327}
15328
15329
c32bde28 15330static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15331 PyObject *resultobj;
15332 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15333 bool arg2 = (bool) False ;
15334 size_t result;
15335 PyObject * obj0 = 0 ;
15336 PyObject * obj1 = 0 ;
15337 char *kwnames[] = {
15338 (char *) "self",(char *) "recursive", NULL
15339 };
15340
15341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15344 if (obj1) {
c32bde28 15345 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
c32bde28 15355 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
15356 return resultobj;
15357 fail:
15358 return NULL;
15359}
15360
15361
c32bde28 15362static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15363 PyObject *resultobj;
15364 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15365 wxString *arg2 = 0 ;
15366 bool result;
15367 bool temp2 = False ;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 char *kwnames[] = {
15371 (char *) "self",(char *) "name", NULL
15372 };
15373
15374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15377 {
15378 arg2 = wxString_in_helper(obj1);
15379 if (arg2 == NULL) SWIG_fail;
15380 temp2 = True;
15381 }
15382 {
15383 PyThreadState* __tstate = wxPyBeginAllowThreads();
15384 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15385
15386 wxPyEndAllowThreads(__tstate);
15387 if (PyErr_Occurred()) SWIG_fail;
15388 }
15389 {
15390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15391 }
15392 {
15393 if (temp2)
15394 delete arg2;
15395 }
15396 return resultobj;
15397 fail:
15398 {
15399 if (temp2)
15400 delete arg2;
15401 }
15402 return NULL;
15403}
15404
15405
c32bde28 15406static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15407 PyObject *resultobj;
15408 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15409 wxString *arg2 = 0 ;
15410 bool result;
15411 bool temp2 = False ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char *kwnames[] = {
15415 (char *) "self",(char *) "name", NULL
15416 };
15417
15418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15421 {
15422 arg2 = wxString_in_helper(obj1);
15423 if (arg2 == NULL) SWIG_fail;
15424 temp2 = True;
15425 }
15426 {
15427 PyThreadState* __tstate = wxPyBeginAllowThreads();
15428 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15429
15430 wxPyEndAllowThreads(__tstate);
15431 if (PyErr_Occurred()) SWIG_fail;
15432 }
15433 {
15434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15435 }
15436 {
15437 if (temp2)
15438 delete arg2;
15439 }
15440 return resultobj;
15441 fail:
15442 {
15443 if (temp2)
15444 delete arg2;
15445 }
15446 return NULL;
15447}
15448
15449
c32bde28 15450static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15451 PyObject *resultobj;
15452 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15453 wxString *arg2 = 0 ;
15454 bool result;
15455 bool temp2 = False ;
15456 PyObject * obj0 = 0 ;
15457 PyObject * obj1 = 0 ;
15458 char *kwnames[] = {
15459 (char *) "self",(char *) "name", NULL
15460 };
15461
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15465 {
15466 arg2 = wxString_in_helper(obj1);
15467 if (arg2 == NULL) SWIG_fail;
15468 temp2 = True;
15469 }
15470 {
15471 PyThreadState* __tstate = wxPyBeginAllowThreads();
15472 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15473
15474 wxPyEndAllowThreads(__tstate);
15475 if (PyErr_Occurred()) SWIG_fail;
15476 }
15477 {
15478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15479 }
15480 {
15481 if (temp2)
15482 delete arg2;
15483 }
15484 return resultobj;
15485 fail:
15486 {
15487 if (temp2)
15488 delete arg2;
15489 }
15490 return NULL;
15491}
15492
15493
c32bde28 15494static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15495 PyObject *resultobj;
15496 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15497 wxString *arg2 = 0 ;
15498 int result;
15499 bool temp2 = False ;
15500 PyObject * obj0 = 0 ;
15501 PyObject * obj1 = 0 ;
15502 char *kwnames[] = {
15503 (char *) "self",(char *) "name", NULL
15504 };
15505
15506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15509 {
15510 arg2 = wxString_in_helper(obj1);
15511 if (arg2 == NULL) SWIG_fail;
15512 temp2 = True;
15513 }
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
c32bde28 15521 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15522 {
15523 if (temp2)
15524 delete arg2;
15525 }
15526 return resultobj;
15527 fail:
15528 {
15529 if (temp2)
15530 delete arg2;
15531 }
15532 return NULL;
15533}
15534
15535
c32bde28 15536static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15537 PyObject *resultobj;
15538 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15539 wxString *arg2 = 0 ;
15540 wxString const &arg3_defvalue = wxPyEmptyString ;
15541 wxString *arg3 = (wxString *) &arg3_defvalue ;
15542 wxString result;
15543 bool temp2 = False ;
15544 bool temp3 = False ;
15545 PyObject * obj0 = 0 ;
15546 PyObject * obj1 = 0 ;
15547 PyObject * obj2 = 0 ;
15548 char *kwnames[] = {
15549 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15550 };
15551
15552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15555 {
15556 arg2 = wxString_in_helper(obj1);
15557 if (arg2 == NULL) SWIG_fail;
15558 temp2 = True;
15559 }
15560 if (obj2) {
15561 {
15562 arg3 = wxString_in_helper(obj2);
15563 if (arg3 == NULL) SWIG_fail;
15564 temp3 = True;
15565 }
15566 }
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15570
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 {
15575#if wxUSE_UNICODE
15576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15577#else
15578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15579#endif
15580 }
15581 {
15582 if (temp2)
15583 delete arg2;
15584 }
15585 {
15586 if (temp3)
15587 delete arg3;
15588 }
15589 return resultobj;
15590 fail:
15591 {
15592 if (temp2)
15593 delete arg2;
15594 }
15595 {
15596 if (temp3)
15597 delete arg3;
15598 }
15599 return NULL;
15600}
15601
15602
c32bde28 15603static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15604 PyObject *resultobj;
15605 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15606 wxString *arg2 = 0 ;
15607 long arg3 = (long) 0 ;
15608 long result;
15609 bool temp2 = False ;
15610 PyObject * obj0 = 0 ;
15611 PyObject * obj1 = 0 ;
15612 PyObject * obj2 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15620 {
15621 arg2 = wxString_in_helper(obj1);
15622 if (arg2 == NULL) SWIG_fail;
15623 temp2 = True;
15624 }
15625 if (obj2) {
c32bde28 15626 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 {
15630 PyThreadState* __tstate = wxPyBeginAllowThreads();
15631 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15632
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
c32bde28 15636 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
15637 {
15638 if (temp2)
15639 delete arg2;
15640 }
15641 return resultobj;
15642 fail:
15643 {
15644 if (temp2)
15645 delete arg2;
15646 }
15647 return NULL;
15648}
15649
15650
c32bde28 15651static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15652 PyObject *resultobj;
15653 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15654 wxString *arg2 = 0 ;
15655 double arg3 = (double) 0.0 ;
15656 double result;
15657 bool temp2 = False ;
15658 PyObject * obj0 = 0 ;
15659 PyObject * obj1 = 0 ;
15660 PyObject * obj2 = 0 ;
15661 char *kwnames[] = {
15662 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15663 };
15664
15665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15668 {
15669 arg2 = wxString_in_helper(obj1);
15670 if (arg2 == NULL) SWIG_fail;
15671 temp2 = True;
15672 }
15673 if (obj2) {
c32bde28 15674 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 {
15678 PyThreadState* __tstate = wxPyBeginAllowThreads();
15679 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15680
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
c32bde28 15684 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
15685 {
15686 if (temp2)
15687 delete arg2;
15688 }
15689 return resultobj;
15690 fail:
15691 {
15692 if (temp2)
15693 delete arg2;
15694 }
15695 return NULL;
15696}
15697
15698
c32bde28 15699static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15700 PyObject *resultobj;
15701 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15702 wxString *arg2 = 0 ;
15703 bool arg3 = (bool) False ;
15704 bool result;
15705 bool temp2 = False ;
15706 PyObject * obj0 = 0 ;
15707 PyObject * obj1 = 0 ;
15708 PyObject * obj2 = 0 ;
15709 char *kwnames[] = {
15710 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15711 };
15712
15713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15716 {
15717 arg2 = wxString_in_helper(obj1);
15718 if (arg2 == NULL) SWIG_fail;
15719 temp2 = True;
15720 }
15721 if (obj2) {
c32bde28 15722 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
15723 if (PyErr_Occurred()) SWIG_fail;
15724 }
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15728
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 {
15733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15734 }
15735 {
15736 if (temp2)
15737 delete arg2;
15738 }
15739 return resultobj;
15740 fail:
15741 {
15742 if (temp2)
15743 delete arg2;
15744 }
15745 return NULL;
15746}
15747
15748
c32bde28 15749static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15750 PyObject *resultobj;
15751 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15752 wxString *arg2 = 0 ;
15753 wxString *arg3 = 0 ;
15754 bool result;
15755 bool temp2 = False ;
15756 bool temp3 = False ;
15757 PyObject * obj0 = 0 ;
15758 PyObject * obj1 = 0 ;
15759 PyObject * obj2 = 0 ;
15760 char *kwnames[] = {
15761 (char *) "self",(char *) "key",(char *) "value", NULL
15762 };
15763
15764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15767 {
15768 arg2 = wxString_in_helper(obj1);
15769 if (arg2 == NULL) SWIG_fail;
15770 temp2 = True;
15771 }
15772 {
15773 arg3 = wxString_in_helper(obj2);
15774 if (arg3 == NULL) SWIG_fail;
15775 temp3 = True;
15776 }
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15780
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 {
15785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15786 }
15787 {
15788 if (temp2)
15789 delete arg2;
15790 }
15791 {
15792 if (temp3)
15793 delete arg3;
15794 }
15795 return resultobj;
15796 fail:
15797 {
15798 if (temp2)
15799 delete arg2;
15800 }
15801 {
15802 if (temp3)
15803 delete arg3;
15804 }
15805 return NULL;
15806}
15807
15808
c32bde28 15809static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15810 PyObject *resultobj;
15811 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15812 wxString *arg2 = 0 ;
15813 long arg3 ;
15814 bool result;
15815 bool temp2 = False ;
15816 PyObject * obj0 = 0 ;
15817 PyObject * obj1 = 0 ;
15818 PyObject * obj2 = 0 ;
15819 char *kwnames[] = {
15820 (char *) "self",(char *) "key",(char *) "value", NULL
15821 };
15822
15823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15826 {
15827 arg2 = wxString_in_helper(obj1);
15828 if (arg2 == NULL) SWIG_fail;
15829 temp2 = True;
15830 }
c32bde28 15831 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
15832 if (PyErr_Occurred()) SWIG_fail;
15833 {
15834 PyThreadState* __tstate = wxPyBeginAllowThreads();
15835 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15836
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 {
15841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15842 }
15843 {
15844 if (temp2)
15845 delete arg2;
15846 }
15847 return resultobj;
15848 fail:
15849 {
15850 if (temp2)
15851 delete arg2;
15852 }
15853 return NULL;
15854}
15855
15856
c32bde28 15857static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15858 PyObject *resultobj;
15859 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15860 wxString *arg2 = 0 ;
15861 double arg3 ;
15862 bool result;
15863 bool temp2 = False ;
15864 PyObject * obj0 = 0 ;
15865 PyObject * obj1 = 0 ;
15866 PyObject * obj2 = 0 ;
15867 char *kwnames[] = {
15868 (char *) "self",(char *) "key",(char *) "value", NULL
15869 };
15870
15871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15874 {
15875 arg2 = wxString_in_helper(obj1);
15876 if (arg2 == NULL) SWIG_fail;
15877 temp2 = True;
15878 }
c32bde28 15879 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
15880 if (PyErr_Occurred()) SWIG_fail;
15881 {
15882 PyThreadState* __tstate = wxPyBeginAllowThreads();
15883 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15884
15885 wxPyEndAllowThreads(__tstate);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 {
15889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15890 }
15891 {
15892 if (temp2)
15893 delete arg2;
15894 }
15895 return resultobj;
15896 fail:
15897 {
15898 if (temp2)
15899 delete arg2;
15900 }
15901 return NULL;
15902}
15903
15904
c32bde28 15905static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15906 PyObject *resultobj;
15907 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15908 wxString *arg2 = 0 ;
15909 bool arg3 ;
15910 bool result;
15911 bool temp2 = False ;
15912 PyObject * obj0 = 0 ;
15913 PyObject * obj1 = 0 ;
15914 PyObject * obj2 = 0 ;
15915 char *kwnames[] = {
15916 (char *) "self",(char *) "key",(char *) "value", NULL
15917 };
15918
15919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15922 {
15923 arg2 = wxString_in_helper(obj1);
15924 if (arg2 == NULL) SWIG_fail;
15925 temp2 = True;
15926 }
c32bde28 15927 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
15928 if (PyErr_Occurred()) SWIG_fail;
15929 {
15930 PyThreadState* __tstate = wxPyBeginAllowThreads();
15931 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15932
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 {
15937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15938 }
15939 {
15940 if (temp2)
15941 delete arg2;
15942 }
15943 return resultobj;
15944 fail:
15945 {
15946 if (temp2)
15947 delete arg2;
15948 }
15949 return NULL;
15950}
15951
15952
c32bde28 15953static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15954 PyObject *resultobj;
15955 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15956 bool arg2 = (bool) False ;
15957 bool result;
15958 PyObject * obj0 = 0 ;
15959 PyObject * obj1 = 0 ;
15960 char *kwnames[] = {
15961 (char *) "self",(char *) "currentOnly", NULL
15962 };
15963
15964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15967 if (obj1) {
c32bde28 15968 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 result = (bool)(arg1)->Flush(arg2);
15974
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 {
15979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15980 }
15981 return resultobj;
15982 fail:
15983 return NULL;
15984}
15985
15986
c32bde28 15987static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15988 PyObject *resultobj;
15989 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15990 wxString *arg2 = 0 ;
15991 wxString *arg3 = 0 ;
15992 bool result;
15993 bool temp2 = False ;
15994 bool temp3 = False ;
15995 PyObject * obj0 = 0 ;
15996 PyObject * obj1 = 0 ;
15997 PyObject * obj2 = 0 ;
15998 char *kwnames[] = {
15999 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16000 };
16001
16002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16005 {
16006 arg2 = wxString_in_helper(obj1);
16007 if (arg2 == NULL) SWIG_fail;
16008 temp2 = True;
16009 }
16010 {
16011 arg3 = wxString_in_helper(obj2);
16012 if (arg3 == NULL) SWIG_fail;
16013 temp3 = True;
16014 }
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16024 }
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 {
16030 if (temp3)
16031 delete arg3;
16032 }
16033 return resultobj;
16034 fail:
16035 {
16036 if (temp2)
16037 delete arg2;
16038 }
16039 {
16040 if (temp3)
16041 delete arg3;
16042 }
16043 return NULL;
16044}
16045
16046
c32bde28 16047static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16048 PyObject *resultobj;
16049 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16050 wxString *arg2 = 0 ;
16051 wxString *arg3 = 0 ;
16052 bool result;
16053 bool temp2 = False ;
16054 bool temp3 = False ;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 PyObject * obj2 = 0 ;
16058 char *kwnames[] = {
16059 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16060 };
16061
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 {
16066 arg2 = wxString_in_helper(obj1);
16067 if (arg2 == NULL) SWIG_fail;
16068 temp2 = True;
16069 }
16070 {
16071 arg3 = wxString_in_helper(obj2);
16072 if (arg3 == NULL) SWIG_fail;
16073 temp3 = True;
16074 }
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16078
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 {
16083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16084 }
16085 {
16086 if (temp2)
16087 delete arg2;
16088 }
16089 {
16090 if (temp3)
16091 delete arg3;
16092 }
16093 return resultobj;
16094 fail:
16095 {
16096 if (temp2)
16097 delete arg2;
16098 }
16099 {
16100 if (temp3)
16101 delete arg3;
16102 }
16103 return NULL;
16104}
16105
16106
c32bde28 16107static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16108 PyObject *resultobj;
16109 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16110 wxString *arg2 = 0 ;
16111 bool arg3 = (bool) True ;
16112 bool result;
16113 bool temp2 = False ;
16114 PyObject * obj0 = 0 ;
16115 PyObject * obj1 = 0 ;
16116 PyObject * obj2 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16124 {
16125 arg2 = wxString_in_helper(obj1);
16126 if (arg2 == NULL) SWIG_fail;
16127 temp2 = True;
16128 }
16129 if (obj2) {
c32bde28 16130 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
16131 if (PyErr_Occurred()) SWIG_fail;
16132 }
16133 {
16134 PyThreadState* __tstate = wxPyBeginAllowThreads();
16135 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16136
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 {
16141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16142 }
16143 {
16144 if (temp2)
16145 delete arg2;
16146 }
16147 return resultobj;
16148 fail:
16149 {
16150 if (temp2)
16151 delete arg2;
16152 }
16153 return NULL;
16154}
16155
16156
c32bde28 16157static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16158 PyObject *resultobj;
16159 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16160 wxString *arg2 = 0 ;
16161 bool result;
16162 bool temp2 = False ;
16163 PyObject * obj0 = 0 ;
16164 PyObject * obj1 = 0 ;
16165 char *kwnames[] = {
16166 (char *) "self",(char *) "key", NULL
16167 };
16168
16169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16172 {
16173 arg2 = wxString_in_helper(obj1);
16174 if (arg2 == NULL) SWIG_fail;
16175 temp2 = True;
16176 }
16177 {
16178 PyThreadState* __tstate = wxPyBeginAllowThreads();
16179 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16180
16181 wxPyEndAllowThreads(__tstate);
16182 if (PyErr_Occurred()) SWIG_fail;
16183 }
16184 {
16185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16186 }
16187 {
16188 if (temp2)
16189 delete arg2;
16190 }
16191 return resultobj;
16192 fail:
16193 {
16194 if (temp2)
16195 delete arg2;
16196 }
16197 return NULL;
16198}
16199
16200
c32bde28 16201static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16202 PyObject *resultobj;
16203 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16204 bool result;
16205 PyObject * obj0 = 0 ;
16206 char *kwnames[] = {
16207 (char *) "self", NULL
16208 };
16209
16210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = (bool)(arg1)->DeleteAll();
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16222 }
16223 return resultobj;
16224 fail:
16225 return NULL;
16226}
16227
16228
c32bde28 16229static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16230 PyObject *resultobj;
16231 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16232 bool arg2 = (bool) True ;
16233 PyObject * obj0 = 0 ;
16234 PyObject * obj1 = 0 ;
16235 char *kwnames[] = {
16236 (char *) "self",(char *) "doIt", NULL
16237 };
16238
16239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16242 if (obj1) {
c32bde28 16243 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 (arg1)->SetExpandEnvVars(arg2);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 Py_INCREF(Py_None); resultobj = Py_None;
16254 return resultobj;
16255 fail:
16256 return NULL;
16257}
16258
16259
c32bde28 16260static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16261 PyObject *resultobj;
16262 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16263 bool result;
16264 PyObject * obj0 = 0 ;
16265 char *kwnames[] = {
16266 (char *) "self", NULL
16267 };
16268
16269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16275
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 {
16280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16281 }
16282 return resultobj;
16283 fail:
16284 return NULL;
16285}
16286
16287
c32bde28 16288static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16289 PyObject *resultobj;
16290 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16291 bool arg2 = (bool) True ;
16292 PyObject * obj0 = 0 ;
16293 PyObject * obj1 = 0 ;
16294 char *kwnames[] = {
16295 (char *) "self",(char *) "doIt", NULL
16296 };
16297
16298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16301 if (obj1) {
c32bde28 16302 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 {
16306 PyThreadState* __tstate = wxPyBeginAllowThreads();
16307 (arg1)->SetRecordDefaults(arg2);
16308
16309 wxPyEndAllowThreads(__tstate);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 Py_INCREF(Py_None); resultobj = Py_None;
16313 return resultobj;
16314 fail:
16315 return NULL;
16316}
16317
16318
c32bde28 16319static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16320 PyObject *resultobj;
16321 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16322 bool result;
16323 PyObject * obj0 = 0 ;
16324 char *kwnames[] = {
16325 (char *) "self", NULL
16326 };
16327
16328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16334
16335 wxPyEndAllowThreads(__tstate);
16336 if (PyErr_Occurred()) SWIG_fail;
16337 }
16338 {
16339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16340 }
16341 return resultobj;
16342 fail:
16343 return NULL;
16344}
16345
16346
c32bde28 16347static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16348 PyObject *resultobj;
16349 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16350 wxString *arg2 = 0 ;
16351 wxString result;
16352 bool temp2 = False ;
16353 PyObject * obj0 = 0 ;
16354 PyObject * obj1 = 0 ;
16355 char *kwnames[] = {
16356 (char *) "self",(char *) "str", NULL
16357 };
16358
16359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16362 {
16363 arg2 = wxString_in_helper(obj1);
16364 if (arg2 == NULL) SWIG_fail;
16365 temp2 = True;
16366 }
16367 {
16368 PyThreadState* __tstate = wxPyBeginAllowThreads();
16369 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16370
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 {
16375#if wxUSE_UNICODE
16376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16377#else
16378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16379#endif
16380 }
16381 {
16382 if (temp2)
16383 delete arg2;
16384 }
16385 return resultobj;
16386 fail:
16387 {
16388 if (temp2)
16389 delete arg2;
16390 }
16391 return NULL;
16392}
16393
16394
c32bde28 16395static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16396 PyObject *resultobj;
16397 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16398 wxString result;
16399 PyObject * obj0 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = ((wxConfigBase const *)arg1)->GetAppName();
16410
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415#if wxUSE_UNICODE
16416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16417#else
16418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16419#endif
16420 }
16421 return resultobj;
16422 fail:
16423 return NULL;
16424}
16425
16426
c32bde28 16427static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16428 PyObject *resultobj;
16429 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16430 wxString result;
16431 PyObject * obj0 = 0 ;
16432 char *kwnames[] = {
16433 (char *) "self", NULL
16434 };
16435
16436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = ((wxConfigBase const *)arg1)->GetVendorName();
16442
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 {
16447#if wxUSE_UNICODE
16448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16449#else
16450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16451#endif
16452 }
16453 return resultobj;
16454 fail:
16455 return NULL;
16456}
16457
16458
c32bde28 16459static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16460 PyObject *resultobj;
16461 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16462 wxString *arg2 = 0 ;
16463 bool temp2 = False ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char *kwnames[] = {
16467 (char *) "self",(char *) "appName", NULL
16468 };
16469
16470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16473 {
16474 arg2 = wxString_in_helper(obj1);
16475 if (arg2 == NULL) SWIG_fail;
16476 temp2 = True;
16477 }
16478 {
16479 PyThreadState* __tstate = wxPyBeginAllowThreads();
16480 (arg1)->SetAppName((wxString const &)*arg2);
16481
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 Py_INCREF(Py_None); resultobj = Py_None;
16486 {
16487 if (temp2)
16488 delete arg2;
16489 }
16490 return resultobj;
16491 fail:
16492 {
16493 if (temp2)
16494 delete arg2;
16495 }
16496 return NULL;
16497}
16498
16499
c32bde28 16500static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16501 PyObject *resultobj;
16502 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16503 wxString *arg2 = 0 ;
16504 bool temp2 = False ;
16505 PyObject * obj0 = 0 ;
16506 PyObject * obj1 = 0 ;
16507 char *kwnames[] = {
16508 (char *) "self",(char *) "vendorName", NULL
16509 };
16510
16511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16514 {
16515 arg2 = wxString_in_helper(obj1);
16516 if (arg2 == NULL) SWIG_fail;
16517 temp2 = True;
16518 }
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 (arg1)->SetVendorName((wxString const &)*arg2);
16522
16523 wxPyEndAllowThreads(__tstate);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 Py_INCREF(Py_None); resultobj = Py_None;
16527 {
16528 if (temp2)
16529 delete arg2;
16530 }
16531 return resultobj;
16532 fail:
16533 {
16534 if (temp2)
16535 delete arg2;
16536 }
16537 return NULL;
16538}
16539
16540
c32bde28 16541static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16542 PyObject *resultobj;
16543 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16544 long arg2 ;
16545 PyObject * obj0 = 0 ;
16546 PyObject * obj1 = 0 ;
16547 char *kwnames[] = {
16548 (char *) "self",(char *) "style", NULL
16549 };
16550
16551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16554 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
16555 if (PyErr_Occurred()) SWIG_fail;
16556 {
16557 PyThreadState* __tstate = wxPyBeginAllowThreads();
16558 (arg1)->SetStyle(arg2);
16559
16560 wxPyEndAllowThreads(__tstate);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 Py_INCREF(Py_None); resultobj = Py_None;
16564 return resultobj;
16565 fail:
16566 return NULL;
16567}
16568
16569
c32bde28 16570static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16571 PyObject *resultobj;
16572 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16573 long result;
16574 PyObject * obj0 = 0 ;
16575 char *kwnames[] = {
16576 (char *) "self", NULL
16577 };
16578
16579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16582 {
16583 PyThreadState* __tstate = wxPyBeginAllowThreads();
16584 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16585
16586 wxPyEndAllowThreads(__tstate);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 }
c32bde28 16589 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
16590 return resultobj;
16591 fail:
16592 return NULL;
16593}
16594
16595
c32bde28 16596static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16597 PyObject *obj;
16598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16599 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16600 Py_INCREF(obj);
16601 return Py_BuildValue((char *)"");
16602}
c32bde28 16603static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16604 PyObject *resultobj;
16605 wxString const &arg1_defvalue = wxPyEmptyString ;
16606 wxString *arg1 = (wxString *) &arg1_defvalue ;
16607 wxString const &arg2_defvalue = wxPyEmptyString ;
16608 wxString *arg2 = (wxString *) &arg2_defvalue ;
16609 wxString const &arg3_defvalue = wxPyEmptyString ;
16610 wxString *arg3 = (wxString *) &arg3_defvalue ;
16611 wxString const &arg4_defvalue = wxPyEmptyString ;
16612 wxString *arg4 = (wxString *) &arg4_defvalue ;
16613 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16614 wxConfig *result;
16615 bool temp1 = False ;
16616 bool temp2 = False ;
16617 bool temp3 = False ;
16618 bool temp4 = False ;
16619 PyObject * obj0 = 0 ;
16620 PyObject * obj1 = 0 ;
16621 PyObject * obj2 = 0 ;
16622 PyObject * obj3 = 0 ;
16623 PyObject * obj4 = 0 ;
16624 char *kwnames[] = {
16625 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16626 };
16627
16628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16629 if (obj0) {
16630 {
16631 arg1 = wxString_in_helper(obj0);
16632 if (arg1 == NULL) SWIG_fail;
16633 temp1 = True;
16634 }
16635 }
16636 if (obj1) {
16637 {
16638 arg2 = wxString_in_helper(obj1);
16639 if (arg2 == NULL) SWIG_fail;
16640 temp2 = True;
16641 }
16642 }
16643 if (obj2) {
16644 {
16645 arg3 = wxString_in_helper(obj2);
16646 if (arg3 == NULL) SWIG_fail;
16647 temp3 = True;
16648 }
16649 }
16650 if (obj3) {
16651 {
16652 arg4 = wxString_in_helper(obj3);
16653 if (arg4 == NULL) SWIG_fail;
16654 temp4 = True;
16655 }
16656 }
16657 if (obj4) {
c32bde28 16658 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
16659 if (PyErr_Occurred()) SWIG_fail;
16660 }
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16664
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16669 {
16670 if (temp1)
16671 delete arg1;
16672 }
16673 {
16674 if (temp2)
16675 delete arg2;
16676 }
16677 {
16678 if (temp3)
16679 delete arg3;
16680 }
16681 {
16682 if (temp4)
16683 delete arg4;
16684 }
16685 return resultobj;
16686 fail:
16687 {
16688 if (temp1)
16689 delete arg1;
16690 }
16691 {
16692 if (temp2)
16693 delete arg2;
16694 }
16695 {
16696 if (temp3)
16697 delete arg3;
16698 }
16699 {
16700 if (temp4)
16701 delete arg4;
16702 }
16703 return NULL;
16704}
16705
16706
c32bde28 16707static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16708 PyObject *resultobj;
16709 wxConfig *arg1 = (wxConfig *) 0 ;
16710 PyObject * obj0 = 0 ;
16711 char *kwnames[] = {
16712 (char *) "self", NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 delete arg1;
16721
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 Py_INCREF(Py_None); resultobj = Py_None;
16726 return resultobj;
16727 fail:
16728 return NULL;
16729}
16730
16731
c32bde28 16732static PyObject * Config_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16733 PyObject *obj;
16734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16735 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16736 Py_INCREF(obj);
16737 return Py_BuildValue((char *)"");
16738}
c32bde28 16739static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16740 PyObject *resultobj;
16741 wxString const &arg1_defvalue = wxPyEmptyString ;
16742 wxString *arg1 = (wxString *) &arg1_defvalue ;
16743 wxString const &arg2_defvalue = wxPyEmptyString ;
16744 wxString *arg2 = (wxString *) &arg2_defvalue ;
16745 wxString const &arg3_defvalue = wxPyEmptyString ;
16746 wxString *arg3 = (wxString *) &arg3_defvalue ;
16747 wxString const &arg4_defvalue = wxPyEmptyString ;
16748 wxString *arg4 = (wxString *) &arg4_defvalue ;
16749 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16750 wxFileConfig *result;
16751 bool temp1 = False ;
16752 bool temp2 = False ;
16753 bool temp3 = False ;
16754 bool temp4 = False ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 PyObject * obj2 = 0 ;
16758 PyObject * obj3 = 0 ;
16759 PyObject * obj4 = 0 ;
16760 char *kwnames[] = {
16761 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16762 };
16763
16764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16765 if (obj0) {
16766 {
16767 arg1 = wxString_in_helper(obj0);
16768 if (arg1 == NULL) SWIG_fail;
16769 temp1 = True;
16770 }
16771 }
16772 if (obj1) {
16773 {
16774 arg2 = wxString_in_helper(obj1);
16775 if (arg2 == NULL) SWIG_fail;
16776 temp2 = True;
16777 }
16778 }
16779 if (obj2) {
16780 {
16781 arg3 = wxString_in_helper(obj2);
16782 if (arg3 == NULL) SWIG_fail;
16783 temp3 = True;
16784 }
16785 }
16786 if (obj3) {
16787 {
16788 arg4 = wxString_in_helper(obj3);
16789 if (arg4 == NULL) SWIG_fail;
16790 temp4 = True;
16791 }
16792 }
16793 if (obj4) {
c32bde28 16794 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16800
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16805 {
16806 if (temp1)
16807 delete arg1;
16808 }
16809 {
16810 if (temp2)
16811 delete arg2;
16812 }
16813 {
16814 if (temp3)
16815 delete arg3;
16816 }
16817 {
16818 if (temp4)
16819 delete arg4;
16820 }
16821 return resultobj;
16822 fail:
16823 {
16824 if (temp1)
16825 delete arg1;
16826 }
16827 {
16828 if (temp2)
16829 delete arg2;
16830 }
16831 {
16832 if (temp3)
16833 delete arg3;
16834 }
16835 {
16836 if (temp4)
16837 delete arg4;
16838 }
16839 return NULL;
16840}
16841
16842
c32bde28 16843static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16844 PyObject *resultobj;
16845 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16846 PyObject * obj0 = 0 ;
16847 char *kwnames[] = {
16848 (char *) "self", NULL
16849 };
16850
16851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16854 {
16855 PyThreadState* __tstate = wxPyBeginAllowThreads();
16856 delete arg1;
16857
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 Py_INCREF(Py_None); resultobj = Py_None;
16862 return resultobj;
16863 fail:
16864 return NULL;
16865}
16866
16867
c32bde28 16868static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16869 PyObject *obj;
16870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16871 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16872 Py_INCREF(obj);
16873 return Py_BuildValue((char *)"");
16874}
c32bde28 16875static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16876 PyObject *resultobj;
16877 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16878 wxString *arg2 = 0 ;
16879 wxConfigPathChanger *result;
16880 bool temp2 = False ;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 char *kwnames[] = {
16884 (char *) "config",(char *) "entry", NULL
16885 };
16886
16887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16890 {
16891 arg2 = wxString_in_helper(obj1);
16892 if (arg2 == NULL) SWIG_fail;
16893 temp2 = True;
16894 }
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16898
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16903 {
16904 if (temp2)
16905 delete arg2;
16906 }
16907 return resultobj;
16908 fail:
16909 {
16910 if (temp2)
16911 delete arg2;
16912 }
16913 return NULL;
16914}
16915
16916
c32bde28 16917static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16918 PyObject *resultobj;
16919 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16920 PyObject * obj0 = 0 ;
16921 char *kwnames[] = {
16922 (char *) "self", NULL
16923 };
16924
16925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16928 {
16929 PyThreadState* __tstate = wxPyBeginAllowThreads();
16930 delete arg1;
16931
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 Py_INCREF(Py_None); resultobj = Py_None;
16936 return resultobj;
16937 fail:
16938 return NULL;
16939}
16940
16941
c32bde28 16942static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16943 PyObject *resultobj;
16944 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16945 wxString *result;
16946 PyObject * obj0 = 0 ;
16947 char *kwnames[] = {
16948 (char *) "self", NULL
16949 };
16950
16951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
16956 {
16957 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16958 result = (wxString *) &_result_ref;
16959 }
16960
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 {
16965#if wxUSE_UNICODE
16966 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16967#else
16968 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16969#endif
16970 }
16971 return resultobj;
16972 fail:
16973 return NULL;
16974}
16975
16976
c32bde28 16977static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16978 PyObject *obj;
16979 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16980 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16981 Py_INCREF(obj);
16982 return Py_BuildValue((char *)"");
16983}
c32bde28 16984static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16985 PyObject *resultobj;
16986 wxString *arg1 = 0 ;
16987 wxString result;
16988 bool temp1 = False ;
16989 PyObject * obj0 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "sz", NULL
16992 };
16993
16994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16995 {
16996 arg1 = wxString_in_helper(obj0);
16997 if (arg1 == NULL) SWIG_fail;
16998 temp1 = True;
16999 }
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 result = wxExpandEnvVars((wxString const &)*arg1);
17003
17004 wxPyEndAllowThreads(__tstate);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 {
17008#if wxUSE_UNICODE
17009 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17010#else
17011 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17012#endif
17013 }
17014 {
17015 if (temp1)
17016 delete arg1;
17017 }
17018 return resultobj;
17019 fail:
17020 {
17021 if (temp1)
17022 delete arg1;
17023 }
17024 return NULL;
17025}
17026
17027
c32bde28 17028static int _wrap_DateFormatStr_set(PyObject *) {
d55e5bfc
RD
17029 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17030 return 1;
17031}
17032
17033
17034static PyObject *_wrap_DateFormatStr_get() {
17035 PyObject *pyobj;
17036
17037 {
17038#if wxUSE_UNICODE
17039 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17040#else
17041 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17042#endif
17043 }
17044 return pyobj;
17045}
17046
17047
c32bde28 17048static int _wrap_TimeSpanFormatStr_set(PyObject *) {
d55e5bfc
RD
17049 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17050 return 1;
17051}
17052
17053
17054static PyObject *_wrap_TimeSpanFormatStr_get() {
17055 PyObject *pyobj;
17056
17057 {
17058#if wxUSE_UNICODE
17059 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17060#else
17061 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17062#endif
17063 }
17064 return pyobj;
17065}
17066
17067
c32bde28 17068static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17069 PyObject *resultobj;
17070 int arg1 ;
17071 PyObject * obj0 = 0 ;
17072 char *kwnames[] = {
17073 (char *) "country", NULL
17074 };
17075
17076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
c32bde28 17077 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17078 if (PyErr_Occurred()) SWIG_fail;
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17082
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 Py_INCREF(Py_None); resultobj = Py_None;
17087 return resultobj;
17088 fail:
17089 return NULL;
17090}
17091
17092
c32bde28 17093static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17094 PyObject *resultobj;
17095 int result;
17096 char *kwnames[] = {
17097 NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17101 {
17102 PyThreadState* __tstate = wxPyBeginAllowThreads();
17103 result = (int)wxDateTime::GetCountry();
17104
17105 wxPyEndAllowThreads(__tstate);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
c32bde28 17108 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17109 return resultobj;
17110 fail:
17111 return NULL;
17112}
17113
17114
c32bde28 17115static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17116 PyObject *resultobj;
17117 int arg1 = (int) wxDateTime::Country_Default ;
17118 bool result;
17119 PyObject * obj0 = 0 ;
17120 char *kwnames[] = {
17121 (char *) "country", NULL
17122 };
17123
17124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17125 if (obj0) {
c32bde28 17126 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17127 if (PyErr_Occurred()) SWIG_fail;
17128 }
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17132
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 {
17137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17138 }
17139 return resultobj;
17140 fail:
17141 return NULL;
17142}
17143
17144
c32bde28 17145static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17146 PyObject *resultobj;
17147 int arg1 = (int) wxDateTime::Gregorian ;
17148 int result;
17149 PyObject * obj0 = 0 ;
17150 char *kwnames[] = {
17151 (char *) "cal", NULL
17152 };
17153
17154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17155 if (obj0) {
c32bde28 17156 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17162
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
c32bde28 17166 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17167 return resultobj;
17168 fail:
17169 return NULL;
17170}
17171
17172
c32bde28 17173static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17174 PyObject *resultobj;
17175 int arg1 ;
17176 int result;
17177 PyObject * obj0 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "year", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
c32bde28 17183 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17184 if (PyErr_Occurred()) SWIG_fail;
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (int)wxDateTime::ConvertYearToBC(arg1);
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
c32bde28 17192 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17193 return resultobj;
17194 fail:
17195 return NULL;
17196}
17197
17198
c32bde28 17199static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17200 PyObject *resultobj;
17201 int arg1 = (int) wxDateTime::Gregorian ;
17202 int result;
17203 PyObject * obj0 = 0 ;
17204 char *kwnames[] = {
17205 (char *) "cal", NULL
17206 };
17207
17208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17209 if (obj0) {
c32bde28 17210 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17211 if (PyErr_Occurred()) SWIG_fail;
17212 }
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
17215 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17216
17217 wxPyEndAllowThreads(__tstate);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 }
c32bde28 17220 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17221 return resultobj;
17222 fail:
17223 return NULL;
17224}
17225
17226
c32bde28 17227static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17228 PyObject *resultobj;
17229 int arg1 = (int) wxDateTime::Inv_Year ;
17230 int arg2 = (int) wxDateTime::Gregorian ;
17231 bool result;
17232 PyObject * obj0 = 0 ;
17233 PyObject * obj1 = 0 ;
17234 char *kwnames[] = {
17235 (char *) "year",(char *) "cal", NULL
17236 };
17237
17238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17239 if (obj0) {
c32bde28 17240 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17241 if (PyErr_Occurred()) SWIG_fail;
17242 }
17243 if (obj1) {
c32bde28 17244 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17245 if (PyErr_Occurred()) SWIG_fail;
17246 }
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17250
17251 wxPyEndAllowThreads(__tstate);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 {
17255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17256 }
17257 return resultobj;
17258 fail:
17259 return NULL;
17260}
17261
17262
c32bde28 17263static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17264 PyObject *resultobj;
17265 int arg1 = (int) wxDateTime::Inv_Year ;
17266 int result;
17267 PyObject * obj0 = 0 ;
17268 char *kwnames[] = {
17269 (char *) "year", NULL
17270 };
17271
17272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17273 if (obj0) {
c32bde28 17274 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = (int)wxDateTime::GetCentury(arg1);
17280
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
c32bde28 17284 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17285 return resultobj;
17286 fail:
17287 return NULL;
17288}
17289
17290
c32bde28 17291static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17292 PyObject *resultobj;
17293 int arg1 ;
17294 int arg2 = (int) wxDateTime::Gregorian ;
17295 int result;
17296 PyObject * obj0 = 0 ;
17297 PyObject * obj1 = 0 ;
17298 char *kwnames[] = {
17299 (char *) "year",(char *) "cal", NULL
17300 };
17301
17302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
c32bde28 17303 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17304 if (PyErr_Occurred()) SWIG_fail;
17305 if (obj1) {
c32bde28 17306 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17307 if (PyErr_Occurred()) SWIG_fail;
17308 }
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17312
17313 wxPyEndAllowThreads(__tstate);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 }
c32bde28 17316 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17317 return resultobj;
17318 fail:
17319 return NULL;
17320}
17321
17322
c32bde28 17323static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17324 PyObject *resultobj;
17325 int arg1 ;
17326 int arg2 = (int) wxDateTime::Inv_Year ;
17327 int arg3 = (int) wxDateTime::Gregorian ;
17328 int result;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 PyObject * obj2 = 0 ;
17332 char *kwnames[] = {
17333 (char *) "month",(char *) "year",(char *) "cal", NULL
17334 };
17335
17336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 17337 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17338 if (PyErr_Occurred()) SWIG_fail;
17339 if (obj1) {
c32bde28 17340 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 if (obj2) {
c32bde28 17344 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
c32bde28 17354 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17355 return resultobj;
17356 fail:
17357 return NULL;
17358}
17359
17360
c32bde28 17361static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17362 PyObject *resultobj;
17363 int arg1 ;
17364 int arg2 = (int) wxDateTime::Name_Full ;
17365 wxString result;
17366 PyObject * obj0 = 0 ;
17367 PyObject * obj1 = 0 ;
17368 char *kwnames[] = {
17369 (char *) "month",(char *) "flags", NULL
17370 };
17371
17372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
c32bde28 17373 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17374 if (PyErr_Occurred()) SWIG_fail;
17375 if (obj1) {
c32bde28 17376 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17382
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 {
17387#if wxUSE_UNICODE
17388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17389#else
17390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17391#endif
17392 }
17393 return resultobj;
17394 fail:
17395 return NULL;
17396}
17397
17398
c32bde28 17399static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17400 PyObject *resultobj;
17401 int arg1 ;
17402 int arg2 = (int) wxDateTime::Name_Full ;
17403 wxString result;
17404 PyObject * obj0 = 0 ;
17405 PyObject * obj1 = 0 ;
17406 char *kwnames[] = {
17407 (char *) "weekday",(char *) "flags", NULL
17408 };
17409
17410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
c32bde28 17411 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17412 if (PyErr_Occurred()) SWIG_fail;
17413 if (obj1) {
c32bde28 17414 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17420
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 {
17425#if wxUSE_UNICODE
17426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17427#else
17428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17429#endif
17430 }
17431 return resultobj;
17432 fail:
17433 return NULL;
17434}
17435
17436
c32bde28 17437static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17438 PyObject *resultobj;
17439 wxString *arg1 = (wxString *) 0 ;
17440 wxString *arg2 = (wxString *) 0 ;
17441 bool temp1 = False ;
17442 bool temp2 = False ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 char *kwnames[] = {
17446 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17447 };
17448
17449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17450 {
17451 arg1 = wxString_in_helper(obj0);
17452 if (arg1 == NULL) SWIG_fail;
17453 temp1 = True;
17454 }
17455 {
17456 arg2 = wxString_in_helper(obj1);
17457 if (arg2 == NULL) SWIG_fail;
17458 temp2 = True;
17459 }
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 wxDateTime::GetAmPmStrings(arg1,arg2);
17463
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 Py_INCREF(Py_None); resultobj = Py_None;
17468 {
17469 if (temp1)
17470 delete arg1;
17471 }
17472 {
17473 if (temp2)
17474 delete arg2;
17475 }
17476 return resultobj;
17477 fail:
17478 {
17479 if (temp1)
17480 delete arg1;
17481 }
17482 {
17483 if (temp2)
17484 delete arg2;
17485 }
17486 return NULL;
17487}
17488
17489
c32bde28 17490static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17491 PyObject *resultobj;
17492 int arg1 = (int) wxDateTime::Inv_Year ;
17493 int arg2 = (int) wxDateTime::Country_Default ;
17494 bool result;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 char *kwnames[] = {
17498 (char *) "year",(char *) "country", NULL
17499 };
17500
17501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17502 if (obj0) {
c32bde28 17503 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 if (obj1) {
c32bde28 17507 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 {
17518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17519 }
17520 return resultobj;
17521 fail:
17522 return NULL;
17523}
17524
17525
c32bde28 17526static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17527 PyObject *resultobj;
17528 int arg1 = (int) wxDateTime::Inv_Year ;
17529 int arg2 = (int) wxDateTime::Country_Default ;
17530 wxDateTime result;
17531 PyObject * obj0 = 0 ;
17532 PyObject * obj1 = 0 ;
17533 char *kwnames[] = {
17534 (char *) "year",(char *) "country", NULL
17535 };
17536
17537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17538 if (obj0) {
c32bde28 17539 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 if (obj1) {
c32bde28 17543 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17549
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 {
17554 wxDateTime * resultptr;
17555 resultptr = new wxDateTime((wxDateTime &) result);
17556 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17557 }
17558 return resultobj;
17559 fail:
17560 return NULL;
17561}
17562
17563
c32bde28 17564static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17565 PyObject *resultobj;
17566 int arg1 = (int) wxDateTime::Inv_Year ;
17567 int arg2 = (int) wxDateTime::Country_Default ;
17568 wxDateTime result;
17569 PyObject * obj0 = 0 ;
17570 PyObject * obj1 = 0 ;
17571 char *kwnames[] = {
17572 (char *) "year",(char *) "country", NULL
17573 };
17574
17575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17576 if (obj0) {
c32bde28 17577 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17578 if (PyErr_Occurred()) SWIG_fail;
17579 }
17580 if (obj1) {
c32bde28 17581 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 {
17585 PyThreadState* __tstate = wxPyBeginAllowThreads();
17586 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17587
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 {
17592 wxDateTime * resultptr;
17593 resultptr = new wxDateTime((wxDateTime &) result);
17594 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17595 }
17596 return resultobj;
17597 fail:
17598 return NULL;
17599}
17600
17601
c32bde28 17602static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17603 PyObject *resultobj;
17604 wxDateTime result;
17605 char *kwnames[] = {
17606 NULL
17607 };
17608
17609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
17612 result = wxDateTime::Now();
17613
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 {
17618 wxDateTime * resultptr;
17619 resultptr = new wxDateTime((wxDateTime &) result);
17620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17621 }
17622 return resultobj;
17623 fail:
17624 return NULL;
17625}
17626
17627
c32bde28 17628static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17629 PyObject *resultobj;
17630 wxDateTime result;
17631 char *kwnames[] = {
17632 NULL
17633 };
17634
17635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17636 {
17637 PyThreadState* __tstate = wxPyBeginAllowThreads();
17638 result = wxDateTime::UNow();
17639
17640 wxPyEndAllowThreads(__tstate);
17641 if (PyErr_Occurred()) SWIG_fail;
17642 }
17643 {
17644 wxDateTime * resultptr;
17645 resultptr = new wxDateTime((wxDateTime &) result);
17646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17647 }
17648 return resultobj;
17649 fail:
17650 return NULL;
17651}
17652
17653
c32bde28 17654static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17655 PyObject *resultobj;
17656 wxDateTime result;
17657 char *kwnames[] = {
17658 NULL
17659 };
17660
17661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = wxDateTime::Today();
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 wxDateTime * resultptr;
17671 resultptr = new wxDateTime((wxDateTime &) result);
17672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17673 }
17674 return resultobj;
17675 fail:
17676 return NULL;
17677}
17678
17679
c32bde28 17680static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17681 PyObject *resultobj;
17682 wxDateTime *result;
17683 char *kwnames[] = {
17684 NULL
17685 };
17686
17687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 result = (wxDateTime *)new wxDateTime();
17691
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17696 return resultobj;
17697 fail:
17698 return NULL;
17699}
17700
17701
c32bde28 17702static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17703 PyObject *resultobj;
17704 time_t arg1 ;
17705 wxDateTime *result;
17706 PyObject * obj0 = 0 ;
17707 char *kwnames[] = {
17708 (char *) "timet", NULL
17709 };
17710
17711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
c32bde28 17712 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
d55e5bfc
RD
17713 if (PyErr_Occurred()) SWIG_fail;
17714 {
17715 PyThreadState* __tstate = wxPyBeginAllowThreads();
17716 result = (wxDateTime *)new wxDateTime(arg1);
17717
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17722 return resultobj;
17723 fail:
17724 return NULL;
17725}
17726
17727
c32bde28 17728static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17729 PyObject *resultobj;
17730 double arg1 ;
17731 wxDateTime *result;
17732 PyObject * obj0 = 0 ;
17733 char *kwnames[] = {
17734 (char *) "jdn", NULL
17735 };
17736
17737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
c32bde28 17738 arg1 = (double)SWIG_As_double(obj0);
d55e5bfc
RD
17739 if (PyErr_Occurred()) SWIG_fail;
17740 {
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 result = (wxDateTime *)new wxDateTime(arg1);
17743
17744 wxPyEndAllowThreads(__tstate);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17748 return resultobj;
17749 fail:
17750 return NULL;
17751}
17752
17753
c32bde28 17754static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17755 PyObject *resultobj;
17756 int arg1 ;
17757 int arg2 = (int) 0 ;
17758 int arg3 = (int) 0 ;
17759 int arg4 = (int) 0 ;
17760 wxDateTime *result;
17761 PyObject * obj0 = 0 ;
17762 PyObject * obj1 = 0 ;
17763 PyObject * obj2 = 0 ;
17764 PyObject * obj3 = 0 ;
17765 char *kwnames[] = {
17766 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17767 };
17768
17769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 17770 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17771 if (PyErr_Occurred()) SWIG_fail;
17772 if (obj1) {
c32bde28 17773 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 if (obj2) {
c32bde28 17777 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 if (obj3) {
c32bde28 17781 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17782 if (PyErr_Occurred()) SWIG_fail;
17783 }
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17792 return resultobj;
17793 fail:
17794 return NULL;
17795}
17796
17797
c32bde28 17798static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17799 PyObject *resultobj;
17800 int arg1 ;
17801 int arg2 = (int) wxDateTime::Inv_Month ;
17802 int arg3 = (int) wxDateTime::Inv_Year ;
17803 int arg4 = (int) 0 ;
17804 int arg5 = (int) 0 ;
17805 int arg6 = (int) 0 ;
17806 int arg7 = (int) 0 ;
17807 wxDateTime *result;
17808 PyObject * obj0 = 0 ;
17809 PyObject * obj1 = 0 ;
17810 PyObject * obj2 = 0 ;
17811 PyObject * obj3 = 0 ;
17812 PyObject * obj4 = 0 ;
17813 PyObject * obj5 = 0 ;
17814 PyObject * obj6 = 0 ;
17815 char *kwnames[] = {
17816 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17817 };
17818
17819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c32bde28 17820 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17821 if (PyErr_Occurred()) SWIG_fail;
17822 if (obj1) {
c32bde28 17823 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 if (obj2) {
c32bde28 17827 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17828 if (PyErr_Occurred()) SWIG_fail;
17829 }
17830 if (obj3) {
c32bde28 17831 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
17832 if (PyErr_Occurred()) SWIG_fail;
17833 }
17834 if (obj4) {
c32bde28 17835 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 if (obj5) {
c32bde28 17839 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 if (obj6) {
c32bde28 17843 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 {
17847 PyThreadState* __tstate = wxPyBeginAllowThreads();
17848 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17849
17850 wxPyEndAllowThreads(__tstate);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17854 return resultobj;
17855 fail:
17856 return NULL;
17857}
17858
17859
c32bde28 17860static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17861 PyObject *resultobj;
17862 wxDateTime *arg1 = (wxDateTime *) 0 ;
17863 PyObject * obj0 = 0 ;
17864 char *kwnames[] = {
17865 (char *) "self", NULL
17866 };
17867
17868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 delete arg1;
17874
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 Py_INCREF(Py_None); resultobj = Py_None;
17879 return resultobj;
17880 fail:
17881 return NULL;
17882}
17883
17884
c32bde28 17885static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17886 PyObject *resultobj;
17887 wxDateTime *arg1 = (wxDateTime *) 0 ;
17888 wxDateTime *result;
17889 PyObject * obj0 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 {
17900 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17901 result = (wxDateTime *) &_result_ref;
17902 }
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17908 return resultobj;
17909 fail:
17910 return NULL;
17911}
17912
17913
c32bde28 17914static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17915 PyObject *resultobj;
17916 wxDateTime *arg1 = (wxDateTime *) 0 ;
17917 time_t arg2 ;
17918 wxDateTime *result;
17919 PyObject * obj0 = 0 ;
17920 PyObject * obj1 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self",(char *) "timet", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17928 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
17929 if (PyErr_Occurred()) SWIG_fail;
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 {
17933 wxDateTime &_result_ref = (arg1)->Set(arg2);
17934 result = (wxDateTime *) &_result_ref;
17935 }
17936
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17941 return resultobj;
17942 fail:
17943 return NULL;
17944}
17945
17946
c32bde28 17947static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17948 PyObject *resultobj;
17949 wxDateTime *arg1 = (wxDateTime *) 0 ;
17950 double arg2 ;
17951 wxDateTime *result;
17952 PyObject * obj0 = 0 ;
17953 PyObject * obj1 = 0 ;
17954 char *kwnames[] = {
17955 (char *) "self",(char *) "jdn", NULL
17956 };
17957
17958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17961 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
17962 if (PyErr_Occurred()) SWIG_fail;
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 {
17966 wxDateTime &_result_ref = (arg1)->Set(arg2);
17967 result = (wxDateTime *) &_result_ref;
17968 }
17969
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17974 return resultobj;
17975 fail:
17976 return NULL;
17977}
17978
17979
c32bde28 17980static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17981 PyObject *resultobj;
17982 wxDateTime *arg1 = (wxDateTime *) 0 ;
17983 int arg2 ;
17984 int arg3 = (int) 0 ;
17985 int arg4 = (int) 0 ;
17986 int arg5 = (int) 0 ;
17987 wxDateTime *result;
17988 PyObject * obj0 = 0 ;
17989 PyObject * obj1 = 0 ;
17990 PyObject * obj2 = 0 ;
17991 PyObject * obj3 = 0 ;
17992 PyObject * obj4 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18000 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18001 if (PyErr_Occurred()) SWIG_fail;
18002 if (obj2) {
c32bde28 18003 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 if (obj3) {
c32bde28 18007 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 if (obj4) {
c32bde28 18011 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 {
18017 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18018 result = (wxDateTime *) &_result_ref;
18019 }
18020
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18025 return resultobj;
18026 fail:
18027 return NULL;
18028}
18029
18030
c32bde28 18031static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18032 PyObject *resultobj;
18033 wxDateTime *arg1 = (wxDateTime *) 0 ;
18034 int arg2 ;
18035 int arg3 = (int) wxDateTime::Inv_Month ;
18036 int arg4 = (int) wxDateTime::Inv_Year ;
18037 int arg5 = (int) 0 ;
18038 int arg6 = (int) 0 ;
18039 int arg7 = (int) 0 ;
18040 int arg8 = (int) 0 ;
18041 wxDateTime *result;
18042 PyObject * obj0 = 0 ;
18043 PyObject * obj1 = 0 ;
18044 PyObject * obj2 = 0 ;
18045 PyObject * obj3 = 0 ;
18046 PyObject * obj4 = 0 ;
18047 PyObject * obj5 = 0 ;
18048 PyObject * obj6 = 0 ;
18049 PyObject * obj7 = 0 ;
18050 char *kwnames[] = {
18051 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18052 };
18053
18054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18057 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18058 if (PyErr_Occurred()) SWIG_fail;
18059 if (obj2) {
c32bde28 18060 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 if (obj3) {
c32bde28 18064 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 if (obj4) {
c32bde28 18068 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 if (obj5) {
c32bde28 18072 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 if (obj6) {
c32bde28 18076 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 if (obj7) {
c32bde28 18080 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 {
18086 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18087 result = (wxDateTime *) &_result_ref;
18088 }
18089
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18094 return resultobj;
18095 fail:
18096 return NULL;
18097}
18098
18099
c32bde28 18100static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18101 PyObject *resultobj;
18102 wxDateTime *arg1 = (wxDateTime *) 0 ;
18103 wxDateTime *result;
18104 PyObject * obj0 = 0 ;
18105 char *kwnames[] = {
18106 (char *) "self", NULL
18107 };
18108
18109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 {
18115 wxDateTime &_result_ref = (arg1)->ResetTime();
18116 result = (wxDateTime *) &_result_ref;
18117 }
18118
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18123 return resultobj;
18124 fail:
18125 return NULL;
18126}
18127
18128
c32bde28 18129static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18130 PyObject *resultobj;
18131 wxDateTime *arg1 = (wxDateTime *) 0 ;
18132 int arg2 ;
18133 wxDateTime *result;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 char *kwnames[] = {
18137 (char *) "self",(char *) "year", NULL
18138 };
18139
18140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18143 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18144 if (PyErr_Occurred()) SWIG_fail;
18145 {
18146 PyThreadState* __tstate = wxPyBeginAllowThreads();
18147 {
18148 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18149 result = (wxDateTime *) &_result_ref;
18150 }
18151
18152 wxPyEndAllowThreads(__tstate);
18153 if (PyErr_Occurred()) SWIG_fail;
18154 }
18155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18156 return resultobj;
18157 fail:
18158 return NULL;
18159}
18160
18161
c32bde28 18162static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18163 PyObject *resultobj;
18164 wxDateTime *arg1 = (wxDateTime *) 0 ;
18165 int arg2 ;
18166 wxDateTime *result;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 char *kwnames[] = {
18170 (char *) "self",(char *) "month", NULL
18171 };
18172
18173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18176 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18177 if (PyErr_Occurred()) SWIG_fail;
18178 {
18179 PyThreadState* __tstate = wxPyBeginAllowThreads();
18180 {
18181 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18182 result = (wxDateTime *) &_result_ref;
18183 }
18184
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18189 return resultobj;
18190 fail:
18191 return NULL;
18192}
18193
18194
c32bde28 18195static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18196 PyObject *resultobj;
18197 wxDateTime *arg1 = (wxDateTime *) 0 ;
18198 int arg2 ;
18199 wxDateTime *result;
18200 PyObject * obj0 = 0 ;
18201 PyObject * obj1 = 0 ;
18202 char *kwnames[] = {
18203 (char *) "self",(char *) "day", NULL
18204 };
18205
18206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18209 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18210 if (PyErr_Occurred()) SWIG_fail;
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 {
18214 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18215 result = (wxDateTime *) &_result_ref;
18216 }
18217
18218 wxPyEndAllowThreads(__tstate);
18219 if (PyErr_Occurred()) SWIG_fail;
18220 }
18221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18222 return resultobj;
18223 fail:
18224 return NULL;
18225}
18226
18227
c32bde28 18228static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18229 PyObject *resultobj;
18230 wxDateTime *arg1 = (wxDateTime *) 0 ;
18231 int arg2 ;
18232 wxDateTime *result;
18233 PyObject * obj0 = 0 ;
18234 PyObject * obj1 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "self",(char *) "hour", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18242 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18243 if (PyErr_Occurred()) SWIG_fail;
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 {
18247 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18248 result = (wxDateTime *) &_result_ref;
18249 }
18250
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18255 return resultobj;
18256 fail:
18257 return NULL;
18258}
18259
18260
c32bde28 18261static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18262 PyObject *resultobj;
18263 wxDateTime *arg1 = (wxDateTime *) 0 ;
18264 int arg2 ;
18265 wxDateTime *result;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 char *kwnames[] = {
18269 (char *) "self",(char *) "minute", NULL
18270 };
18271
18272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18275 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18276 if (PyErr_Occurred()) SWIG_fail;
18277 {
18278 PyThreadState* __tstate = wxPyBeginAllowThreads();
18279 {
18280 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18281 result = (wxDateTime *) &_result_ref;
18282 }
18283
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18288 return resultobj;
18289 fail:
18290 return NULL;
18291}
18292
18293
c32bde28 18294static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18295 PyObject *resultobj;
18296 wxDateTime *arg1 = (wxDateTime *) 0 ;
18297 int arg2 ;
18298 wxDateTime *result;
18299 PyObject * obj0 = 0 ;
18300 PyObject * obj1 = 0 ;
18301 char *kwnames[] = {
18302 (char *) "self",(char *) "second", NULL
18303 };
18304
18305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18308 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18309 if (PyErr_Occurred()) SWIG_fail;
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 {
18313 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18314 result = (wxDateTime *) &_result_ref;
18315 }
18316
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18321 return resultobj;
18322 fail:
18323 return NULL;
18324}
18325
18326
c32bde28 18327static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18328 PyObject *resultobj;
18329 wxDateTime *arg1 = (wxDateTime *) 0 ;
18330 int arg2 ;
18331 wxDateTime *result;
18332 PyObject * obj0 = 0 ;
18333 PyObject * obj1 = 0 ;
18334 char *kwnames[] = {
18335 (char *) "self",(char *) "millisecond", NULL
18336 };
18337
18338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18341 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18342 if (PyErr_Occurred()) SWIG_fail;
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 {
18346 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18347 result = (wxDateTime *) &_result_ref;
18348 }
18349
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18354 return resultobj;
18355 fail:
18356 return NULL;
18357}
18358
18359
c32bde28 18360static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18361 PyObject *resultobj;
18362 wxDateTime *arg1 = (wxDateTime *) 0 ;
18363 int arg2 ;
18364 int arg3 = (int) wxDateTime::Monday_First ;
18365 wxDateTime *result;
18366 PyObject * obj0 = 0 ;
18367 PyObject * obj1 = 0 ;
18368 PyObject * obj2 = 0 ;
18369 char *kwnames[] = {
18370 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18371 };
18372
18373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18376 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18377 if (PyErr_Occurred()) SWIG_fail;
18378 if (obj2) {
c32bde28 18379 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 {
18385 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18386 result = (wxDateTime *) &_result_ref;
18387 }
18388
18389 wxPyEndAllowThreads(__tstate);
18390 if (PyErr_Occurred()) SWIG_fail;
18391 }
18392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18393 return resultobj;
18394 fail:
18395 return NULL;
18396}
18397
18398
c32bde28 18399static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18400 PyObject *resultobj;
18401 wxDateTime *arg1 = (wxDateTime *) 0 ;
18402 int arg2 ;
18403 int arg3 = (int) wxDateTime::Monday_First ;
18404 wxDateTime result;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 PyObject * obj2 = 0 ;
18408 char *kwnames[] = {
18409 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18410 };
18411
18412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18415 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18416 if (PyErr_Occurred()) SWIG_fail;
18417 if (obj2) {
c32bde28 18418 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18424
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 {
18429 wxDateTime * resultptr;
18430 resultptr = new wxDateTime((wxDateTime &) result);
18431 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18432 }
18433 return resultobj;
18434 fail:
18435 return NULL;
18436}
18437
18438
c32bde28 18439static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18440 PyObject *resultobj;
18441 wxDateTime *arg1 = (wxDateTime *) 0 ;
18442 int arg2 ;
18443 wxDateTime *result;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 char *kwnames[] = {
18447 (char *) "self",(char *) "weekday", NULL
18448 };
18449
18450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18453 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18454 if (PyErr_Occurred()) SWIG_fail;
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 {
18458 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18459 result = (wxDateTime *) &_result_ref;
18460 }
18461
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18466 return resultobj;
18467 fail:
18468 return NULL;
18469}
18470
18471
c32bde28 18472static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18473 PyObject *resultobj;
18474 wxDateTime *arg1 = (wxDateTime *) 0 ;
18475 int arg2 ;
18476 wxDateTime result;
18477 PyObject * obj0 = 0 ;
18478 PyObject * obj1 = 0 ;
18479 char *kwnames[] = {
18480 (char *) "self",(char *) "weekday", NULL
18481 };
18482
18483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18486 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18487 if (PyErr_Occurred()) SWIG_fail;
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18491
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 {
18496 wxDateTime * resultptr;
18497 resultptr = new wxDateTime((wxDateTime &) result);
18498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18499 }
18500 return resultobj;
18501 fail:
18502 return NULL;
18503}
18504
18505
c32bde28 18506static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18507 PyObject *resultobj;
18508 wxDateTime *arg1 = (wxDateTime *) 0 ;
18509 int arg2 ;
18510 wxDateTime *result;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 char *kwnames[] = {
18514 (char *) "self",(char *) "weekday", NULL
18515 };
18516
18517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18520 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18521 if (PyErr_Occurred()) SWIG_fail;
18522 {
18523 PyThreadState* __tstate = wxPyBeginAllowThreads();
18524 {
18525 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18526 result = (wxDateTime *) &_result_ref;
18527 }
18528
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18533 return resultobj;
18534 fail:
18535 return NULL;
18536}
18537
18538
c32bde28 18539static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18540 PyObject *resultobj;
18541 wxDateTime *arg1 = (wxDateTime *) 0 ;
18542 int arg2 ;
18543 wxDateTime result;
18544 PyObject * obj0 = 0 ;
18545 PyObject * obj1 = 0 ;
18546 char *kwnames[] = {
18547 (char *) "self",(char *) "weekday", NULL
18548 };
18549
18550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18553 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18554 if (PyErr_Occurred()) SWIG_fail;
18555 {
18556 PyThreadState* __tstate = wxPyBeginAllowThreads();
18557 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18558
18559 wxPyEndAllowThreads(__tstate);
18560 if (PyErr_Occurred()) SWIG_fail;
18561 }
18562 {
18563 wxDateTime * resultptr;
18564 resultptr = new wxDateTime((wxDateTime &) result);
18565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18566 }
18567 return resultobj;
18568 fail:
18569 return NULL;
18570}
18571
18572
c32bde28 18573static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18574 PyObject *resultobj;
18575 wxDateTime *arg1 = (wxDateTime *) 0 ;
18576 int arg2 ;
18577 int arg3 = (int) 1 ;
18578 int arg4 = (int) wxDateTime::Inv_Month ;
18579 int arg5 = (int) wxDateTime::Inv_Year ;
18580 bool result;
18581 PyObject * obj0 = 0 ;
18582 PyObject * obj1 = 0 ;
18583 PyObject * obj2 = 0 ;
18584 PyObject * obj3 = 0 ;
18585 PyObject * obj4 = 0 ;
18586 char *kwnames[] = {
18587 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18588 };
18589
18590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18593 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18594 if (PyErr_Occurred()) SWIG_fail;
18595 if (obj2) {
c32bde28 18596 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 if (obj3) {
c32bde28 18600 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 if (obj4) {
c32bde28 18604 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18610
18611 wxPyEndAllowThreads(__tstate);
18612 if (PyErr_Occurred()) SWIG_fail;
18613 }
18614 {
18615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18616 }
18617 return resultobj;
18618 fail:
18619 return NULL;
18620}
18621
18622
c32bde28 18623static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18624 PyObject *resultobj;
18625 wxDateTime *arg1 = (wxDateTime *) 0 ;
18626 int arg2 ;
18627 int arg3 = (int) wxDateTime::Inv_Month ;
18628 int arg4 = (int) wxDateTime::Inv_Year ;
18629 bool result;
18630 PyObject * obj0 = 0 ;
18631 PyObject * obj1 = 0 ;
18632 PyObject * obj2 = 0 ;
18633 PyObject * obj3 = 0 ;
18634 char *kwnames[] = {
18635 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18636 };
18637
18638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18641 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18642 if (PyErr_Occurred()) SWIG_fail;
18643 if (obj2) {
c32bde28 18644 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 if (obj3) {
c32bde28 18648 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 {
18652 PyThreadState* __tstate = wxPyBeginAllowThreads();
18653 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18654
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;
18662 fail:
18663 return NULL;
18664}
18665
18666
c32bde28 18667static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18668 PyObject *resultobj;
18669 wxDateTime *arg1 = (wxDateTime *) 0 ;
18670 int arg2 ;
18671 int arg3 = (int) wxDateTime::Inv_Month ;
18672 int arg4 = (int) wxDateTime::Inv_Year ;
18673 wxDateTime result;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 PyObject * obj2 = 0 ;
18677 PyObject * obj3 = 0 ;
18678 char *kwnames[] = {
18679 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18680 };
18681
18682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18685 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18686 if (PyErr_Occurred()) SWIG_fail;
18687 if (obj2) {
c32bde28 18688 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 if (obj3) {
c32bde28 18692 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 {
18696 PyThreadState* __tstate = wxPyBeginAllowThreads();
18697 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18698
18699 wxPyEndAllowThreads(__tstate);
18700 if (PyErr_Occurred()) SWIG_fail;
18701 }
18702 {
18703 wxDateTime * resultptr;
18704 resultptr = new wxDateTime((wxDateTime &) result);
18705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18706 }
18707 return resultobj;
18708 fail:
18709 return NULL;
18710}
18711
18712
c32bde28 18713static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18714 PyObject *resultobj;
18715 wxDateTime *arg1 = (wxDateTime *) 0 ;
18716 int arg2 ;
18717 int arg3 = (int) wxDateTime::Mon ;
18718 int arg4 = (int) wxDateTime::Monday_First ;
18719 bool result;
18720 PyObject * obj0 = 0 ;
18721 PyObject * obj1 = 0 ;
18722 PyObject * obj2 = 0 ;
18723 PyObject * obj3 = 0 ;
18724 char *kwnames[] = {
18725 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18726 };
18727
18728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18731 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18732 if (PyErr_Occurred()) SWIG_fail;
18733 if (obj2) {
c32bde28 18734 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 if (obj3) {
c32bde28 18738 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 {
18742 PyThreadState* __tstate = wxPyBeginAllowThreads();
18743 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18744
18745 wxPyEndAllowThreads(__tstate);
18746 if (PyErr_Occurred()) SWIG_fail;
18747 }
18748 {
18749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18750 }
18751 return resultobj;
18752 fail:
18753 return NULL;
18754}
18755
18756
c32bde28 18757static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18758 PyObject *resultobj;
18759 wxDateTime *arg1 = (wxDateTime *) 0 ;
18760 int arg2 ;
18761 int arg3 = (int) wxDateTime::Mon ;
18762 int arg4 = (int) wxDateTime::Monday_First ;
18763 wxDateTime result;
18764 PyObject * obj0 = 0 ;
18765 PyObject * obj1 = 0 ;
18766 PyObject * obj2 = 0 ;
18767 PyObject * obj3 = 0 ;
18768 char *kwnames[] = {
18769 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18770 };
18771
18772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18775 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18776 if (PyErr_Occurred()) SWIG_fail;
18777 if (obj2) {
c32bde28 18778 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 if (obj3) {
c32bde28 18782 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 {
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18788
18789 wxPyEndAllowThreads(__tstate);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 {
18793 wxDateTime * resultptr;
18794 resultptr = new wxDateTime((wxDateTime &) result);
18795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18796 }
18797 return resultobj;
18798 fail:
18799 return NULL;
18800}
18801
18802
c32bde28 18803static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18804 PyObject *resultobj;
18805 wxDateTime *arg1 = (wxDateTime *) 0 ;
18806 int arg2 = (int) wxDateTime::Inv_Month ;
18807 int arg3 = (int) wxDateTime::Inv_Year ;
18808 wxDateTime *result;
18809 PyObject * obj0 = 0 ;
18810 PyObject * obj1 = 0 ;
18811 PyObject * obj2 = 0 ;
18812 char *kwnames[] = {
18813 (char *) "self",(char *) "month",(char *) "year", NULL
18814 };
18815
18816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18819 if (obj1) {
c32bde28 18820 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 if (obj2) {
c32bde28 18824 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 {
18830 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18831 result = (wxDateTime *) &_result_ref;
18832 }
18833
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18838 return resultobj;
18839 fail:
18840 return NULL;
18841}
18842
18843
c32bde28 18844static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18845 PyObject *resultobj;
18846 wxDateTime *arg1 = (wxDateTime *) 0 ;
18847 int arg2 = (int) wxDateTime::Inv_Month ;
18848 int arg3 = (int) wxDateTime::Inv_Year ;
18849 wxDateTime result;
18850 PyObject * obj0 = 0 ;
18851 PyObject * obj1 = 0 ;
18852 PyObject * obj2 = 0 ;
18853 char *kwnames[] = {
18854 (char *) "self",(char *) "month",(char *) "year", NULL
18855 };
18856
18857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18860 if (obj1) {
c32bde28 18861 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 if (obj2) {
c32bde28 18865 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 {
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18871
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 wxDateTime * resultptr;
18877 resultptr = new wxDateTime((wxDateTime &) result);
18878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18879 }
18880 return resultobj;
18881 fail:
18882 return NULL;
18883}
18884
18885
c32bde28 18886static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18887 PyObject *resultobj;
18888 wxDateTime *arg1 = (wxDateTime *) 0 ;
18889 int arg2 ;
18890 wxDateTime *result;
18891 PyObject * obj0 = 0 ;
18892 PyObject * obj1 = 0 ;
18893 char *kwnames[] = {
18894 (char *) "self",(char *) "yday", NULL
18895 };
18896
18897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18900 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18901 if (PyErr_Occurred()) SWIG_fail;
18902 {
18903 PyThreadState* __tstate = wxPyBeginAllowThreads();
18904 {
18905 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18906 result = (wxDateTime *) &_result_ref;
18907 }
18908
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18913 return resultobj;
18914 fail:
18915 return NULL;
18916}
18917
18918
c32bde28 18919static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18920 PyObject *resultobj;
18921 wxDateTime *arg1 = (wxDateTime *) 0 ;
18922 int arg2 ;
18923 wxDateTime result;
18924 PyObject * obj0 = 0 ;
18925 PyObject * obj1 = 0 ;
18926 char *kwnames[] = {
18927 (char *) "self",(char *) "yday", NULL
18928 };
18929
18930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18933 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18934 if (PyErr_Occurred()) SWIG_fail;
18935 {
18936 PyThreadState* __tstate = wxPyBeginAllowThreads();
18937 result = (arg1)->GetYearDay(arg2);
18938
18939 wxPyEndAllowThreads(__tstate);
18940 if (PyErr_Occurred()) SWIG_fail;
18941 }
18942 {
18943 wxDateTime * resultptr;
18944 resultptr = new wxDateTime((wxDateTime &) result);
18945 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18946 }
18947 return resultobj;
18948 fail:
18949 return NULL;
18950}
18951
18952
c32bde28 18953static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18954 PyObject *resultobj;
18955 wxDateTime *arg1 = (wxDateTime *) 0 ;
18956 double result;
18957 PyObject * obj0 = 0 ;
18958 char *kwnames[] = {
18959 (char *) "self", NULL
18960 };
18961
18962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18965 {
18966 PyThreadState* __tstate = wxPyBeginAllowThreads();
18967 result = (double)(arg1)->GetJulianDayNumber();
18968
18969 wxPyEndAllowThreads(__tstate);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
c32bde28 18972 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
18973 return resultobj;
18974 fail:
18975 return NULL;
18976}
18977
18978
c32bde28 18979static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18980 PyObject *resultobj;
18981 wxDateTime *arg1 = (wxDateTime *) 0 ;
18982 double result;
18983 PyObject * obj0 = 0 ;
18984 char *kwnames[] = {
18985 (char *) "self", NULL
18986 };
18987
18988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18991 {
18992 PyThreadState* __tstate = wxPyBeginAllowThreads();
18993 result = (double)(arg1)->GetJDN();
18994
18995 wxPyEndAllowThreads(__tstate);
18996 if (PyErr_Occurred()) SWIG_fail;
18997 }
c32bde28 18998 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
18999 return resultobj;
19000 fail:
19001 return NULL;
19002}
19003
19004
c32bde28 19005static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19006 PyObject *resultobj;
19007 wxDateTime *arg1 = (wxDateTime *) 0 ;
19008 double result;
19009 PyObject * obj0 = 0 ;
19010 char *kwnames[] = {
19011 (char *) "self", NULL
19012 };
19013
19014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19017 {
19018 PyThreadState* __tstate = wxPyBeginAllowThreads();
19019 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19020
19021 wxPyEndAllowThreads(__tstate);
19022 if (PyErr_Occurred()) SWIG_fail;
19023 }
c32bde28 19024 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19025 return resultobj;
19026 fail:
19027 return NULL;
19028}
19029
19030
c32bde28 19031static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19032 PyObject *resultobj;
19033 wxDateTime *arg1 = (wxDateTime *) 0 ;
19034 double result;
19035 PyObject * obj0 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (double)(arg1)->GetMJD();
19046
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
c32bde28 19050 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19051 return resultobj;
19052 fail:
19053 return NULL;
19054}
19055
19056
c32bde28 19057static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19058 PyObject *resultobj;
19059 wxDateTime *arg1 = (wxDateTime *) 0 ;
19060 double result;
19061 PyObject * obj0 = 0 ;
19062 char *kwnames[] = {
19063 (char *) "self", NULL
19064 };
19065
19066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19069 {
19070 PyThreadState* __tstate = wxPyBeginAllowThreads();
19071 result = (double)(arg1)->GetRataDie();
19072
19073 wxPyEndAllowThreads(__tstate);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
c32bde28 19076 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19077 return resultobj;
19078 fail:
19079 return NULL;
19080}
19081
19082
c32bde28 19083static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19084 PyObject *resultobj;
19085 wxDateTime *arg1 = (wxDateTime *) 0 ;
19086 wxDateTime::TimeZone *arg2 = 0 ;
19087 bool arg3 = (bool) False ;
19088 wxDateTime result;
19089 bool temp2 = False ;
19090 PyObject * obj0 = 0 ;
19091 PyObject * obj1 = 0 ;
19092 PyObject * obj2 = 0 ;
19093 char *kwnames[] = {
19094 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19095 };
19096
19097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19100 {
19101 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19102 temp2 = True;
19103 }
19104 if (obj2) {
c32bde28 19105 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 {
19109 PyThreadState* __tstate = wxPyBeginAllowThreads();
19110 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19111
19112 wxPyEndAllowThreads(__tstate);
19113 if (PyErr_Occurred()) SWIG_fail;
19114 }
19115 {
19116 wxDateTime * resultptr;
19117 resultptr = new wxDateTime((wxDateTime &) result);
19118 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19119 }
19120 {
19121 if (temp2) delete arg2;
19122 }
19123 return resultobj;
19124 fail:
19125 {
19126 if (temp2) delete arg2;
19127 }
19128 return NULL;
19129}
19130
19131
c32bde28 19132static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19133 PyObject *resultobj;
19134 wxDateTime *arg1 = (wxDateTime *) 0 ;
19135 wxDateTime::TimeZone *arg2 = 0 ;
19136 bool arg3 = (bool) False ;
19137 wxDateTime *result;
19138 bool temp2 = False ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 PyObject * obj2 = 0 ;
19142 char *kwnames[] = {
19143 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19144 };
19145
19146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19149 {
19150 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19151 temp2 = True;
19152 }
19153 if (obj2) {
c32bde28 19154 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 {
19158 PyThreadState* __tstate = wxPyBeginAllowThreads();
19159 {
19160 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19161 result = (wxDateTime *) &_result_ref;
19162 }
19163
19164 wxPyEndAllowThreads(__tstate);
19165 if (PyErr_Occurred()) SWIG_fail;
19166 }
19167 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19168 {
19169 if (temp2) delete arg2;
19170 }
19171 return resultobj;
19172 fail:
19173 {
19174 if (temp2) delete arg2;
19175 }
19176 return NULL;
19177}
19178
19179
c32bde28 19180static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19181 PyObject *resultobj;
19182 wxDateTime *arg1 = (wxDateTime *) 0 ;
19183 bool arg2 = (bool) False ;
19184 wxDateTime result;
19185 PyObject * obj0 = 0 ;
19186 PyObject * obj1 = 0 ;
19187 char *kwnames[] = {
19188 (char *) "self",(char *) "noDST", NULL
19189 };
19190
19191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19194 if (obj1) {
c32bde28 19195 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19196 if (PyErr_Occurred()) SWIG_fail;
19197 }
19198 {
19199 PyThreadState* __tstate = wxPyBeginAllowThreads();
19200 result = (arg1)->ToGMT(arg2);
19201
19202 wxPyEndAllowThreads(__tstate);
19203 if (PyErr_Occurred()) SWIG_fail;
19204 }
19205 {
19206 wxDateTime * resultptr;
19207 resultptr = new wxDateTime((wxDateTime &) result);
19208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19209 }
19210 return resultobj;
19211 fail:
19212 return NULL;
19213}
19214
19215
c32bde28 19216static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19217 PyObject *resultobj;
19218 wxDateTime *arg1 = (wxDateTime *) 0 ;
19219 bool arg2 = (bool) False ;
19220 wxDateTime *result;
19221 PyObject * obj0 = 0 ;
19222 PyObject * obj1 = 0 ;
19223 char *kwnames[] = {
19224 (char *) "self",(char *) "noDST", NULL
19225 };
19226
19227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19230 if (obj1) {
c32bde28 19231 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19232 if (PyErr_Occurred()) SWIG_fail;
19233 }
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 {
19237 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19238 result = (wxDateTime *) &_result_ref;
19239 }
19240
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19245 return resultobj;
19246 fail:
19247 return NULL;
19248}
19249
19250
c32bde28 19251static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19252 PyObject *resultobj;
19253 wxDateTime *arg1 = (wxDateTime *) 0 ;
19254 int arg2 = (int) wxDateTime::Country_Default ;
19255 int result;
19256 PyObject * obj0 = 0 ;
19257 PyObject * obj1 = 0 ;
19258 char *kwnames[] = {
19259 (char *) "self",(char *) "country", NULL
19260 };
19261
19262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19265 if (obj1) {
c32bde28 19266 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
19269 {
19270 PyThreadState* __tstate = wxPyBeginAllowThreads();
19271 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19272
19273 wxPyEndAllowThreads(__tstate);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 }
c32bde28 19276 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19277 return resultobj;
19278 fail:
19279 return NULL;
19280}
19281
19282
c32bde28 19283static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19284 PyObject *resultobj;
19285 wxDateTime *arg1 = (wxDateTime *) 0 ;
19286 bool result;
19287 PyObject * obj0 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 {
19296 PyThreadState* __tstate = wxPyBeginAllowThreads();
19297 result = (bool)((wxDateTime const *)arg1)->IsValid();
19298
19299 wxPyEndAllowThreads(__tstate);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 {
19303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19304 }
19305 return resultobj;
19306 fail:
19307 return NULL;
19308}
19309
19310
c32bde28 19311static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19312 PyObject *resultobj;
19313 wxDateTime *arg1 = (wxDateTime *) 0 ;
19314 time_t result;
19315 PyObject * obj0 = 0 ;
19316 char *kwnames[] = {
19317 (char *) "self", NULL
19318 };
19319
19320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19323 {
19324 PyThreadState* __tstate = wxPyBeginAllowThreads();
19325 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19326
19327 wxPyEndAllowThreads(__tstate);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
c32bde28 19330 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
19331 return resultobj;
19332 fail:
19333 return NULL;
19334}
19335
19336
c32bde28 19337static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19338 PyObject *resultobj;
19339 wxDateTime *arg1 = (wxDateTime *) 0 ;
19340 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19341 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19342 int result;
19343 bool temp2 = False ;
19344 PyObject * obj0 = 0 ;
19345 PyObject * obj1 = 0 ;
19346 char *kwnames[] = {
19347 (char *) "self",(char *) "tz", NULL
19348 };
19349
19350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19353 if (obj1) {
19354 {
19355 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19356 temp2 = True;
19357 }
19358 }
19359 {
19360 PyThreadState* __tstate = wxPyBeginAllowThreads();
19361 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19362
19363 wxPyEndAllowThreads(__tstate);
19364 if (PyErr_Occurred()) SWIG_fail;
19365 }
c32bde28 19366 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19367 {
19368 if (temp2) delete arg2;
19369 }
19370 return resultobj;
19371 fail:
19372 {
19373 if (temp2) delete arg2;
19374 }
19375 return NULL;
19376}
19377
19378
c32bde28 19379static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19380 PyObject *resultobj;
19381 wxDateTime *arg1 = (wxDateTime *) 0 ;
19382 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19383 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19384 int result;
19385 bool temp2 = False ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 char *kwnames[] = {
19389 (char *) "self",(char *) "tz", NULL
19390 };
19391
19392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19395 if (obj1) {
19396 {
19397 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19398 temp2 = True;
19399 }
19400 }
19401 {
19402 PyThreadState* __tstate = wxPyBeginAllowThreads();
19403 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19404
19405 wxPyEndAllowThreads(__tstate);
19406 if (PyErr_Occurred()) SWIG_fail;
19407 }
c32bde28 19408 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19409 {
19410 if (temp2) delete arg2;
19411 }
19412 return resultobj;
19413 fail:
19414 {
19415 if (temp2) delete arg2;
19416 }
19417 return NULL;
19418}
19419
19420
c32bde28 19421static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19422 PyObject *resultobj;
19423 wxDateTime *arg1 = (wxDateTime *) 0 ;
19424 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19425 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19426 int result;
19427 bool temp2 = False ;
19428 PyObject * obj0 = 0 ;
19429 PyObject * obj1 = 0 ;
19430 char *kwnames[] = {
19431 (char *) "self",(char *) "tz", NULL
19432 };
19433
19434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19437 if (obj1) {
19438 {
19439 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19440 temp2 = True;
19441 }
19442 }
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19446
19447 wxPyEndAllowThreads(__tstate);
19448 if (PyErr_Occurred()) SWIG_fail;
19449 }
c32bde28 19450 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19451 {
19452 if (temp2) delete arg2;
19453 }
19454 return resultobj;
19455 fail:
19456 {
19457 if (temp2) delete arg2;
19458 }
19459 return NULL;
19460}
19461
19462
c32bde28 19463static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19464 PyObject *resultobj;
19465 wxDateTime *arg1 = (wxDateTime *) 0 ;
19466 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19467 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19468 int result;
19469 bool temp2 = False ;
19470 PyObject * obj0 = 0 ;
19471 PyObject * obj1 = 0 ;
19472 char *kwnames[] = {
19473 (char *) "self",(char *) "tz", NULL
19474 };
19475
19476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19479 if (obj1) {
19480 {
19481 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19482 temp2 = True;
19483 }
19484 }
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19488
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
c32bde28 19492 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19493 {
19494 if (temp2) delete arg2;
19495 }
19496 return resultobj;
19497 fail:
19498 {
19499 if (temp2) delete arg2;
19500 }
19501 return NULL;
19502}
19503
19504
c32bde28 19505static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19506 PyObject *resultobj;
19507 wxDateTime *arg1 = (wxDateTime *) 0 ;
19508 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19509 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19510 int result;
19511 bool temp2 = False ;
19512 PyObject * obj0 = 0 ;
19513 PyObject * obj1 = 0 ;
19514 char *kwnames[] = {
19515 (char *) "self",(char *) "tz", NULL
19516 };
19517
19518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19521 if (obj1) {
19522 {
19523 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19524 temp2 = True;
19525 }
19526 }
19527 {
19528 PyThreadState* __tstate = wxPyBeginAllowThreads();
19529 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19530
19531 wxPyEndAllowThreads(__tstate);
19532 if (PyErr_Occurred()) SWIG_fail;
19533 }
c32bde28 19534 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19535 {
19536 if (temp2) delete arg2;
19537 }
19538 return resultobj;
19539 fail:
19540 {
19541 if (temp2) delete arg2;
19542 }
19543 return NULL;
19544}
19545
19546
c32bde28 19547static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19548 PyObject *resultobj;
19549 wxDateTime *arg1 = (wxDateTime *) 0 ;
19550 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19551 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19552 int result;
19553 bool temp2 = False ;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 char *kwnames[] = {
19557 (char *) "self",(char *) "tz", NULL
19558 };
19559
19560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19563 if (obj1) {
19564 {
19565 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19566 temp2 = True;
19567 }
19568 }
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19572
19573 wxPyEndAllowThreads(__tstate);
19574 if (PyErr_Occurred()) SWIG_fail;
19575 }
c32bde28 19576 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19577 {
19578 if (temp2) delete arg2;
19579 }
19580 return resultobj;
19581 fail:
19582 {
19583 if (temp2) delete arg2;
19584 }
19585 return NULL;
19586}
19587
19588
c32bde28 19589static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19590 PyObject *resultobj;
19591 wxDateTime *arg1 = (wxDateTime *) 0 ;
19592 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19593 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19594 int result;
19595 bool temp2 = False ;
19596 PyObject * obj0 = 0 ;
19597 PyObject * obj1 = 0 ;
19598 char *kwnames[] = {
19599 (char *) "self",(char *) "tz", NULL
19600 };
19601
19602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19605 if (obj1) {
19606 {
19607 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19608 temp2 = True;
19609 }
19610 }
19611 {
19612 PyThreadState* __tstate = wxPyBeginAllowThreads();
19613 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19614
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
c32bde28 19618 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19619 {
19620 if (temp2) delete arg2;
19621 }
19622 return resultobj;
19623 fail:
19624 {
19625 if (temp2) delete arg2;
19626 }
19627 return NULL;
19628}
19629
19630
c32bde28 19631static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19632 PyObject *resultobj;
19633 wxDateTime *arg1 = (wxDateTime *) 0 ;
19634 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19635 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19636 int result;
19637 bool temp2 = False ;
19638 PyObject * obj0 = 0 ;
19639 PyObject * obj1 = 0 ;
19640 char *kwnames[] = {
19641 (char *) "self",(char *) "tz", NULL
19642 };
19643
19644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19647 if (obj1) {
19648 {
19649 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19650 temp2 = True;
19651 }
19652 }
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19656
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
c32bde28 19660 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19661 {
19662 if (temp2) delete arg2;
19663 }
19664 return resultobj;
19665 fail:
19666 {
19667 if (temp2) delete arg2;
19668 }
19669 return NULL;
19670}
19671
19672
c32bde28 19673static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19674 PyObject *resultobj;
19675 wxDateTime *arg1 = (wxDateTime *) 0 ;
19676 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19677 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19678 int result;
19679 bool temp2 = False ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 char *kwnames[] = {
19683 (char *) "self",(char *) "tz", NULL
19684 };
19685
19686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19689 if (obj1) {
19690 {
19691 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19692 temp2 = True;
19693 }
19694 }
19695 {
19696 PyThreadState* __tstate = wxPyBeginAllowThreads();
19697 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19698
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
c32bde28 19702 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19703 {
19704 if (temp2) delete arg2;
19705 }
19706 return resultobj;
19707 fail:
19708 {
19709 if (temp2) delete arg2;
19710 }
19711 return NULL;
19712}
19713
19714
c32bde28 19715static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19716 PyObject *resultobj;
19717 wxDateTime *arg1 = (wxDateTime *) 0 ;
19718 int arg2 = (int) wxDateTime::Monday_First ;
19719 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19720 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19721 int result;
19722 bool temp3 = False ;
19723 PyObject * obj0 = 0 ;
19724 PyObject * obj1 = 0 ;
19725 PyObject * obj2 = 0 ;
19726 char *kwnames[] = {
19727 (char *) "self",(char *) "flags",(char *) "tz", NULL
19728 };
19729
19730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19733 if (obj1) {
c32bde28 19734 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19735 if (PyErr_Occurred()) SWIG_fail;
19736 }
19737 if (obj2) {
19738 {
19739 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19740 temp3 = True;
19741 }
19742 }
19743 {
19744 PyThreadState* __tstate = wxPyBeginAllowThreads();
19745 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19746
19747 wxPyEndAllowThreads(__tstate);
19748 if (PyErr_Occurred()) SWIG_fail;
19749 }
c32bde28 19750 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19751 {
19752 if (temp3) delete arg3;
19753 }
19754 return resultobj;
19755 fail:
19756 {
19757 if (temp3) delete arg3;
19758 }
19759 return NULL;
19760}
19761
19762
c32bde28 19763static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19764 PyObject *resultobj;
19765 wxDateTime *arg1 = (wxDateTime *) 0 ;
19766 int arg2 = (int) wxDateTime::Monday_First ;
19767 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19768 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19769 int result;
19770 bool temp3 = False ;
19771 PyObject * obj0 = 0 ;
19772 PyObject * obj1 = 0 ;
19773 PyObject * obj2 = 0 ;
19774 char *kwnames[] = {
19775 (char *) "self",(char *) "flags",(char *) "tz", NULL
19776 };
19777
19778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19781 if (obj1) {
c32bde28 19782 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 if (obj2) {
19786 {
19787 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19788 temp3 = True;
19789 }
19790 }
19791 {
19792 PyThreadState* __tstate = wxPyBeginAllowThreads();
19793 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19794
19795 wxPyEndAllowThreads(__tstate);
19796 if (PyErr_Occurred()) SWIG_fail;
19797 }
c32bde28 19798 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19799 {
19800 if (temp3) delete arg3;
19801 }
19802 return resultobj;
19803 fail:
19804 {
19805 if (temp3) delete arg3;
19806 }
19807 return NULL;
19808}
19809
19810
c32bde28 19811static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19812 PyObject *resultobj;
19813 wxDateTime *arg1 = (wxDateTime *) 0 ;
19814 int arg2 = (int) wxDateTime::Country_Default ;
19815 bool result;
19816 PyObject * obj0 = 0 ;
19817 PyObject * obj1 = 0 ;
19818 char *kwnames[] = {
19819 (char *) "self",(char *) "country", NULL
19820 };
19821
19822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19825 if (obj1) {
c32bde28 19826 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 {
19830 PyThreadState* __tstate = wxPyBeginAllowThreads();
19831 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19832
19833 wxPyEndAllowThreads(__tstate);
19834 if (PyErr_Occurred()) SWIG_fail;
19835 }
19836 {
19837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19838 }
19839 return resultobj;
19840 fail:
19841 return NULL;
19842}
19843
19844
c32bde28 19845static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19846 PyObject *resultobj;
19847 wxDateTime *arg1 = (wxDateTime *) 0 ;
19848 wxDateTime *arg2 = 0 ;
19849 bool result;
19850 PyObject * obj0 = 0 ;
19851 PyObject * obj1 = 0 ;
19852 char *kwnames[] = {
19853 (char *) "self",(char *) "datetime", NULL
19854 };
19855
19856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19860 SWIG_POINTER_EXCEPTION | 0)) == -1)
19861 SWIG_fail;
19862 if (arg2 == NULL) {
19863 PyErr_SetString(PyExc_TypeError,"null reference");
19864 SWIG_fail;
19865 }
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19869
19870 wxPyEndAllowThreads(__tstate);
19871 if (PyErr_Occurred()) SWIG_fail;
19872 }
19873 {
19874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19875 }
19876 return resultobj;
19877 fail:
19878 return NULL;
19879}
19880
19881
c32bde28 19882static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19883 PyObject *resultobj;
19884 wxDateTime *arg1 = (wxDateTime *) 0 ;
19885 wxDateTime *arg2 = 0 ;
19886 bool result;
19887 PyObject * obj0 = 0 ;
19888 PyObject * obj1 = 0 ;
19889 char *kwnames[] = {
19890 (char *) "self",(char *) "datetime", NULL
19891 };
19892
19893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19897 SWIG_POINTER_EXCEPTION | 0)) == -1)
19898 SWIG_fail;
19899 if (arg2 == NULL) {
19900 PyErr_SetString(PyExc_TypeError,"null reference");
19901 SWIG_fail;
19902 }
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19906
19907 wxPyEndAllowThreads(__tstate);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 }
19910 {
19911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19912 }
19913 return resultobj;
19914 fail:
19915 return NULL;
19916}
19917
19918
c32bde28 19919static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19920 PyObject *resultobj;
19921 wxDateTime *arg1 = (wxDateTime *) 0 ;
19922 wxDateTime *arg2 = 0 ;
19923 bool result;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self",(char *) "datetime", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1)
19935 SWIG_fail;
19936 if (arg2 == NULL) {
19937 PyErr_SetString(PyExc_TypeError,"null reference");
19938 SWIG_fail;
19939 }
19940 {
19941 PyThreadState* __tstate = wxPyBeginAllowThreads();
19942 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19943
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
19947 {
19948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19949 }
19950 return resultobj;
19951 fail:
19952 return NULL;
19953}
19954
19955
c32bde28 19956static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19957 PyObject *resultobj;
19958 wxDateTime *arg1 = (wxDateTime *) 0 ;
19959 wxDateTime *arg2 = 0 ;
19960 wxDateTime *arg3 = 0 ;
19961 bool result;
19962 PyObject * obj0 = 0 ;
19963 PyObject * obj1 = 0 ;
19964 PyObject * obj2 = 0 ;
19965 char *kwnames[] = {
19966 (char *) "self",(char *) "t1",(char *) "t2", NULL
19967 };
19968
19969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19973 SWIG_POINTER_EXCEPTION | 0)) == -1)
19974 SWIG_fail;
19975 if (arg2 == NULL) {
19976 PyErr_SetString(PyExc_TypeError,"null reference");
19977 SWIG_fail;
19978 }
19979 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19980 SWIG_POINTER_EXCEPTION | 0)) == -1)
19981 SWIG_fail;
19982 if (arg3 == NULL) {
19983 PyErr_SetString(PyExc_TypeError,"null reference");
19984 SWIG_fail;
19985 }
19986 {
19987 PyThreadState* __tstate = wxPyBeginAllowThreads();
19988 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19989
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 {
19994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19995 }
19996 return resultobj;
19997 fail:
19998 return NULL;
19999}
20000
20001
c32bde28 20002static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20003 PyObject *resultobj;
20004 wxDateTime *arg1 = (wxDateTime *) 0 ;
20005 wxDateTime *arg2 = 0 ;
20006 wxDateTime *arg3 = 0 ;
20007 bool result;
20008 PyObject * obj0 = 0 ;
20009 PyObject * obj1 = 0 ;
20010 PyObject * obj2 = 0 ;
20011 char *kwnames[] = {
20012 (char *) "self",(char *) "t1",(char *) "t2", NULL
20013 };
20014
20015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20019 SWIG_POINTER_EXCEPTION | 0)) == -1)
20020 SWIG_fail;
20021 if (arg2 == NULL) {
20022 PyErr_SetString(PyExc_TypeError,"null reference");
20023 SWIG_fail;
20024 }
20025 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20026 SWIG_POINTER_EXCEPTION | 0)) == -1)
20027 SWIG_fail;
20028 if (arg3 == NULL) {
20029 PyErr_SetString(PyExc_TypeError,"null reference");
20030 SWIG_fail;
20031 }
20032 {
20033 PyThreadState* __tstate = wxPyBeginAllowThreads();
20034 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20035
20036 wxPyEndAllowThreads(__tstate);
20037 if (PyErr_Occurred()) SWIG_fail;
20038 }
20039 {
20040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20041 }
20042 return resultobj;
20043 fail:
20044 return NULL;
20045}
20046
20047
c32bde28 20048static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20049 PyObject *resultobj;
20050 wxDateTime *arg1 = (wxDateTime *) 0 ;
20051 wxDateTime *arg2 = 0 ;
20052 bool result;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055 char *kwnames[] = {
20056 (char *) "self",(char *) "dt", NULL
20057 };
20058
20059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20063 SWIG_POINTER_EXCEPTION | 0)) == -1)
20064 SWIG_fail;
20065 if (arg2 == NULL) {
20066 PyErr_SetString(PyExc_TypeError,"null reference");
20067 SWIG_fail;
20068 }
20069 {
20070 PyThreadState* __tstate = wxPyBeginAllowThreads();
20071 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20072
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 {
20077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20078 }
20079 return resultobj;
20080 fail:
20081 return NULL;
20082}
20083
20084
c32bde28 20085static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20086 PyObject *resultobj;
20087 wxDateTime *arg1 = (wxDateTime *) 0 ;
20088 wxDateTime *arg2 = 0 ;
20089 bool result;
20090 PyObject * obj0 = 0 ;
20091 PyObject * obj1 = 0 ;
20092 char *kwnames[] = {
20093 (char *) "self",(char *) "dt", NULL
20094 };
20095
20096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20100 SWIG_POINTER_EXCEPTION | 0)) == -1)
20101 SWIG_fail;
20102 if (arg2 == NULL) {
20103 PyErr_SetString(PyExc_TypeError,"null reference");
20104 SWIG_fail;
20105 }
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20109
20110 wxPyEndAllowThreads(__tstate);
20111 if (PyErr_Occurred()) SWIG_fail;
20112 }
20113 {
20114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20115 }
20116 return resultobj;
20117 fail:
20118 return NULL;
20119}
20120
20121
c32bde28 20122static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20123 PyObject *resultobj;
20124 wxDateTime *arg1 = (wxDateTime *) 0 ;
20125 wxDateTime *arg2 = 0 ;
20126 wxTimeSpan *arg3 = 0 ;
20127 bool result;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 PyObject * obj2 = 0 ;
20131 char *kwnames[] = {
20132 (char *) "self",(char *) "dt",(char *) "ts", NULL
20133 };
20134
20135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20139 SWIG_POINTER_EXCEPTION | 0)) == -1)
20140 SWIG_fail;
20141 if (arg2 == NULL) {
20142 PyErr_SetString(PyExc_TypeError,"null reference");
20143 SWIG_fail;
20144 }
20145 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20146 SWIG_POINTER_EXCEPTION | 0)) == -1)
20147 SWIG_fail;
20148 if (arg3 == NULL) {
20149 PyErr_SetString(PyExc_TypeError,"null reference");
20150 SWIG_fail;
20151 }
20152 {
20153 PyThreadState* __tstate = wxPyBeginAllowThreads();
20154 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20155
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 {
20160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20161 }
20162 return resultobj;
20163 fail:
20164 return NULL;
20165}
20166
20167
c32bde28 20168static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20169 PyObject *resultobj;
20170 wxDateTime *arg1 = (wxDateTime *) 0 ;
20171 wxTimeSpan *arg2 = 0 ;
20172 wxDateTime *result;
20173 PyObject * obj0 = 0 ;
20174 PyObject * obj1 = 0 ;
20175 char *kwnames[] = {
20176 (char *) "self",(char *) "diff", NULL
20177 };
20178
20179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20183 SWIG_POINTER_EXCEPTION | 0)) == -1)
20184 SWIG_fail;
20185 if (arg2 == NULL) {
20186 PyErr_SetString(PyExc_TypeError,"null reference");
20187 SWIG_fail;
20188 }
20189 {
20190 PyThreadState* __tstate = wxPyBeginAllowThreads();
20191 {
20192 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20193 result = (wxDateTime *) &_result_ref;
20194 }
20195
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20200 return resultobj;
20201 fail:
20202 return NULL;
20203}
20204
20205
c32bde28 20206static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20207 PyObject *resultobj;
20208 wxDateTime *arg1 = (wxDateTime *) 0 ;
20209 wxDateSpan *arg2 = 0 ;
20210 wxDateTime *result;
20211 PyObject * obj0 = 0 ;
20212 PyObject * obj1 = 0 ;
20213 char *kwnames[] = {
20214 (char *) "self",(char *) "diff", NULL
20215 };
20216
20217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20221 SWIG_POINTER_EXCEPTION | 0)) == -1)
20222 SWIG_fail;
20223 if (arg2 == NULL) {
20224 PyErr_SetString(PyExc_TypeError,"null reference");
20225 SWIG_fail;
20226 }
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 {
20230 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20231 result = (wxDateTime *) &_result_ref;
20232 }
20233
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20238 return resultobj;
20239 fail:
20240 return NULL;
20241}
20242
20243
c32bde28 20244static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20245 PyObject *resultobj;
20246 wxDateTime *arg1 = (wxDateTime *) 0 ;
20247 wxTimeSpan *arg2 = 0 ;
20248 wxDateTime *result;
20249 PyObject * obj0 = 0 ;
20250 PyObject * obj1 = 0 ;
20251 char *kwnames[] = {
20252 (char *) "self",(char *) "diff", NULL
20253 };
20254
20255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20259 SWIG_POINTER_EXCEPTION | 0)) == -1)
20260 SWIG_fail;
20261 if (arg2 == NULL) {
20262 PyErr_SetString(PyExc_TypeError,"null reference");
20263 SWIG_fail;
20264 }
20265 {
20266 PyThreadState* __tstate = wxPyBeginAllowThreads();
20267 {
20268 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20269 result = (wxDateTime *) &_result_ref;
20270 }
20271
20272 wxPyEndAllowThreads(__tstate);
20273 if (PyErr_Occurred()) SWIG_fail;
20274 }
20275 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20276 return resultobj;
20277 fail:
20278 return NULL;
20279}
20280
20281
c32bde28 20282static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20283 PyObject *resultobj;
20284 wxDateTime *arg1 = (wxDateTime *) 0 ;
20285 wxDateSpan *arg2 = 0 ;
20286 wxDateTime *result;
20287 PyObject * obj0 = 0 ;
20288 PyObject * obj1 = 0 ;
20289 char *kwnames[] = {
20290 (char *) "self",(char *) "diff", NULL
20291 };
20292
20293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20297 SWIG_POINTER_EXCEPTION | 0)) == -1)
20298 SWIG_fail;
20299 if (arg2 == NULL) {
20300 PyErr_SetString(PyExc_TypeError,"null reference");
20301 SWIG_fail;
20302 }
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 {
20306 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20307 result = (wxDateTime *) &_result_ref;
20308 }
20309
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20314 return resultobj;
20315 fail:
20316 return NULL;
20317}
20318
20319
c32bde28 20320static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20321 PyObject *resultobj;
20322 wxDateTime *arg1 = (wxDateTime *) 0 ;
20323 wxDateTime *arg2 = 0 ;
20324 wxTimeSpan result;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char *kwnames[] = {
20328 (char *) "self",(char *) "dt", NULL
20329 };
20330
20331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20335 SWIG_POINTER_EXCEPTION | 0)) == -1)
20336 SWIG_fail;
20337 if (arg2 == NULL) {
20338 PyErr_SetString(PyExc_TypeError,"null reference");
20339 SWIG_fail;
20340 }
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20344
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 {
20349 wxTimeSpan * resultptr;
20350 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20351 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20352 }
20353 return resultobj;
20354 fail:
20355 return NULL;
20356}
20357
20358
c32bde28 20359static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20360 PyObject *resultobj;
20361 wxDateTime *arg1 = (wxDateTime *) 0 ;
20362 wxTimeSpan *arg2 = 0 ;
20363 wxDateTime *result;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366
20367 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c32bde28 20369 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20371 SWIG_POINTER_EXCEPTION | 0)) == -1)
20372 SWIG_fail;
20373 if (arg2 == NULL) {
20374 PyErr_SetString(PyExc_TypeError,"null reference");
20375 SWIG_fail;
20376 }
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 {
20380 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20381 result = (wxDateTime *) &_result_ref;
20382 }
20383
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
c32bde28 20387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20388 return resultobj;
20389 fail:
20390 return NULL;
20391}
20392
20393
c32bde28 20394static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20395 PyObject *resultobj;
20396 wxDateTime *arg1 = (wxDateTime *) 0 ;
20397 wxDateSpan *arg2 = 0 ;
20398 wxDateTime *result;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401
20402 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c32bde28 20404 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20406 SWIG_POINTER_EXCEPTION | 0)) == -1)
20407 SWIG_fail;
20408 if (arg2 == NULL) {
20409 PyErr_SetString(PyExc_TypeError,"null reference");
20410 SWIG_fail;
20411 }
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 {
20415 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20416 result = (wxDateTime *) &_result_ref;
20417 }
20418
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
c32bde28 20422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20423 return resultobj;
20424 fail:
20425 return NULL;
20426}
20427
20428
20429static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20430 int argc;
20431 PyObject *argv[3];
20432 int ii;
20433
20434 argc = PyObject_Length(args);
20435 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20436 argv[ii] = PyTuple_GetItem(args,ii);
20437 }
20438 if (argc == 2) {
20439 int _v;
20440 {
20441 void *ptr;
20442 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20443 _v = 0;
20444 PyErr_Clear();
20445 } else {
20446 _v = 1;
20447 }
20448 }
20449 if (_v) {
20450 {
20451 void *ptr;
20452 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20453 _v = 0;
20454 PyErr_Clear();
20455 } else {
20456 _v = 1;
20457 }
20458 }
20459 if (_v) {
20460 return _wrap_DateTime___iadd____SWIG_0(self,args);
20461 }
20462 }
20463 }
20464 if (argc == 2) {
20465 int _v;
20466 {
20467 void *ptr;
20468 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20469 _v = 0;
20470 PyErr_Clear();
20471 } else {
20472 _v = 1;
20473 }
20474 }
20475 if (_v) {
20476 {
20477 void *ptr;
20478 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20479 _v = 0;
20480 PyErr_Clear();
20481 } else {
20482 _v = 1;
20483 }
20484 }
20485 if (_v) {
20486 return _wrap_DateTime___iadd____SWIG_1(self,args);
20487 }
20488 }
20489 }
20490
20491 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20492 return NULL;
20493}
20494
20495
c32bde28 20496static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20497 PyObject *resultobj;
20498 wxDateTime *arg1 = (wxDateTime *) 0 ;
20499 wxTimeSpan *arg2 = 0 ;
20500 wxDateTime *result;
20501 PyObject * obj0 = 0 ;
20502 PyObject * obj1 = 0 ;
20503
20504 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c32bde28 20506 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20508 SWIG_POINTER_EXCEPTION | 0)) == -1)
20509 SWIG_fail;
20510 if (arg2 == NULL) {
20511 PyErr_SetString(PyExc_TypeError,"null reference");
20512 SWIG_fail;
20513 }
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 {
20517 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20518 result = (wxDateTime *) &_result_ref;
20519 }
20520
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
c32bde28 20524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20525 return resultobj;
20526 fail:
20527 return NULL;
20528}
20529
20530
c32bde28 20531static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20532 PyObject *resultobj;
20533 wxDateTime *arg1 = (wxDateTime *) 0 ;
20534 wxDateSpan *arg2 = 0 ;
20535 wxDateTime *result;
20536 PyObject * obj0 = 0 ;
20537 PyObject * obj1 = 0 ;
20538
20539 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c32bde28 20541 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20543 SWIG_POINTER_EXCEPTION | 0)) == -1)
20544 SWIG_fail;
20545 if (arg2 == NULL) {
20546 PyErr_SetString(PyExc_TypeError,"null reference");
20547 SWIG_fail;
20548 }
20549 {
20550 PyThreadState* __tstate = wxPyBeginAllowThreads();
20551 {
20552 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20553 result = (wxDateTime *) &_result_ref;
20554 }
20555
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
c32bde28 20559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20560 return resultobj;
20561 fail:
20562 return NULL;
20563}
20564
20565
20566static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20567 int argc;
20568 PyObject *argv[3];
20569 int ii;
20570
20571 argc = PyObject_Length(args);
20572 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20573 argv[ii] = PyTuple_GetItem(args,ii);
20574 }
20575 if (argc == 2) {
20576 int _v;
20577 {
20578 void *ptr;
20579 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20580 _v = 0;
20581 PyErr_Clear();
20582 } else {
20583 _v = 1;
20584 }
20585 }
20586 if (_v) {
20587 {
20588 void *ptr;
20589 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20590 _v = 0;
20591 PyErr_Clear();
20592 } else {
20593 _v = 1;
20594 }
20595 }
20596 if (_v) {
20597 return _wrap_DateTime___isub____SWIG_0(self,args);
20598 }
20599 }
20600 }
20601 if (argc == 2) {
20602 int _v;
20603 {
20604 void *ptr;
20605 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20606 _v = 0;
20607 PyErr_Clear();
20608 } else {
20609 _v = 1;
20610 }
20611 }
20612 if (_v) {
20613 {
20614 void *ptr;
20615 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20616 _v = 0;
20617 PyErr_Clear();
20618 } else {
20619 _v = 1;
20620 }
20621 }
20622 if (_v) {
20623 return _wrap_DateTime___isub____SWIG_1(self,args);
20624 }
20625 }
20626 }
20627
20628 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20629 return NULL;
20630}
20631
20632
c32bde28 20633static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20634 PyObject *resultobj;
20635 wxDateTime *arg1 = (wxDateTime *) 0 ;
20636 wxTimeSpan *arg2 = 0 ;
20637 wxDateTime result;
20638 PyObject * obj0 = 0 ;
20639 PyObject * obj1 = 0 ;
20640
20641 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20645 SWIG_POINTER_EXCEPTION | 0)) == -1)
20646 SWIG_fail;
20647 if (arg2 == NULL) {
20648 PyErr_SetString(PyExc_TypeError,"null reference");
20649 SWIG_fail;
20650 }
20651 {
20652 PyThreadState* __tstate = wxPyBeginAllowThreads();
20653 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20654
20655 wxPyEndAllowThreads(__tstate);
20656 if (PyErr_Occurred()) SWIG_fail;
20657 }
20658 {
20659 wxDateTime * resultptr;
20660 resultptr = new wxDateTime((wxDateTime &) result);
20661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20662 }
20663 return resultobj;
20664 fail:
20665 return NULL;
20666}
20667
20668
c32bde28 20669static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20670 PyObject *resultobj;
20671 wxDateTime *arg1 = (wxDateTime *) 0 ;
20672 wxDateSpan *arg2 = 0 ;
20673 wxDateTime result;
20674 PyObject * obj0 = 0 ;
20675 PyObject * obj1 = 0 ;
20676
20677 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20680 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20681 SWIG_POINTER_EXCEPTION | 0)) == -1)
20682 SWIG_fail;
20683 if (arg2 == NULL) {
20684 PyErr_SetString(PyExc_TypeError,"null reference");
20685 SWIG_fail;
20686 }
20687 {
20688 PyThreadState* __tstate = wxPyBeginAllowThreads();
20689 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20690
20691 wxPyEndAllowThreads(__tstate);
20692 if (PyErr_Occurred()) SWIG_fail;
20693 }
20694 {
20695 wxDateTime * resultptr;
20696 resultptr = new wxDateTime((wxDateTime &) result);
20697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20698 }
20699 return resultobj;
20700 fail:
20701 return NULL;
20702}
20703
20704
20705static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20706 int argc;
20707 PyObject *argv[3];
20708 int ii;
20709
20710 argc = PyObject_Length(args);
20711 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20712 argv[ii] = PyTuple_GetItem(args,ii);
20713 }
20714 if (argc == 2) {
20715 int _v;
20716 {
20717 void *ptr;
20718 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20719 _v = 0;
20720 PyErr_Clear();
20721 } else {
20722 _v = 1;
20723 }
20724 }
20725 if (_v) {
20726 {
20727 void *ptr;
20728 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20729 _v = 0;
20730 PyErr_Clear();
20731 } else {
20732 _v = 1;
20733 }
20734 }
20735 if (_v) {
20736 return _wrap_DateTime___add____SWIG_0(self,args);
20737 }
20738 }
20739 }
20740 if (argc == 2) {
20741 int _v;
20742 {
20743 void *ptr;
20744 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20745 _v = 0;
20746 PyErr_Clear();
20747 } else {
20748 _v = 1;
20749 }
20750 }
20751 if (_v) {
20752 {
20753 void *ptr;
20754 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20755 _v = 0;
20756 PyErr_Clear();
20757 } else {
20758 _v = 1;
20759 }
20760 }
20761 if (_v) {
20762 return _wrap_DateTime___add____SWIG_1(self,args);
20763 }
20764 }
20765 }
20766
20767 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20768 return NULL;
20769}
20770
20771
c32bde28 20772static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20773 PyObject *resultobj;
20774 wxDateTime *arg1 = (wxDateTime *) 0 ;
20775 wxDateTime *arg2 = 0 ;
20776 wxTimeSpan result;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779
20780 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20784 SWIG_POINTER_EXCEPTION | 0)) == -1)
20785 SWIG_fail;
20786 if (arg2 == NULL) {
20787 PyErr_SetString(PyExc_TypeError,"null reference");
20788 SWIG_fail;
20789 }
20790 {
20791 PyThreadState* __tstate = wxPyBeginAllowThreads();
20792 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20793
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 {
20798 wxTimeSpan * resultptr;
20799 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20801 }
20802 return resultobj;
20803 fail:
20804 return NULL;
20805}
20806
20807
c32bde28 20808static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20809 PyObject *resultobj;
20810 wxDateTime *arg1 = (wxDateTime *) 0 ;
20811 wxTimeSpan *arg2 = 0 ;
20812 wxDateTime result;
20813 PyObject * obj0 = 0 ;
20814 PyObject * obj1 = 0 ;
20815
20816 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20820 SWIG_POINTER_EXCEPTION | 0)) == -1)
20821 SWIG_fail;
20822 if (arg2 == NULL) {
20823 PyErr_SetString(PyExc_TypeError,"null reference");
20824 SWIG_fail;
20825 }
20826 {
20827 PyThreadState* __tstate = wxPyBeginAllowThreads();
20828 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20829
20830 wxPyEndAllowThreads(__tstate);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 {
20834 wxDateTime * resultptr;
20835 resultptr = new wxDateTime((wxDateTime &) result);
20836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20837 }
20838 return resultobj;
20839 fail:
20840 return NULL;
20841}
20842
20843
c32bde28 20844static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
20845 PyObject *resultobj;
20846 wxDateTime *arg1 = (wxDateTime *) 0 ;
20847 wxDateSpan *arg2 = 0 ;
20848 wxDateTime result;
20849 PyObject * obj0 = 0 ;
20850 PyObject * obj1 = 0 ;
20851
20852 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20856 SWIG_POINTER_EXCEPTION | 0)) == -1)
20857 SWIG_fail;
20858 if (arg2 == NULL) {
20859 PyErr_SetString(PyExc_TypeError,"null reference");
20860 SWIG_fail;
20861 }
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20865
20866 wxPyEndAllowThreads(__tstate);
20867 if (PyErr_Occurred()) SWIG_fail;
20868 }
20869 {
20870 wxDateTime * resultptr;
20871 resultptr = new wxDateTime((wxDateTime &) result);
20872 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20873 }
20874 return resultobj;
20875 fail:
20876 return NULL;
20877}
20878
20879
20880static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20881 int argc;
20882 PyObject *argv[3];
20883 int ii;
20884
20885 argc = PyObject_Length(args);
20886 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20887 argv[ii] = PyTuple_GetItem(args,ii);
20888 }
20889 if (argc == 2) {
20890 int _v;
20891 {
20892 void *ptr;
20893 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20894 _v = 0;
20895 PyErr_Clear();
20896 } else {
20897 _v = 1;
20898 }
20899 }
20900 if (_v) {
20901 {
20902 void *ptr;
20903 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20904 _v = 0;
20905 PyErr_Clear();
20906 } else {
20907 _v = 1;
20908 }
20909 }
20910 if (_v) {
20911 return _wrap_DateTime___sub____SWIG_0(self,args);
20912 }
20913 }
20914 }
20915 if (argc == 2) {
20916 int _v;
20917 {
20918 void *ptr;
20919 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20920 _v = 0;
20921 PyErr_Clear();
20922 } else {
20923 _v = 1;
20924 }
20925 }
20926 if (_v) {
20927 {
20928 void *ptr;
20929 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20930 _v = 0;
20931 PyErr_Clear();
20932 } else {
20933 _v = 1;
20934 }
20935 }
20936 if (_v) {
20937 return _wrap_DateTime___sub____SWIG_1(self,args);
20938 }
20939 }
20940 }
20941 if (argc == 2) {
20942 int _v;
20943 {
20944 void *ptr;
20945 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20946 _v = 0;
20947 PyErr_Clear();
20948 } else {
20949 _v = 1;
20950 }
20951 }
20952 if (_v) {
20953 {
20954 void *ptr;
20955 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20956 _v = 0;
20957 PyErr_Clear();
20958 } else {
20959 _v = 1;
20960 }
20961 }
20962 if (_v) {
20963 return _wrap_DateTime___sub____SWIG_2(self,args);
20964 }
20965 }
20966 }
20967
20968 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20969 return NULL;
20970}
20971
20972
c32bde28 20973static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
d55e5bfc
RD
20974 PyObject *resultobj;
20975 wxDateTime *arg1 = (wxDateTime *) 0 ;
20976 wxDateTime *arg2 = (wxDateTime *) 0 ;
20977 bool result;
20978 PyObject * obj0 = 0 ;
20979 PyObject * obj1 = 0 ;
20980
20981 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20986 {
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20989
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 {
20994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20995 }
20996 return resultobj;
20997 fail:
20998 return NULL;
20999}
21000
21001
c32bde28 21002static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
d55e5bfc
RD
21003 PyObject *resultobj;
21004 wxDateTime *arg1 = (wxDateTime *) 0 ;
21005 wxDateTime *arg2 = (wxDateTime *) 0 ;
21006 bool result;
21007 PyObject * obj0 = 0 ;
21008 PyObject * obj1 = 0 ;
21009
21010 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21018
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 return resultobj;
21026 fail:
21027 return NULL;
21028}
21029
21030
c32bde28 21031static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
d55e5bfc
RD
21032 PyObject *resultobj;
21033 wxDateTime *arg1 = (wxDateTime *) 0 ;
21034 wxDateTime *arg2 = (wxDateTime *) 0 ;
21035 bool result;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038
21039 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21044 {
21045 PyThreadState* __tstate = wxPyBeginAllowThreads();
21046 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21047
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 {
21052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21053 }
21054 return resultobj;
21055 fail:
21056 return NULL;
21057}
21058
21059
c32bde28 21060static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
d55e5bfc
RD
21061 PyObject *resultobj;
21062 wxDateTime *arg1 = (wxDateTime *) 0 ;
21063 wxDateTime *arg2 = (wxDateTime *) 0 ;
21064 bool result;
21065 PyObject * obj0 = 0 ;
21066 PyObject * obj1 = 0 ;
21067
21068 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21073 {
21074 PyThreadState* __tstate = wxPyBeginAllowThreads();
21075 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21076
21077 wxPyEndAllowThreads(__tstate);
21078 if (PyErr_Occurred()) SWIG_fail;
21079 }
21080 {
21081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21082 }
21083 return resultobj;
21084 fail:
21085 return NULL;
21086}
21087
21088
c32bde28 21089static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
d55e5bfc
RD
21090 PyObject *resultobj;
21091 wxDateTime *arg1 = (wxDateTime *) 0 ;
21092 wxDateTime *arg2 = (wxDateTime *) 0 ;
21093 bool result;
21094 PyObject * obj0 = 0 ;
21095 PyObject * obj1 = 0 ;
21096
21097 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21105
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 {
21110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21111 }
21112 return resultobj;
21113 fail:
21114 return NULL;
21115}
21116
21117
c32bde28 21118static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
d55e5bfc
RD
21119 PyObject *resultobj;
21120 wxDateTime *arg1 = (wxDateTime *) 0 ;
21121 wxDateTime *arg2 = (wxDateTime *) 0 ;
21122 bool result;
21123 PyObject * obj0 = 0 ;
21124 PyObject * obj1 = 0 ;
21125
21126 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21134
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 {
21139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21140 }
21141 return resultobj;
21142 fail:
21143 return NULL;
21144}
21145
21146
c32bde28 21147static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21148 PyObject *resultobj;
21149 wxDateTime *arg1 = (wxDateTime *) 0 ;
21150 wxString *arg2 = 0 ;
21151 int result;
21152 bool temp2 = False ;
21153 PyObject * obj0 = 0 ;
21154 PyObject * obj1 = 0 ;
21155 char *kwnames[] = {
21156 (char *) "self",(char *) "date", NULL
21157 };
21158
21159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21162 {
21163 arg2 = wxString_in_helper(obj1);
21164 if (arg2 == NULL) SWIG_fail;
21165 temp2 = True;
21166 }
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21170
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
c32bde28 21174 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21175 {
21176 if (temp2)
21177 delete arg2;
21178 }
21179 return resultobj;
21180 fail:
21181 {
21182 if (temp2)
21183 delete arg2;
21184 }
21185 return NULL;
21186}
21187
21188
c32bde28 21189static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21190 PyObject *resultobj;
21191 wxDateTime *arg1 = (wxDateTime *) 0 ;
21192 wxString *arg2 = 0 ;
21193 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21194 wxString *arg3 = (wxString *) &arg3_defvalue ;
21195 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21196 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21197 int result;
21198 bool temp2 = False ;
21199 bool temp3 = False ;
21200 PyObject * obj0 = 0 ;
21201 PyObject * obj1 = 0 ;
21202 PyObject * obj2 = 0 ;
21203 PyObject * obj3 = 0 ;
21204 char *kwnames[] = {
21205 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21206 };
21207
21208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21211 {
21212 arg2 = wxString_in_helper(obj1);
21213 if (arg2 == NULL) SWIG_fail;
21214 temp2 = True;
21215 }
21216 if (obj2) {
21217 {
21218 arg3 = wxString_in_helper(obj2);
21219 if (arg3 == NULL) SWIG_fail;
21220 temp3 = True;
21221 }
21222 }
21223 if (obj3) {
21224 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21225 SWIG_POINTER_EXCEPTION | 0)) == -1)
21226 SWIG_fail;
21227 if (arg4 == NULL) {
21228 PyErr_SetString(PyExc_TypeError,"null reference");
21229 SWIG_fail;
21230 }
21231 }
21232 {
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21235
21236 wxPyEndAllowThreads(__tstate);
21237 if (PyErr_Occurred()) SWIG_fail;
21238 }
c32bde28 21239 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21240 {
21241 if (temp2)
21242 delete arg2;
21243 }
21244 {
21245 if (temp3)
21246 delete arg3;
21247 }
21248 return resultobj;
21249 fail:
21250 {
21251 if (temp2)
21252 delete arg2;
21253 }
21254 {
21255 if (temp3)
21256 delete arg3;
21257 }
21258 return NULL;
21259}
21260
21261
c32bde28 21262static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21263 PyObject *resultobj;
21264 wxDateTime *arg1 = (wxDateTime *) 0 ;
21265 wxString *arg2 = 0 ;
21266 int result;
21267 bool temp2 = False ;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21270 char *kwnames[] = {
21271 (char *) "self",(char *) "datetime", NULL
21272 };
21273
21274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21277 {
21278 arg2 = wxString_in_helper(obj1);
21279 if (arg2 == NULL) SWIG_fail;
21280 temp2 = True;
21281 }
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21285
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
c32bde28 21289 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21290 {
21291 if (temp2)
21292 delete arg2;
21293 }
21294 return resultobj;
21295 fail:
21296 {
21297 if (temp2)
21298 delete arg2;
21299 }
21300 return NULL;
21301}
21302
21303
c32bde28 21304static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21305 PyObject *resultobj;
21306 wxDateTime *arg1 = (wxDateTime *) 0 ;
21307 wxString *arg2 = 0 ;
21308 int result;
21309 bool temp2 = False ;
21310 PyObject * obj0 = 0 ;
21311 PyObject * obj1 = 0 ;
21312 char *kwnames[] = {
21313 (char *) "self",(char *) "date", NULL
21314 };
21315
21316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21319 {
21320 arg2 = wxString_in_helper(obj1);
21321 if (arg2 == NULL) SWIG_fail;
21322 temp2 = True;
21323 }
21324 {
21325 PyThreadState* __tstate = wxPyBeginAllowThreads();
21326 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21327
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
c32bde28 21331 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21332 {
21333 if (temp2)
21334 delete arg2;
21335 }
21336 return resultobj;
21337 fail:
21338 {
21339 if (temp2)
21340 delete arg2;
21341 }
21342 return NULL;
21343}
21344
21345
c32bde28 21346static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21347 PyObject *resultobj;
21348 wxDateTime *arg1 = (wxDateTime *) 0 ;
21349 wxString *arg2 = 0 ;
21350 int result;
21351 bool temp2 = False ;
21352 PyObject * obj0 = 0 ;
21353 PyObject * obj1 = 0 ;
21354 char *kwnames[] = {
21355 (char *) "self",(char *) "time", NULL
21356 };
21357
21358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21361 {
21362 arg2 = wxString_in_helper(obj1);
21363 if (arg2 == NULL) SWIG_fail;
21364 temp2 = True;
21365 }
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21369
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
c32bde28 21373 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21374 {
21375 if (temp2)
21376 delete arg2;
21377 }
21378 return resultobj;
21379 fail:
21380 {
21381 if (temp2)
21382 delete arg2;
21383 }
21384 return NULL;
21385}
21386
21387
c32bde28 21388static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21389 PyObject *resultobj;
21390 wxDateTime *arg1 = (wxDateTime *) 0 ;
21391 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21392 wxString *arg2 = (wxString *) &arg2_defvalue ;
21393 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21394 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21395 wxString result;
21396 bool temp2 = False ;
21397 bool temp3 = False ;
21398 PyObject * obj0 = 0 ;
21399 PyObject * obj1 = 0 ;
21400 PyObject * obj2 = 0 ;
21401 char *kwnames[] = {
21402 (char *) "self",(char *) "format",(char *) "tz", NULL
21403 };
21404
21405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21408 if (obj1) {
21409 {
21410 arg2 = wxString_in_helper(obj1);
21411 if (arg2 == NULL) SWIG_fail;
21412 temp2 = True;
21413 }
21414 }
21415 if (obj2) {
21416 {
21417 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21418 temp3 = True;
21419 }
21420 }
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21424
21425 wxPyEndAllowThreads(__tstate);
21426 if (PyErr_Occurred()) SWIG_fail;
21427 }
21428 {
21429#if wxUSE_UNICODE
21430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21431#else
21432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21433#endif
21434 }
21435 {
21436 if (temp2)
21437 delete arg2;
21438 }
21439 {
21440 if (temp3) delete arg3;
21441 }
21442 return resultobj;
21443 fail:
21444 {
21445 if (temp2)
21446 delete arg2;
21447 }
21448 {
21449 if (temp3) delete arg3;
21450 }
21451 return NULL;
21452}
21453
21454
c32bde28 21455static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21456 PyObject *resultobj;
21457 wxDateTime *arg1 = (wxDateTime *) 0 ;
21458 wxString result;
21459 PyObject * obj0 = 0 ;
21460 char *kwnames[] = {
21461 (char *) "self", NULL
21462 };
21463
21464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = ((wxDateTime const *)arg1)->FormatDate();
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 {
21475#if wxUSE_UNICODE
21476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21477#else
21478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21479#endif
21480 }
21481 return resultobj;
21482 fail:
21483 return NULL;
21484}
21485
21486
c32bde28 21487static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21488 PyObject *resultobj;
21489 wxDateTime *arg1 = (wxDateTime *) 0 ;
21490 wxString result;
21491 PyObject * obj0 = 0 ;
21492 char *kwnames[] = {
21493 (char *) "self", NULL
21494 };
21495
21496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21499 {
21500 PyThreadState* __tstate = wxPyBeginAllowThreads();
21501 result = ((wxDateTime const *)arg1)->FormatTime();
21502
21503 wxPyEndAllowThreads(__tstate);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 {
21507#if wxUSE_UNICODE
21508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21509#else
21510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21511#endif
21512 }
21513 return resultobj;
21514 fail:
21515 return NULL;
21516}
21517
21518
c32bde28 21519static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21520 PyObject *resultobj;
21521 wxDateTime *arg1 = (wxDateTime *) 0 ;
21522 wxString result;
21523 PyObject * obj0 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21531 {
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 result = ((wxDateTime const *)arg1)->FormatISODate();
21534
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 {
21539#if wxUSE_UNICODE
21540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21541#else
21542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21543#endif
21544 }
21545 return resultobj;
21546 fail:
21547 return NULL;
21548}
21549
21550
c32bde28 21551static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21552 PyObject *resultobj;
21553 wxDateTime *arg1 = (wxDateTime *) 0 ;
21554 wxString result;
21555 PyObject * obj0 = 0 ;
21556 char *kwnames[] = {
21557 (char *) "self", NULL
21558 };
21559
21560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21563 {
21564 PyThreadState* __tstate = wxPyBeginAllowThreads();
21565 result = ((wxDateTime const *)arg1)->FormatISOTime();
21566
21567 wxPyEndAllowThreads(__tstate);
21568 if (PyErr_Occurred()) SWIG_fail;
21569 }
21570 {
21571#if wxUSE_UNICODE
21572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21573#else
21574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21575#endif
21576 }
21577 return resultobj;
21578 fail:
21579 return NULL;
21580}
21581
21582
c32bde28 21583static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21584 PyObject *obj;
21585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21586 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21587 Py_INCREF(obj);
21588 return Py_BuildValue((char *)"");
21589}
c32bde28 21590static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21591 PyObject *resultobj;
21592 long arg1 ;
21593 wxTimeSpan result;
21594 PyObject * obj0 = 0 ;
21595 char *kwnames[] = {
21596 (char *) "sec", NULL
21597 };
21598
21599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
c32bde28 21600 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21601 if (PyErr_Occurred()) SWIG_fail;
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = wxTimeSpan::Seconds(arg1);
21605
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 {
21610 wxTimeSpan * resultptr;
21611 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21612 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21613 }
21614 return resultobj;
21615 fail:
21616 return NULL;
21617}
21618
21619
c32bde28 21620static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21621 PyObject *resultobj;
21622 wxTimeSpan result;
21623 char *kwnames[] = {
21624 NULL
21625 };
21626
21627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 result = wxTimeSpan::Second();
21631
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 {
21636 wxTimeSpan * resultptr;
21637 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21639 }
21640 return resultobj;
21641 fail:
21642 return NULL;
21643}
21644
21645
c32bde28 21646static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21647 PyObject *resultobj;
21648 long arg1 ;
21649 wxTimeSpan result;
21650 PyObject * obj0 = 0 ;
21651 char *kwnames[] = {
21652 (char *) "min", NULL
21653 };
21654
21655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
c32bde28 21656 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21657 if (PyErr_Occurred()) SWIG_fail;
21658 {
21659 PyThreadState* __tstate = wxPyBeginAllowThreads();
21660 result = wxTimeSpan::Minutes(arg1);
21661
21662 wxPyEndAllowThreads(__tstate);
21663 if (PyErr_Occurred()) SWIG_fail;
21664 }
21665 {
21666 wxTimeSpan * resultptr;
21667 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21669 }
21670 return resultobj;
21671 fail:
21672 return NULL;
21673}
21674
21675
c32bde28 21676static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21677 PyObject *resultobj;
21678 wxTimeSpan result;
21679 char *kwnames[] = {
21680 NULL
21681 };
21682
21683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21684 {
21685 PyThreadState* __tstate = wxPyBeginAllowThreads();
21686 result = wxTimeSpan::Minute();
21687
21688 wxPyEndAllowThreads(__tstate);
21689 if (PyErr_Occurred()) SWIG_fail;
21690 }
21691 {
21692 wxTimeSpan * resultptr;
21693 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21694 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21695 }
21696 return resultobj;
21697 fail:
21698 return NULL;
21699}
21700
21701
c32bde28 21702static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21703 PyObject *resultobj;
21704 long arg1 ;
21705 wxTimeSpan result;
21706 PyObject * obj0 = 0 ;
21707 char *kwnames[] = {
21708 (char *) "hours", NULL
21709 };
21710
21711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
c32bde28 21712 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21713 if (PyErr_Occurred()) SWIG_fail;
21714 {
21715 PyThreadState* __tstate = wxPyBeginAllowThreads();
21716 result = wxTimeSpan::Hours(arg1);
21717
21718 wxPyEndAllowThreads(__tstate);
21719 if (PyErr_Occurred()) SWIG_fail;
21720 }
21721 {
21722 wxTimeSpan * resultptr;
21723 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729}
21730
21731
c32bde28 21732static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21733 PyObject *resultobj;
21734 wxTimeSpan result;
21735 char *kwnames[] = {
21736 NULL
21737 };
21738
21739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21740 {
21741 PyThreadState* __tstate = wxPyBeginAllowThreads();
21742 result = wxTimeSpan::Hour();
21743
21744 wxPyEndAllowThreads(__tstate);
21745 if (PyErr_Occurred()) SWIG_fail;
21746 }
21747 {
21748 wxTimeSpan * resultptr;
21749 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21751 }
21752 return resultobj;
21753 fail:
21754 return NULL;
21755}
21756
21757
c32bde28 21758static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21759 PyObject *resultobj;
21760 long arg1 ;
21761 wxTimeSpan result;
21762 PyObject * obj0 = 0 ;
21763 char *kwnames[] = {
21764 (char *) "days", NULL
21765 };
21766
21767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
c32bde28 21768 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21769 if (PyErr_Occurred()) SWIG_fail;
21770 {
21771 PyThreadState* __tstate = wxPyBeginAllowThreads();
21772 result = wxTimeSpan::Days(arg1);
21773
21774 wxPyEndAllowThreads(__tstate);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 }
21777 {
21778 wxTimeSpan * resultptr;
21779 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21781 }
21782 return resultobj;
21783 fail:
21784 return NULL;
21785}
21786
21787
c32bde28 21788static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21789 PyObject *resultobj;
21790 wxTimeSpan result;
21791 char *kwnames[] = {
21792 NULL
21793 };
21794
21795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21796 {
21797 PyThreadState* __tstate = wxPyBeginAllowThreads();
21798 result = wxTimeSpan::Day();
21799
21800 wxPyEndAllowThreads(__tstate);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 }
21803 {
21804 wxTimeSpan * resultptr;
21805 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21807 }
21808 return resultobj;
21809 fail:
21810 return NULL;
21811}
21812
21813
c32bde28 21814static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21815 PyObject *resultobj;
21816 long arg1 ;
21817 wxTimeSpan result;
21818 PyObject * obj0 = 0 ;
21819 char *kwnames[] = {
21820 (char *) "days", NULL
21821 };
21822
21823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
c32bde28 21824 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21825 if (PyErr_Occurred()) SWIG_fail;
21826 {
21827 PyThreadState* __tstate = wxPyBeginAllowThreads();
21828 result = wxTimeSpan::Weeks(arg1);
21829
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 {
21834 wxTimeSpan * resultptr;
21835 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21837 }
21838 return resultobj;
21839 fail:
21840 return NULL;
21841}
21842
21843
c32bde28 21844static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21845 PyObject *resultobj;
21846 wxTimeSpan result;
21847 char *kwnames[] = {
21848 NULL
21849 };
21850
21851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = wxTimeSpan::Week();
21855
21856 wxPyEndAllowThreads(__tstate);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 }
21859 {
21860 wxTimeSpan * resultptr;
21861 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21862 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21863 }
21864 return resultobj;
21865 fail:
21866 return NULL;
21867}
21868
21869
c32bde28 21870static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21871 PyObject *resultobj;
21872 long arg1 = (long) 0 ;
21873 long arg2 = (long) 0 ;
21874 long arg3 = (long) 0 ;
21875 long arg4 = (long) 0 ;
21876 wxTimeSpan *result;
21877 PyObject * obj0 = 0 ;
21878 PyObject * obj1 = 0 ;
21879 PyObject * obj2 = 0 ;
21880 PyObject * obj3 = 0 ;
21881 char *kwnames[] = {
21882 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21883 };
21884
21885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21886 if (obj0) {
c32bde28 21887 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 if (obj1) {
c32bde28 21891 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
21892 if (PyErr_Occurred()) SWIG_fail;
21893 }
21894 if (obj2) {
c32bde28 21895 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
21896 if (PyErr_Occurred()) SWIG_fail;
21897 }
21898 if (obj3) {
c32bde28 21899 arg4 = (long)SWIG_As_long(obj3);
d55e5bfc
RD
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21905
21906 wxPyEndAllowThreads(__tstate);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21910 return resultobj;
21911 fail:
21912 return NULL;
21913}
21914
21915
c32bde28 21916static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21917 PyObject *resultobj;
21918 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21919 PyObject * obj0 = 0 ;
21920 char *kwnames[] = {
21921 (char *) "self", NULL
21922 };
21923
21924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 delete arg1;
21930
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 Py_INCREF(Py_None); resultobj = Py_None;
21935 return resultobj;
21936 fail:
21937 return NULL;
21938}
21939
21940
c32bde28 21941static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21942 PyObject *resultobj;
21943 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21944 wxTimeSpan *arg2 = 0 ;
21945 wxTimeSpan *result;
21946 PyObject * obj0 = 0 ;
21947 PyObject * obj1 = 0 ;
21948 char *kwnames[] = {
21949 (char *) "self",(char *) "diff", NULL
21950 };
21951
21952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21956 SWIG_POINTER_EXCEPTION | 0)) == -1)
21957 SWIG_fail;
21958 if (arg2 == NULL) {
21959 PyErr_SetString(PyExc_TypeError,"null reference");
21960 SWIG_fail;
21961 }
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 {
21965 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21966 result = (wxTimeSpan *) &_result_ref;
21967 }
21968
21969 wxPyEndAllowThreads(__tstate);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21973 return resultobj;
21974 fail:
21975 return NULL;
21976}
21977
21978
c32bde28 21979static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21980 PyObject *resultobj;
21981 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21982 wxTimeSpan *arg2 = 0 ;
21983 wxTimeSpan *result;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 char *kwnames[] = {
21987 (char *) "self",(char *) "diff", NULL
21988 };
21989
21990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21994 SWIG_POINTER_EXCEPTION | 0)) == -1)
21995 SWIG_fail;
21996 if (arg2 == NULL) {
21997 PyErr_SetString(PyExc_TypeError,"null reference");
21998 SWIG_fail;
21999 }
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 {
22003 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22004 result = (wxTimeSpan *) &_result_ref;
22005 }
22006
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22011 return resultobj;
22012 fail:
22013 return NULL;
22014}
22015
22016
c32bde28 22017static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22018 PyObject *resultobj;
22019 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22020 int arg2 ;
22021 wxTimeSpan *result;
22022 PyObject * obj0 = 0 ;
22023 PyObject * obj1 = 0 ;
22024 char *kwnames[] = {
22025 (char *) "self",(char *) "n", NULL
22026 };
22027
22028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22031 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22032 if (PyErr_Occurred()) SWIG_fail;
22033 {
22034 PyThreadState* __tstate = wxPyBeginAllowThreads();
22035 {
22036 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22037 result = (wxTimeSpan *) &_result_ref;
22038 }
22039
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22044 return resultobj;
22045 fail:
22046 return NULL;
22047}
22048
22049
c32bde28 22050static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22051 PyObject *resultobj;
22052 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22053 wxTimeSpan *result;
22054 PyObject * obj0 = 0 ;
22055 char *kwnames[] = {
22056 (char *) "self", NULL
22057 };
22058
22059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 {
22065 wxTimeSpan &_result_ref = (arg1)->Neg();
22066 result = (wxTimeSpan *) &_result_ref;
22067 }
22068
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22073 return resultobj;
22074 fail:
22075 return NULL;
22076}
22077
22078
c32bde28 22079static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22080 PyObject *resultobj;
22081 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22082 wxTimeSpan result;
22083 PyObject * obj0 = 0 ;
22084 char *kwnames[] = {
22085 (char *) "self", NULL
22086 };
22087
22088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = ((wxTimeSpan const *)arg1)->Abs();
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 {
22099 wxTimeSpan * resultptr;
22100 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22101 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22102 }
22103 return resultobj;
22104 fail:
22105 return NULL;
22106}
22107
22108
c32bde28 22109static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22110 PyObject *resultobj;
22111 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22112 wxTimeSpan *arg2 = 0 ;
22113 wxTimeSpan *result;
22114 PyObject * obj0 = 0 ;
22115 PyObject * obj1 = 0 ;
22116 char *kwnames[] = {
22117 (char *) "self",(char *) "diff", NULL
22118 };
22119
22120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c32bde28 22122 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
22123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22124 SWIG_POINTER_EXCEPTION | 0)) == -1)
22125 SWIG_fail;
22126 if (arg2 == NULL) {
22127 PyErr_SetString(PyExc_TypeError,"null reference");
22128 SWIG_fail;
22129 }
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 {
22133 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22134 result = (wxTimeSpan *) &_result_ref;
22135 }
22136
22137 wxPyEndAllowThreads(__tstate);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
c32bde28 22140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22141 return resultobj;
22142 fail:
22143 return NULL;
22144}
22145
22146
c32bde28 22147static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22148 PyObject *resultobj;
22149 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22150 wxTimeSpan *arg2 = 0 ;
22151 wxTimeSpan *result;
22152 PyObject * obj0 = 0 ;
22153 PyObject * obj1 = 0 ;
22154 char *kwnames[] = {
22155 (char *) "self",(char *) "diff", NULL
22156 };
22157
22158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c32bde28 22160 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
22161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22162 SWIG_POINTER_EXCEPTION | 0)) == -1)
22163 SWIG_fail;
22164 if (arg2 == NULL) {
22165 PyErr_SetString(PyExc_TypeError,"null reference");
22166 SWIG_fail;
22167 }
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 {
22171 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22172 result = (wxTimeSpan *) &_result_ref;
22173 }
22174
22175 wxPyEndAllowThreads(__tstate);
22176 if (PyErr_Occurred()) SWIG_fail;
22177 }
c32bde28 22178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22179 return resultobj;
22180 fail:
22181 return NULL;
22182}
22183
22184
c32bde28 22185static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22186 PyObject *resultobj;
22187 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22188 int arg2 ;
22189 wxTimeSpan *result;
22190 PyObject * obj0 = 0 ;
22191 PyObject * obj1 = 0 ;
22192 char *kwnames[] = {
22193 (char *) "self",(char *) "n", NULL
22194 };
22195
22196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c32bde28
RD
22198 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22199 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22200 if (PyErr_Occurred()) SWIG_fail;
22201 {
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 {
22204 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22205 result = (wxTimeSpan *) &_result_ref;
22206 }
22207
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
c32bde28 22211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22212 return resultobj;
22213 fail:
22214 return NULL;
22215}
22216
22217
c32bde28 22218static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22219 PyObject *resultobj;
22220 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22221 wxTimeSpan *result;
22222 PyObject * obj0 = 0 ;
22223 char *kwnames[] = {
22224 (char *) "self", NULL
22225 };
22226
22227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 {
22233 wxTimeSpan &_result_ref = (arg1)->operator -();
22234 result = (wxTimeSpan *) &_result_ref;
22235 }
22236
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22241 return resultobj;
22242 fail:
22243 return NULL;
22244}
22245
22246
c32bde28 22247static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22248 PyObject *resultobj;
22249 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22250 wxTimeSpan *arg2 = 0 ;
22251 wxTimeSpan result;
22252 PyObject * obj0 = 0 ;
22253 PyObject * obj1 = 0 ;
22254 char *kwnames[] = {
22255 (char *) "self",(char *) "other", NULL
22256 };
22257
22258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22262 SWIG_POINTER_EXCEPTION | 0)) == -1)
22263 SWIG_fail;
22264 if (arg2 == NULL) {
22265 PyErr_SetString(PyExc_TypeError,"null reference");
22266 SWIG_fail;
22267 }
22268 {
22269 PyThreadState* __tstate = wxPyBeginAllowThreads();
22270 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22271
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 {
22276 wxTimeSpan * resultptr;
22277 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22279 }
22280 return resultobj;
22281 fail:
22282 return NULL;
22283}
22284
22285
c32bde28 22286static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22287 PyObject *resultobj;
22288 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22289 wxTimeSpan *arg2 = 0 ;
22290 wxTimeSpan result;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 char *kwnames[] = {
22294 (char *) "self",(char *) "other", NULL
22295 };
22296
22297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22301 SWIG_POINTER_EXCEPTION | 0)) == -1)
22302 SWIG_fail;
22303 if (arg2 == NULL) {
22304 PyErr_SetString(PyExc_TypeError,"null reference");
22305 SWIG_fail;
22306 }
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22310
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 {
22315 wxTimeSpan * resultptr;
22316 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22318 }
22319 return resultobj;
22320 fail:
22321 return NULL;
22322}
22323
22324
c32bde28 22325static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22326 PyObject *resultobj;
22327 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22328 int arg2 ;
22329 wxTimeSpan result;
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "n", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22339 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22340 if (PyErr_Occurred()) SWIG_fail;
22341 {
22342 PyThreadState* __tstate = wxPyBeginAllowThreads();
22343 result = wxTimeSpan___mul__(arg1,arg2);
22344
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 {
22349 wxTimeSpan * resultptr;
22350 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22351 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22352 }
22353 return resultobj;
22354 fail:
22355 return NULL;
22356}
22357
22358
c32bde28 22359static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22360 PyObject *resultobj;
22361 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22362 int arg2 ;
22363 wxTimeSpan result;
22364 PyObject * obj0 = 0 ;
22365 PyObject * obj1 = 0 ;
22366 char *kwnames[] = {
22367 (char *) "self",(char *) "n", NULL
22368 };
22369
22370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22373 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22374 if (PyErr_Occurred()) SWIG_fail;
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = wxTimeSpan___rmul__(arg1,arg2);
22378
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 wxTimeSpan * resultptr;
22384 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22386 }
22387 return resultobj;
22388 fail:
22389 return NULL;
22390}
22391
22392
c32bde28 22393static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22394 PyObject *resultobj;
22395 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22396 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22397 bool result;
22398 PyObject * obj0 = 0 ;
22399 PyObject * obj1 = 0 ;
22400 char *kwnames[] = {
22401 (char *) "self",(char *) "other", NULL
22402 };
22403
22404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
22417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22418 }
22419 return resultobj;
22420 fail:
22421 return NULL;
22422}
22423
22424
c32bde28 22425static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22426 PyObject *resultobj;
22427 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22428 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22429 bool result;
22430 PyObject * obj0 = 0 ;
22431 PyObject * obj1 = 0 ;
22432 char *kwnames[] = {
22433 (char *) "self",(char *) "other", NULL
22434 };
22435
22436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22444
22445 wxPyEndAllowThreads(__tstate);
22446 if (PyErr_Occurred()) SWIG_fail;
22447 }
22448 {
22449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22450 }
22451 return resultobj;
22452 fail:
22453 return NULL;
22454}
22455
22456
c32bde28 22457static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22458 PyObject *resultobj;
22459 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22460 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22461 bool result;
22462 PyObject * obj0 = 0 ;
22463 PyObject * obj1 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self",(char *) "other", NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22476
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 {
22481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22482 }
22483 return resultobj;
22484 fail:
22485 return NULL;
22486}
22487
22488
c32bde28 22489static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22490 PyObject *resultobj;
22491 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22492 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22493 bool result;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 char *kwnames[] = {
22497 (char *) "self",(char *) "other", NULL
22498 };
22499
22500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22508
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 {
22513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22514 }
22515 return resultobj;
22516 fail:
22517 return NULL;
22518}
22519
22520
c32bde28 22521static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22522 PyObject *resultobj;
22523 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22524 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22525 bool result;
22526 PyObject * obj0 = 0 ;
22527 PyObject * obj1 = 0 ;
22528 char *kwnames[] = {
22529 (char *) "self",(char *) "other", NULL
22530 };
22531
22532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22540
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 {
22545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22546 }
22547 return resultobj;
22548 fail:
22549 return NULL;
22550}
22551
22552
c32bde28 22553static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22554 PyObject *resultobj;
22555 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22556 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22557 bool result;
22558 PyObject * obj0 = 0 ;
22559 PyObject * obj1 = 0 ;
22560 char *kwnames[] = {
22561 (char *) "self",(char *) "other", NULL
22562 };
22563
22564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22569 {
22570 PyThreadState* __tstate = wxPyBeginAllowThreads();
22571 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22572
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 {
22577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22578 }
22579 return resultobj;
22580 fail:
22581 return NULL;
22582}
22583
22584
c32bde28 22585static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22586 PyObject *resultobj;
22587 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22588 bool result;
22589 PyObject * obj0 = 0 ;
22590 char *kwnames[] = {
22591 (char *) "self", NULL
22592 };
22593
22594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22597 {
22598 PyThreadState* __tstate = wxPyBeginAllowThreads();
22599 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22600
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 {
22605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22606 }
22607 return resultobj;
22608 fail:
22609 return NULL;
22610}
22611
22612
c32bde28 22613static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22614 PyObject *resultobj;
22615 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22616 bool result;
22617 PyObject * obj0 = 0 ;
22618 char *kwnames[] = {
22619 (char *) "self", NULL
22620 };
22621
22622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22628
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 {
22633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22634 }
22635 return resultobj;
22636 fail:
22637 return NULL;
22638}
22639
22640
c32bde28 22641static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22642 PyObject *resultobj;
22643 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22644 bool result;
22645 PyObject * obj0 = 0 ;
22646 char *kwnames[] = {
22647 (char *) "self", NULL
22648 };
22649
22650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22656
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 {
22661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22662 }
22663 return resultobj;
22664 fail:
22665 return NULL;
22666}
22667
22668
c32bde28 22669static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22670 PyObject *resultobj;
22671 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22672 wxTimeSpan *arg2 = 0 ;
22673 bool result;
22674 PyObject * obj0 = 0 ;
22675 PyObject * obj1 = 0 ;
22676 char *kwnames[] = {
22677 (char *) "self",(char *) "ts", NULL
22678 };
22679
22680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1)
22685 SWIG_fail;
22686 if (arg2 == NULL) {
22687 PyErr_SetString(PyExc_TypeError,"null reference");
22688 SWIG_fail;
22689 }
22690 {
22691 PyThreadState* __tstate = wxPyBeginAllowThreads();
22692 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22693
22694 wxPyEndAllowThreads(__tstate);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 {
22698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22699 }
22700 return resultobj;
22701 fail:
22702 return NULL;
22703}
22704
22705
c32bde28 22706static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22707 PyObject *resultobj;
22708 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22709 wxTimeSpan *arg2 = 0 ;
22710 bool result;
22711 PyObject * obj0 = 0 ;
22712 PyObject * obj1 = 0 ;
22713 char *kwnames[] = {
22714 (char *) "self",(char *) "ts", NULL
22715 };
22716
22717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22721 SWIG_POINTER_EXCEPTION | 0)) == -1)
22722 SWIG_fail;
22723 if (arg2 == NULL) {
22724 PyErr_SetString(PyExc_TypeError,"null reference");
22725 SWIG_fail;
22726 }
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22730
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 {
22735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22736 }
22737 return resultobj;
22738 fail:
22739 return NULL;
22740}
22741
22742
c32bde28 22743static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22744 PyObject *resultobj;
22745 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22746 wxTimeSpan *arg2 = 0 ;
22747 bool result;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char *kwnames[] = {
22751 (char *) "self",(char *) "t", NULL
22752 };
22753
22754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22758 SWIG_POINTER_EXCEPTION | 0)) == -1)
22759 SWIG_fail;
22760 if (arg2 == NULL) {
22761 PyErr_SetString(PyExc_TypeError,"null reference");
22762 SWIG_fail;
22763 }
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22767
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22773 }
22774 return resultobj;
22775 fail:
22776 return NULL;
22777}
22778
22779
c32bde28 22780static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22781 PyObject *resultobj;
22782 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22783 int result;
22784 PyObject * obj0 = 0 ;
22785 char *kwnames[] = {
22786 (char *) "self", NULL
22787 };
22788
22789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22795
22796 wxPyEndAllowThreads(__tstate);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 }
c32bde28 22799 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22800 return resultobj;
22801 fail:
22802 return NULL;
22803}
22804
22805
c32bde28 22806static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22807 PyObject *resultobj;
22808 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22809 int result;
22810 PyObject * obj0 = 0 ;
22811 char *kwnames[] = {
22812 (char *) "self", NULL
22813 };
22814
22815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22818 {
22819 PyThreadState* __tstate = wxPyBeginAllowThreads();
22820 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22821
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
c32bde28 22825 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22826 return resultobj;
22827 fail:
22828 return NULL;
22829}
22830
22831
c32bde28 22832static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22833 PyObject *resultobj;
22834 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22835 int result;
22836 PyObject * obj0 = 0 ;
22837 char *kwnames[] = {
22838 (char *) "self", NULL
22839 };
22840
22841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22847
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
c32bde28 22851 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22852 return resultobj;
22853 fail:
22854 return NULL;
22855}
22856
22857
c32bde28 22858static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22859 PyObject *resultobj;
22860 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22861 int result;
22862 PyObject * obj0 = 0 ;
22863 char *kwnames[] = {
22864 (char *) "self", NULL
22865 };
22866
22867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22873
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
c32bde28 22877 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22878 return resultobj;
22879 fail:
22880 return NULL;
22881}
22882
22883
c32bde28 22884static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22885 PyObject *resultobj;
22886 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22887 wxLongLong result;
22888 PyObject * obj0 = 0 ;
22889 char *kwnames[] = {
22890 (char *) "self", NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22899
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 {
22904 PyObject *hi, *lo, *shifter, *shifted;
22905 hi = PyLong_FromLong( (&result)->GetHi() );
22906 lo = PyLong_FromLong( (&result)->GetLo() );
22907 shifter = PyLong_FromLong(32);
22908 shifted = PyNumber_Lshift(hi, shifter);
22909 resultobj = PyNumber_Or(shifted, lo);
22910 Py_DECREF(hi);
22911 Py_DECREF(lo);
22912 Py_DECREF(shifter);
22913 Py_DECREF(shifted);
22914 }
22915 return resultobj;
22916 fail:
22917 return NULL;
22918}
22919
22920
c32bde28 22921static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22922 PyObject *resultobj;
22923 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22924 wxLongLong result;
22925 PyObject * obj0 = 0 ;
22926 char *kwnames[] = {
22927 (char *) "self", NULL
22928 };
22929
22930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22933 {
22934 PyThreadState* __tstate = wxPyBeginAllowThreads();
22935 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22936
22937 wxPyEndAllowThreads(__tstate);
22938 if (PyErr_Occurred()) SWIG_fail;
22939 }
22940 {
22941 PyObject *hi, *lo, *shifter, *shifted;
22942 hi = PyLong_FromLong( (&result)->GetHi() );
22943 lo = PyLong_FromLong( (&result)->GetLo() );
22944 shifter = PyLong_FromLong(32);
22945 shifted = PyNumber_Lshift(hi, shifter);
22946 resultobj = PyNumber_Or(shifted, lo);
22947 Py_DECREF(hi);
22948 Py_DECREF(lo);
22949 Py_DECREF(shifter);
22950 Py_DECREF(shifted);
22951 }
22952 return resultobj;
22953 fail:
22954 return NULL;
22955}
22956
22957
c32bde28 22958static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22959 PyObject *resultobj;
22960 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22961 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22962 wxString *arg2 = (wxString *) &arg2_defvalue ;
22963 wxString result;
22964 bool temp2 = False ;
22965 PyObject * obj0 = 0 ;
22966 PyObject * obj1 = 0 ;
22967 char *kwnames[] = {
22968 (char *) "self",(char *) "format", NULL
22969 };
22970
22971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22974 if (obj1) {
22975 {
22976 arg2 = wxString_in_helper(obj1);
22977 if (arg2 == NULL) SWIG_fail;
22978 temp2 = True;
22979 }
22980 }
22981 {
22982 PyThreadState* __tstate = wxPyBeginAllowThreads();
22983 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22984
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 {
22989#if wxUSE_UNICODE
22990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22991#else
22992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22993#endif
22994 }
22995 {
22996 if (temp2)
22997 delete arg2;
22998 }
22999 return resultobj;
23000 fail:
23001 {
23002 if (temp2)
23003 delete arg2;
23004 }
23005 return NULL;
23006}
23007
23008
c32bde28 23009static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
23010 PyObject *obj;
23011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23012 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23013 Py_INCREF(obj);
23014 return Py_BuildValue((char *)"");
23015}
c32bde28 23016static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23017 PyObject *resultobj;
23018 int arg1 = (int) 0 ;
23019 int arg2 = (int) 0 ;
23020 int arg3 = (int) 0 ;
23021 int arg4 = (int) 0 ;
23022 wxDateSpan *result;
23023 PyObject * obj0 = 0 ;
23024 PyObject * obj1 = 0 ;
23025 PyObject * obj2 = 0 ;
23026 PyObject * obj3 = 0 ;
23027 char *kwnames[] = {
23028 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23029 };
23030
23031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23032 if (obj0) {
c32bde28 23033 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23034 if (PyErr_Occurred()) SWIG_fail;
23035 }
23036 if (obj1) {
c32bde28 23037 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23038 if (PyErr_Occurred()) SWIG_fail;
23039 }
23040 if (obj2) {
c32bde28 23041 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 if (obj3) {
c32bde28 23045 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23051
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23056 return resultobj;
23057 fail:
23058 return NULL;
23059}
23060
23061
c32bde28 23062static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23063 PyObject *resultobj;
23064 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23065 PyObject * obj0 = 0 ;
23066 char *kwnames[] = {
23067 (char *) "self", NULL
23068 };
23069
23070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23073 {
23074 PyThreadState* __tstate = wxPyBeginAllowThreads();
23075 delete arg1;
23076
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 Py_INCREF(Py_None); resultobj = Py_None;
23081 return resultobj;
23082 fail:
23083 return NULL;
23084}
23085
23086
c32bde28 23087static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23088 PyObject *resultobj;
23089 int arg1 ;
23090 wxDateSpan result;
23091 PyObject * obj0 = 0 ;
23092 char *kwnames[] = {
23093 (char *) "days", NULL
23094 };
23095
23096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
c32bde28 23097 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23098 if (PyErr_Occurred()) SWIG_fail;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = wxDateSpan::Days(arg1);
23102
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
23107 wxDateSpan * resultptr;
23108 resultptr = new wxDateSpan((wxDateSpan &) result);
23109 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23110 }
23111 return resultobj;
23112 fail:
23113 return NULL;
23114}
23115
23116
c32bde28 23117static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23118 PyObject *resultobj;
23119 wxDateSpan result;
23120 char *kwnames[] = {
23121 NULL
23122 };
23123
23124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 result = wxDateSpan::Day();
23128
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 {
23133 wxDateSpan * resultptr;
23134 resultptr = new wxDateSpan((wxDateSpan &) result);
23135 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23136 }
23137 return resultobj;
23138 fail:
23139 return NULL;
23140}
23141
23142
c32bde28 23143static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23144 PyObject *resultobj;
23145 int arg1 ;
23146 wxDateSpan result;
23147 PyObject * obj0 = 0 ;
23148 char *kwnames[] = {
23149 (char *) "weeks", NULL
23150 };
23151
23152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
c32bde28 23153 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23154 if (PyErr_Occurred()) SWIG_fail;
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 result = wxDateSpan::Weeks(arg1);
23158
23159 wxPyEndAllowThreads(__tstate);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 }
23162 {
23163 wxDateSpan * resultptr;
23164 resultptr = new wxDateSpan((wxDateSpan &) result);
23165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23166 }
23167 return resultobj;
23168 fail:
23169 return NULL;
23170}
23171
23172
c32bde28 23173static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23174 PyObject *resultobj;
23175 wxDateSpan result;
23176 char *kwnames[] = {
23177 NULL
23178 };
23179
23180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23181 {
23182 PyThreadState* __tstate = wxPyBeginAllowThreads();
23183 result = wxDateSpan::Week();
23184
23185 wxPyEndAllowThreads(__tstate);
23186 if (PyErr_Occurred()) SWIG_fail;
23187 }
23188 {
23189 wxDateSpan * resultptr;
23190 resultptr = new wxDateSpan((wxDateSpan &) result);
23191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23192 }
23193 return resultobj;
23194 fail:
23195 return NULL;
23196}
23197
23198
c32bde28 23199static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23200 PyObject *resultobj;
23201 int arg1 ;
23202 wxDateSpan result;
23203 PyObject * obj0 = 0 ;
23204 char *kwnames[] = {
23205 (char *) "mon", NULL
23206 };
23207
23208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
c32bde28 23209 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23210 if (PyErr_Occurred()) SWIG_fail;
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 result = wxDateSpan::Months(arg1);
23214
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 {
23219 wxDateSpan * resultptr;
23220 resultptr = new wxDateSpan((wxDateSpan &) result);
23221 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23222 }
23223 return resultobj;
23224 fail:
23225 return NULL;
23226}
23227
23228
c32bde28 23229static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23230 PyObject *resultobj;
23231 wxDateSpan result;
23232 char *kwnames[] = {
23233 NULL
23234 };
23235
23236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23237 {
23238 PyThreadState* __tstate = wxPyBeginAllowThreads();
23239 result = wxDateSpan::Month();
23240
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 {
23245 wxDateSpan * resultptr;
23246 resultptr = new wxDateSpan((wxDateSpan &) result);
23247 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23248 }
23249 return resultobj;
23250 fail:
23251 return NULL;
23252}
23253
23254
c32bde28 23255static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23256 PyObject *resultobj;
23257 int arg1 ;
23258 wxDateSpan result;
23259 PyObject * obj0 = 0 ;
23260 char *kwnames[] = {
23261 (char *) "years", NULL
23262 };
23263
23264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
c32bde28 23265 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23266 if (PyErr_Occurred()) SWIG_fail;
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 result = wxDateSpan::Years(arg1);
23270
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 wxDateSpan * resultptr;
23276 resultptr = new wxDateSpan((wxDateSpan &) result);
23277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23278 }
23279 return resultobj;
23280 fail:
23281 return NULL;
23282}
23283
23284
c32bde28 23285static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23286 PyObject *resultobj;
23287 wxDateSpan result;
23288 char *kwnames[] = {
23289 NULL
23290 };
23291
23292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = wxDateSpan::Year();
23296
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 wxDateSpan * resultptr;
23302 resultptr = new wxDateSpan((wxDateSpan &) result);
23303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23304 }
23305 return resultobj;
23306 fail:
23307 return NULL;
23308}
23309
23310
c32bde28 23311static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23312 PyObject *resultobj;
23313 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23314 int arg2 ;
23315 wxDateSpan *result;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 char *kwnames[] = {
23319 (char *) "self",(char *) "n", NULL
23320 };
23321
23322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23325 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23326 if (PyErr_Occurred()) SWIG_fail;
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 {
23330 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23331 result = (wxDateSpan *) &_result_ref;
23332 }
23333
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23338 return resultobj;
23339 fail:
23340 return NULL;
23341}
23342
23343
c32bde28 23344static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23345 PyObject *resultobj;
23346 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23347 int arg2 ;
23348 wxDateSpan *result;
23349 PyObject * obj0 = 0 ;
23350 PyObject * obj1 = 0 ;
23351 char *kwnames[] = {
23352 (char *) "self",(char *) "n", NULL
23353 };
23354
23355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23358 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23359 if (PyErr_Occurred()) SWIG_fail;
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 {
23363 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23364 result = (wxDateSpan *) &_result_ref;
23365 }
23366
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23371 return resultobj;
23372 fail:
23373 return NULL;
23374}
23375
23376
c32bde28 23377static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23378 PyObject *resultobj;
23379 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23380 int arg2 ;
23381 wxDateSpan *result;
23382 PyObject * obj0 = 0 ;
23383 PyObject * obj1 = 0 ;
23384 char *kwnames[] = {
23385 (char *) "self",(char *) "n", NULL
23386 };
23387
23388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23391 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23392 if (PyErr_Occurred()) SWIG_fail;
23393 {
23394 PyThreadState* __tstate = wxPyBeginAllowThreads();
23395 {
23396 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23397 result = (wxDateSpan *) &_result_ref;
23398 }
23399
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23404 return resultobj;
23405 fail:
23406 return NULL;
23407}
23408
23409
c32bde28 23410static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23411 PyObject *resultobj;
23412 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23413 int arg2 ;
23414 wxDateSpan *result;
23415 PyObject * obj0 = 0 ;
23416 PyObject * obj1 = 0 ;
23417 char *kwnames[] = {
23418 (char *) "self",(char *) "n", NULL
23419 };
23420
23421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23424 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23425 if (PyErr_Occurred()) SWIG_fail;
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 {
23429 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23430 result = (wxDateSpan *) &_result_ref;
23431 }
23432
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23437 return resultobj;
23438 fail:
23439 return NULL;
23440}
23441
23442
c32bde28 23443static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23444 PyObject *resultobj;
23445 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23446 int result;
23447 PyObject * obj0 = 0 ;
23448 char *kwnames[] = {
23449 (char *) "self", NULL
23450 };
23451
23452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 result = (int)((wxDateSpan const *)arg1)->GetYears();
23458
23459 wxPyEndAllowThreads(__tstate);
23460 if (PyErr_Occurred()) SWIG_fail;
23461 }
c32bde28 23462 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23463 return resultobj;
23464 fail:
23465 return NULL;
23466}
23467
23468
c32bde28 23469static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23470 PyObject *resultobj;
23471 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23472 int result;
23473 PyObject * obj0 = 0 ;
23474 char *kwnames[] = {
23475 (char *) "self", NULL
23476 };
23477
23478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23481 {
23482 PyThreadState* __tstate = wxPyBeginAllowThreads();
23483 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23484
23485 wxPyEndAllowThreads(__tstate);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
c32bde28 23488 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23489 return resultobj;
23490 fail:
23491 return NULL;
23492}
23493
23494
c32bde28 23495static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23496 PyObject *resultobj;
23497 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23498 int result;
23499 PyObject * obj0 = 0 ;
23500 char *kwnames[] = {
23501 (char *) "self", NULL
23502 };
23503
23504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23507 {
23508 PyThreadState* __tstate = wxPyBeginAllowThreads();
23509 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23510
23511 wxPyEndAllowThreads(__tstate);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 }
c32bde28 23514 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23515 return resultobj;
23516 fail:
23517 return NULL;
23518}
23519
23520
c32bde28 23521static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23522 PyObject *resultobj;
23523 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23524 int result;
23525 PyObject * obj0 = 0 ;
23526 char *kwnames[] = {
23527 (char *) "self", NULL
23528 };
23529
23530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23533 {
23534 PyThreadState* __tstate = wxPyBeginAllowThreads();
23535 result = (int)((wxDateSpan const *)arg1)->GetDays();
23536
23537 wxPyEndAllowThreads(__tstate);
23538 if (PyErr_Occurred()) SWIG_fail;
23539 }
c32bde28 23540 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23541 return resultobj;
23542 fail:
23543 return NULL;
23544}
23545
23546
c32bde28 23547static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23548 PyObject *resultobj;
23549 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23550 int result;
23551 PyObject * obj0 = 0 ;
23552 char *kwnames[] = {
23553 (char *) "self", NULL
23554 };
23555
23556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23562
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
c32bde28 23566 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23567 return resultobj;
23568 fail:
23569 return NULL;
23570}
23571
23572
c32bde28 23573static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23574 PyObject *resultobj;
23575 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23576 wxDateSpan *arg2 = 0 ;
23577 wxDateSpan *result;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 char *kwnames[] = {
23581 (char *) "self",(char *) "other", NULL
23582 };
23583
23584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23588 SWIG_POINTER_EXCEPTION | 0)) == -1)
23589 SWIG_fail;
23590 if (arg2 == NULL) {
23591 PyErr_SetString(PyExc_TypeError,"null reference");
23592 SWIG_fail;
23593 }
23594 {
23595 PyThreadState* __tstate = wxPyBeginAllowThreads();
23596 {
23597 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23598 result = (wxDateSpan *) &_result_ref;
23599 }
23600
23601 wxPyEndAllowThreads(__tstate);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 }
23604 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23605 return resultobj;
23606 fail:
23607 return NULL;
23608}
23609
23610
c32bde28 23611static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23612 PyObject *resultobj;
23613 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23614 wxDateSpan *arg2 = 0 ;
23615 wxDateSpan *result;
23616 PyObject * obj0 = 0 ;
23617 PyObject * obj1 = 0 ;
23618 char *kwnames[] = {
23619 (char *) "self",(char *) "other", NULL
23620 };
23621
23622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23626 SWIG_POINTER_EXCEPTION | 0)) == -1)
23627 SWIG_fail;
23628 if (arg2 == NULL) {
23629 PyErr_SetString(PyExc_TypeError,"null reference");
23630 SWIG_fail;
23631 }
23632 {
23633 PyThreadState* __tstate = wxPyBeginAllowThreads();
23634 {
23635 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23636 result = (wxDateSpan *) &_result_ref;
23637 }
23638
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23643 return resultobj;
23644 fail:
23645 return NULL;
23646}
23647
23648
c32bde28 23649static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23650 PyObject *resultobj;
23651 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23652 wxDateSpan *result;
23653 PyObject * obj0 = 0 ;
23654 char *kwnames[] = {
23655 (char *) "self", NULL
23656 };
23657
23658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23661 {
23662 PyThreadState* __tstate = wxPyBeginAllowThreads();
23663 {
23664 wxDateSpan &_result_ref = (arg1)->Neg();
23665 result = (wxDateSpan *) &_result_ref;
23666 }
23667
23668 wxPyEndAllowThreads(__tstate);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 }
23671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23672 return resultobj;
23673 fail:
23674 return NULL;
23675}
23676
23677
c32bde28 23678static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23679 PyObject *resultobj;
23680 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23681 int arg2 ;
23682 wxDateSpan *result;
23683 PyObject * obj0 = 0 ;
23684 PyObject * obj1 = 0 ;
23685 char *kwnames[] = {
23686 (char *) "self",(char *) "factor", NULL
23687 };
23688
23689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23692 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23693 if (PyErr_Occurred()) SWIG_fail;
23694 {
23695 PyThreadState* __tstate = wxPyBeginAllowThreads();
23696 {
23697 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23698 result = (wxDateSpan *) &_result_ref;
23699 }
23700
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23705 return resultobj;
23706 fail:
23707 return NULL;
23708}
23709
23710
c32bde28 23711static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23712 PyObject *resultobj;
23713 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23714 wxDateSpan *arg2 = 0 ;
23715 wxDateSpan *result;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 char *kwnames[] = {
23719 (char *) "self",(char *) "other", NULL
23720 };
23721
23722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c32bde28 23724 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
23725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23726 SWIG_POINTER_EXCEPTION | 0)) == -1)
23727 SWIG_fail;
23728 if (arg2 == NULL) {
23729 PyErr_SetString(PyExc_TypeError,"null reference");
23730 SWIG_fail;
23731 }
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 {
23735 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23736 result = (wxDateSpan *) &_result_ref;
23737 }
23738
23739 wxPyEndAllowThreads(__tstate);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 }
c32bde28 23742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
23743 return resultobj;
23744 fail:
23745 return NULL;
23746}
23747
23748
c32bde28 23749static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23750 PyObject *resultobj;
23751 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23752 wxDateSpan *arg2 = 0 ;
23753 wxDateSpan *result;
23754 PyObject * obj0 = 0 ;
23755 PyObject * obj1 = 0 ;
23756 char *kwnames[] = {
23757 (char *) "self",(char *) "other", NULL
23758 };
23759
23760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c32bde28 23762 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
23763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1)
23765 SWIG_fail;
23766 if (arg2 == NULL) {
23767 PyErr_SetString(PyExc_TypeError,"null reference");
23768 SWIG_fail;
23769 }
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 {
23773 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23774 result = (wxDateSpan *) &_result_ref;
23775 }
23776
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
c32bde28 23780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
23781 return resultobj;
23782 fail:
23783 return NULL;
23784}
23785
23786
c32bde28 23787static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23788 PyObject *resultobj;
23789 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23790 wxDateSpan *result;
23791 PyObject * obj0 = 0 ;
23792 char *kwnames[] = {
23793 (char *) "self", NULL
23794 };
23795
23796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23799 {
23800 PyThreadState* __tstate = wxPyBeginAllowThreads();
23801 {
23802 wxDateSpan &_result_ref = (arg1)->operator -();
23803 result = (wxDateSpan *) &_result_ref;
23804 }
23805
23806 wxPyEndAllowThreads(__tstate);
23807 if (PyErr_Occurred()) SWIG_fail;
23808 }
23809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23810 return resultobj;
23811 fail:
23812 return NULL;
23813}
23814
23815
c32bde28 23816static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23817 PyObject *resultobj;
23818 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23819 int arg2 ;
23820 wxDateSpan *result;
23821 PyObject * obj0 = 0 ;
23822 PyObject * obj1 = 0 ;
23823 char *kwnames[] = {
23824 (char *) "self",(char *) "factor", NULL
23825 };
23826
23827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c32bde28
RD
23829 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23830 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23831 if (PyErr_Occurred()) SWIG_fail;
23832 {
23833 PyThreadState* __tstate = wxPyBeginAllowThreads();
23834 {
23835 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23836 result = (wxDateSpan *) &_result_ref;
23837 }
23838
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
c32bde28 23842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
23843 return resultobj;
23844 fail:
23845 return NULL;
23846}
23847
23848
c32bde28 23849static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23850 PyObject *resultobj;
23851 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23852 wxDateSpan *arg2 = 0 ;
23853 wxDateSpan result;
23854 PyObject * obj0 = 0 ;
23855 PyObject * obj1 = 0 ;
23856 char *kwnames[] = {
23857 (char *) "self",(char *) "other", NULL
23858 };
23859
23860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23863 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23864 SWIG_POINTER_EXCEPTION | 0)) == -1)
23865 SWIG_fail;
23866 if (arg2 == NULL) {
23867 PyErr_SetString(PyExc_TypeError,"null reference");
23868 SWIG_fail;
23869 }
23870 {
23871 PyThreadState* __tstate = wxPyBeginAllowThreads();
23872 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23873
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 {
23878 wxDateSpan * resultptr;
23879 resultptr = new wxDateSpan((wxDateSpan &) result);
23880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23881 }
23882 return resultobj;
23883 fail:
23884 return NULL;
23885}
23886
23887
c32bde28 23888static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23889 PyObject *resultobj;
23890 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23891 wxDateSpan *arg2 = 0 ;
23892 wxDateSpan result;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 char *kwnames[] = {
23896 (char *) "self",(char *) "other", NULL
23897 };
23898
23899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23903 SWIG_POINTER_EXCEPTION | 0)) == -1)
23904 SWIG_fail;
23905 if (arg2 == NULL) {
23906 PyErr_SetString(PyExc_TypeError,"null reference");
23907 SWIG_fail;
23908 }
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23912
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 {
23917 wxDateSpan * resultptr;
23918 resultptr = new wxDateSpan((wxDateSpan &) result);
23919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23920 }
23921 return resultobj;
23922 fail:
23923 return NULL;
23924}
23925
23926
c32bde28 23927static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23928 PyObject *resultobj;
23929 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23930 int arg2 ;
23931 wxDateSpan result;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934 char *kwnames[] = {
23935 (char *) "self",(char *) "n", NULL
23936 };
23937
23938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23941 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23942 if (PyErr_Occurred()) SWIG_fail;
23943 {
23944 PyThreadState* __tstate = wxPyBeginAllowThreads();
23945 result = wxDateSpan___mul__(arg1,arg2);
23946
23947 wxPyEndAllowThreads(__tstate);
23948 if (PyErr_Occurred()) SWIG_fail;
23949 }
23950 {
23951 wxDateSpan * resultptr;
23952 resultptr = new wxDateSpan((wxDateSpan &) result);
23953 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23954 }
23955 return resultobj;
23956 fail:
23957 return NULL;
23958}
23959
23960
c32bde28 23961static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23962 PyObject *resultobj;
23963 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23964 int arg2 ;
23965 wxDateSpan result;
23966 PyObject * obj0 = 0 ;
23967 PyObject * obj1 = 0 ;
23968 char *kwnames[] = {
23969 (char *) "self",(char *) "n", NULL
23970 };
23971
23972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23975 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23976 if (PyErr_Occurred()) SWIG_fail;
23977 {
23978 PyThreadState* __tstate = wxPyBeginAllowThreads();
23979 result = wxDateSpan___rmul__(arg1,arg2);
23980
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 {
23985 wxDateSpan * resultptr;
23986 resultptr = new wxDateSpan((wxDateSpan &) result);
23987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23988 }
23989 return resultobj;
23990 fail:
23991 return NULL;
23992}
23993
23994
c32bde28 23995static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23996 PyObject *resultobj;
23997 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23998 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23999 bool result;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 char *kwnames[] = {
24003 (char *) "self",(char *) "other", NULL
24004 };
24005
24006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24014
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 {
24019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24020 }
24021 return resultobj;
24022 fail:
24023 return NULL;
24024}
24025
24026
c32bde28 24027static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24028 PyObject *resultobj;
24029 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24030 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24031 bool result;
24032 PyObject * obj0 = 0 ;
24033 PyObject * obj1 = 0 ;
24034 char *kwnames[] = {
24035 (char *) "self",(char *) "other", NULL
24036 };
24037
24038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24046
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 {
24051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24052 }
24053 return resultobj;
24054 fail:
24055 return NULL;
24056}
24057
24058
c32bde28 24059static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
24060 PyObject *obj;
24061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24062 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24063 Py_INCREF(obj);
24064 return Py_BuildValue((char *)"");
24065}
c32bde28 24066static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24067 PyObject *resultobj;
24068 long result;
24069 char *kwnames[] = {
24070 NULL
24071 };
24072
24073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (long)wxGetLocalTime();
24077
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
c32bde28 24081 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24082 return resultobj;
24083 fail:
24084 return NULL;
24085}
24086
24087
c32bde28 24088static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24089 PyObject *resultobj;
24090 long result;
24091 char *kwnames[] = {
24092 NULL
24093 };
24094
24095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24096 {
24097 PyThreadState* __tstate = wxPyBeginAllowThreads();
24098 result = (long)wxGetUTCTime();
24099
24100 wxPyEndAllowThreads(__tstate);
24101 if (PyErr_Occurred()) SWIG_fail;
24102 }
c32bde28 24103 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24104 return resultobj;
24105 fail:
24106 return NULL;
24107}
24108
24109
c32bde28 24110static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24111 PyObject *resultobj;
24112 long result;
24113 char *kwnames[] = {
24114 NULL
24115 };
24116
24117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24118 {
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 result = (long)wxGetCurrentTime();
24121
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
c32bde28 24125 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24126 return resultobj;
24127 fail:
24128 return NULL;
24129}
24130
24131
c32bde28 24132static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24133 PyObject *resultobj;
24134 wxLongLong result;
24135 char *kwnames[] = {
24136 NULL
24137 };
24138
24139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24140 {
24141 PyThreadState* __tstate = wxPyBeginAllowThreads();
24142 result = wxGetLocalTimeMillis();
24143
24144 wxPyEndAllowThreads(__tstate);
24145 if (PyErr_Occurred()) SWIG_fail;
24146 }
24147 {
24148 PyObject *hi, *lo, *shifter, *shifted;
24149 hi = PyLong_FromLong( (&result)->GetHi() );
24150 lo = PyLong_FromLong( (&result)->GetLo() );
24151 shifter = PyLong_FromLong(32);
24152 shifted = PyNumber_Lshift(hi, shifter);
24153 resultobj = PyNumber_Or(shifted, lo);
24154 Py_DECREF(hi);
24155 Py_DECREF(lo);
24156 Py_DECREF(shifter);
24157 Py_DECREF(shifted);
24158 }
24159 return resultobj;
24160 fail:
24161 return NULL;
24162}
24163
24164
c32bde28 24165static int _wrap_DefaultDateTime_set(PyObject *) {
d55e5bfc
RD
24166 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24167 return 1;
24168}
24169
24170
24171static PyObject *_wrap_DefaultDateTime_get() {
24172 PyObject *pyobj;
24173
24174 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24175 return pyobj;
24176}
24177
24178
c32bde28 24179static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24180 PyObject *resultobj;
24181 int arg1 ;
24182 wxDataFormat *result;
24183 PyObject * obj0 = 0 ;
24184 char *kwnames[] = {
24185 (char *) "type", NULL
24186 };
24187
24188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
c32bde28 24189 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
24190 if (PyErr_Occurred()) SWIG_fail;
24191 {
24192 PyThreadState* __tstate = wxPyBeginAllowThreads();
24193 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24194
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24199 return resultobj;
24200 fail:
24201 return NULL;
24202}
24203
24204
c32bde28 24205static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24206 PyObject *resultobj;
24207 wxString *arg1 = 0 ;
24208 wxDataFormat *result;
24209 bool temp1 = False ;
24210 PyObject * obj0 = 0 ;
24211 char *kwnames[] = {
24212 (char *) "format", NULL
24213 };
24214
24215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24216 {
24217 arg1 = wxString_in_helper(obj0);
24218 if (arg1 == NULL) SWIG_fail;
24219 temp1 = True;
24220 }
24221 {
24222 PyThreadState* __tstate = wxPyBeginAllowThreads();
24223 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24224
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24229 {
24230 if (temp1)
24231 delete arg1;
24232 }
24233 return resultobj;
24234 fail:
24235 {
24236 if (temp1)
24237 delete arg1;
24238 }
24239 return NULL;
24240}
24241
24242
c32bde28 24243static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24244 PyObject *resultobj;
24245 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24246 PyObject * obj0 = 0 ;
24247 char *kwnames[] = {
24248 (char *) "self", NULL
24249 };
24250
24251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24254 {
24255 PyThreadState* __tstate = wxPyBeginAllowThreads();
24256 delete arg1;
24257
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 Py_INCREF(Py_None); resultobj = Py_None;
24262 return resultobj;
24263 fail:
24264 return NULL;
24265}
24266
24267
c32bde28 24268static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
24269 PyObject *resultobj;
24270 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24271 int arg2 ;
24272 bool result;
24273 PyObject * obj0 = 0 ;
24274 PyObject * obj1 = 0 ;
24275
24276 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24279 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24280 if (PyErr_Occurred()) SWIG_fail;
24281 {
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24284
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 {
24289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24290 }
24291 return resultobj;
24292 fail:
24293 return NULL;
24294}
24295
24296
c32bde28 24297static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
24298 PyObject *resultobj;
24299 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24300 int arg2 ;
24301 bool result;
24302 PyObject * obj0 = 0 ;
24303 PyObject * obj1 = 0 ;
24304
24305 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24308 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24309 if (PyErr_Occurred()) SWIG_fail;
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24313
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 {
24318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24319 }
24320 return resultobj;
24321 fail:
24322 return NULL;
24323}
24324
24325
c32bde28 24326static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
24327 PyObject *resultobj;
24328 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24329 wxDataFormat *arg2 = 0 ;
24330 bool result;
24331 PyObject * obj0 = 0 ;
24332 PyObject * obj1 = 0 ;
24333
24334 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24338 SWIG_POINTER_EXCEPTION | 0)) == -1)
24339 SWIG_fail;
24340 if (arg2 == NULL) {
24341 PyErr_SetString(PyExc_TypeError,"null reference");
24342 SWIG_fail;
24343 }
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24347
24348 wxPyEndAllowThreads(__tstate);
24349 if (PyErr_Occurred()) SWIG_fail;
24350 }
24351 {
24352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24353 }
24354 return resultobj;
24355 fail:
24356 return NULL;
24357}
24358
24359
24360static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24361 int argc;
24362 PyObject *argv[3];
24363 int ii;
24364
24365 argc = PyObject_Length(args);
24366 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24367 argv[ii] = PyTuple_GetItem(args,ii);
24368 }
24369 if (argc == 2) {
24370 int _v;
24371 {
24372 void *ptr;
24373 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24374 _v = 0;
24375 PyErr_Clear();
24376 } else {
24377 _v = 1;
24378 }
24379 }
24380 if (_v) {
24381 {
24382 void *ptr;
24383 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24384 _v = 0;
24385 PyErr_Clear();
24386 } else {
24387 _v = 1;
24388 }
24389 }
24390 if (_v) {
24391 return _wrap_DataFormat___eq____SWIG_1(self,args);
24392 }
24393 }
24394 }
24395 if (argc == 2) {
24396 int _v;
24397 {
24398 void *ptr;
24399 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24400 _v = 0;
24401 PyErr_Clear();
24402 } else {
24403 _v = 1;
24404 }
24405 }
24406 if (_v) {
c32bde28 24407 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
24408 if (_v) {
24409 return _wrap_DataFormat___eq____SWIG_0(self,args);
24410 }
24411 }
24412 }
24413
24414 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24415 return NULL;
24416}
24417
24418
c32bde28 24419static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
24420 PyObject *resultobj;
24421 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24422 wxDataFormat *arg2 = 0 ;
24423 bool result;
24424 PyObject * obj0 = 0 ;
24425 PyObject * obj1 = 0 ;
24426
24427 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24430 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24431 SWIG_POINTER_EXCEPTION | 0)) == -1)
24432 SWIG_fail;
24433 if (arg2 == NULL) {
24434 PyErr_SetString(PyExc_TypeError,"null reference");
24435 SWIG_fail;
24436 }
24437 {
24438 PyThreadState* __tstate = wxPyBeginAllowThreads();
24439 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24440
24441 wxPyEndAllowThreads(__tstate);
24442 if (PyErr_Occurred()) SWIG_fail;
24443 }
24444 {
24445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24446 }
24447 return resultobj;
24448 fail:
24449 return NULL;
24450}
24451
24452
24453static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24454 int argc;
24455 PyObject *argv[3];
24456 int ii;
24457
24458 argc = PyObject_Length(args);
24459 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24460 argv[ii] = PyTuple_GetItem(args,ii);
24461 }
24462 if (argc == 2) {
24463 int _v;
24464 {
24465 void *ptr;
24466 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24467 _v = 0;
24468 PyErr_Clear();
24469 } else {
24470 _v = 1;
24471 }
24472 }
24473 if (_v) {
24474 {
24475 void *ptr;
24476 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24477 _v = 0;
24478 PyErr_Clear();
24479 } else {
24480 _v = 1;
24481 }
24482 }
24483 if (_v) {
24484 return _wrap_DataFormat___ne____SWIG_1(self,args);
24485 }
24486 }
24487 }
24488 if (argc == 2) {
24489 int _v;
24490 {
24491 void *ptr;
24492 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24493 _v = 0;
24494 PyErr_Clear();
24495 } else {
24496 _v = 1;
24497 }
24498 }
24499 if (_v) {
c32bde28 24500 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
24501 if (_v) {
24502 return _wrap_DataFormat___ne____SWIG_0(self,args);
24503 }
24504 }
24505 }
24506
24507 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24508 return NULL;
24509}
24510
24511
c32bde28 24512static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24513 PyObject *resultobj;
24514 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24515 int arg2 ;
24516 PyObject * obj0 = 0 ;
24517 PyObject * obj1 = 0 ;
24518 char *kwnames[] = {
24519 (char *) "self",(char *) "format", NULL
24520 };
24521
24522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24525 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24526 if (PyErr_Occurred()) SWIG_fail;
24527 {
24528 PyThreadState* __tstate = wxPyBeginAllowThreads();
24529 (arg1)->SetType((wxDataFormatId )arg2);
24530
24531 wxPyEndAllowThreads(__tstate);
24532 if (PyErr_Occurred()) SWIG_fail;
24533 }
24534 Py_INCREF(Py_None); resultobj = Py_None;
24535 return resultobj;
24536 fail:
24537 return NULL;
24538}
24539
24540
c32bde28 24541static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24542 PyObject *resultobj;
24543 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24544 int result;
24545 PyObject * obj0 = 0 ;
24546 char *kwnames[] = {
24547 (char *) "self", NULL
24548 };
24549
24550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 result = (int)((wxDataFormat const *)arg1)->GetType();
24556
24557 wxPyEndAllowThreads(__tstate);
24558 if (PyErr_Occurred()) SWIG_fail;
24559 }
c32bde28 24560 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
24561 return resultobj;
24562 fail:
24563 return NULL;
24564}
24565
24566
c32bde28 24567static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24568 PyObject *resultobj;
24569 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24570 wxString result;
24571 PyObject * obj0 = 0 ;
24572 char *kwnames[] = {
24573 (char *) "self", NULL
24574 };
24575
24576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24579 {
24580 PyThreadState* __tstate = wxPyBeginAllowThreads();
24581 result = ((wxDataFormat const *)arg1)->GetId();
24582
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 {
24587#if wxUSE_UNICODE
24588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24589#else
24590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24591#endif
24592 }
24593 return resultobj;
24594 fail:
24595 return NULL;
24596}
24597
24598
c32bde28 24599static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24600 PyObject *resultobj;
24601 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24602 wxString *arg2 = 0 ;
24603 bool temp2 = False ;
24604 PyObject * obj0 = 0 ;
24605 PyObject * obj1 = 0 ;
24606 char *kwnames[] = {
24607 (char *) "self",(char *) "format", NULL
24608 };
24609
24610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24613 {
24614 arg2 = wxString_in_helper(obj1);
24615 if (arg2 == NULL) SWIG_fail;
24616 temp2 = True;
24617 }
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
24620 (arg1)->SetId((wxString const &)*arg2);
24621
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 Py_INCREF(Py_None); resultobj = Py_None;
24626 {
24627 if (temp2)
24628 delete arg2;
24629 }
24630 return resultobj;
24631 fail:
24632 {
24633 if (temp2)
24634 delete arg2;
24635 }
24636 return NULL;
24637}
24638
24639
c32bde28 24640static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
24641 PyObject *obj;
24642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24643 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24644 Py_INCREF(obj);
24645 return Py_BuildValue((char *)"");
24646}
c32bde28 24647static int _wrap_FormatInvalid_set(PyObject *) {
d55e5bfc
RD
24648 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24649 return 1;
24650}
24651
24652
24653static PyObject *_wrap_FormatInvalid_get() {
24654 PyObject *pyobj;
24655
24656 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24657 return pyobj;
24658}
24659
24660
c32bde28 24661static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24662 PyObject *resultobj;
24663 wxDataObject *arg1 = (wxDataObject *) 0 ;
24664 PyObject * obj0 = 0 ;
24665 char *kwnames[] = {
24666 (char *) "self", NULL
24667 };
24668
24669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 delete arg1;
24675
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 Py_INCREF(Py_None); resultobj = Py_None;
24680 return resultobj;
24681 fail:
24682 return NULL;
24683}
24684
24685
c32bde28 24686static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24687 PyObject *resultobj;
24688 wxDataObject *arg1 = (wxDataObject *) 0 ;
24689 int arg2 = (int) wxDataObject::Get ;
24690 SwigValueWrapper< wxDataFormat > result;
24691 PyObject * obj0 = 0 ;
24692 PyObject * obj1 = 0 ;
24693 char *kwnames[] = {
24694 (char *) "self",(char *) "dir", NULL
24695 };
24696
24697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24700 if (obj1) {
c32bde28 24701 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 {
24705 PyThreadState* __tstate = wxPyBeginAllowThreads();
24706 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24707
24708 wxPyEndAllowThreads(__tstate);
24709 if (PyErr_Occurred()) SWIG_fail;
24710 }
24711 {
24712 wxDataFormat * resultptr;
24713 resultptr = new wxDataFormat((wxDataFormat &) result);
24714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24715 }
24716 return resultobj;
24717 fail:
24718 return NULL;
24719}
24720
24721
c32bde28 24722static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24723 PyObject *resultobj;
24724 wxDataObject *arg1 = (wxDataObject *) 0 ;
24725 int arg2 = (int) wxDataObject::Get ;
24726 size_t result;
24727 PyObject * obj0 = 0 ;
24728 PyObject * obj1 = 0 ;
24729 char *kwnames[] = {
24730 (char *) "self",(char *) "dir", NULL
24731 };
24732
24733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24736 if (obj1) {
c32bde28 24737 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24738 if (PyErr_Occurred()) SWIG_fail;
24739 }
24740 {
24741 PyThreadState* __tstate = wxPyBeginAllowThreads();
24742 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24743
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
c32bde28 24747 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
24748 return resultobj;
24749 fail:
24750 return NULL;
24751}
24752
24753
c32bde28 24754static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24755 PyObject *resultobj;
24756 wxDataObject *arg1 = (wxDataObject *) 0 ;
24757 wxDataFormat *arg2 = 0 ;
24758 int arg3 = (int) wxDataObject::Get ;
24759 bool result;
24760 PyObject * obj0 = 0 ;
24761 PyObject * obj1 = 0 ;
24762 PyObject * obj2 = 0 ;
24763 char *kwnames[] = {
24764 (char *) "self",(char *) "format",(char *) "dir", NULL
24765 };
24766
24767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24771 SWIG_POINTER_EXCEPTION | 0)) == -1)
24772 SWIG_fail;
24773 if (arg2 == NULL) {
24774 PyErr_SetString(PyExc_TypeError,"null reference");
24775 SWIG_fail;
24776 }
24777 if (obj2) {
c32bde28 24778 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
24779 if (PyErr_Occurred()) SWIG_fail;
24780 }
24781 {
24782 PyThreadState* __tstate = wxPyBeginAllowThreads();
24783 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24784
24785 wxPyEndAllowThreads(__tstate);
24786 if (PyErr_Occurred()) SWIG_fail;
24787 }
24788 {
24789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24790 }
24791 return resultobj;
24792 fail:
24793 return NULL;
24794}
24795
24796
c32bde28 24797static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24798 PyObject *resultobj;
24799 wxDataObject *arg1 = (wxDataObject *) 0 ;
24800 wxDataFormat *arg2 = 0 ;
24801 size_t result;
24802 PyObject * obj0 = 0 ;
24803 PyObject * obj1 = 0 ;
24804 char *kwnames[] = {
24805 (char *) "self",(char *) "format", NULL
24806 };
24807
24808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24812 SWIG_POINTER_EXCEPTION | 0)) == -1)
24813 SWIG_fail;
24814 if (arg2 == NULL) {
24815 PyErr_SetString(PyExc_TypeError,"null reference");
24816 SWIG_fail;
24817 }
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24821
24822 wxPyEndAllowThreads(__tstate);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
c32bde28 24825 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
24826 return resultobj;
24827 fail:
24828 return NULL;
24829}
24830
24831
c32bde28 24832static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24833 PyObject *resultobj;
24834 wxDataObject *arg1 = (wxDataObject *) 0 ;
a07a67e6
RD
24835 int arg2 = (int) wxDataObject::Get ;
24836 PyObject *result;
d55e5bfc
RD
24837 PyObject * obj0 = 0 ;
24838 PyObject * obj1 = 0 ;
d55e5bfc 24839 char *kwnames[] = {
a07a67e6 24840 (char *) "self",(char *) "dir", NULL
d55e5bfc
RD
24841 };
24842
a07a67e6 24843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
a07a67e6 24846 if (obj1) {
c32bde28 24847 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 {
24851 PyThreadState* __tstate = wxPyBeginAllowThreads();
a07a67e6 24852 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
d55e5bfc
RD
24853
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
a07a67e6 24857 resultobj = result;
d55e5bfc
RD
24858 return resultobj;
24859 fail:
24860 return NULL;
24861}
24862
24863
c32bde28 24864static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24865 PyObject *resultobj;
24866 wxDataObject *arg1 = (wxDataObject *) 0 ;
24867 wxDataFormat *arg2 = 0 ;
a07a67e6 24868 PyObject *result;
d55e5bfc
RD
24869 PyObject * obj0 = 0 ;
24870 PyObject * obj1 = 0 ;
d55e5bfc 24871 char *kwnames[] = {
a07a67e6 24872 (char *) "self",(char *) "format", NULL
d55e5bfc
RD
24873 };
24874
a07a67e6 24875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24879 SWIG_POINTER_EXCEPTION | 0)) == -1)
24880 SWIG_fail;
24881 if (arg2 == NULL) {
24882 PyErr_SetString(PyExc_TypeError,"null reference");
24883 SWIG_fail;
24884 }
d55e5bfc
RD
24885 {
24886 PyThreadState* __tstate = wxPyBeginAllowThreads();
a07a67e6 24887 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
d55e5bfc
RD
24888
24889 wxPyEndAllowThreads(__tstate);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
a07a67e6 24892 resultobj = result;
d55e5bfc
RD
24893 return resultobj;
24894 fail:
24895 return NULL;
24896}
24897
24898
c32bde28 24899static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24900 PyObject *resultobj;
24901 wxDataObject *arg1 = (wxDataObject *) 0 ;
24902 wxDataFormat *arg2 = 0 ;
a07a67e6 24903 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
24904 bool result;
24905 PyObject * obj0 = 0 ;
24906 PyObject * obj1 = 0 ;
24907 PyObject * obj2 = 0 ;
d55e5bfc 24908 char *kwnames[] = {
a07a67e6 24909 (char *) "self",(char *) "format",(char *) "data", NULL
d55e5bfc
RD
24910 };
24911
a07a67e6 24912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
24913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24916 SWIG_POINTER_EXCEPTION | 0)) == -1)
24917 SWIG_fail;
24918 if (arg2 == NULL) {
24919 PyErr_SetString(PyExc_TypeError,"null reference");
24920 SWIG_fail;
24921 }
a07a67e6 24922 arg3 = obj2;
d55e5bfc
RD
24923 {
24924 PyThreadState* __tstate = wxPyBeginAllowThreads();
a07a67e6 24925 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
d55e5bfc
RD
24926
24927 wxPyEndAllowThreads(__tstate);
24928 if (PyErr_Occurred()) SWIG_fail;
24929 }
24930 {
24931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24932 }
24933 return resultobj;
24934 fail:
24935 return NULL;
24936}
24937
24938
c32bde28 24939static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
24940 PyObject *obj;
24941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24942 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24943 Py_INCREF(obj);
24944 return Py_BuildValue((char *)"");
24945}
c32bde28 24946static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24947 PyObject *resultobj;
24948 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24949 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24950 wxDataObjectSimple *result;
24951 PyObject * obj0 = 0 ;
24952 char *kwnames[] = {
24953 (char *) "format", NULL
24954 };
24955
24956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24957 if (obj0) {
24958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24959 SWIG_POINTER_EXCEPTION | 0)) == -1)
24960 SWIG_fail;
24961 if (arg1 == NULL) {
24962 PyErr_SetString(PyExc_TypeError,"null reference");
24963 SWIG_fail;
24964 }
24965 }
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24969
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24974 return resultobj;
24975 fail:
24976 return NULL;
24977}
24978
24979
c32bde28 24980static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24981 PyObject *resultobj;
24982 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24983 wxDataFormat *result;
24984 PyObject * obj0 = 0 ;
24985 char *kwnames[] = {
24986 (char *) "self", NULL
24987 };
24988
24989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 {
24995 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24996 result = (wxDataFormat *) &_result_ref;
24997 }
24998
24999 wxPyEndAllowThreads(__tstate);
25000 if (PyErr_Occurred()) SWIG_fail;
25001 }
25002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25003 return resultobj;
25004 fail:
25005 return NULL;
25006}
25007
25008
c32bde28 25009static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25010 PyObject *resultobj;
25011 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25012 wxDataFormat *arg2 = 0 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 char *kwnames[] = {
25016 (char *) "self",(char *) "format", NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25023 SWIG_POINTER_EXCEPTION | 0)) == -1)
25024 SWIG_fail;
25025 if (arg2 == NULL) {
25026 PyErr_SetString(PyExc_TypeError,"null reference");
25027 SWIG_fail;
25028 }
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25032
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 Py_INCREF(Py_None); resultobj = Py_None;
25037 return resultobj;
25038 fail:
25039 return NULL;
25040}
25041
25042
c32bde28 25043static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
a07a67e6
RD
25044 PyObject *resultobj;
25045 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25046 size_t result;
25047 PyObject * obj0 = 0 ;
25048 char *kwnames[] = {
25049 (char *) "self", NULL
25050 };
25051
25052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25058
25059 wxPyEndAllowThreads(__tstate);
25060 if (PyErr_Occurred()) SWIG_fail;
25061 }
c32bde28 25062 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
a07a67e6
RD
25063 return resultobj;
25064 fail:
25065 return NULL;
25066}
25067
25068
c32bde28 25069static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
a07a67e6
RD
25070 PyObject *resultobj;
25071 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25072 PyObject *result;
25073 PyObject * obj0 = 0 ;
25074 char *kwnames[] = {
25075 (char *) "self", NULL
25076 };
25077
25078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25081 {
25082 PyThreadState* __tstate = wxPyBeginAllowThreads();
25083 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25084
25085 wxPyEndAllowThreads(__tstate);
25086 if (PyErr_Occurred()) SWIG_fail;
25087 }
25088 resultobj = result;
25089 return resultobj;
25090 fail:
25091 return NULL;
25092}
25093
25094
c32bde28 25095static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
a07a67e6
RD
25096 PyObject *resultobj;
25097 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25098 PyObject *arg2 = (PyObject *) 0 ;
25099 bool result;
25100 PyObject * obj0 = 0 ;
25101 PyObject * obj1 = 0 ;
25102 char *kwnames[] = {
25103 (char *) "self",(char *) "data", NULL
25104 };
25105
25106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25109 arg2 = obj1;
25110 {
25111 PyThreadState* __tstate = wxPyBeginAllowThreads();
25112 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25113
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 {
25118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25119 }
25120 return resultobj;
25121 fail:
25122 return NULL;
25123}
25124
25125
c32bde28 25126static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25127 PyObject *obj;
25128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25129 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25130 Py_INCREF(obj);
25131 return Py_BuildValue((char *)"");
25132}
c32bde28 25133static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25134 PyObject *resultobj;
25135 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25136 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25137 wxPyDataObjectSimple *result;
25138 PyObject * obj0 = 0 ;
25139 char *kwnames[] = {
25140 (char *) "format", NULL
25141 };
25142
25143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25144 if (obj0) {
25145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25146 SWIG_POINTER_EXCEPTION | 0)) == -1)
25147 SWIG_fail;
25148 if (arg1 == NULL) {
25149 PyErr_SetString(PyExc_TypeError,"null reference");
25150 SWIG_fail;
25151 }
25152 }
25153 {
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
25155 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25156
25157 wxPyEndAllowThreads(__tstate);
25158 if (PyErr_Occurred()) SWIG_fail;
25159 }
25160 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25161 return resultobj;
25162 fail:
25163 return NULL;
25164}
25165
25166
c32bde28 25167static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25168 PyObject *resultobj;
25169 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25170 PyObject *arg2 = (PyObject *) 0 ;
25171 PyObject *arg3 = (PyObject *) 0 ;
25172 PyObject * obj0 = 0 ;
25173 PyObject * obj1 = 0 ;
25174 PyObject * obj2 = 0 ;
25175 char *kwnames[] = {
25176 (char *) "self",(char *) "self",(char *) "_class", NULL
25177 };
25178
25179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25182 arg2 = obj1;
25183 arg3 = obj2;
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 (arg1)->_setCallbackInfo(arg2,arg3);
25187
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 Py_INCREF(Py_None); resultobj = Py_None;
25192 return resultobj;
25193 fail:
25194 return NULL;
25195}
25196
25197
c32bde28 25198static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25199 PyObject *obj;
25200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25201 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25202 Py_INCREF(obj);
25203 return Py_BuildValue((char *)"");
25204}
c32bde28 25205static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25206 PyObject *resultobj;
25207 wxDataObjectComposite *result;
25208 char *kwnames[] = {
25209 NULL
25210 };
25211
25212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25216
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25221 return resultobj;
25222 fail:
25223 return NULL;
25224}
25225
25226
c32bde28 25227static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25228 PyObject *resultobj;
25229 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25230 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
a07a67e6 25231 bool arg3 = (bool) False ;
d55e5bfc
RD
25232 PyObject * obj0 = 0 ;
25233 PyObject * obj1 = 0 ;
25234 PyObject * obj2 = 0 ;
25235 char *kwnames[] = {
25236 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25237 };
25238
25239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25243 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25244 if (obj2) {
c32bde28 25245 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 (arg1)->Add(arg2,arg3);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 Py_INCREF(Py_None); resultobj = Py_None;
25256 return resultobj;
25257 fail:
25258 return NULL;
25259}
25260
25261
c32bde28 25262static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25263 PyObject *obj;
25264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25265 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25266 Py_INCREF(obj);
25267 return Py_BuildValue((char *)"");
25268}
c32bde28 25269static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25270 PyObject *resultobj;
25271 wxString const &arg1_defvalue = wxPyEmptyString ;
25272 wxString *arg1 = (wxString *) &arg1_defvalue ;
25273 wxTextDataObject *result;
25274 bool temp1 = False ;
25275 PyObject * obj0 = 0 ;
25276 char *kwnames[] = {
25277 (char *) "text", NULL
25278 };
25279
25280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25281 if (obj0) {
25282 {
25283 arg1 = wxString_in_helper(obj0);
25284 if (arg1 == NULL) SWIG_fail;
25285 temp1 = True;
25286 }
25287 }
25288 {
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25291
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25296 {
25297 if (temp1)
25298 delete arg1;
25299 }
25300 return resultobj;
25301 fail:
25302 {
25303 if (temp1)
25304 delete arg1;
25305 }
25306 return NULL;
25307}
25308
25309
c32bde28 25310static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25311 PyObject *resultobj;
25312 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25313 size_t result;
25314 PyObject * obj0 = 0 ;
25315 char *kwnames[] = {
25316 (char *) "self", NULL
25317 };
25318
25319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25322 {
25323 PyThreadState* __tstate = wxPyBeginAllowThreads();
25324 result = (size_t)(arg1)->GetTextLength();
25325
25326 wxPyEndAllowThreads(__tstate);
25327 if (PyErr_Occurred()) SWIG_fail;
25328 }
c32bde28 25329 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
25330 return resultobj;
25331 fail:
25332 return NULL;
25333}
25334
25335
c32bde28 25336static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25337 PyObject *resultobj;
25338 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25339 wxString result;
25340 PyObject * obj0 = 0 ;
25341 char *kwnames[] = {
25342 (char *) "self", NULL
25343 };
25344
25345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25348 {
25349 PyThreadState* __tstate = wxPyBeginAllowThreads();
25350 result = (arg1)->GetText();
25351
25352 wxPyEndAllowThreads(__tstate);
25353 if (PyErr_Occurred()) SWIG_fail;
25354 }
25355 {
25356#if wxUSE_UNICODE
25357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25358#else
25359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25360#endif
25361 }
25362 return resultobj;
25363 fail:
25364 return NULL;
25365}
25366
25367
c32bde28 25368static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25369 PyObject *resultobj;
25370 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25371 wxString *arg2 = 0 ;
25372 bool temp2 = False ;
25373 PyObject * obj0 = 0 ;
25374 PyObject * obj1 = 0 ;
25375 char *kwnames[] = {
25376 (char *) "self",(char *) "text", NULL
25377 };
25378
25379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25382 {
25383 arg2 = wxString_in_helper(obj1);
25384 if (arg2 == NULL) SWIG_fail;
25385 temp2 = True;
25386 }
25387 {
25388 PyThreadState* __tstate = wxPyBeginAllowThreads();
25389 (arg1)->SetText((wxString const &)*arg2);
25390
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 Py_INCREF(Py_None); resultobj = Py_None;
25395 {
25396 if (temp2)
25397 delete arg2;
25398 }
25399 return resultobj;
25400 fail:
25401 {
25402 if (temp2)
25403 delete arg2;
25404 }
25405 return NULL;
25406}
25407
25408
c32bde28 25409static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25410 PyObject *obj;
25411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25412 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25413 Py_INCREF(obj);
25414 return Py_BuildValue((char *)"");
25415}
c32bde28 25416static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25417 PyObject *resultobj;
25418 wxString const &arg1_defvalue = wxPyEmptyString ;
25419 wxString *arg1 = (wxString *) &arg1_defvalue ;
25420 wxPyTextDataObject *result;
25421 bool temp1 = False ;
25422 PyObject * obj0 = 0 ;
25423 char *kwnames[] = {
25424 (char *) "text", NULL
25425 };
25426
25427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25428 if (obj0) {
25429 {
25430 arg1 = wxString_in_helper(obj0);
25431 if (arg1 == NULL) SWIG_fail;
25432 temp1 = True;
25433 }
25434 }
25435 {
25436 PyThreadState* __tstate = wxPyBeginAllowThreads();
25437 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25438
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25443 {
25444 if (temp1)
25445 delete arg1;
25446 }
25447 return resultobj;
25448 fail:
25449 {
25450 if (temp1)
25451 delete arg1;
25452 }
25453 return NULL;
25454}
25455
25456
c32bde28 25457static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25458 PyObject *resultobj;
25459 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25460 PyObject *arg2 = (PyObject *) 0 ;
25461 PyObject *arg3 = (PyObject *) 0 ;
25462 PyObject * obj0 = 0 ;
25463 PyObject * obj1 = 0 ;
25464 PyObject * obj2 = 0 ;
25465 char *kwnames[] = {
25466 (char *) "self",(char *) "self",(char *) "_class", NULL
25467 };
25468
25469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25472 arg2 = obj1;
25473 arg3 = obj2;
25474 {
25475 PyThreadState* __tstate = wxPyBeginAllowThreads();
25476 (arg1)->_setCallbackInfo(arg2,arg3);
25477
25478 wxPyEndAllowThreads(__tstate);
25479 if (PyErr_Occurred()) SWIG_fail;
25480 }
25481 Py_INCREF(Py_None); resultobj = Py_None;
25482 return resultobj;
25483 fail:
25484 return NULL;
25485}
25486
25487
c32bde28 25488static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25489 PyObject *obj;
25490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25491 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25492 Py_INCREF(obj);
25493 return Py_BuildValue((char *)"");
25494}
c32bde28 25495static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25496 PyObject *resultobj;
25497 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25498 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25499 wxBitmapDataObject *result;
25500 PyObject * obj0 = 0 ;
25501 char *kwnames[] = {
25502 (char *) "bitmap", NULL
25503 };
25504
25505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25506 if (obj0) {
25507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25508 SWIG_POINTER_EXCEPTION | 0)) == -1)
25509 SWIG_fail;
25510 if (arg1 == NULL) {
25511 PyErr_SetString(PyExc_TypeError,"null reference");
25512 SWIG_fail;
25513 }
25514 }
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25518
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25523 return resultobj;
25524 fail:
25525 return NULL;
25526}
25527
25528
c32bde28 25529static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25530 PyObject *resultobj;
25531 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25532 wxBitmap result;
25533 PyObject * obj0 = 0 ;
25534 char *kwnames[] = {
25535 (char *) "self", NULL
25536 };
25537
25538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25541 {
25542 PyThreadState* __tstate = wxPyBeginAllowThreads();
25543 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25544
25545 wxPyEndAllowThreads(__tstate);
25546 if (PyErr_Occurred()) SWIG_fail;
25547 }
25548 {
25549 wxBitmap * resultptr;
25550 resultptr = new wxBitmap((wxBitmap &) result);
25551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25552 }
25553 return resultobj;
25554 fail:
25555 return NULL;
25556}
25557
25558
c32bde28 25559static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25560 PyObject *resultobj;
25561 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25562 wxBitmap *arg2 = 0 ;
25563 PyObject * obj0 = 0 ;
25564 PyObject * obj1 = 0 ;
25565 char *kwnames[] = {
25566 (char *) "self",(char *) "bitmap", NULL
25567 };
25568
25569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25573 SWIG_POINTER_EXCEPTION | 0)) == -1)
25574 SWIG_fail;
25575 if (arg2 == NULL) {
25576 PyErr_SetString(PyExc_TypeError,"null reference");
25577 SWIG_fail;
25578 }
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25582
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 Py_INCREF(Py_None); resultobj = Py_None;
25587 return resultobj;
25588 fail:
25589 return NULL;
25590}
25591
25592
c32bde28 25593static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25594 PyObject *obj;
25595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25596 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25597 Py_INCREF(obj);
25598 return Py_BuildValue((char *)"");
25599}
c32bde28 25600static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25601 PyObject *resultobj;
25602 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25603 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25604 wxPyBitmapDataObject *result;
25605 PyObject * obj0 = 0 ;
25606 char *kwnames[] = {
25607 (char *) "bitmap", NULL
25608 };
25609
25610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25611 if (obj0) {
25612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25613 SWIG_POINTER_EXCEPTION | 0)) == -1)
25614 SWIG_fail;
25615 if (arg1 == NULL) {
25616 PyErr_SetString(PyExc_TypeError,"null reference");
25617 SWIG_fail;
25618 }
25619 }
25620 {
25621 PyThreadState* __tstate = wxPyBeginAllowThreads();
25622 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25623
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25628 return resultobj;
25629 fail:
25630 return NULL;
25631}
25632
25633
c32bde28 25634static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25635 PyObject *resultobj;
25636 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25637 PyObject *arg2 = (PyObject *) 0 ;
25638 PyObject *arg3 = (PyObject *) 0 ;
25639 PyObject * obj0 = 0 ;
25640 PyObject * obj1 = 0 ;
25641 PyObject * obj2 = 0 ;
25642 char *kwnames[] = {
25643 (char *) "self",(char *) "self",(char *) "_class", NULL
25644 };
25645
25646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25649 arg2 = obj1;
25650 arg3 = obj2;
25651 {
25652 PyThreadState* __tstate = wxPyBeginAllowThreads();
25653 (arg1)->_setCallbackInfo(arg2,arg3);
25654
25655 wxPyEndAllowThreads(__tstate);
25656 if (PyErr_Occurred()) SWIG_fail;
25657 }
25658 Py_INCREF(Py_None); resultobj = Py_None;
25659 return resultobj;
25660 fail:
25661 return NULL;
25662}
25663
25664
c32bde28 25665static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25666 PyObject *obj;
25667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25668 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25669 Py_INCREF(obj);
25670 return Py_BuildValue((char *)"");
25671}
c32bde28 25672static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25673 PyObject *resultobj;
25674 wxFileDataObject *result;
25675 char *kwnames[] = {
25676 NULL
25677 };
25678
25679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25680 {
25681 PyThreadState* __tstate = wxPyBeginAllowThreads();
25682 result = (wxFileDataObject *)new wxFileDataObject();
25683
25684 wxPyEndAllowThreads(__tstate);
25685 if (PyErr_Occurred()) SWIG_fail;
25686 }
25687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25688 return resultobj;
25689 fail:
25690 return NULL;
25691}
25692
25693
c32bde28 25694static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25695 PyObject *resultobj;
25696 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25697 wxArrayString *result;
25698 PyObject * obj0 = 0 ;
25699 char *kwnames[] = {
25700 (char *) "self", NULL
25701 };
25702
25703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25706 {
25707 PyThreadState* __tstate = wxPyBeginAllowThreads();
25708 {
25709 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25710 result = (wxArrayString *) &_result_ref;
25711 }
25712
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 {
25717 resultobj = wxArrayString2PyList_helper(*result);
25718 }
25719 return resultobj;
25720 fail:
25721 return NULL;
25722}
25723
25724
c32bde28 25725static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25726 PyObject *resultobj;
25727 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25728 wxString *arg2 = 0 ;
25729 bool temp2 = False ;
25730 PyObject * obj0 = 0 ;
25731 PyObject * obj1 = 0 ;
25732 char *kwnames[] = {
25733 (char *) "self",(char *) "filename", NULL
25734 };
25735
25736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25739 {
25740 arg2 = wxString_in_helper(obj1);
25741 if (arg2 == NULL) SWIG_fail;
25742 temp2 = True;
25743 }
25744 {
25745 PyThreadState* __tstate = wxPyBeginAllowThreads();
25746 (arg1)->AddFile((wxString const &)*arg2);
25747
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 Py_INCREF(Py_None); resultobj = Py_None;
25752 {
25753 if (temp2)
25754 delete arg2;
25755 }
25756 return resultobj;
25757 fail:
25758 {
25759 if (temp2)
25760 delete arg2;
25761 }
25762 return NULL;
25763}
25764
25765
c32bde28 25766static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25767 PyObject *obj;
25768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25769 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25770 Py_INCREF(obj);
25771 return Py_BuildValue((char *)"");
25772}
c32bde28 25773static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25774 PyObject *resultobj;
25775 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25776 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25777 wxCustomDataObject *result;
25778 PyObject * obj0 = 0 ;
25779 char *kwnames[] = {
25780 (char *) "format", NULL
25781 };
25782
25783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25784 if (obj0) {
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1)
25787 SWIG_fail;
25788 if (arg1 == NULL) {
25789 PyErr_SetString(PyExc_TypeError,"null reference");
25790 SWIG_fail;
25791 }
25792 }
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25796
25797 wxPyEndAllowThreads(__tstate);
25798 if (PyErr_Occurred()) SWIG_fail;
25799 }
25800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25801 return resultobj;
25802 fail:
25803 return NULL;
25804}
25805
25806
c32bde28 25807static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25808 PyObject *resultobj;
25809 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25810 PyObject *arg2 = (PyObject *) 0 ;
25811 bool result;
25812 PyObject * obj0 = 0 ;
25813 PyObject * obj1 = 0 ;
25814 char *kwnames[] = {
25815 (char *) "self",(char *) "data", NULL
25816 };
25817
25818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25821 arg2 = obj1;
25822 {
25823 PyThreadState* __tstate = wxPyBeginAllowThreads();
25824 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25825
25826 wxPyEndAllowThreads(__tstate);
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 {
25830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25831 }
25832 return resultobj;
25833 fail:
25834 return NULL;
25835}
25836
25837
c32bde28 25838static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25839 PyObject *resultobj;
25840 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25841 size_t result;
25842 PyObject * obj0 = 0 ;
25843 char *kwnames[] = {
25844 (char *) "self", NULL
25845 };
25846
25847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 result = (size_t)(arg1)->GetSize();
25853
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
c32bde28 25857 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
25858 return resultobj;
25859 fail:
25860 return NULL;
25861}
25862
25863
c32bde28 25864static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25865 PyObject *resultobj;
25866 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25867 PyObject *result;
25868 PyObject * obj0 = 0 ;
25869 char *kwnames[] = {
25870 (char *) "self", NULL
25871 };
25872
25873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25879
25880 wxPyEndAllowThreads(__tstate);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 resultobj = result;
25884 return resultobj;
25885 fail:
25886 return NULL;
25887}
25888
25889
c32bde28 25890static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25891 PyObject *obj;
25892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25893 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25894 Py_INCREF(obj);
25895 return Py_BuildValue((char *)"");
25896}
c32bde28 25897static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25898 PyObject *resultobj;
25899 wxURLDataObject *result;
25900 char *kwnames[] = {
25901 NULL
25902 };
25903
25904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25905 {
25906 PyThreadState* __tstate = wxPyBeginAllowThreads();
25907 result = (wxURLDataObject *)new wxURLDataObject();
25908
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25913 return resultobj;
25914 fail:
25915 return NULL;
25916}
25917
25918
c32bde28 25919static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25920 PyObject *resultobj;
25921 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25922 wxString result;
25923 PyObject * obj0 = 0 ;
25924 char *kwnames[] = {
25925 (char *) "self", NULL
25926 };
25927
25928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25931 {
25932 PyThreadState* __tstate = wxPyBeginAllowThreads();
25933 result = (arg1)->GetURL();
25934
25935 wxPyEndAllowThreads(__tstate);
25936 if (PyErr_Occurred()) SWIG_fail;
25937 }
25938 {
25939#if wxUSE_UNICODE
25940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25941#else
25942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25943#endif
25944 }
25945 return resultobj;
25946 fail:
25947 return NULL;
25948}
25949
25950
c32bde28 25951static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25952 PyObject *resultobj;
25953 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25954 wxString *arg2 = 0 ;
25955 bool temp2 = False ;
25956 PyObject * obj0 = 0 ;
25957 PyObject * obj1 = 0 ;
25958 char *kwnames[] = {
25959 (char *) "self",(char *) "url", NULL
25960 };
25961
25962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25965 {
25966 arg2 = wxString_in_helper(obj1);
25967 if (arg2 == NULL) SWIG_fail;
25968 temp2 = True;
25969 }
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 (arg1)->SetURL((wxString const &)*arg2);
25973
25974 wxPyEndAllowThreads(__tstate);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 Py_INCREF(Py_None); resultobj = Py_None;
25978 {
25979 if (temp2)
25980 delete arg2;
25981 }
25982 return resultobj;
25983 fail:
25984 {
25985 if (temp2)
25986 delete arg2;
25987 }
25988 return NULL;
25989}
25990
25991
c32bde28 25992static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25993 PyObject *obj;
25994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25995 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25996 Py_INCREF(obj);
25997 return Py_BuildValue((char *)"");
25998}
c32bde28 25999static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26000 PyObject *resultobj;
26001 wxMetafileDataObject *result;
26002 char *kwnames[] = {
26003 NULL
26004 };
26005
26006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26010
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26015 return resultobj;
26016 fail:
26017 return NULL;
26018}
26019
26020
c32bde28 26021static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26022 PyObject *resultobj;
26023 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26024 wxMetafile *arg2 = 0 ;
26025 PyObject * obj0 = 0 ;
26026 PyObject * obj1 = 0 ;
26027 char *kwnames[] = {
26028 (char *) "self",(char *) "metafile", NULL
26029 };
26030
26031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
26032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26034 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
26035 SWIG_POINTER_EXCEPTION | 0)) == -1)
26036 SWIG_fail;
26037 if (arg2 == NULL) {
26038 PyErr_SetString(PyExc_TypeError,"null reference");
26039 SWIG_fail;
26040 }
26041 {
26042 PyThreadState* __tstate = wxPyBeginAllowThreads();
26043 (arg1)->SetMetafile((wxMetafile const &)*arg2);
26044
26045 wxPyEndAllowThreads(__tstate);
26046 if (PyErr_Occurred()) SWIG_fail;
26047 }
26048 Py_INCREF(Py_None); resultobj = Py_None;
26049 return resultobj;
26050 fail:
26051 return NULL;
26052}
26053
26054
c32bde28 26055static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26056 PyObject *resultobj;
26057 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26058 wxMetafile result;
26059 PyObject * obj0 = 0 ;
26060 char *kwnames[] = {
26061 (char *) "self", NULL
26062 };
26063
26064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
26065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26067 {
26068 PyThreadState* __tstate = wxPyBeginAllowThreads();
26069 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
26070
26071 wxPyEndAllowThreads(__tstate);
26072 if (PyErr_Occurred()) SWIG_fail;
26073 }
26074 {
26075 wxMetafile * resultptr;
26076 resultptr = new wxMetafile((wxMetafile &) result);
26077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
26078 }
26079 return resultobj;
26080 fail:
26081 return NULL;
26082}
26083
26084
c32bde28 26085static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26086 PyObject *obj;
26087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26088 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26089 Py_INCREF(obj);
26090 return Py_BuildValue((char *)"");
26091}
c32bde28 26092static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26093 PyObject *resultobj;
26094 int arg1 ;
26095 bool result;
26096 PyObject * obj0 = 0 ;
26097 char *kwnames[] = {
26098 (char *) "res", NULL
26099 };
26100
26101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
c32bde28 26102 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
26103 if (PyErr_Occurred()) SWIG_fail;
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26107
26108 wxPyEndAllowThreads(__tstate);
26109 if (PyErr_Occurred()) SWIG_fail;
26110 }
26111 {
26112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26113 }
26114 return resultobj;
26115 fail:
26116 return NULL;
26117}
26118
26119
c32bde28 26120static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26121 PyObject *resultobj;
26122 wxWindow *arg1 = (wxWindow *) 0 ;
26123 wxCursor const &arg2_defvalue = wxNullCursor ;
26124 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26125 wxCursor const &arg3_defvalue = wxNullCursor ;
26126 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26127 wxCursor const &arg4_defvalue = wxNullCursor ;
26128 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26129 wxPyDropSource *result;
26130 PyObject * obj0 = 0 ;
26131 PyObject * obj1 = 0 ;
26132 PyObject * obj2 = 0 ;
26133 PyObject * obj3 = 0 ;
26134 char *kwnames[] = {
26135 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26136 };
26137
26138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26141 if (obj1) {
26142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26143 SWIG_POINTER_EXCEPTION | 0)) == -1)
26144 SWIG_fail;
26145 if (arg2 == NULL) {
26146 PyErr_SetString(PyExc_TypeError,"null reference");
26147 SWIG_fail;
26148 }
26149 }
26150 if (obj2) {
26151 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26152 SWIG_POINTER_EXCEPTION | 0)) == -1)
26153 SWIG_fail;
26154 if (arg3 == NULL) {
26155 PyErr_SetString(PyExc_TypeError,"null reference");
26156 SWIG_fail;
26157 }
26158 }
26159 if (obj3) {
26160 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26161 SWIG_POINTER_EXCEPTION | 0)) == -1)
26162 SWIG_fail;
26163 if (arg4 == NULL) {
26164 PyErr_SetString(PyExc_TypeError,"null reference");
26165 SWIG_fail;
26166 }
26167 }
26168 {
26169 PyThreadState* __tstate = wxPyBeginAllowThreads();
26170 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26171
26172 wxPyEndAllowThreads(__tstate);
26173 if (PyErr_Occurred()) SWIG_fail;
26174 }
26175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26176 return resultobj;
26177 fail:
26178 return NULL;
26179}
26180
26181
c32bde28 26182static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26183 PyObject *resultobj;
26184 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26185 PyObject *arg2 = (PyObject *) 0 ;
26186 PyObject *arg3 = (PyObject *) 0 ;
26187 int arg4 ;
26188 PyObject * obj0 = 0 ;
26189 PyObject * obj1 = 0 ;
26190 PyObject * obj2 = 0 ;
26191 PyObject * obj3 = 0 ;
26192 char *kwnames[] = {
26193 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26194 };
26195
26196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26199 arg2 = obj1;
26200 arg3 = obj2;
c32bde28 26201 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26202 if (PyErr_Occurred()) SWIG_fail;
26203 {
26204 PyThreadState* __tstate = wxPyBeginAllowThreads();
26205 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26206
26207 wxPyEndAllowThreads(__tstate);
26208 if (PyErr_Occurred()) SWIG_fail;
26209 }
26210 Py_INCREF(Py_None); resultobj = Py_None;
26211 return resultobj;
26212 fail:
26213 return NULL;
26214}
26215
26216
c32bde28 26217static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26218 PyObject *resultobj;
26219 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26220 PyObject * obj0 = 0 ;
26221 char *kwnames[] = {
26222 (char *) "self", NULL
26223 };
26224
26225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26228 {
26229 PyThreadState* __tstate = wxPyBeginAllowThreads();
26230 delete arg1;
26231
26232 wxPyEndAllowThreads(__tstate);
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 Py_INCREF(Py_None); resultobj = Py_None;
26236 return resultobj;
26237 fail:
26238 return NULL;
26239}
26240
26241
c32bde28 26242static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26243 PyObject *resultobj;
26244 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26245 wxDataObject *arg2 = 0 ;
26246 PyObject * obj0 = 0 ;
26247 PyObject * obj1 = 0 ;
26248 char *kwnames[] = {
26249 (char *) "self",(char *) "data", NULL
26250 };
26251
26252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26256 SWIG_POINTER_EXCEPTION | 0)) == -1)
26257 SWIG_fail;
26258 if (arg2 == NULL) {
26259 PyErr_SetString(PyExc_TypeError,"null reference");
26260 SWIG_fail;
26261 }
26262 {
26263 PyThreadState* __tstate = wxPyBeginAllowThreads();
26264 (arg1)->SetData(*arg2);
26265
26266 wxPyEndAllowThreads(__tstate);
26267 if (PyErr_Occurred()) SWIG_fail;
26268 }
26269 Py_INCREF(Py_None); resultobj = Py_None;
26270 return resultobj;
26271 fail:
26272 return NULL;
26273}
26274
26275
c32bde28 26276static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26277 PyObject *resultobj;
26278 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26279 wxDataObject *result;
26280 PyObject * obj0 = 0 ;
26281 char *kwnames[] = {
26282 (char *) "self", NULL
26283 };
26284
26285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 result = (wxDataObject *)(arg1)->GetDataObject();
26291
26292 wxPyEndAllowThreads(__tstate);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26296 return resultobj;
26297 fail:
26298 return NULL;
26299}
26300
26301
c32bde28 26302static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26303 PyObject *resultobj;
26304 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26305 int arg2 ;
26306 wxCursor *arg3 = 0 ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 PyObject * obj2 = 0 ;
26310 char *kwnames[] = {
26311 (char *) "self",(char *) "res",(char *) "cursor", NULL
26312 };
26313
26314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26317 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26318 if (PyErr_Occurred()) SWIG_fail;
26319 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26320 SWIG_POINTER_EXCEPTION | 0)) == -1)
26321 SWIG_fail;
26322 if (arg3 == NULL) {
26323 PyErr_SetString(PyExc_TypeError,"null reference");
26324 SWIG_fail;
26325 }
26326 {
26327 PyThreadState* __tstate = wxPyBeginAllowThreads();
26328 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26329
26330 wxPyEndAllowThreads(__tstate);
26331 if (PyErr_Occurred()) SWIG_fail;
26332 }
26333 Py_INCREF(Py_None); resultobj = Py_None;
26334 return resultobj;
26335 fail:
26336 return NULL;
26337}
26338
26339
c32bde28 26340static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26341 PyObject *resultobj;
26342 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26343 int arg2 = (int) wxDrag_CopyOnly ;
26344 int result;
26345 PyObject * obj0 = 0 ;
26346 PyObject * obj1 = 0 ;
26347 char *kwnames[] = {
26348 (char *) "self",(char *) "flags", NULL
26349 };
26350
26351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26354 if (obj1) {
c32bde28 26355 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 result = (int)(arg1)->DoDragDrop(arg2);
26361
26362 wxPyEndAllowThreads(__tstate);
26363 if (PyErr_Occurred()) SWIG_fail;
26364 }
c32bde28 26365 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26366 return resultobj;
26367 fail:
26368 return NULL;
26369}
26370
26371
c32bde28 26372static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26373 PyObject *resultobj;
26374 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26375 int arg2 ;
26376 bool result;
26377 PyObject * obj0 = 0 ;
26378 PyObject * obj1 = 0 ;
26379 char *kwnames[] = {
26380 (char *) "self",(char *) "effect", NULL
26381 };
26382
26383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26386 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26387 if (PyErr_Occurred()) SWIG_fail;
26388 {
26389 PyThreadState* __tstate = wxPyBeginAllowThreads();
26390 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26391
26392 wxPyEndAllowThreads(__tstate);
26393 if (PyErr_Occurred()) SWIG_fail;
26394 }
26395 {
26396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26397 }
26398 return resultobj;
26399 fail:
26400 return NULL;
26401}
26402
26403
c32bde28 26404static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26405 PyObject *obj;
26406 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26407 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26408 Py_INCREF(obj);
26409 return Py_BuildValue((char *)"");
26410}
c32bde28 26411static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26412 PyObject *resultobj;
26413 wxDataObject *arg1 = (wxDataObject *) NULL ;
26414 wxPyDropTarget *result;
26415 PyObject * obj0 = 0 ;
26416 char *kwnames[] = {
26417 (char *) "dataObject", NULL
26418 };
26419
26420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26421 if (obj0) {
26422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26423 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26424 }
26425 {
26426 PyThreadState* __tstate = wxPyBeginAllowThreads();
26427 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26428
26429 wxPyEndAllowThreads(__tstate);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 }
26432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26433 return resultobj;
26434 fail:
26435 return NULL;
26436}
26437
26438
c32bde28 26439static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26440 PyObject *resultobj;
26441 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26442 PyObject *arg2 = (PyObject *) 0 ;
26443 PyObject *arg3 = (PyObject *) 0 ;
26444 PyObject * obj0 = 0 ;
26445 PyObject * obj1 = 0 ;
26446 PyObject * obj2 = 0 ;
26447 char *kwnames[] = {
26448 (char *) "self",(char *) "self",(char *) "_class", NULL
26449 };
26450
26451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26454 arg2 = obj1;
26455 arg3 = obj2;
26456 {
26457 PyThreadState* __tstate = wxPyBeginAllowThreads();
26458 (arg1)->_setCallbackInfo(arg2,arg3);
26459
26460 wxPyEndAllowThreads(__tstate);
26461 if (PyErr_Occurred()) SWIG_fail;
26462 }
26463 Py_INCREF(Py_None); resultobj = Py_None;
26464 return resultobj;
26465 fail:
26466 return NULL;
26467}
26468
26469
c32bde28 26470static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26471 PyObject *resultobj;
26472 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26473 PyObject * obj0 = 0 ;
26474 char *kwnames[] = {
26475 (char *) "self", NULL
26476 };
26477
26478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26481 {
26482 PyThreadState* __tstate = wxPyBeginAllowThreads();
26483 delete arg1;
26484
26485 wxPyEndAllowThreads(__tstate);
26486 if (PyErr_Occurred()) SWIG_fail;
26487 }
26488 Py_INCREF(Py_None); resultobj = Py_None;
26489 return resultobj;
26490 fail:
26491 return NULL;
26492}
26493
26494
c32bde28 26495static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26496 PyObject *resultobj;
26497 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26498 wxDataObject *result;
26499 PyObject * obj0 = 0 ;
26500 char *kwnames[] = {
26501 (char *) "self", NULL
26502 };
26503
26504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26507 {
26508 PyThreadState* __tstate = wxPyBeginAllowThreads();
26509 result = (wxDataObject *)(arg1)->GetDataObject();
26510
26511 wxPyEndAllowThreads(__tstate);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 }
26514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26515 return resultobj;
26516 fail:
26517 return NULL;
26518}
26519
26520
c32bde28 26521static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26522 PyObject *resultobj;
26523 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26524 wxDataObject *arg2 = (wxDataObject *) 0 ;
26525 PyObject * obj0 = 0 ;
26526 PyObject * obj1 = 0 ;
26527 char *kwnames[] = {
26528 (char *) "self",(char *) "dataObject", NULL
26529 };
26530
26531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26535 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26536 {
26537 PyThreadState* __tstate = wxPyBeginAllowThreads();
26538 (arg1)->SetDataObject(arg2);
26539
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
26543 Py_INCREF(Py_None); resultobj = Py_None;
26544 return resultobj;
26545 fail:
26546 return NULL;
26547}
26548
26549
c32bde28 26550static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26551 PyObject *resultobj;
26552 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26553 int arg2 ;
26554 int arg3 ;
26555 int arg4 ;
26556 int result;
26557 PyObject * obj0 = 0 ;
26558 PyObject * obj1 = 0 ;
26559 PyObject * obj2 = 0 ;
26560 PyObject * obj3 = 0 ;
26561 char *kwnames[] = {
26562 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26563 };
26564
26565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26568 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26569 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26570 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26571 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26572 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26573 if (PyErr_Occurred()) SWIG_fail;
26574 {
26575 PyThreadState* __tstate = wxPyBeginAllowThreads();
26576 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26577
26578 wxPyEndAllowThreads(__tstate);
26579 if (PyErr_Occurred()) SWIG_fail;
26580 }
c32bde28 26581 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26582 return resultobj;
26583 fail:
26584 return NULL;
26585}
26586
26587
c32bde28 26588static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26589 PyObject *resultobj;
26590 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26591 int arg2 ;
26592 int arg3 ;
26593 int arg4 ;
26594 int result;
26595 PyObject * obj0 = 0 ;
26596 PyObject * obj1 = 0 ;
26597 PyObject * obj2 = 0 ;
26598 PyObject * obj3 = 0 ;
26599 char *kwnames[] = {
26600 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26601 };
26602
26603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26606 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26607 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26608 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26609 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26610 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26611 if (PyErr_Occurred()) SWIG_fail;
26612 {
26613 PyThreadState* __tstate = wxPyBeginAllowThreads();
26614 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26615
26616 wxPyEndAllowThreads(__tstate);
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
c32bde28 26619 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26620 return resultobj;
26621 fail:
26622 return NULL;
26623}
26624
26625
c32bde28 26626static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26627 PyObject *resultobj;
26628 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26629 PyObject * obj0 = 0 ;
26630 char *kwnames[] = {
26631 (char *) "self", NULL
26632 };
26633
26634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26637 {
26638 PyThreadState* __tstate = wxPyBeginAllowThreads();
26639 (arg1)->base_OnLeave();
26640
26641 wxPyEndAllowThreads(__tstate);
26642 if (PyErr_Occurred()) SWIG_fail;
26643 }
26644 Py_INCREF(Py_None); resultobj = Py_None;
26645 return resultobj;
26646 fail:
26647 return NULL;
26648}
26649
26650
c32bde28 26651static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26652 PyObject *resultobj;
26653 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26654 int arg2 ;
26655 int arg3 ;
26656 bool result;
26657 PyObject * obj0 = 0 ;
26658 PyObject * obj1 = 0 ;
26659 PyObject * obj2 = 0 ;
26660 char *kwnames[] = {
26661 (char *) "self",(char *) "x",(char *) "y", NULL
26662 };
26663
26664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26667 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26668 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26669 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
26670 if (PyErr_Occurred()) SWIG_fail;
26671 {
26672 PyThreadState* __tstate = wxPyBeginAllowThreads();
26673 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26674
26675 wxPyEndAllowThreads(__tstate);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
26678 {
26679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26680 }
26681 return resultobj;
26682 fail:
26683 return NULL;
26684}
26685
26686
c32bde28 26687static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26688 PyObject *resultobj;
26689 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26690 bool result;
26691 PyObject * obj0 = 0 ;
26692 char *kwnames[] = {
26693 (char *) "self", NULL
26694 };
26695
26696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26699 {
26700 PyThreadState* __tstate = wxPyBeginAllowThreads();
26701 result = (bool)(arg1)->GetData();
26702
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 {
26707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26708 }
26709 return resultobj;
26710 fail:
26711 return NULL;
26712}
26713
26714
c32bde28 26715static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26716 PyObject *obj;
26717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26718 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26719 Py_INCREF(obj);
26720 return Py_BuildValue((char *)"");
26721}
c32bde28 26722static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26723 PyObject *resultobj;
26724 wxPyTextDropTarget *result;
26725 char *kwnames[] = {
26726 NULL
26727 };
26728
26729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26730 {
26731 PyThreadState* __tstate = wxPyBeginAllowThreads();
26732 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26733
26734 wxPyEndAllowThreads(__tstate);
26735 if (PyErr_Occurred()) SWIG_fail;
26736 }
26737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26738 return resultobj;
26739 fail:
26740 return NULL;
26741}
26742
26743
c32bde28 26744static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26745 PyObject *resultobj;
26746 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26747 PyObject *arg2 = (PyObject *) 0 ;
26748 PyObject *arg3 = (PyObject *) 0 ;
26749 PyObject * obj0 = 0 ;
26750 PyObject * obj1 = 0 ;
26751 PyObject * obj2 = 0 ;
26752 char *kwnames[] = {
26753 (char *) "self",(char *) "self",(char *) "_class", NULL
26754 };
26755
26756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26759 arg2 = obj1;
26760 arg3 = obj2;
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 (arg1)->_setCallbackInfo(arg2,arg3);
26764
26765 wxPyEndAllowThreads(__tstate);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 Py_INCREF(Py_None); resultobj = Py_None;
26769 return resultobj;
26770 fail:
26771 return NULL;
26772}
26773
26774
c32bde28 26775static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26776 PyObject *resultobj;
26777 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26778 int arg2 ;
26779 int arg3 ;
26780 int arg4 ;
26781 int result;
26782 PyObject * obj0 = 0 ;
26783 PyObject * obj1 = 0 ;
26784 PyObject * obj2 = 0 ;
26785 PyObject * obj3 = 0 ;
26786 char *kwnames[] = {
26787 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26788 };
26789
26790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26793 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26794 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26795 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26796 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26797 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26798 if (PyErr_Occurred()) SWIG_fail;
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26802
26803 wxPyEndAllowThreads(__tstate);
26804 if (PyErr_Occurred()) SWIG_fail;
26805 }
c32bde28 26806 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26807 return resultobj;
26808 fail:
26809 return NULL;
26810}
26811
26812
c32bde28 26813static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26814 PyObject *resultobj;
26815 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26816 int arg2 ;
26817 int arg3 ;
26818 int arg4 ;
26819 int result;
26820 PyObject * obj0 = 0 ;
26821 PyObject * obj1 = 0 ;
26822 PyObject * obj2 = 0 ;
26823 PyObject * obj3 = 0 ;
26824 char *kwnames[] = {
26825 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26826 };
26827
26828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26831 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26832 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26833 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26834 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26835 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26836 if (PyErr_Occurred()) SWIG_fail;
26837 {
26838 PyThreadState* __tstate = wxPyBeginAllowThreads();
26839 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26840
26841 wxPyEndAllowThreads(__tstate);
26842 if (PyErr_Occurred()) SWIG_fail;
26843 }
c32bde28 26844 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26845 return resultobj;
26846 fail:
26847 return NULL;
26848}
26849
26850
c32bde28 26851static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26852 PyObject *resultobj;
26853 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26854 PyObject * obj0 = 0 ;
26855 char *kwnames[] = {
26856 (char *) "self", NULL
26857 };
26858
26859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26862 {
26863 PyThreadState* __tstate = wxPyBeginAllowThreads();
26864 (arg1)->base_OnLeave();
26865
26866 wxPyEndAllowThreads(__tstate);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 Py_INCREF(Py_None); resultobj = Py_None;
26870 return resultobj;
26871 fail:
26872 return NULL;
26873}
26874
26875
c32bde28 26876static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26877 PyObject *resultobj;
26878 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26879 int arg2 ;
26880 int arg3 ;
26881 bool result;
26882 PyObject * obj0 = 0 ;
26883 PyObject * obj1 = 0 ;
26884 PyObject * obj2 = 0 ;
26885 char *kwnames[] = {
26886 (char *) "self",(char *) "x",(char *) "y", NULL
26887 };
26888
26889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26892 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26893 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26894 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
26895 if (PyErr_Occurred()) SWIG_fail;
26896 {
26897 PyThreadState* __tstate = wxPyBeginAllowThreads();
26898 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26899
26900 wxPyEndAllowThreads(__tstate);
26901 if (PyErr_Occurred()) SWIG_fail;
26902 }
26903 {
26904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26905 }
26906 return resultobj;
26907 fail:
26908 return NULL;
26909}
26910
26911
c32bde28 26912static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26913 PyObject *resultobj;
26914 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26915 int arg2 ;
26916 int arg3 ;
26917 int arg4 ;
26918 int result;
26919 PyObject * obj0 = 0 ;
26920 PyObject * obj1 = 0 ;
26921 PyObject * obj2 = 0 ;
26922 PyObject * obj3 = 0 ;
26923 char *kwnames[] = {
26924 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26925 };
26926
26927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26930 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26931 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26932 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26933 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26934 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26935 if (PyErr_Occurred()) SWIG_fail;
26936 {
26937 PyThreadState* __tstate = wxPyBeginAllowThreads();
26938 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26939
26940 wxPyEndAllowThreads(__tstate);
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
c32bde28 26943 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26944 return resultobj;
26945 fail:
26946 return NULL;
26947}
26948
26949
c32bde28 26950static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26951 PyObject *obj;
26952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26953 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26954 Py_INCREF(obj);
26955 return Py_BuildValue((char *)"");
26956}
c32bde28 26957static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26958 PyObject *resultobj;
26959 wxPyFileDropTarget *result;
26960 char *kwnames[] = {
26961 NULL
26962 };
26963
26964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26968
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26973 return resultobj;
26974 fail:
26975 return NULL;
26976}
26977
26978
c32bde28 26979static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26980 PyObject *resultobj;
26981 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26982 PyObject *arg2 = (PyObject *) 0 ;
26983 PyObject *arg3 = (PyObject *) 0 ;
26984 PyObject * obj0 = 0 ;
26985 PyObject * obj1 = 0 ;
26986 PyObject * obj2 = 0 ;
26987 char *kwnames[] = {
26988 (char *) "self",(char *) "self",(char *) "_class", NULL
26989 };
26990
26991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26994 arg2 = obj1;
26995 arg3 = obj2;
26996 {
26997 PyThreadState* __tstate = wxPyBeginAllowThreads();
26998 (arg1)->_setCallbackInfo(arg2,arg3);
26999
27000 wxPyEndAllowThreads(__tstate);
27001 if (PyErr_Occurred()) SWIG_fail;
27002 }
27003 Py_INCREF(Py_None); resultobj = Py_None;
27004 return resultobj;
27005 fail:
27006 return NULL;
27007}
27008
27009
c32bde28 27010static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27011 PyObject *resultobj;
27012 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27013 int arg2 ;
27014 int arg3 ;
27015 int arg4 ;
27016 int result;
27017 PyObject * obj0 = 0 ;
27018 PyObject * obj1 = 0 ;
27019 PyObject * obj2 = 0 ;
27020 PyObject * obj3 = 0 ;
27021 char *kwnames[] = {
27022 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27023 };
27024
27025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27028 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27029 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27030 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27031 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27032 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27033 if (PyErr_Occurred()) SWIG_fail;
27034 {
27035 PyThreadState* __tstate = wxPyBeginAllowThreads();
27036 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27037
27038 wxPyEndAllowThreads(__tstate);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
c32bde28 27041 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27042 return resultobj;
27043 fail:
27044 return NULL;
27045}
27046
27047
c32bde28 27048static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27049 PyObject *resultobj;
27050 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27051 int arg2 ;
27052 int arg3 ;
27053 int arg4 ;
27054 int result;
27055 PyObject * obj0 = 0 ;
27056 PyObject * obj1 = 0 ;
27057 PyObject * obj2 = 0 ;
27058 PyObject * obj3 = 0 ;
27059 char *kwnames[] = {
27060 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27061 };
27062
27063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27066 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27067 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27068 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27069 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27070 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27071 if (PyErr_Occurred()) SWIG_fail;
27072 {
27073 PyThreadState* __tstate = wxPyBeginAllowThreads();
27074 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27075
27076 wxPyEndAllowThreads(__tstate);
27077 if (PyErr_Occurred()) SWIG_fail;
27078 }
c32bde28 27079 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27080 return resultobj;
27081 fail:
27082 return NULL;
27083}
27084
27085
c32bde28 27086static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27087 PyObject *resultobj;
27088 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27089 PyObject * obj0 = 0 ;
27090 char *kwnames[] = {
27091 (char *) "self", NULL
27092 };
27093
27094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27097 {
27098 PyThreadState* __tstate = wxPyBeginAllowThreads();
27099 (arg1)->base_OnLeave();
27100
27101 wxPyEndAllowThreads(__tstate);
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 Py_INCREF(Py_None); resultobj = Py_None;
27105 return resultobj;
27106 fail:
27107 return NULL;
27108}
27109
27110
c32bde28 27111static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27112 PyObject *resultobj;
27113 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27114 int arg2 ;
27115 int arg3 ;
27116 bool result;
27117 PyObject * obj0 = 0 ;
27118 PyObject * obj1 = 0 ;
27119 PyObject * obj2 = 0 ;
27120 char *kwnames[] = {
27121 (char *) "self",(char *) "x",(char *) "y", NULL
27122 };
27123
27124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27127 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27128 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27129 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27130 if (PyErr_Occurred()) SWIG_fail;
27131 {
27132 PyThreadState* __tstate = wxPyBeginAllowThreads();
27133 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27134
27135 wxPyEndAllowThreads(__tstate);
27136 if (PyErr_Occurred()) SWIG_fail;
27137 }
27138 {
27139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27140 }
27141 return resultobj;
27142 fail:
27143 return NULL;
27144}
27145
27146
c32bde28 27147static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27148 PyObject *resultobj;
27149 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27150 int arg2 ;
27151 int arg3 ;
27152 int arg4 ;
27153 int result;
27154 PyObject * obj0 = 0 ;
27155 PyObject * obj1 = 0 ;
27156 PyObject * obj2 = 0 ;
27157 PyObject * obj3 = 0 ;
27158 char *kwnames[] = {
27159 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27160 };
27161
27162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27165 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27166 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27167 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27168 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27169 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27170 if (PyErr_Occurred()) SWIG_fail;
27171 {
27172 PyThreadState* __tstate = wxPyBeginAllowThreads();
27173 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27174
27175 wxPyEndAllowThreads(__tstate);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
c32bde28 27178 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27179 return resultobj;
27180 fail:
27181 return NULL;
27182}
27183
27184
c32bde28 27185static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27186 PyObject *obj;
27187 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27188 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27189 Py_INCREF(obj);
27190 return Py_BuildValue((char *)"");
27191}
c32bde28 27192static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27193 PyObject *resultobj;
27194 wxClipboard *result;
27195 char *kwnames[] = {
27196 NULL
27197 };
27198
27199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27200 {
27201 PyThreadState* __tstate = wxPyBeginAllowThreads();
27202 result = (wxClipboard *)new wxClipboard();
27203
27204 wxPyEndAllowThreads(__tstate);
27205 if (PyErr_Occurred()) SWIG_fail;
27206 }
27207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27208 return resultobj;
27209 fail:
27210 return NULL;
27211}
27212
27213
c32bde28 27214static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27215 PyObject *resultobj;
27216 wxClipboard *arg1 = (wxClipboard *) 0 ;
27217 PyObject * obj0 = 0 ;
27218 char *kwnames[] = {
27219 (char *) "self", NULL
27220 };
27221
27222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27225 {
27226 PyThreadState* __tstate = wxPyBeginAllowThreads();
27227 delete arg1;
27228
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 Py_INCREF(Py_None); resultobj = Py_None;
27233 return resultobj;
27234 fail:
27235 return NULL;
27236}
27237
27238
c32bde28 27239static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27240 PyObject *resultobj;
27241 wxClipboard *arg1 = (wxClipboard *) 0 ;
27242 bool result;
27243 PyObject * obj0 = 0 ;
27244 char *kwnames[] = {
27245 (char *) "self", NULL
27246 };
27247
27248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27251 {
27252 PyThreadState* __tstate = wxPyBeginAllowThreads();
27253 result = (bool)(arg1)->Open();
27254
27255 wxPyEndAllowThreads(__tstate);
27256 if (PyErr_Occurred()) SWIG_fail;
27257 }
27258 {
27259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27260 }
27261 return resultobj;
27262 fail:
27263 return NULL;
27264}
27265
27266
c32bde28 27267static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27268 PyObject *resultobj;
27269 wxClipboard *arg1 = (wxClipboard *) 0 ;
27270 PyObject * obj0 = 0 ;
27271 char *kwnames[] = {
27272 (char *) "self", NULL
27273 };
27274
27275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27278 {
27279 PyThreadState* __tstate = wxPyBeginAllowThreads();
27280 (arg1)->Close();
27281
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 Py_INCREF(Py_None); resultobj = Py_None;
27286 return resultobj;
27287 fail:
27288 return NULL;
27289}
27290
27291
c32bde28 27292static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27293 PyObject *resultobj;
27294 wxClipboard *arg1 = (wxClipboard *) 0 ;
27295 bool result;
27296 PyObject * obj0 = 0 ;
27297 char *kwnames[] = {
27298 (char *) "self", NULL
27299 };
27300
27301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27307
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 {
27312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27313 }
27314 return resultobj;
27315 fail:
27316 return NULL;
27317}
27318
27319
c32bde28 27320static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27321 PyObject *resultobj;
27322 wxClipboard *arg1 = (wxClipboard *) 0 ;
27323 wxDataObject *arg2 = (wxDataObject *) 0 ;
27324 bool result;
27325 PyObject * obj0 = 0 ;
27326 PyObject * obj1 = 0 ;
27327 char *kwnames[] = {
27328 (char *) "self",(char *) "data", NULL
27329 };
27330
27331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27335 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27336 {
27337 PyThreadState* __tstate = wxPyBeginAllowThreads();
27338 result = (bool)(arg1)->AddData(arg2);
27339
27340 wxPyEndAllowThreads(__tstate);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 {
27344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27345 }
27346 return resultobj;
27347 fail:
27348 return NULL;
27349}
27350
27351
c32bde28 27352static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27353 PyObject *resultobj;
27354 wxClipboard *arg1 = (wxClipboard *) 0 ;
27355 wxDataObject *arg2 = (wxDataObject *) 0 ;
27356 bool result;
27357 PyObject * obj0 = 0 ;
27358 PyObject * obj1 = 0 ;
27359 char *kwnames[] = {
27360 (char *) "self",(char *) "data", NULL
27361 };
27362
27363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27366 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27367 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 result = (bool)(arg1)->SetData(arg2);
27371
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 {
27376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27377 }
27378 return resultobj;
27379 fail:
27380 return NULL;
27381}
27382
27383
c32bde28 27384static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27385 PyObject *resultobj;
27386 wxClipboard *arg1 = (wxClipboard *) 0 ;
27387 wxDataFormat *arg2 = 0 ;
27388 bool result;
27389 PyObject * obj0 = 0 ;
27390 PyObject * obj1 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self",(char *) "format", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27399 SWIG_POINTER_EXCEPTION | 0)) == -1)
27400 SWIG_fail;
27401 if (arg2 == NULL) {
27402 PyErr_SetString(PyExc_TypeError,"null reference");
27403 SWIG_fail;
27404 }
27405 {
27406 PyThreadState* __tstate = wxPyBeginAllowThreads();
27407 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27408
27409 wxPyEndAllowThreads(__tstate);
27410 if (PyErr_Occurred()) SWIG_fail;
27411 }
27412 {
27413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27414 }
27415 return resultobj;
27416 fail:
27417 return NULL;
27418}
27419
27420
c32bde28 27421static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27422 PyObject *resultobj;
27423 wxClipboard *arg1 = (wxClipboard *) 0 ;
27424 wxDataObject *arg2 = 0 ;
27425 bool result;
27426 PyObject * obj0 = 0 ;
27427 PyObject * obj1 = 0 ;
27428 char *kwnames[] = {
27429 (char *) "self",(char *) "data", NULL
27430 };
27431
27432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27436 SWIG_POINTER_EXCEPTION | 0)) == -1)
27437 SWIG_fail;
27438 if (arg2 == NULL) {
27439 PyErr_SetString(PyExc_TypeError,"null reference");
27440 SWIG_fail;
27441 }
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = (bool)(arg1)->GetData(*arg2);
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 {
27450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27451 }
27452 return resultobj;
27453 fail:
27454 return NULL;
27455}
27456
27457
c32bde28 27458static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27459 PyObject *resultobj;
27460 wxClipboard *arg1 = (wxClipboard *) 0 ;
27461 PyObject * obj0 = 0 ;
27462 char *kwnames[] = {
27463 (char *) "self", NULL
27464 };
27465
27466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 (arg1)->Clear();
27472
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 Py_INCREF(Py_None); resultobj = Py_None;
27477 return resultobj;
27478 fail:
27479 return NULL;
27480}
27481
27482
c32bde28 27483static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27484 PyObject *resultobj;
27485 wxClipboard *arg1 = (wxClipboard *) 0 ;
27486 bool result;
27487 PyObject * obj0 = 0 ;
27488 char *kwnames[] = {
27489 (char *) "self", NULL
27490 };
27491
27492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27495 {
27496 PyThreadState* __tstate = wxPyBeginAllowThreads();
27497 result = (bool)(arg1)->Flush();
27498
27499 wxPyEndAllowThreads(__tstate);
27500 if (PyErr_Occurred()) SWIG_fail;
27501 }
27502 {
27503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27504 }
27505 return resultobj;
27506 fail:
27507 return NULL;
27508}
27509
27510
c32bde28 27511static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27512 PyObject *resultobj;
27513 wxClipboard *arg1 = (wxClipboard *) 0 ;
27514 bool arg2 = (bool) True ;
27515 PyObject * obj0 = 0 ;
27516 PyObject * obj1 = 0 ;
27517 char *kwnames[] = {
27518 (char *) "self",(char *) "primary", NULL
27519 };
27520
27521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27524 if (obj1) {
c32bde28 27525 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
27526 if (PyErr_Occurred()) SWIG_fail;
27527 }
27528 {
27529 PyThreadState* __tstate = wxPyBeginAllowThreads();
27530 (arg1)->UsePrimarySelection(arg2);
27531
27532 wxPyEndAllowThreads(__tstate);
27533 if (PyErr_Occurred()) SWIG_fail;
27534 }
27535 Py_INCREF(Py_None); resultobj = Py_None;
27536 return resultobj;
27537 fail:
27538 return NULL;
27539}
27540
27541
c32bde28 27542static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
a001823c
RD
27543 PyObject *resultobj;
27544 wxClipboard *result;
27545 char *kwnames[] = {
27546 NULL
27547 };
27548
27549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27550 {
27551 PyThreadState* __tstate = wxPyBeginAllowThreads();
27552 result = (wxClipboard *)wxClipboard::Get();
27553
27554 wxPyEndAllowThreads(__tstate);
27555 if (PyErr_Occurred()) SWIG_fail;
27556 }
27557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27558 return resultobj;
27559 fail:
27560 return NULL;
27561}
27562
27563
c32bde28 27564static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27565 PyObject *obj;
27566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27567 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27568 Py_INCREF(obj);
27569 return Py_BuildValue((char *)"");
27570}
c32bde28 27571static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27572 PyObject *resultobj;
27573 wxClipboard *arg1 = (wxClipboard *) NULL ;
27574 wxClipboardLocker *result;
27575 PyObject * obj0 = 0 ;
27576 char *kwnames[] = {
27577 (char *) "clipboard", NULL
27578 };
27579
27580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27581 if (obj0) {
27582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27584 }
27585 {
27586 PyThreadState* __tstate = wxPyBeginAllowThreads();
27587 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27588
27589 wxPyEndAllowThreads(__tstate);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27593 return resultobj;
27594 fail:
27595 return NULL;
27596}
27597
27598
c32bde28 27599static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27600 PyObject *resultobj;
27601 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27602 PyObject * obj0 = 0 ;
27603 char *kwnames[] = {
27604 (char *) "self", NULL
27605 };
27606
27607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27610 {
27611 PyThreadState* __tstate = wxPyBeginAllowThreads();
27612 delete arg1;
27613
27614 wxPyEndAllowThreads(__tstate);
27615 if (PyErr_Occurred()) SWIG_fail;
27616 }
27617 Py_INCREF(Py_None); resultobj = Py_None;
27618 return resultobj;
27619 fail:
27620 return NULL;
27621}
27622
27623
c32bde28 27624static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27625 PyObject *resultobj;
27626 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27627 bool result;
27628 PyObject * obj0 = 0 ;
27629 char *kwnames[] = {
27630 (char *) "self", NULL
27631 };
27632
27633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27636 {
27637 PyThreadState* __tstate = wxPyBeginAllowThreads();
27638 result = (bool)wxClipboardLocker___nonzero__(arg1);
27639
27640 wxPyEndAllowThreads(__tstate);
27641 if (PyErr_Occurred()) SWIG_fail;
27642 }
27643 {
27644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27645 }
27646 return resultobj;
27647 fail:
27648 return NULL;
27649}
27650
27651
c32bde28 27652static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27653 PyObject *obj;
27654 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27655 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27656 Py_INCREF(obj);
27657 return Py_BuildValue((char *)"");
27658}
c32bde28 27659static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27660 PyObject *resultobj;
27661 int arg1 = (int) 0 ;
27662 int arg2 = (int) 0 ;
27663 int arg3 = (int) 0 ;
27664 int arg4 = (int) 0 ;
27665 wxVideoMode *result;
27666 PyObject * obj0 = 0 ;
27667 PyObject * obj1 = 0 ;
27668 PyObject * obj2 = 0 ;
27669 PyObject * obj3 = 0 ;
27670 char *kwnames[] = {
27671 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27672 };
27673
27674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27675 if (obj0) {
c32bde28 27676 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
27677 if (PyErr_Occurred()) SWIG_fail;
27678 }
27679 if (obj1) {
c32bde28 27680 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 if (obj2) {
c32bde28 27684 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27685 if (PyErr_Occurred()) SWIG_fail;
27686 }
27687 if (obj3) {
c32bde28 27688 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27689 if (PyErr_Occurred()) SWIG_fail;
27690 }
27691 {
27692 PyThreadState* __tstate = wxPyBeginAllowThreads();
27693 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27694
27695 wxPyEndAllowThreads(__tstate);
27696 if (PyErr_Occurred()) SWIG_fail;
27697 }
27698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27699 return resultobj;
27700 fail:
27701 return NULL;
27702}
27703
27704
c32bde28 27705static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27706 PyObject *resultobj;
27707 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27708 PyObject * obj0 = 0 ;
27709 char *kwnames[] = {
27710 (char *) "self", NULL
27711 };
27712
27713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27716 {
27717 PyThreadState* __tstate = wxPyBeginAllowThreads();
27718 delete arg1;
27719
27720 wxPyEndAllowThreads(__tstate);
27721 if (PyErr_Occurred()) SWIG_fail;
27722 }
27723 Py_INCREF(Py_None); resultobj = Py_None;
27724 return resultobj;
27725 fail:
27726 return NULL;
27727}
27728
27729
c32bde28 27730static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27731 PyObject *resultobj;
27732 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27733 wxVideoMode *arg2 = 0 ;
27734 bool result;
27735 PyObject * obj0 = 0 ;
27736 PyObject * obj1 = 0 ;
27737 char *kwnames[] = {
27738 (char *) "self",(char *) "other", NULL
27739 };
27740
27741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27745 SWIG_POINTER_EXCEPTION | 0)) == -1)
27746 SWIG_fail;
27747 if (arg2 == NULL) {
27748 PyErr_SetString(PyExc_TypeError,"null reference");
27749 SWIG_fail;
27750 }
27751 {
27752 PyThreadState* __tstate = wxPyBeginAllowThreads();
27753 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27754
27755 wxPyEndAllowThreads(__tstate);
27756 if (PyErr_Occurred()) SWIG_fail;
27757 }
27758 {
27759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27760 }
27761 return resultobj;
27762 fail:
27763 return NULL;
27764}
27765
27766
c32bde28 27767static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27768 PyObject *resultobj;
27769 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27770 int result;
27771 PyObject * obj0 = 0 ;
27772 char *kwnames[] = {
27773 (char *) "self", NULL
27774 };
27775
27776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27779 {
27780 PyThreadState* __tstate = wxPyBeginAllowThreads();
27781 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27782
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
c32bde28 27786 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27787 return resultobj;
27788 fail:
27789 return NULL;
27790}
27791
27792
c32bde28 27793static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27794 PyObject *resultobj;
27795 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27796 int result;
27797 PyObject * obj0 = 0 ;
27798 char *kwnames[] = {
27799 (char *) "self", NULL
27800 };
27801
27802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27805 {
27806 PyThreadState* __tstate = wxPyBeginAllowThreads();
27807 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27808
27809 wxPyEndAllowThreads(__tstate);
27810 if (PyErr_Occurred()) SWIG_fail;
27811 }
c32bde28 27812 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27813 return resultobj;
27814 fail:
27815 return NULL;
27816}
27817
27818
c32bde28 27819static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27820 PyObject *resultobj;
27821 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27822 int result;
27823 PyObject * obj0 = 0 ;
27824 char *kwnames[] = {
27825 (char *) "self", NULL
27826 };
27827
27828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27831 {
27832 PyThreadState* __tstate = wxPyBeginAllowThreads();
27833 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27834
27835 wxPyEndAllowThreads(__tstate);
27836 if (PyErr_Occurred()) SWIG_fail;
27837 }
c32bde28 27838 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27839 return resultobj;
27840 fail:
27841 return NULL;
27842}
27843
27844
c32bde28 27845static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27846 PyObject *resultobj;
27847 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27848 bool result;
27849 PyObject * obj0 = 0 ;
27850 char *kwnames[] = {
27851 (char *) "self", NULL
27852 };
27853
27854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27857 {
27858 PyThreadState* __tstate = wxPyBeginAllowThreads();
27859 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27860
27861 wxPyEndAllowThreads(__tstate);
27862 if (PyErr_Occurred()) SWIG_fail;
27863 }
27864 {
27865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27866 }
27867 return resultobj;
27868 fail:
27869 return NULL;
27870}
27871
27872
c32bde28 27873static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27874 PyObject *resultobj;
27875 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27876 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27877 bool result;
27878 PyObject * obj0 = 0 ;
27879 PyObject * obj1 = 0 ;
27880 char *kwnames[] = {
27881 (char *) "self",(char *) "other", NULL
27882 };
27883
27884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27889 {
27890 PyThreadState* __tstate = wxPyBeginAllowThreads();
27891 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27892
27893 wxPyEndAllowThreads(__tstate);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 {
27897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27898 }
27899 return resultobj;
27900 fail:
27901 return NULL;
27902}
27903
27904
c32bde28 27905static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27906 PyObject *resultobj;
27907 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27908 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27909 bool result;
27910 PyObject * obj0 = 0 ;
27911 PyObject * obj1 = 0 ;
27912 char *kwnames[] = {
27913 (char *) "self",(char *) "other", NULL
27914 };
27915
27916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27921 {
27922 PyThreadState* __tstate = wxPyBeginAllowThreads();
27923 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27924
27925 wxPyEndAllowThreads(__tstate);
27926 if (PyErr_Occurred()) SWIG_fail;
27927 }
27928 {
27929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27930 }
27931 return resultobj;
27932 fail:
27933 return NULL;
27934}
27935
27936
c32bde28 27937static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27938 PyObject *resultobj;
27939 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27940 int arg2 ;
27941 PyObject * obj0 = 0 ;
27942 PyObject * obj1 = 0 ;
27943 char *kwnames[] = {
27944 (char *) "self",(char *) "w", NULL
27945 };
27946
27947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27950 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27951 if (PyErr_Occurred()) SWIG_fail;
27952 if (arg1) (arg1)->w = arg2;
27953
27954 Py_INCREF(Py_None); resultobj = Py_None;
27955 return resultobj;
27956 fail:
27957 return NULL;
27958}
27959
27960
c32bde28 27961static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27962 PyObject *resultobj;
27963 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27964 int result;
27965 PyObject * obj0 = 0 ;
27966 char *kwnames[] = {
27967 (char *) "self", NULL
27968 };
27969
27970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27973 result = (int) ((arg1)->w);
27974
c32bde28 27975 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27976 return resultobj;
27977 fail:
27978 return NULL;
27979}
27980
27981
c32bde28 27982static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27983 PyObject *resultobj;
27984 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27985 int arg2 ;
27986 PyObject * obj0 = 0 ;
27987 PyObject * obj1 = 0 ;
27988 char *kwnames[] = {
27989 (char *) "self",(char *) "h", NULL
27990 };
27991
27992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27995 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27996 if (PyErr_Occurred()) SWIG_fail;
27997 if (arg1) (arg1)->h = arg2;
27998
27999 Py_INCREF(Py_None); resultobj = Py_None;
28000 return resultobj;
28001 fail:
28002 return NULL;
28003}
28004
28005
c32bde28 28006static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28007 PyObject *resultobj;
28008 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28009 int result;
28010 PyObject * obj0 = 0 ;
28011 char *kwnames[] = {
28012 (char *) "self", NULL
28013 };
28014
28015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
28016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28018 result = (int) ((arg1)->h);
28019
c32bde28 28020 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28021 return resultobj;
28022 fail:
28023 return NULL;
28024}
28025
28026
c32bde28 28027static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28028 PyObject *resultobj;
28029 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28030 int arg2 ;
28031 PyObject * obj0 = 0 ;
28032 PyObject * obj1 = 0 ;
28033 char *kwnames[] = {
28034 (char *) "self",(char *) "bpp", NULL
28035 };
28036
28037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
28038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 28040 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28041 if (PyErr_Occurred()) SWIG_fail;
28042 if (arg1) (arg1)->bpp = arg2;
28043
28044 Py_INCREF(Py_None); resultobj = Py_None;
28045 return resultobj;
28046 fail:
28047 return NULL;
28048}
28049
28050
c32bde28 28051static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28052 PyObject *resultobj;
28053 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28054 int result;
28055 PyObject * obj0 = 0 ;
28056 char *kwnames[] = {
28057 (char *) "self", NULL
28058 };
28059
28060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28063 result = (int) ((arg1)->bpp);
28064
c32bde28 28065 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28066 return resultobj;
28067 fail:
28068 return NULL;
28069}
28070
28071
c32bde28 28072static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28073 PyObject *resultobj;
28074 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28075 int arg2 ;
28076 PyObject * obj0 = 0 ;
28077 PyObject * obj1 = 0 ;
28078 char *kwnames[] = {
28079 (char *) "self",(char *) "refresh", NULL
28080 };
28081
28082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 28085 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28086 if (PyErr_Occurred()) SWIG_fail;
28087 if (arg1) (arg1)->refresh = arg2;
28088
28089 Py_INCREF(Py_None); resultobj = Py_None;
28090 return resultobj;
28091 fail:
28092 return NULL;
28093}
28094
28095
c32bde28 28096static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28097 PyObject *resultobj;
28098 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28099 int result;
28100 PyObject * obj0 = 0 ;
28101 char *kwnames[] = {
28102 (char *) "self", NULL
28103 };
28104
28105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28108 result = (int) ((arg1)->refresh);
28109
c32bde28 28110 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28111 return resultobj;
28112 fail:
28113 return NULL;
28114}
28115
28116
c32bde28 28117static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
28118 PyObject *obj;
28119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28120 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28121 Py_INCREF(obj);
28122 return Py_BuildValue((char *)"");
28123}
c32bde28 28124static int _wrap_DefaultVideoMode_set(PyObject *) {
d55e5bfc
RD
28125 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28126 return 1;
28127}
28128
28129
28130static PyObject *_wrap_DefaultVideoMode_get() {
28131 PyObject *pyobj;
28132
28133 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28134 return pyobj;
28135}
28136
28137
c32bde28 28138static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28139 PyObject *resultobj;
28140 size_t arg1 = (size_t) 0 ;
28141 wxDisplay *result;
28142 PyObject * obj0 = 0 ;
28143 char *kwnames[] = {
28144 (char *) "index", NULL
28145 };
28146
28147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28148 if (obj0) {
c32bde28 28149 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
28150 if (PyErr_Occurred()) SWIG_fail;
28151 }
28152 {
28153 PyThreadState* __tstate = wxPyBeginAllowThreads();
28154 result = (wxDisplay *)new wxDisplay(arg1);
28155
28156 wxPyEndAllowThreads(__tstate);
28157 if (PyErr_Occurred()) SWIG_fail;
28158 }
28159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28160 return resultobj;
28161 fail:
28162 return NULL;
28163}
28164
28165
c32bde28 28166static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28167 PyObject *resultobj;
28168 wxDisplay *arg1 = (wxDisplay *) 0 ;
28169 PyObject * obj0 = 0 ;
28170 char *kwnames[] = {
28171 (char *) "self", NULL
28172 };
28173
28174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28177 {
28178 PyThreadState* __tstate = wxPyBeginAllowThreads();
28179 delete arg1;
28180
28181 wxPyEndAllowThreads(__tstate);
28182 if (PyErr_Occurred()) SWIG_fail;
28183 }
28184 Py_INCREF(Py_None); resultobj = Py_None;
28185 return resultobj;
28186 fail:
28187 return NULL;
28188}
28189
28190
c32bde28 28191static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28192 PyObject *resultobj;
28193 size_t result;
28194 char *kwnames[] = {
28195 NULL
28196 };
28197
28198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28199 {
28200 PyThreadState* __tstate = wxPyBeginAllowThreads();
28201 result = (size_t)wxDisplay::GetCount();
28202
28203 wxPyEndAllowThreads(__tstate);
28204 if (PyErr_Occurred()) SWIG_fail;
28205 }
c32bde28 28206 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
28207 return resultobj;
28208 fail:
28209 return NULL;
28210}
28211
28212
c32bde28 28213static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28214 PyObject *resultobj;
28215 wxPoint *arg1 = 0 ;
28216 int result;
28217 wxPoint temp1 ;
28218 PyObject * obj0 = 0 ;
28219 char *kwnames[] = {
28220 (char *) "pt", NULL
28221 };
28222
28223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28224 {
28225 arg1 = &temp1;
28226 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28227 }
28228 {
28229 PyThreadState* __tstate = wxPyBeginAllowThreads();
28230 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28231
28232 wxPyEndAllowThreads(__tstate);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
c32bde28 28235 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28236 return resultobj;
28237 fail:
28238 return NULL;
28239}
28240
28241
c32bde28 28242static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28243 PyObject *resultobj;
28244 wxWindow *arg1 = (wxWindow *) 0 ;
28245 int result;
28246 PyObject * obj0 = 0 ;
28247 char *kwnames[] = {
28248 (char *) "window", NULL
28249 };
28250
28251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 result = (int)wxDisplay::GetFromWindow(arg1);
28257
28258 wxPyEndAllowThreads(__tstate);
28259 if (PyErr_Occurred()) SWIG_fail;
28260 }
c32bde28 28261 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28262 return resultobj;
28263 fail:
28264 return NULL;
28265}
28266
28267
c32bde28 28268static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28269 PyObject *resultobj;
28270 wxDisplay *arg1 = (wxDisplay *) 0 ;
28271 bool result;
28272 PyObject * obj0 = 0 ;
28273 char *kwnames[] = {
28274 (char *) "self", NULL
28275 };
28276
28277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28280 {
28281 PyThreadState* __tstate = wxPyBeginAllowThreads();
28282 result = (bool)((wxDisplay const *)arg1)->IsOk();
28283
28284 wxPyEndAllowThreads(__tstate);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 {
28288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28289 }
28290 return resultobj;
28291 fail:
28292 return NULL;
28293}
28294
28295
c32bde28 28296static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28297 PyObject *resultobj;
28298 wxDisplay *arg1 = (wxDisplay *) 0 ;
28299 wxRect result;
28300 PyObject * obj0 = 0 ;
28301 char *kwnames[] = {
28302 (char *) "self", NULL
28303 };
28304
28305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28308 {
28309 PyThreadState* __tstate = wxPyBeginAllowThreads();
28310 result = ((wxDisplay const *)arg1)->GetGeometry();
28311
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 {
28316 wxRect * resultptr;
28317 resultptr = new wxRect((wxRect &) result);
28318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28319 }
28320 return resultobj;
28321 fail:
28322 return NULL;
28323}
28324
28325
c32bde28 28326static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28327 PyObject *resultobj;
28328 wxDisplay *arg1 = (wxDisplay *) 0 ;
28329 wxString result;
28330 PyObject * obj0 = 0 ;
28331 char *kwnames[] = {
28332 (char *) "self", NULL
28333 };
28334
28335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28338 {
28339 PyThreadState* __tstate = wxPyBeginAllowThreads();
28340 result = ((wxDisplay const *)arg1)->GetName();
28341
28342 wxPyEndAllowThreads(__tstate);
28343 if (PyErr_Occurred()) SWIG_fail;
28344 }
28345 {
28346#if wxUSE_UNICODE
28347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28348#else
28349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28350#endif
28351 }
28352 return resultobj;
28353 fail:
28354 return NULL;
28355}
28356
28357
c32bde28 28358static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28359 PyObject *resultobj;
28360 wxDisplay *arg1 = (wxDisplay *) 0 ;
28361 bool result;
28362 PyObject * obj0 = 0 ;
28363 char *kwnames[] = {
28364 (char *) "self", NULL
28365 };
28366
28367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28370 {
28371 PyThreadState* __tstate = wxPyBeginAllowThreads();
28372 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28373
28374 wxPyEndAllowThreads(__tstate);
28375 if (PyErr_Occurred()) SWIG_fail;
28376 }
28377 {
28378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28379 }
28380 return resultobj;
28381 fail:
28382 return NULL;
28383}
28384
28385
c32bde28 28386static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28387 PyObject *resultobj;
28388 wxDisplay *arg1 = (wxDisplay *) 0 ;
28389 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28390 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28391 PyObject *result;
28392 PyObject * obj0 = 0 ;
28393 PyObject * obj1 = 0 ;
28394 char *kwnames[] = {
28395 (char *) "self",(char *) "mode", NULL
28396 };
28397
28398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28401 if (obj1) {
28402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28403 SWIG_POINTER_EXCEPTION | 0)) == -1)
28404 SWIG_fail;
28405 if (arg2 == NULL) {
28406 PyErr_SetString(PyExc_TypeError,"null reference");
28407 SWIG_fail;
28408 }
28409 }
28410 {
28411 PyThreadState* __tstate = wxPyBeginAllowThreads();
28412 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28413
28414 wxPyEndAllowThreads(__tstate);
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
28417 resultobj = result;
28418 return resultobj;
28419 fail:
28420 return NULL;
28421}
28422
28423
c32bde28 28424static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28425 PyObject *resultobj;
28426 wxDisplay *arg1 = (wxDisplay *) 0 ;
28427 wxVideoMode result;
28428 PyObject * obj0 = 0 ;
28429 char *kwnames[] = {
28430 (char *) "self", NULL
28431 };
28432
28433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28436 {
28437 PyThreadState* __tstate = wxPyBeginAllowThreads();
28438 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28439
28440 wxPyEndAllowThreads(__tstate);
28441 if (PyErr_Occurred()) SWIG_fail;
28442 }
28443 {
28444 wxVideoMode * resultptr;
28445 resultptr = new wxVideoMode((wxVideoMode &) result);
28446 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28447 }
28448 return resultobj;
28449 fail:
28450 return NULL;
28451}
28452
28453
c32bde28 28454static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28455 PyObject *resultobj;
28456 wxDisplay *arg1 = (wxDisplay *) 0 ;
28457 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28458 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28459 bool result;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 char *kwnames[] = {
28463 (char *) "self",(char *) "mode", NULL
28464 };
28465
28466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28469 if (obj1) {
28470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28471 SWIG_POINTER_EXCEPTION | 0)) == -1)
28472 SWIG_fail;
28473 if (arg2 == NULL) {
28474 PyErr_SetString(PyExc_TypeError,"null reference");
28475 SWIG_fail;
28476 }
28477 }
28478 {
28479 PyThreadState* __tstate = wxPyBeginAllowThreads();
28480 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28481
28482 wxPyEndAllowThreads(__tstate);
28483 if (PyErr_Occurred()) SWIG_fail;
28484 }
28485 {
28486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28487 }
28488 return resultobj;
28489 fail:
28490 return NULL;
28491}
28492
28493
c32bde28 28494static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28495 PyObject *resultobj;
28496 wxDisplay *arg1 = (wxDisplay *) 0 ;
28497 PyObject * obj0 = 0 ;
28498 char *kwnames[] = {
28499 (char *) "self", NULL
28500 };
28501
28502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28505 {
28506 PyThreadState* __tstate = wxPyBeginAllowThreads();
28507 (arg1)->ResetMode();
28508
28509 wxPyEndAllowThreads(__tstate);
28510 if (PyErr_Occurred()) SWIG_fail;
28511 }
28512 Py_INCREF(Py_None); resultobj = Py_None;
28513 return resultobj;
28514 fail:
28515 return NULL;
28516}
28517
28518
c32bde28 28519static PyObject * Display_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
28520 PyObject *obj;
28521 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28522 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28523 Py_INCREF(obj);
28524 return Py_BuildValue((char *)"");
28525}
28526static PyMethodDef SwigMethods[] = {
c32bde28
RD
28527 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
28528 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
28529 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
28530 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
28531 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28532 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28533 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
28534 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
28535 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28536 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28537 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28538 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28539 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
28540 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
28541 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
28542 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
28543 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
28544 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
28545 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28546 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28547 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
28548 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28549 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
28550 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
28551 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
28552 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28553 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
28554 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
28555 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
28556 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28557 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
28558 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
28559 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
28560 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28561 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28562 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
28563 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
28564 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
28565 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28566 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28567 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
28568 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
28569 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
28570 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
28571 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
28572 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
28573 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28574 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28575 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28576 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28577 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28578 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28579 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
28580 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28581 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
28582 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28583 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
28584 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28585 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28586 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28587 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28588 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28589 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28590 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28591 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28592 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28593 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28594 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28595 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28596 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28597 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
28598 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
28599 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
28600 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28601 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28602 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28603 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28604 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
28605 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
28606 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
28607 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28608 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28609 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28610 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
28611 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
28612 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
28613 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28614 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28615 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28616 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
28617 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28618 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28619 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28620 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28621 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28622 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
28623 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
28624 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
28625 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28626 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28627 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
28628 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
28629 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28630 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28631 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28632 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28633 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
28634 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28635 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28636 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
28637 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28638 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28639 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
28640 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
28641 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28642 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
28643 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28644 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
28645 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
28646 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28647 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28648 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28649 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28650 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
28651 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28652 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28653 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
28654 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
28655 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28656 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28657 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
28658 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
28659 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
28660 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28661 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28662 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28663 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28664 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28665 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
28666 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
28667 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28668 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28669 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
28670 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
28671 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
28672 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28673 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28674 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
28675 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
28676 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28677 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28678 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28679 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28680 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28681 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28682 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28683 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28684 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28685 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28686 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
28687 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
28688 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
28689 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28690 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28691 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
28692 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
28693 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
28694 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28695 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
28696 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
28697 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
28698 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
28699 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
28700 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28701 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
28702 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28703 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28704 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
28705 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28706 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28707 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28708 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28709 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28710 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28711 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28712 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28713 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28714 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28715 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28716 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28717 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28718 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28719 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28720 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
28721 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28722 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
28723 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
28724 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
28725 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
28726 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
28727 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
28728 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
28729 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28730 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28731 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28732 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28733 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28734 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28735 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
28736 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
28737 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
28738 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28739 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28740 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28741 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
28742 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
28743 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
28744 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
28745 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
28746 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
28747 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28748 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28749 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
28750 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28751 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
28752 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28753 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
28754 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
28755 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
28756 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28757 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28758 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28759 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
28760 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
28761 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28762 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
28763 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
28764 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28765 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
28766 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
28767 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28768 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
28769 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
28770 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
28771 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
28772 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28773 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
28774 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28775 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
28776 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
28777 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28778 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28779 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
28780 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28781 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
28782 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
28783 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
28784 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
28785 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
28786 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
28787 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
28788 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
28789 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28790 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28791 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28792 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28793 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28794 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28795 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28796 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28797 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28798 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28799 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28800 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28801 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28802 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
28803 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
28804 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
28805 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
28806 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
28807 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
28808 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
28809 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
28810 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
28811 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
28812 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28813 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28814 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28815 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28816 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
28817 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
28818 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
28819 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
28820 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
28821 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
28822 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
28823 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
28824 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
28825 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
28826 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
28827 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
28828 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
28829 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
28830 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
28831 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28832 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28833 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
28834 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
28835 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
28836 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
28837 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
28838 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
28839 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
28840 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
28841 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
28842 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
28843 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
28844 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28845 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28846 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28847 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28848 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28849 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28850 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28851 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28852 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28853 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28854 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28855 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
28856 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
28857 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
28858 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
28859 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
28860 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
28861 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
28862 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28863 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28864 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28865 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28866 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28867 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28868 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
28869 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
28870 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28871 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
28872 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28873 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
28874 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28875 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28876 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28877 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28878 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28879 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28880 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28881 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28882 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28883 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28884 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
28885 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
28886 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28887 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
28888 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28889 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28890 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28891 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28892 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28893 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28894 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28895 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28896 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28897 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28898 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
28899 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28900 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28901 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28902 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28903 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
28904 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
28905 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28906 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
28907 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
28908 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
28909 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28910 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
28911 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28912 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28913 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
28914 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
28915 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28916 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28917 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
28918 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28919 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28920 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28921 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28922 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28923 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28924 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28925 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28926 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
28927 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
28928 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28929 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
28930 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28931 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28932 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28933 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28934 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28935 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28936 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28937 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28938 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
28939 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
28940 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28941 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28942 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28943 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
28944 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
28945 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
28946 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28947 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
28948 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
28949 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
28950 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28951 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
28952 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28953 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28954 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28955 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28956 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28957 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
28958 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28959 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28960 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28961 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28962 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28963 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28964 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28965 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28966 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28967 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28968 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28969 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
28970 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28971 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28972 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
28973 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28974 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28975 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
28976 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28977 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28978 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
28979 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
28980 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28981 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28982 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28983 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28984 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
28985 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
28986 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28987 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
28988 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
28989 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
28990 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28991 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
28992 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
28993 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
28994 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
28995 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
28996 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
28997 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28998 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
28999 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
29000 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29001 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29002 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29003 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29004 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
29005 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29006 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
29007 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29008 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29009 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29010 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29011 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
29012 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29013 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29014 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29015 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29016 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29017 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29018 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29019 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29020 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29021 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29022 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29023 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29024 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29025 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29026 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29027 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29028 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29029 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29030 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29031 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29032 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29033 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29034 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29035 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29036 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29037 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
29038 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
29039 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29040 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29041 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29042 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29043 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
29044 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29045 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
29046 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29047 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29048 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29049 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29050 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29051 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29052 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29053 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29054 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29055 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29056 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29057 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29058 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29059 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29060 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29061 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29062 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29063 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29064 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29065 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29066 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29067 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29068 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29069 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29070 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29071 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29072 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29073 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29074 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29075 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29076 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29077 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29078 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29079 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29080 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29081 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29082 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29083 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29084 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29085 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29086 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29087 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29088 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29089 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29090 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29091 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29092 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29093 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29094 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29095 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29096 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29097 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29098 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29099 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29100 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29101 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29102 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29103 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29104 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29105 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29106 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29107 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29108 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29109 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29110 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29111 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29112 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29113 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29114 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29115 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29116 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29117 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29118 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29119 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29120 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29121 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29122 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29123 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29124 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29126 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29127 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29131 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29132 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29133 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29137 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29138 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29139 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29140 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29141 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29142 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29143 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29144 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29145 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29146 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29148 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29151 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29152 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29153 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29154 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29157 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29159 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29160 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29162 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29166 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29169 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29171 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29173 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29174 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29177 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29178 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29179 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29180 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29182 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29184 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29185 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29186 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29194 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29200 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29201 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29202 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29204 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29205 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29206 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29207 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29210 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29212 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29213 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29215 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29219 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29221 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29222 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29226 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29229 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29231 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29232 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29233 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29234 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29235 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29236 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29237 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29239 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29243 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29244 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29245 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29249 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29250 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29257 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29259 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29260 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29263 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29265 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29266 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29267 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29268 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29269 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29271 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29272 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29273 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29274 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29275 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29276 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29277 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29278 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29279 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29280 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29281 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29282 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29283 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29284 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29285 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29286 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29287 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29288 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29289 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29290 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29291 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29292 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29293 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29294 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29295 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29296 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29297 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29298 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29299 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29300 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29301 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29302 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29303 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29304 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29305 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29306 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29307 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29308 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29309 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29310 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29311 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29312 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29313 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29314 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29315 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29316 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29317 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29318 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29319 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29320 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29321 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29322 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29323 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29324 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29325 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
29326 { NULL, NULL, 0, NULL }
d55e5bfc
RD
29327};
29328
29329
29330/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29331
29332static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29333 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29334}
29335static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29336 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29337}
29338static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29339 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29340}
29341static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29342 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29343}
29344static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29345 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29346}
29347static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29348 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29349}
29350static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29351 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29352}
29353static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29354 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29355}
29356static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29358}
29359static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29360 return (void *)((wxEvent *) ((wxPyEvent *) x));
29361}
29362static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29363 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29364}
29365static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29366 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29367}
29368static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29369 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29370}
29371static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29372 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29373}
29374static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29375 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29376}
29377static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29378 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29379}
29380static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29381 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29382}
29383static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29384 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29385}
29386static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29387 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29388}
29389static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29390 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29391}
29392static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29393 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29394}
29395static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29396 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29397}
29398static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29399 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29400}
29401static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29402 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29403}
29404static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29405 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29406}
29407static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29408 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29409}
29410static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29411 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29412}
29413static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29414 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29415}
29416static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29417 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29418}
29419static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29420 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29421}
29422static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29423 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29424}
29425static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29426 return (void *)((wxEvent *) ((wxShowEvent *) x));
29427}
29428static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29429 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29430}
29431static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29432 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29433}
29434static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29435 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29436}
29437static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29438 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29439}
29440static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29441 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29442}
29443static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29444 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29445}
29446static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29447 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29448}
29449static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29450 return (void *)((wxConfigBase *) ((wxConfig *) x));
29451}
29452static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29453 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29454}
29455static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29456 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29457}
29458static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29459 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29460}
29461static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29462 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29463}
29464static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29465 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29466}
29467static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29468 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29469}
29470static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29471 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29472}
29473static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29474 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29475}
29476static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29477 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29478}
29479static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29480 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29481}
29482static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29483 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29484}
29485static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29486 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29487}
29488static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29489 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29490}
29491static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29492 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29493}
29494static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29495 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29496}
29497static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29498 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29499}
29500static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29501 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29502}
29503static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29504 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29505}
29506static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29507 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29508}
29509static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29510 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29511}
29512static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29513 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29514}
29515static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29516 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29517}
29518static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29519 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29520}
29521static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29522 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29523}
29524static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29526}
29527static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29528 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29529}
29530static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29531 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29532}
29533static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29534 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29535}
29536static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29537 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29538}
29539static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29540 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29541}
29542static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29543 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29544}
29545static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29546 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29547}
29548static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29549 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29550}
29551static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29552 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29553}
29554static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29555 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29556}
29557static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29558 return (void *)((wxObject *) ((wxSizerItem *) x));
29559}
29560static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29562}
29563static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29564 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29565}
29566static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29567 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29568}
29569static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29570 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29571}
29572static void *_p_wxSizerTo_p_wxObject(void *x) {
29573 return (void *)((wxObject *) ((wxSizer *) x));
29574}
29575static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29576 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29577}
29578static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29579 return (void *)((wxObject *) ((wxFileHistory *) x));
29580}
29581static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29583}
29584static void *_p_wxEventTo_p_wxObject(void *x) {
29585 return (void *)((wxObject *) ((wxEvent *) x));
29586}
29587static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29588 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29589}
29590static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29591 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29592}
29593static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29594 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29595}
29596static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29597 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29598}
29599static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29600 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29601}
29602static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29603 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29604}
29605static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29606 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29607}
29608static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29609 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29610}
29611static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29612 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29613}
29614static void *_p_wxControlTo_p_wxObject(void *x) {
29615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29616}
29617static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29618 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29619}
29620static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29621 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29622}
29623static void *_p_wxFSFileTo_p_wxObject(void *x) {
29624 return (void *)((wxObject *) ((wxFSFile *) x));
29625}
29626static void *_p_wxClipboardTo_p_wxObject(void *x) {
29627 return (void *)((wxObject *) ((wxClipboard *) x));
29628}
29629static void *_p_wxPySizerTo_p_wxObject(void *x) {
29630 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29631}
29632static void *_p_wxPyEventTo_p_wxObject(void *x) {
29633 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29634}
29635static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29637}
29638static void *_p_wxShowEventTo_p_wxObject(void *x) {
29639 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29640}
29641static void *_p_wxToolTipTo_p_wxObject(void *x) {
29642 return (void *)((wxObject *) ((wxToolTip *) x));
29643}
29644static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29645 return (void *)((wxObject *) ((wxMenuItem *) x));
29646}
29647static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29648 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29649}
29650static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29652}
29653static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29654 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29655}
29656static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29657 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29658}
29659static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29660 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29661}
29662static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29663 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29664}
29665static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29666 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29667}
29668static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29669 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29670}
29671static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29672 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29673}
29674static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29675 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29676}
29677static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29678 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29679}
29680static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29681 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29682}
29683static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29684 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29685}
29686static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29687 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29688}
29689static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29690 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29691}
29692static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29693 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29694}
29695static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29696 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29697}
29698static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29699 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29700}
29701static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29702 return (void *)((wxObject *) ((wxImageHandler *) x));
29703}
29704static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29705 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29706}
29707static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29708 return (void *)((wxObject *) ((wxEvtHandler *) x));
29709}
29710static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29711 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29712}
29713static void *_p_wxImageTo_p_wxObject(void *x) {
29714 return (void *)((wxObject *) ((wxImage *) x));
29715}
29716static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29717 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29718}
29719static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29720 return (void *)((wxObject *) ((wxSystemOptions *) x));
29721}
29722static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29723 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29724}
29725static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29726 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29727}
29728static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29729 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29730}
29731static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29732 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29733}
29734static void *_p_wxWindowTo_p_wxObject(void *x) {
29735 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29736}
29737static void *_p_wxMenuTo_p_wxObject(void *x) {
29738 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29739}
29740static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29742}
29743static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29744 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29745}
29746static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29747 return (void *)((wxObject *) ((wxFileSystem *) x));
29748}
29749static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29750 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29751}
29752static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29753 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29754}
29755static void *_p_wxPyAppTo_p_wxObject(void *x) {
29756 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29757}
29758static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29759 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29760}
29761static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29762 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29763}
29764static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29765 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29766}
29767static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29768 return (void *)((wxObject *) ((wxBusyInfo *) x));
29769}
29770static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29771 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29772}
29773static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29774 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29775}
29776static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29777 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29778}
29779static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29780 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29781}
29782static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29783 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29784}
29785static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29786 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29787}
29788static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29789 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29790}
29791static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29792 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29793}
29794static void *_p_wxValidatorTo_p_wxObject(void *x) {
29795 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29796}
29797static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29798 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29799}
29800static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29801 return (void *)((wxLog *) ((wxLogStderr *) x));
29802}
29803static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29804 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29805}
29806static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29807 return (void *)((wxLog *) ((wxLogWindow *) x));
29808}
29809static void *_p_wxLogChainTo_p_wxLog(void *x) {
29810 return (void *)((wxLog *) ((wxLogChain *) x));
29811}
29812static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29813 return (void *)((wxLog *) ((wxLogGui *) x));
29814}
29815static void *_p_wxPyLogTo_p_wxLog(void *x) {
29816 return (void *)((wxLog *) ((wxPyLog *) x));
29817}
29818static void *_p_wxControlTo_p_wxWindow(void *x) {
29819 return (void *)((wxWindow *) ((wxControl *) x));
29820}
29821static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29822 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29823}
29824static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29825 return (void *)((wxWindow *) ((wxMenuBar *) x));
29826}
29827static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29828 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29829}
29830static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29831 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29832}
29833static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29834static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29835static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29836static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29837static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29838static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29839static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29840static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29841static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29842static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29843static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29844static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29845static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29846static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29847static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29848static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29849static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29850static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29851static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29852static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29853static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29854static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29855static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29856static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29857static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29858static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29859static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
b1f29bf7 29860static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29861static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29862static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29863static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29864static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29865static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29866static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29867static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29868static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29869static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29870static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29871static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29872static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29873static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29874static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29875static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29876static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29877static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29878static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29879static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29880static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29881static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29882static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29883static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29884static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29885static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29886static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29887static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29888static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29889static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29890static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29891static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29892static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29893static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29894static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29895static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29896static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29897static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29898static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29899static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29900static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29901static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29902static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29903static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29904static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29905static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29906static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29907static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29908static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29909static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29910static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29911static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29912static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29913static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29914static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29915static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29916static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29917static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29918static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29919
29920static swig_type_info *swig_types_initial[] = {
29921_swigt__p_wxLogChain,
29922_swigt__p_wxMutexGuiLocker,
29923_swigt__p_wxMetafile,
29924_swigt__p_wxFileHistory,
29925_swigt__p_wxLog,
29926_swigt__p_wxDateTime__TimeZone,
29927_swigt__p_wxMenu,
29928_swigt__p_wxEvent,
29929_swigt__p_wxConfigBase,
29930_swigt__p_wxDisplay,
29931_swigt__p_wxFileType,
29932_swigt__p_wxLogGui,
29933_swigt__p_wxFont,
29934_swigt__p_wxDataFormat,
29935_swigt__p_wxTimerEvent,
29936_swigt__p_wxCaret,
29937_swigt__p_int,
29938_swigt__p_wxSize,
29939_swigt__p_wxClipboard,
29940_swigt__p_wxStopWatch,
29941_swigt__p_wxDC,
29942_swigt__p_wxClipboardLocker,
29943_swigt__p_wxIcon,
29944_swigt__p_wxLogStderr,
29945_swigt__p_wxLogTextCtrl,
29946_swigt__p_wxTextCtrl,
29947_swigt__p_wxBusyCursor,
b1f29bf7 29948_swigt__p_wxPyBitmapDataObject,
d55e5bfc
RD
29949_swigt__p_wxPyTextDataObject,
29950_swigt__p_wxBitmapDataObject,
29951_swigt__p_wxTextDataObject,
29952_swigt__p_wxDataObject,
d55e5bfc
RD
29953_swigt__p_wxFileDataObject,
29954_swigt__p_wxCustomDataObject,
29955_swigt__p_wxURLDataObject,
29956_swigt__p_wxMetafileDataObject,
29957_swigt__p_wxSound,
29958_swigt__p_wxTimerRunner,
29959_swigt__p_wxLogWindow,
29960_swigt__p_wxTimeSpan,
29961_swigt__p_wxArrayString,
29962_swigt__p_wxWindowDisabler,
29963_swigt__p_wxToolTip,
29964_swigt__p_wxDataObjectComposite,
29965_swigt__p_wxFileConfig,
29966_swigt__p_wxSystemSettings,
29967_swigt__p_wxVideoMode,
29968_swigt__p_wxPyDataObjectSimple,
29969_swigt__p_wxDataObjectSimple,
29970_swigt__p_wxEvtHandler,
29971_swigt__p_wxRect,
29972_swigt__p_char,
29973_swigt__p_wxSingleInstanceChecker,
29974_swigt__p_wxFileTypeInfo,
29975_swigt__p_wxFrame,
29976_swigt__p_wxTimer,
29977_swigt__p_wxMimeTypesManager,
29978_swigt__p_wxPyArtProvider,
29979_swigt__p_wxPyTipProvider,
29980_swigt__p_wxTipProvider,
29981_swigt__p_wxJoystick,
29982_swigt__p_wxSystemOptions,
29983_swigt__p_wxPoint,
29984_swigt__p_wxJoystickEvent,
29985_swigt__p_wxCursor,
29986_swigt__p_wxObject,
29987_swigt__p_wxOutputStream,
29988_swigt__p_wxDateTime,
29989_swigt__p_wxPyDropSource,
29990_swigt__p_wxWindow,
29991_swigt__p_wxString,
29992_swigt__p_wxPyProcess,
29993_swigt__p_wxBitmap,
29994_swigt__p_wxConfig,
29995_swigt__p_wxChar,
29996_swigt__p_wxBusyInfo,
29997_swigt__p_wxPyDropTarget,
29998_swigt__p_wxPyTextDropTarget,
29999_swigt__p_wxPyFileDropTarget,
30000_swigt__p_wxProcessEvent,
30001_swigt__p_wxPyLog,
30002_swigt__p_wxLogNull,
30003_swigt__p_wxColour,
d55e5bfc
RD
30004_swigt__p_wxConfigPathChanger,
30005_swigt__p_wxPyTimer,
30006_swigt__p_wxDateSpan,
300070
30008};
30009
30010
30011/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30012
30013static swig_const_info swig_const_table[] = {
30014{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
30015{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
30016{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
30017{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
30018{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
c32bde28 30019{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
30020
30021#ifdef __cplusplus
30022}
30023#endif
30024
30025#ifdef __cplusplus
30026extern "C"
30027#endif
30028SWIGEXPORT(void) SWIG_init(void) {
30029 static PyObject *SWIG_globals = 0;
30030 static int typeinit = 0;
30031 PyObject *m, *d;
30032 int i;
30033 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
30034 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30035 d = PyModule_GetDict(m);
30036
30037 if (!typeinit) {
30038 for (i = 0; swig_types_initial[i]; i++) {
30039 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
30040 }
30041 typeinit = 1;
30042 }
30043 SWIG_InstallConstants(d,swig_const_table);
30044
c32bde28
RD
30045 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
30046 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
30047 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
30048 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
30049 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
30050 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
30051 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
30052 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
30053 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
30054 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
30055 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
30056 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30057 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30058 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30059 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30060 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30061 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30062 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30063 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30064 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30065 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30066 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30067 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30068 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30069 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30070 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30071 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30072 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30073 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30074 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30075 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30076 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30077 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30078 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30079 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30080 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30081 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30082 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30083 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30084 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30085 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30086 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30087 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30088 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30089 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30090 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30091 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30092 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30093 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30094 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30095 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30096 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30097 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30098 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30099 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30100 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30101 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30102 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30103 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30104 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30105 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30106 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30107 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30108 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30109 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30110 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30111 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30112 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30113 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30114 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30115 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30116 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30117 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30118 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30119 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30120 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30121 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30122 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30123 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30124 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30125 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30126 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30127 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30128 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30129 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30130 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30131 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30132 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30133 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30134 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30135 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
d55e5bfc
RD
30136 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30137 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30138 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30139 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
c32bde28
RD
30140 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30141 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30142 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30143 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
d55e5bfc 30144 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
1a6bba1e
RD
30145
30146 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30147
c32bde28
RD
30148 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30149 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30150 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30151 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30152 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30153 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30154 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30155 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30156 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30157 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30158 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
d55e5bfc
RD
30159 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30160 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30161 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30162 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30163 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
c32bde28
RD
30164 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30165 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30166 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30167 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30168 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30169 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30170 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30171 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30172 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30173 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30174 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30175 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30176 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30177 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30178 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30179 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30180 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30181 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30182 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30183 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30184 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30185 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30186 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30187 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30188 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30189 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30190 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30191 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30192 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
d55e5bfc 30193 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
c32bde28
RD
30194 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30195 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30196 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30197 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
d55e5bfc
RD
30198
30199 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30200
c32bde28
RD
30201 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30202 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30203 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30204 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30205 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30206 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30207 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
d55e5bfc
RD
30208 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30209 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30210 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30211 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
c32bde28
RD
30212 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30213 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30214 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30215 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30216 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30217 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30218 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30219 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
d55e5bfc
RD
30220 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30221 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30222 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30223 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30224 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30225 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30226 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
4cf4100f 30227 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
d55e5bfc
RD
30228 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30229 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30230 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30231 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30232 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30233 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30234 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30235 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30236 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30237 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30238 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30239 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30240 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30241 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30242 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30243 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30244 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30245 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30246 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30247 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30248 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30249 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30250 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30251 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30252 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30253 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30254 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30255 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30256 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30257 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30258 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30259 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30260
30261 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30262
c32bde28
RD
30263 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30264 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30265 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30266 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30267 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30268 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30269 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30270 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30271 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
d55e5bfc
RD
30272 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30273 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
c32bde28
RD
30274 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30275 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30276 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30277 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30278 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30279 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30280 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30281 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30282 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30283 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30284 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30285 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30286 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30287 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30288 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30289 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30290 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30291 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30292 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30293 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30294 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30295 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30296 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30297 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30298 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30299 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30300 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30301 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30302 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30303 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30304 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30305 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30306 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30307 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30308 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30309 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30310 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30311 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30312 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30313 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30314 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30315 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30316 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30317 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30318 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30319 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30320 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30321 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30322 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30323 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30324 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30325 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30326 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30327 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30328 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30329 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30330 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30331 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30332 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30333 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30334 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30335 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30336 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30337 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30338 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30339 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30340 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30341 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30342 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30343 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30344 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30345 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30346 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30347 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30348 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30349 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30350 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30351 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30352 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30353 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30354 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30355 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30356 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30357 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30358 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30359 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30360 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30361 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30362 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30363 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30364 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30365 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30366 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30367 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30368 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30369 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30370 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30371 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30372 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30373 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30374 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30375 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30376 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30377 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30378 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30379 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30380 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30381 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30382 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
30383 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
30384 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
30385 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
30386 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
30387 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
30388 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
30389 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
30390 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
30391 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
30392 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
30393 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
30394 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
30395 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
30396 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
30397 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
30398 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
30399 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
30400 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
30401 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
30402 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
30403 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
30404 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
30405 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
30406 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
30407 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
30408 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
30409 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
30410 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
30411 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
30412 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
30413 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
30414 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
30415 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
30416 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
30417 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
30418 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
30419 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
30420 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
30421 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
30422 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
30423 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
30424 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
30425 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
30426 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
30427 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
30428 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
d55e5bfc 30429 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
c32bde28
RD
30430 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
30431 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
30432 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
30433 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
30434 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
30435 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
30436 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
30437 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
30438 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
30439 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
30440 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
30441 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
30442 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
30443 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
30444 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
30445 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
30446 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
30447 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
30448 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
30449 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
d55e5bfc 30450 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
c32bde28
RD
30451 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
30452 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
30453 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
30454 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
30455 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
30456 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
30457 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
30458 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
30459 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
30460 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
30461 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
30462 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
d55e5bfc
RD
30463
30464 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30465 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30466 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30467 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30468
d55e5bfc
RD
30469 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30470}
30471