]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_misc_wrap.cpp
Add flags parameter to wx.Process.Kill and wx.Kill
[wxWidgets.git] / wxPython / src / mac / _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
c370783e 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 *);
c370783e 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
c370783e 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
c370783e 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]
0346c964
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]
070c48b4
RD
264#define SWIGTYPE_p_wxStandardPaths swig_types[53]
265#define SWIGTYPE_p_wxFileTypeInfo swig_types[54]
266#define SWIGTYPE_p_wxFrame swig_types[55]
267#define SWIGTYPE_p_wxTimer swig_types[56]
268#define SWIGTYPE_p_wxMimeTypesManager swig_types[57]
269#define SWIGTYPE_p_wxPyArtProvider swig_types[58]
270#define SWIGTYPE_p_wxPyTipProvider swig_types[59]
271#define SWIGTYPE_p_wxTipProvider swig_types[60]
272#define SWIGTYPE_p_wxJoystick swig_types[61]
273#define SWIGTYPE_p_wxSystemOptions swig_types[62]
274#define SWIGTYPE_p_wxPoint swig_types[63]
275#define SWIGTYPE_p_wxJoystickEvent swig_types[64]
276#define SWIGTYPE_p_wxCursor swig_types[65]
277#define SWIGTYPE_p_wxObject swig_types[66]
278#define SWIGTYPE_p_wxOutputStream swig_types[67]
279#define SWIGTYPE_p_wxDateTime swig_types[68]
280#define SWIGTYPE_p_wxPyDropSource swig_types[69]
281#define SWIGTYPE_p_wxWindow swig_types[70]
282#define SWIGTYPE_p_wxString swig_types[71]
283#define SWIGTYPE_p_wxPyProcess swig_types[72]
284#define SWIGTYPE_p_wxBitmap swig_types[73]
285#define SWIGTYPE_p_wxConfig swig_types[74]
286#define SWIGTYPE_p_wxChar swig_types[75]
287#define SWIGTYPE_p_wxBusyInfo swig_types[76]
288#define SWIGTYPE_p_wxPyDropTarget swig_types[77]
289#define SWIGTYPE_p_wxPyTextDropTarget swig_types[78]
290#define SWIGTYPE_p_wxPyFileDropTarget swig_types[79]
291#define SWIGTYPE_p_wxProcessEvent swig_types[80]
292#define SWIGTYPE_p_wxPyLog swig_types[81]
293#define SWIGTYPE_p_wxLogNull swig_types[82]
294#define SWIGTYPE_p_wxColour swig_types[83]
295#define SWIGTYPE_p_wxConfigPathChanger swig_types[84]
296#define SWIGTYPE_p_wxPyTimer swig_types[85]
297#define SWIGTYPE_p_wxDateSpan swig_types[86]
298static swig_type_info *swig_types[88];
d55e5bfc
RD
299
300/* -------- TYPES TABLE (END) -------- */
301
302
303/*-----------------------------------------------
304 @(target):= _misc_.so
305 ------------------------------------------------*/
306#define SWIG_init init_misc_
307
308#define SWIG_name "_misc_"
309
c370783e
RD
310/* Auxiliar swig macros that appear in the header */
311
312#define SWIG_OLDOBJ 1
313#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
314#define SWIG_PYSTR SWIG_NEWOBJ + 1
d55e5bfc
RD
315
316#ifdef __cplusplus
317#define SWIGSTATICINLINE(a) static inline a
318#define SWIGSTATIC(a) static a
c370783e
RD
319#define swig_new_array(size,Type) (new Type[(size)])
320#define swig_delete(cptr) delete cptr
d55e5bfc 321#define swig_delete_array(cptr) delete[] cptr
c370783e
RD
322#define swig_const_cast(a,Type) const_cast<Type >(a)
323#define swig_static_cast(a,Type) static_cast<Type >(a)
324#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
325#define swig_new_copy(ptr,Type) (new Type(*ptr))
326#define swig_numeric_cast(a,Type) static_cast<Type >(a)
d55e5bfc
RD
327
328#else /* C case */
329
330#define SWIGSTATICINLINE(a) static a
331#define SWIGSTATIC(a) static a
c370783e
RD
332#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
333#define swig_delete(cptr) free((char*)cptr)
d55e5bfc 334#define swig_delete_array(cptr) free((char*)cptr)
c370783e
RD
335#define swig_const_cast(a,Type) (Type)(a)
336#define swig_static_cast(a,Type) (Type)(a)
337#define swig_reinterpret_cast(a,Type) (Type)(a)
338#define swig_numeric_cast(a,Type) (Type)(a)
339#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
d55e5bfc
RD
340
341#endif /* __cplusplus */
342
343
c370783e
RD
344/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
345#define SWIG_From_signed_SS_char PyInt_FromLong
346/*@@*/
347/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
348#define SWIG_From_unsigned_SS_char PyInt_FromLong
349/*@@*/
350/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
351#define SWIG_From_short PyInt_FromLong
352/*@@*/
353/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
354#define SWIG_From_unsigned_SS_short PyInt_FromLong
355/*@@*/
356/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
357#define SWIG_From_int PyInt_FromLong
358/*@@*/
359/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
360#define SWIG_From_long PyInt_FromLong
361/*@@*/
362/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
363#define SWIG_From_float PyFloat_FromDouble
364/*@@*/
365/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
366#define SWIG_From_double PyFloat_FromDouble
367/*@@*/
d55e5bfc
RD
368
369
370#include "wx/wxPython/wxPython.h"
371#include "wx/wxPython/pyclasses.h"
0439c23b 372#include "wx/wxPython/pyistream.h"
d55e5bfc
RD
373
374 static const wxString wxPyEmptyString(wxEmptyString);
375
376
377
378#include <limits.h>
379
380
c370783e
RD
381SWIGSTATICINLINE(int)
382 SWIG_CheckLongInRange(long value, long min_value, long max_value,
383 const char *errmsg)
d55e5bfc 384{
c370783e
RD
385 if (value < min_value) {
386 if (errmsg) {
387 PyErr_Format(PyExc_OverflowError,
388 "value %ld is less than '%s' minimum %ld",
389 value, errmsg, min_value);
390 }
391 return 0;
392 } else if (value > max_value) {
393 if (errmsg) {
394 PyErr_Format(PyExc_OverflowError,
395 "value %ld is greater than '%s' maximum %ld",
396 value, errmsg, max_value);
d55e5bfc 397 }
c370783e 398 return 0;
d55e5bfc 399 }
c370783e 400 return 1;
d55e5bfc
RD
401}
402
403
c370783e
RD
404// See my_fragments.i
405SWIGSTATICINLINE(int)
406SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 407{
c370783e
RD
408 if (PyNumber_Check(obj)) {
409 if (val) *val = PyInt_AsLong(obj);
410 return 1;
411 }
d55e5bfc
RD
412 else {
413 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
414 obj->ob_type->tp_name);
415 PyErr_SetObject(PyExc_TypeError, errmsg);
416 Py_DECREF(errmsg);
d55e5bfc 417 }
c370783e 418 return 0;
d55e5bfc
RD
419}
420
421
422#if INT_MAX != LONG_MAX
423SWIGSTATICINLINE(int)
c370783e 424 SWIG_AsVal_int(PyObject *obj, int *val)
d55e5bfc 425{
c370783e
RD
426 const char* errmsg = val ? "int" : 0;
427 long v;
428 if (SWIG_AsVal_long(obj, &v)) {
429 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
430 if (val) *val = swig_numeric_cast(v, int);
431 return 1;
432 } else {
433 return 0;
434 }
435 } else {
436 PyErr_Clear();
437 }
438 if (val) {
439 PyErr_SetString(PyExc_TypeError, "an int is expected");
440 }
441 return 0;
d55e5bfc
RD
442}
443#else
c370783e
RD
444SWIGSTATICINLINE(int)
445 SWIG_AsVal_int(PyObject *obj, int *val)
446{
447 return SWIG_AsVal_long(obj,(long*)val);
448}
d55e5bfc
RD
449#endif
450
451
452SWIGSTATICINLINE(int)
c370783e 453SWIG_As_int(PyObject* obj)
d55e5bfc 454{
c370783e
RD
455 int v;
456 if (!SWIG_AsVal_int(obj, &v)) {
457 /*
458 this is needed to make valgrind/purify happier. the other
459 solution is throw an exception, but since this code should work
460 with plain C ....
461 */
462 memset((void*)&v, 0, sizeof(int));
d55e5bfc 463 }
c370783e
RD
464 return v;
465}
466
467
468SWIGSTATICINLINE(int)
469SWIG_Check_int(PyObject* obj)
470{
471 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
472}
473
629e65c2 474 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
01ac03ba
RD
475
476#include <wx/stockitem.h>
477
d55e5bfc
RD
478 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
479 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
480 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
481
c370783e
RD
482SWIGSTATICINLINE(long)
483SWIG_As_long(PyObject* obj)
484{
485 long v;
486 if (!SWIG_AsVal_long(obj, &v)) {
487 /*
488 this is needed to make valgrind/purify happier. the other
489 solution is throw an exception, but since this code should work
490 with plain C ....
491 */
492 memset((void*)&v, 0, sizeof(long));
493 }
494 return v;
495}
496
497
d55e5bfc 498SWIGSTATICINLINE(int)
c370783e 499SWIG_Check_long(PyObject* obj)
d55e5bfc 500{
c370783e
RD
501 return SWIG_AsVal_long(obj, (long*)0);
502}
503
504
505SWIGSTATICINLINE(int)
506 SWIG_AsVal_bool(PyObject *obj, bool *val)
507{
508 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
509 if (obj == Py_True) {
510 if (val) *val = true;
511 return 1;
512 }
513 if (obj == Py_False) {
514 if (val) *val = false;
d55e5bfc
RD
515 return 1;
516 }
c370783e
RD
517 int res = 0;
518 if (SWIG_AsVal_int(obj, &res)) {
519 if (val) *val = (bool)res;
520 return 1;
521 }
522 if (val) {
523 PyErr_SetString(PyExc_TypeError, "a bool is expected");
524 }
525 return 0;
d55e5bfc
RD
526}
527
528
529SWIGSTATICINLINE(bool)
c370783e 530SWIG_As_bool(PyObject* obj)
d55e5bfc 531{
c370783e
RD
532 bool v;
533 if (!SWIG_AsVal_bool(obj, &v)) {
534 /*
535 this is needed to make valgrind/purify happier. the other
536 solution is throw an exception, but since this code should work
537 with plain C ....
538 */
539 memset((void*)&v, 0, sizeof(bool));
540 }
541 return v;
d55e5bfc
RD
542}
543
c370783e 544
d55e5bfc 545SWIGSTATICINLINE(int)
c370783e 546SWIG_Check_bool(PyObject* obj)
d55e5bfc 547{
c370783e 548 return SWIG_AsVal_bool(obj, (bool*)0);
d55e5bfc
RD
549}
550
551
c370783e 552 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
d55e5bfc
RD
553 PyObject* o2;
554 PyObject* o3;
c370783e 555
d55e5bfc
RD
556 if (!target) {
557 target = o;
558 } else if (target == Py_None) {
559 Py_DECREF(Py_None);
560 target = o;
629e65c2
RD
561 } else {
562 if (!PyTuple_Check(target)) {
563 o2 = target;
564 target = PyTuple_New(1);
565 PyTuple_SetItem(target, 0, o2);
566 }
d55e5bfc
RD
567 o3 = PyTuple_New(1);
568 PyTuple_SetItem(o3, 0, o);
569
570 o2 = target;
571 target = PySequence_Concat(o2, o3);
572 Py_DECREF(o2);
573 Py_DECREF(o3);
574 }
575 return target;
629e65c2 576 }
d55e5bfc
RD
577
578
c370783e
RD
579
580// See my_fragments.i
581SWIGSTATICINLINE(int)
582SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
d55e5bfc 583{
c370783e
RD
584 long v = 0;
585 if (SWIG_AsVal_long(obj, &v) && v < 0) {
586 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
587 return 0;
d55e5bfc 588 }
c370783e
RD
589 else if (val)
590 *val = (unsigned long)v;
591 return 1;
d55e5bfc
RD
592}
593
594
c370783e
RD
595SWIGSTATICINLINE(unsigned long)
596SWIG_As_unsigned_SS_long(PyObject* obj)
d55e5bfc 597{
c370783e
RD
598 unsigned long v;
599 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
600 /*
601 this is needed to make valgrind/purify happier. the other
602 solution is throw an exception, but since this code should work
603 with plain C ....
604 */
605 memset((void*)&v, 0, sizeof(unsigned long));
d55e5bfc 606 }
c370783e
RD
607 return v;
608}
609
610
611SWIGSTATICINLINE(int)
612SWIG_Check_unsigned_SS_long(PyObject* obj)
613{
614 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
d55e5bfc
RD
615}
616
617
618SWIGSTATICINLINE(PyObject* )
c370783e 619 SWIG_From_unsigned_SS_long(unsigned long value)
d55e5bfc
RD
620{
621 return (value > LONG_MAX) ?
622 PyLong_FromUnsignedLong(value)
c370783e 623 : PyInt_FromLong(swig_numeric_cast(value,long));
d55e5bfc
RD
624}
625
626
627 bool wxThread_IsMain() {
628#ifdef WXP_WITH_THREAD
629 return wxThread::IsMain();
630#else
b411df4a 631 return true;
d55e5bfc
RD
632#endif
633 }
634
635
636 int wxCaret_GetBlinkTime() {
637 return wxCaret::GetBlinkTime();
638 }
639
640 void wxCaret_SetBlinkTime(int milliseconds) {
641 wxCaret::SetBlinkTime(milliseconds);
642 }
643
644
645#include <wx/snglinst.h>
646
647
648#ifdef __WXMSW__
649#include <wx/msw/private.h>
650#include <wx/dynload.h>
651#endif
652
653
654
655void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
656{
657#ifdef __WXMSW__
658
659 switch (method)
660 {
661 case 1:
662 // This one only partially works. Appears to be an undocumented
663 // "standard" convention that not all widgets adhear to. For
664 // example, for some widgets backgrounds or non-client areas may
665 // not be painted.
666 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
667 break;
668
669 case 2:
670 // This one works much better, except for on XP. On Win2k nearly
671 // all widgets and their children are captured correctly[**]. On
672 // XP with Themes activated most native widgets draw only
673 // partially, if at all. Without themes it works just like on
674 // Win2k.
675 //
676 // ** For example the radio buttons in a wxRadioBox are not its
677 // children by default, but you can capture it via the panel
678 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
679 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
680 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
681 PRF_ERASEBKGND | PRF_OWNED );
682 break;
683
684 case 3:
685 // This one is only defined in the latest SDK and is only
686 // available on XP. MSDN says it is similar to sending WM_PRINT
687 // so I expect that it will work similar to the above. Since it
688 // is avaialble only on XP, it can't be compiled like this and
689 // will have to be loaded dynamically.
690 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
691
692 // fall through
693
694 case 4:
695 // Use PrintWindow if available, or fallback to WM_PRINT
696 // otherwise. Unfortunately using PrintWindow is even worse than
697 // WM_PRINT. For most native widgets nothing is drawn to the dc
698 // at all, with or without Themes.
699 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
b411df4a 700 static bool s_triedToLoad = false;
d55e5bfc
RD
701 static PrintWindow_t pfnPrintWindow = NULL;
702 if ( !s_triedToLoad )
703 {
704
b411df4a 705 s_triedToLoad = true;
d55e5bfc
RD
706 wxDynamicLibrary dllUser32(_T("user32.dll"));
707 if ( dllUser32.IsLoaded() )
708 {
709 wxLogNull nolog; // Don't report errors here
710 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
711 }
712 }
713 if (pfnPrintWindow)
714 {
715 printf("Using PrintWindow\n");
716 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
717 }
718 else
719 {
720 printf("Using WM_PRINT\n");
721 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
722 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
723 }
724 }
725#endif
726}
727
728
729
730#include <wx/tipdlg.h>
731
732
733class wxPyTipProvider : public wxTipProvider {
734public:
735 wxPyTipProvider(size_t currentTip)
736 : wxTipProvider(currentTip) {}
737
738 DEC_PYCALLBACK_STRING__pure(GetTip);
739 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
740 PYPRIVATE;
741};
742
743IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
744IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
745
746
747//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
748
1a6bba1e
RD
749IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
750
d55e5bfc
RD
751void wxPyTimer::Notify() {
752 bool found;
753 bool blocked = wxPyBeginBlockThreads();
754 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
756 wxPyEndBlockThreads(blocked);
757 if (! found)
758 wxTimer::Notify();
759}
760void wxPyTimer::base_Notify() {
761 wxTimer::Notify();
762}
763
764
765
766SWIGSTATICINLINE(PyObject *)
767SWIG_FromCharPtr(const char* cptr)
768{
d55e5bfc 769 if (cptr) {
c370783e 770 size_t size = strlen(cptr);
d55e5bfc 771 if (size > INT_MAX) {
c370783e 772 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
d55e5bfc
RD
773 SWIG_TypeQuery("char *"), 0);
774 } else {
c370783e
RD
775 if (size != 0) {
776 return PyString_FromStringAndSize(cptr, size);
777 } else {
778 return PyString_FromString(cptr);
779 }
d55e5bfc 780 }
d55e5bfc 781 }
c370783e
RD
782 Py_INCREF(Py_None);
783 return Py_None;
d55e5bfc
RD
784}
785
786
c370783e
RD
787SWIGSTATICINLINE(int)
788 SWIG_CheckUnsignedLongInRange(unsigned long value,
789 unsigned long max_value,
790 const char *errmsg)
d55e5bfc 791{
c370783e
RD
792 if (value > max_value) {
793 if (errmsg) {
794 PyErr_Format(PyExc_OverflowError,
795 "value %ld is greater than '%s' minimum %ld",
796 value, errmsg, max_value);
d55e5bfc 797 }
c370783e 798 return 0;
d55e5bfc 799 }
c370783e
RD
800 return 1;
801 }
d55e5bfc
RD
802
803
804#if UINT_MAX != ULONG_MAX
c370783e
RD
805SWIGSTATICINLINE(int)
806 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
d55e5bfc 807{
c370783e
RD
808 const char* errmsg = val ? "unsigned int" : 0;
809 unsigned long v;
810 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
811 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
812 if (val) *val = swig_numeric_cast(v, unsigned int);
813 return 1;
814 }
815 } else {
816 PyErr_Clear();
817 }
818 if (val) {
819 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
820 }
821 return 0;
d55e5bfc
RD
822}
823#else
c370783e
RD
824SWIGSTATICINLINE(unsigned int)
825 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
826{
827 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
828}
d55e5bfc
RD
829#endif
830
831
c370783e
RD
832SWIGSTATICINLINE(unsigned int)
833SWIG_As_unsigned_SS_int(PyObject* obj)
d55e5bfc 834{
c370783e
RD
835 unsigned int v;
836 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
837 /*
838 this is needed to make valgrind/purify happier. the other
839 solution is throw an exception, but since this code should work
840 with plain C ....
841 */
842 memset((void*)&v, 0, sizeof(unsigned int));
d55e5bfc 843 }
c370783e
RD
844 return v;
845}
846
847
848SWIGSTATICINLINE(int)
849SWIG_Check_unsigned_SS_int(PyObject* obj)
850{
851 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
d55e5bfc
RD
852}
853
854wxString Log_TimeStamp(){
855 wxString msg;
856 wxLog::TimeStamp(&msg);
857 return msg;
858 }
859void wxLog_Destroy(wxLog *self){ delete self; }
f78cc896
RD
860// Make somce wrappers that double any % signs so they are 'escaped'
861 void wxPyLogFatalError(const wxString& msg)
862 {
863 wxString m(msg);
864 m.Replace(wxT("%"), wxT("%%"));
865 wxLogFatalError(m);
866 }
867
868 void wxPyLogError(const wxString& msg)
869 {
870 wxString m(msg);
871 m.Replace(wxT("%"), wxT("%%"));
872 wxLogError(m);
873 }
874
875 void wxPyLogWarning(const wxString& msg)
876 {
877 wxString m(msg);
878 m.Replace(wxT("%"), wxT("%%"));
879 wxLogWarning(m);
880 }
881
882 void wxPyLogMessage(const wxString& msg)
883 {
884 wxString m(msg);
885 m.Replace(wxT("%"), wxT("%%"));
886 wxLogMessage(m);
887 }
888
889 void wxPyLogInfo(const wxString& msg)
890 {
891 wxString m(msg);
892 m.Replace(wxT("%"), wxT("%%"));
893 wxLogInfo(m);
894 }
895
896 void wxPyLogDebug(const wxString& msg)
897 {
898 wxString m(msg);
899 m.Replace(wxT("%"), wxT("%%"));
900 wxLogDebug(m);
901 }
902
903 void wxPyLogVerbose(const wxString& msg)
904 {
905 wxString m(msg);
906 m.Replace(wxT("%"), wxT("%%"));
907 wxLogVerbose(m);
908 }
909
910 void wxPyLogStatus(const wxString& msg)
911 {
912 wxString m(msg);
913 m.Replace(wxT("%"), wxT("%%"));
914 wxLogStatus(m);
915 }
916
917 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
918 {
919 wxString m(msg);
920 m.Replace(wxT("%"), wxT("%%"));
921 wxLogStatus(pFrame, m);
922 }
923
924 void wxPyLogSysError(const wxString& msg)
925 {
926 wxString m(msg);
927 m.Replace(wxT("%"), wxT("%%"));
928 wxLogSysError(m);
929 }
930
931 void wxPyLogGeneric(unsigned long level, const wxString& msg)
932 {
933 wxString m(msg);
934 m.Replace(wxT("%"), wxT("%%"));
935 wxLogGeneric(level, m);
936 }
937
938 void wxPyLogTrace(unsigned long mask, const wxString& msg)
939 {
940 wxString m(msg);
941 m.Replace(wxT("%"), wxT("%%"));
942 wxLogTrace(mask, m);
943 }
944
945 void wxPyLogTrace(const wxString& mask, const wxString& msg)
946 {
947 wxString m(msg);
948 m.Replace(wxT("%"), wxT("%%"));
949 wxLogTrace(mask, m);
950 }
951
952
d55e5bfc
RD
953
954// A wxLog class that can be derived from in wxPython
955class wxPyLog : public wxLog {
956public:
957 wxPyLog() : wxLog() {}
958
959 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
960 bool found;
961 bool blocked = wxPyBeginBlockThreads();
962 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
963 PyObject* s = wx2PyString(szString);
964 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
965 Py_DECREF(s);
966 }
967 wxPyEndBlockThreads(blocked);
968 if (! found)
969 wxLog::DoLog(level, szString, t);
970 }
971
972 virtual void DoLogString(const wxChar *szString, time_t t) {
973 bool found;
974 bool blocked = wxPyBeginBlockThreads();
975 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
976 PyObject* s = wx2PyString(szString);
977 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
978 Py_DECREF(s);
979 }
980 wxPyEndBlockThreads(blocked);
981 if (! found)
982 wxLog::DoLogString(szString, t);
983 }
984
985 PYPRIVATE;
986};
987
988
989
990
991IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
992
993
994#include <wx/joystick.h>
995
996
997#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
998// A C++ stub class for wxJoystick for platforms that don't have it.
999class wxJoystick : public wxObject {
1000public:
1001 wxJoystick(int joystick = wxJOYSTICK1) {
1002 bool blocked = wxPyBeginBlockThreads();
1003 PyErr_SetString(PyExc_NotImplementedError,
1004 "wxJoystick is not available on this platform.");
1005 wxPyEndBlockThreads(blocked);
1006 }
1007 wxPoint GetPosition() { return wxPoint(-1,-1); }
1008 int GetZPosition() { return -1; }
1009 int GetButtonState() { return -1; }
1010 int GetPOVPosition() { return -1; }
1011 int GetPOVCTSPosition() { return -1; }
1012 int GetRudderPosition() { return -1; }
1013 int GetUPosition() { return -1; }
1014 int GetVPosition() { return -1; }
1015 int GetMovementThreshold() { return -1; }
1016 void SetMovementThreshold(int threshold) {}
1017
b411df4a 1018 bool IsOk(void) { return false; }
d55e5bfc
RD
1019 int GetNumberJoysticks() { return -1; }
1020 int GetManufacturerId() { return -1; }
1021 int GetProductId() { return -1; }
15817c7e 1022 wxString GetProductName() { return wxEmptyString; }
d55e5bfc
RD
1023 int GetXMin() { return -1; }
1024 int GetYMin() { return -1; }
1025 int GetZMin() { return -1; }
1026 int GetXMax() { return -1; }
1027 int GetYMax() { return -1; }
1028 int GetZMax() { return -1; }
1029 int GetNumberButtons() { return -1; }
1030 int GetNumberAxes() { return -1; }
1031 int GetMaxButtons() { return -1; }
1032 int GetMaxAxes() { return -1; }
1033 int GetPollingMin() { return -1; }
1034 int GetPollingMax() { return -1; }
1035 int GetRudderMin() { return -1; }
1036 int GetRudderMax() { return -1; }
1037 int GetUMin() { return -1; }
1038 int GetUMax() { return -1; }
1039 int GetVMin() { return -1; }
1040 int GetVMax() { return -1; }
1041
b411df4a
RD
1042 bool HasRudder() { return false; }
1043 bool HasZ() { return false; }
1044 bool HasU() { return false; }
1045 bool HasV() { return false; }
1046 bool HasPOV() { return false; }
1047 bool HasPOV4Dir() { return false; }
1048 bool HasPOVCTS() { return false; }
d55e5bfc 1049
b411df4a
RD
1050 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
1051 bool ReleaseCapture() { return false; }
d55e5bfc
RD
1052};
1053#endif
1054
1055
1056#include <wx/sound.h>
1057
1058
1059#if !wxUSE_SOUND
1060// A C++ stub class for wxWave for platforms that don't have it.
1061class wxSound : public wxObject
1062{
1063public:
1064 wxSound() {
1065 bool blocked = wxPyBeginBlockThreads();
1066 PyErr_SetString(PyExc_NotImplementedError,
1067 "wxSound is not available on this platform.");
1068 wxPyEndBlockThreads(blocked);
1069 }
0346c964 1070 wxSound(const wxString&/*, bool*/) {
d55e5bfc
RD
1071 bool blocked = wxPyBeginBlockThreads();
1072 PyErr_SetString(PyExc_NotImplementedError,
1073 "wxSound is not available on this platform.");
1074 wxPyEndBlockThreads(blocked);
1075 }
1076 wxSound(int, const wxByte*) {
1077 bool blocked = wxPyBeginBlockThreads();
1078 PyErr_SetString(PyExc_NotImplementedError,
1079 "wxSound is not available on this platform.");
1080 wxPyEndBlockThreads(blocked);
1081 }
1082
1083 ~wxSound() {};
1084
0346c964 1085 bool Create(const wxString&/*, bool*/) { return false; }
d55e5bfc
RD
1086 bool Create(int, const wxByte*) { return false; };
1087 bool IsOk() { return false; };
1088 bool Play(unsigned) const { return false; }
1089 static bool Play(const wxString&, unsigned) { return false; }
1090 static void Stop() {}
1091};
1092
1093#endif
1094
0346c964
RD
1095wxSound *new_wxSound(wxString const &fileName){
1096 if (fileName.Length() == 0)
1097 return new wxSound;
1098 else
1099 return new wxSound(fileName);
1100 }
1101wxSound *new_wxSound(PyObject *data){
1102 unsigned char* buffer; int size;
1103 wxSound *sound = NULL;
1104
d55e5bfc 1105 bool blocked = wxPyBeginBlockThreads();
0346c964
RD
1106 if (!PyArg_Parse(data, "t#", &buffer, &size))
1107 goto done;
1108 sound = new wxSound(size, buffer);
1109 done:
d55e5bfc 1110 wxPyEndBlockThreads(blocked);
0346c964
RD
1111 return sound;
1112 }
1113bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1114 #ifndef __WXMAC__
1115 unsigned char* buffer;
1116 int size;
b411df4a 1117 bool rv = false;
0346c964
RD
1118
1119 bool blocked = wxPyBeginBlockThreads();
1120 if (!PyArg_Parse(data, "t#", &buffer, &size))
1121 goto done;
1122 rv = self->Create(size, buffer);
1123 done:
1124 wxPyEndBlockThreads(blocked);
1125 return rv;
1126 #else
1127 bool blocked = wxPyBeginBlockThreads();
1128 PyErr_SetString(PyExc_NotImplementedError,
1129 "Create from data is not available on this platform.");
1130 wxPyEndBlockThreads(blocked);
b411df4a 1131 return false;
0346c964 1132 #endif
d55e5bfc
RD
1133 }
1134void Sound_Stop(){ wxPyRaiseNotImplemented(); }
1135
1136#include <wx/mimetype.h>
1137
1138PyObject *wxFileType_GetMimeType(wxFileType *self){
1139 wxString str;
1140 if (self->GetMimeType(&str))
1141 return wx2PyString(str);
1142 else
1143 RETURN_NONE();
1144 }
1145PyObject *wxFileType_GetMimeTypes(wxFileType *self){
1146 wxArrayString arr;
1147 if (self->GetMimeTypes(arr))
1148 return wxArrayString2PyList_helper(arr);
1149 else
1150 RETURN_NONE();
1151 }
1152PyObject *wxFileType_GetExtensions(wxFileType *self){
1153 wxArrayString arr;
1154 if (self->GetExtensions(arr))
1155 return wxArrayString2PyList_helper(arr);
1156 else
1157 RETURN_NONE();
1158 }
1159wxIcon *wxFileType_GetIcon(wxFileType *self){
1160 wxIconLocation loc;
1161 if (self->GetIcon(&loc))
1162 return new wxIcon(loc);
1163 else
1164 return NULL;
1165 }
1166PyObject *wxFileType_GetIconInfo(wxFileType *self){
1167 wxIconLocation loc;
1168 if (self->GetIcon(&loc)) {
1169 wxString iconFile = loc.GetFileName();
1170 int iconIndex = -1;
1171
1172
1173
1174 // Make a tuple and put the values in it
1175 bool blocked = wxPyBeginBlockThreads();
1176 PyObject* tuple = PyTuple_New(3);
1177 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
b411df4a 1178 wxT("wxIcon"), true));
d55e5bfc
RD
1179 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
1180 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
1181 wxPyEndBlockThreads(blocked);
1182 return tuple;
1183 }
1184 else
1185 RETURN_NONE();
1186 }
1187PyObject *wxFileType_GetDescription(wxFileType *self){
1188 wxString str;
1189 if (self->GetDescription(&str))
1190 return wx2PyString(str);
1191 else
1192 RETURN_NONE();
1193 }
1194PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1195 wxString str;
1196 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1197 return wx2PyString(str);
1198 else
1199 RETURN_NONE();
1200 }
1201PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1202 wxString str;
1203 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1204 return wx2PyString(str);
1205 else
1206 RETURN_NONE();
1207 }
1208PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
1209 wxArrayString verbs;
1210 wxArrayString commands;
1211 if (self->GetAllCommands(&verbs, &commands,
1212 wxFileType::MessageParameters(filename, mimetype))) {
1213 bool blocked = wxPyBeginBlockThreads();
1214 PyObject* tuple = PyTuple_New(2);
1215 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1216 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1217 wxPyEndBlockThreads(blocked);
1218 return tuple;
1219 }
1220 else
1221 RETURN_NONE();
1222 }
1223wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1224 return wxFileType::ExpandCommand(command,
1225 wxFileType::MessageParameters(filename, mimetype));
1226 }
1227PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1228 wxArrayString arr;
1229 self->EnumAllFileTypes(arr);
1230 return wxArrayString2PyList_helper(arr);
1231 }
1232
1233#include <wx/artprov.h>
1234
1235 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1236 static const wxString wxPyART_MENU(wxART_MENU);
1237 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1238 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1239 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1240 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
4cf4100f 1241 static const wxString wxPyART_BUTTON(wxART_BUTTON);
d55e5bfc
RD
1242 static const wxString wxPyART_OTHER(wxART_OTHER);
1243 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1244 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1245 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1246 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1247 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1248 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1249 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1250 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1251 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1252 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1253 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1254 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1255 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1256 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1257 static const wxString wxPyART_PRINT(wxART_PRINT);
1258 static const wxString wxPyART_HELP(wxART_HELP);
1259 static const wxString wxPyART_TIP(wxART_TIP);
1260 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1261 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1262 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
f78cc896
RD
1263 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
1264 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
1265 static const wxString wxPyART_CDROM(wxART_CDROM);
1266 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
d55e5bfc 1267 static const wxString wxPyART_FOLDER(wxART_FOLDER);
f78cc896 1268 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
d55e5bfc
RD
1269 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1270 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1271 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1272 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1273 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1274 static const wxString wxPyART_ERROR(wxART_ERROR);
1275 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1276 static const wxString wxPyART_WARNING(wxART_WARNING);
1277 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1278 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1279 // Python aware wxArtProvider
1280class wxPyArtProvider : public wxArtProvider {
1281public:
1282
1283 virtual wxBitmap CreateBitmap(const wxArtID& id,
1284 const wxArtClient& client,
1285 const wxSize& size) {
1286 wxBitmap rval = wxNullBitmap;
1287 bool blocked = wxPyBeginBlockThreads();
1288 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1289 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1290 PyObject* ro;
1291 wxBitmap* ptr;
1292 PyObject* s1, *s2;
1293 s1 = wx2PyString(id);
1294 s2 = wx2PyString(client);
1295 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1296 Py_DECREF(so);
1297 Py_DECREF(s1);
1298 Py_DECREF(s2);
1299 if (ro) {
1300 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1301 rval = *ptr;
1302 Py_DECREF(ro);
1303 }
1304 }
1305 wxPyEndBlockThreads(blocked);
1306 return rval;
1307 }
1308
1309 PYPRIVATE;
1310};
1311
1312void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1313
1314
1315
1316 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1317 PyObject* ret = PyTuple_New(3);
1318 if (ret) {
1319 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1320 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1321 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1322 }
1323 return ret;
1324 }
1325
1326PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1327 bool cont;
1328 long index = 0;
1329 wxString value;
1330
1331 cont = self->GetFirstGroup(value, index);
1332 return __EnumerationHelper(cont, value, index);
1333 }
1334PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1335 bool cont;
1336 wxString value;
1337
1338 cont = self->GetNextGroup(value, index);
1339 return __EnumerationHelper(cont, value, index);
1340 }
1341PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1342 bool cont;
1343 long index = 0;
1344 wxString value;
1345
1346 cont = self->GetFirstEntry(value, index);
1347 return __EnumerationHelper(cont, value, index);
1348 }
1349PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1350 bool cont;
1351 wxString value;
1352
1353 cont = self->GetNextEntry(value, index);
1354 return __EnumerationHelper(cont, value, index);
1355 }
1356long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1357 long rv;
1358 self->Read(key, &rv, defaultVal);
1359 return rv;
1360 }
1361
c370783e
RD
1362// See my_fragments.i
1363SWIGSTATICINLINE(int)
1364SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 1365{
c370783e
RD
1366 if (PyNumber_Check(obj)) {
1367 if (val) *val = PyFloat_AsDouble(obj);
1368 return 1;
1369 }
d55e5bfc
RD
1370 else {
1371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1372 obj->ob_type->tp_name);
1373 PyErr_SetObject(PyExc_TypeError, errmsg);
1374 Py_DECREF(errmsg);
d55e5bfc 1375 }
c370783e 1376 return 0;
d55e5bfc
RD
1377}
1378
1379
c370783e
RD
1380SWIGSTATICINLINE(double)
1381SWIG_As_double(PyObject* obj)
d55e5bfc 1382{
c370783e
RD
1383 double v;
1384 if (!SWIG_AsVal_double(obj, &v)) {
1385 /*
1386 this is needed to make valgrind/purify happier. the other
1387 solution is throw an exception, but since this code should work
1388 with plain C ....
1389 */
1390 memset((void*)&v, 0, sizeof(double));
d55e5bfc 1391 }
c370783e
RD
1392 return v;
1393}
1394
1395
1396SWIGSTATICINLINE(int)
1397SWIG_Check_double(PyObject* obj)
1398{
1399 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
1400}
1401
1402double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1403 double rv;
1404 self->Read(key, &rv, defaultVal);
1405 return rv;
1406 }
1407bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1408 bool rv;
1409 self->Read(key, &rv, defaultVal);
1410 return rv;
1411 }
1412
1413#include <wx/datetime.h>
1414
1415
1416 static const wxString wxPyDateFormatStr(wxT("%c"));
1417 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1418
1419#define LOCAL_TZ wxDateTime::Local
1420
1421
1422#if UINT_MAX < LONG_MAX
c370783e
RD
1423/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1424#define SWIG_From_unsigned_SS_int SWIG_From_long
1425/*@@*/
d55e5bfc 1426#else
c370783e
RD
1427/*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1428#define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1429/*@@*/
d55e5bfc
RD
1430#endif
1431
1432wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1433wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1434wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1435wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1436wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1437bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1438 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1439 return (*self < *other);
1440 }
1441bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1442 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1443 return (*self <= *other);
1444 }
1445bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1446 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1447 return (*self > *other);
1448 }
1449bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1450 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1451 return (*self >= *other);
1452 }
1453bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1454 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1455 return (*self == *other);
1456 }
1457bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1458 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1459 return (*self != *other);
1460 }
1461int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1462 const wxChar* rv;
1463 const wxChar* _date = date;
1464 rv = self->ParseRfc822Date(_date);
1465 if (rv == NULL) return -1;
1466 return rv - _date;
1467 }
1468int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1469 const wxChar* rv;
1470 const wxChar* _date = date;
1471 rv = self->ParseFormat(_date, format, dateDef);
1472 if (rv == NULL) return -1;
1473 return rv - _date;
1474 }
1475int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1476 const wxChar* rv;
1477 const wxChar* _datetime = datetime;
1478 rv = self->ParseDateTime(_datetime);
1479 if (rv == NULL) return -1;
1480 return rv - _datetime;
1481 }
1482int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1483 const wxChar* rv;
1484 const wxChar* _date = date;
1485 rv = self->ParseDate(_date);
1486 if (rv == NULL) return -1;
1487 return rv - _date;
1488 }
1489int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1490 const wxChar* rv;
1491 const wxChar* _time = time;
1492 rv = self->ParseTime(_time);
1493 if (rv == NULL) return -1;
1494 return rv - _time;
1495 }
1496wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1497wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1498wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1499wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
b411df4a
RD
1500bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
1501bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
1502bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
1503bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
1504bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
1505bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
1506wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1507wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1508wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1509wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
b411df4a
RD
1510bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
1511bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
d55e5bfc
RD
1512
1513#include <wx/dataobj.h>
1514
68e533f8
RD
1515PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1516 size_t count = self->GetFormatCount(dir);
1517 wxDataFormat* formats = new wxDataFormat[count];
1518 self->GetAllFormats(formats, dir);
1519
1520 bool blocked = wxPyBeginBlockThreads();
1521 PyObject* list = PyList_New(count);
1522 for (size_t i=0; i<count; i++) {
1523 wxDataFormat* format = new wxDataFormat(formats[i]);
b411df4a 1524 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
68e533f8
RD
1525 PyList_Append(list, obj);
1526 Py_DECREF(obj);
1527 }
1528 wxPyEndBlockThreads(blocked);
1529 delete [] formats;
1530 return list;
1531 }
1532PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1533 PyObject* rval = NULL;
1534 size_t size = self->GetDataSize(format);
1535 bool blocked = wxPyBeginBlockThreads();
1536 if (size) {
1537 char* buf = new char[size];
1538 if (self->GetDataHere(format, buf))
1539 rval = PyString_FromStringAndSize(buf, size);
1540 delete [] buf;
1541 }
1542 if (! rval) {
1543 rval = Py_None;
1544 Py_INCREF(rval);
1545 }
1546 wxPyEndBlockThreads(blocked);
1547 return rval;
1548 }
1549bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1550 bool rval;
1551 bool blocked = wxPyBeginBlockThreads();
1552 if (PyString_Check(data)) {
1553 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1554 }
1555 else {
1556 // raise a TypeError if not a string
1557 PyErr_SetString(PyExc_TypeError, "String expected.");
b411df4a 1558 rval = false;
68e533f8
RD
1559 }
1560 wxPyEndBlockThreads(blocked);
1561 return rval;
1562 }
1563PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1564 PyObject* rval = NULL;
1565 size_t size = self->GetDataSize();
1566 bool blocked = wxPyBeginBlockThreads();
1567 if (size) {
1568 char* buf = new char[size];
1569 if (self->GetDataHere(buf))
1570 rval = PyString_FromStringAndSize(buf, size);
1571 delete [] buf;
1572 }
1573 if (! rval) {
1574 rval = Py_None;
1575 Py_INCREF(rval);
1576 }
1577 wxPyEndBlockThreads(blocked);
1578 return rval;
1579 }
1580bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1581 bool rval;
1582 bool blocked = wxPyBeginBlockThreads();
1583 if (PyString_Check(data)) {
1584 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1585 }
1586 else {
1587 // raise a TypeError if not a string
1588 PyErr_SetString(PyExc_TypeError, "String expected.");
b411df4a 1589 rval = false;
68e533f8
RD
1590 }
1591 wxPyEndBlockThreads(blocked);
1592 return rval;
1593 }
d55e5bfc
RD
1594 // Create a new class for wxPython to use
1595class wxPyDataObjectSimple : public wxDataObjectSimple {
1596public:
1597 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1598 : wxDataObjectSimple(format) {}
1599
1600 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1601 bool GetDataHere(void *buf) const;
1602 bool SetData(size_t len, const void *buf) const;
1603 PYPRIVATE;
1604};
1605
1606IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1607
1608bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1609 // We need to get the data for this object and write it to buf. I think
1610 // the best way to do this for wxPython is to have the Python method
1611 // return either a string or None and then act appropriately with the
1612 // C++ version.
1613
b411df4a 1614 bool rval = false;
d55e5bfc
RD
1615 bool blocked = wxPyBeginBlockThreads();
1616 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1617 PyObject* ro;
1618 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1619 if (ro) {
1620 rval = (ro != Py_None && PyString_Check(ro));
1621 if (rval)
1622 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1623 Py_DECREF(ro);
1624 }
1625 }
1626 wxPyEndBlockThreads(blocked);
1627 return rval;
1628}
1629
1630bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1631 // For this one we simply need to make a string from buf and len
1632 // and send it to the Python method.
b411df4a 1633 bool rval = false;
d55e5bfc
RD
1634 bool blocked = wxPyBeginBlockThreads();
1635 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1636 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1637 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1638 Py_DECREF(data);
1639 }
1640 wxPyEndBlockThreads(blocked);
1641 return rval;
1642}
1643
1644 // Create a new class for wxPython to use
1645class wxPyTextDataObject : public wxTextDataObject {
1646public:
1647 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1648 : wxTextDataObject(text) {}
1649
1650 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1651 DEC_PYCALLBACK_STRING__const(GetText);
1652 DEC_PYCALLBACK__STRING(SetText);
1653 PYPRIVATE;
1654};
1655
1656IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1657IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1658IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1659
1660
1661 // Create a new class for wxPython to use
1662class wxPyBitmapDataObject : public wxBitmapDataObject {
1663public:
1664 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1665 : wxBitmapDataObject(bitmap) {}
1666
1667 wxBitmap GetBitmap() const;
1668 void SetBitmap(const wxBitmap& bitmap);
1669 PYPRIVATE;
1670};
1671
1672wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1673 wxBitmap* rval = &wxNullBitmap;
1674 bool blocked = wxPyBeginBlockThreads();
1675 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1676 PyObject* ro;
1677 wxBitmap* ptr;
1678 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1679 if (ro) {
1680 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1681 rval = ptr;
1682 Py_DECREF(ro);
1683 }
1684 }
1685 wxPyEndBlockThreads(blocked);
1686 return *rval;
1687}
68e533f8 1688
d55e5bfc
RD
1689void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1690 bool blocked = wxPyBeginBlockThreads();
1691 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
b411df4a 1692 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
d55e5bfc
RD
1693 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1694 Py_DECREF(bo);
1695 }
1696 wxPyEndBlockThreads(blocked);
1697}
1698
d55e5bfc 1699bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
68e533f8
RD
1700 bool rval;
1701 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1702 if (PyString_Check(data)) {
68e533f8 1703 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
d55e5bfc
RD
1704 }
1705 else {
1706 // raise a TypeError if not a string
1707 PyErr_SetString(PyExc_TypeError, "String expected.");
b411df4a 1708 rval = false;
d55e5bfc 1709 }
68e533f8
RD
1710 wxPyEndBlockThreads(blocked);
1711 return rval;
d55e5bfc
RD
1712 }
1713PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
68e533f8
RD
1714 PyObject* obj;
1715 bool blocked = wxPyBeginBlockThreads();
1716 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
a07a67e6
RD
1717 wxPyEndBlockThreads(blocked);
1718 return obj;
d55e5bfc
RD
1719 }
1720
1721#include <wx/metafile.h>
1722
1723
1724IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1725
1726
1727IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1728IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1729IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1730IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1731IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1732
1733
1734class wxPyTextDropTarget : public wxTextDropTarget {
1735public:
1736 wxPyTextDropTarget() {}
1737
1738 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1739
1740 DEC_PYCALLBACK__(OnLeave);
1741 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1742 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1743 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1744 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1745
1746 PYPRIVATE;
1747};
1748
1749IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1750IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1751IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1752IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1753IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1754IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1755
1756
1757
1758class wxPyFileDropTarget : public wxFileDropTarget {
1759public:
1760 wxPyFileDropTarget() {}
1761
1762 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1763
1764 DEC_PYCALLBACK__(OnLeave);
1765 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1766 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1767 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1768 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1769
1770 PYPRIVATE;
1771};
1772
1773bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1774 const wxArrayString& filenames) {
b411df4a 1775 bool rval = false;
d55e5bfc
RD
1776 bool blocked = wxPyBeginBlockThreads();
1777 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1778 PyObject* list = wxArrayString2PyList_helper(filenames);
1779 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1780 Py_DECREF(list);
1781 }
1782 wxPyEndBlockThreads(blocked);
1783 return rval;
1784}
1785
1786
1787
1788IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1789IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1790IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1791IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1792IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1793
1794
1795
1796
1797bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1798
6923d0a9 1799#include <wx/display.h>
d55e5bfc 1800
b411df4a
RD
1801bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
1802bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
6923d0a9
RD
1803
1804// dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1805#if !wxUSE_DISPLAY
1806#include <wx/dynarray.h>
1807#include <wx/vidmode.h>
1808
1809WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1810#include "wx/arrimpl.cpp"
1811WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1812const wxVideoMode wxDefaultVideoMode;
1813
1814class wxDisplay
1815{
1816public:
1817 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1818 ~wxDisplay() {}
1819
1820 static size_t GetCount()
1821 { wxPyRaiseNotImplemented(); return 0; }
1822
1823 static int GetFromPoint(const wxPoint& pt)
1824 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1825 static int GetFromWindow(wxWindow *window)
1826 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1827
1828 virtual bool IsOk() const { return false; }
1829 virtual wxRect GetGeometry() const { wxRect r; return r; }
1830 virtual wxString GetName() const { return wxEmptyString; }
1831 bool IsPrimary() const { return false; }
1832
1833 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1834 { wxArrayVideoModes a; return a; }
1835
1836 virtual wxVideoMode GetCurrentMode() const
1837 { return wxDefaultVideoMode; }
1838
1839 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1840 { return false; }
1841
1842 void ResetMode() {}
1843};
1844#endif
1845
d55e5bfc
RD
1846int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1847PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1848 PyObject* pyList = NULL;
1849 wxArrayVideoModes arr = self->GetModes(mode);
1850 bool blocked = wxPyBeginBlockThreads();
1851 pyList = PyList_New(0);
1852 for (int i=0; i < arr.GetCount(); i++) {
1853 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1854 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1855 PyList_Append(pyList, pyObj);
68e533f8 1856 Py_DECREF(pyObj);
d55e5bfc
RD
1857 }
1858 wxPyEndBlockThreads(blocked);
1859 return pyList;
1860 }
070c48b4
RD
1861
1862#include <wx/stdpaths.h>
1863
8fb0e70a
RD
1864wxStandardPaths *StandardPaths_Get(){
1865 return (wxStandardPaths*) &wxStandardPaths::Get();
1866 }
070c48b4
RD
1867void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
1868wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
d55e5bfc
RD
1869#ifdef __cplusplus
1870extern "C" {
1871#endif
c370783e 1872static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1873 PyObject *resultobj;
1874 int arg1 ;
1875 wxColour result;
1876 PyObject * obj0 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "index", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
c370783e 1882 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1883 if (PyErr_Occurred()) SWIG_fail;
1884 {
0439c23b 1885 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1886 PyThreadState* __tstate = wxPyBeginAllowThreads();
1887 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1888
1889 wxPyEndAllowThreads(__tstate);
110da5b0 1890 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1891 }
1892 {
1893 wxColour * resultptr;
1894 resultptr = new wxColour((wxColour &) result);
1895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1896 }
1897 return resultobj;
1898 fail:
1899 return NULL;
1900}
1901
1902
c370783e 1903static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1904 PyObject *resultobj;
1905 int arg1 ;
1906 wxFont result;
1907 PyObject * obj0 = 0 ;
1908 char *kwnames[] = {
1909 (char *) "index", NULL
1910 };
1911
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
c370783e 1913 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1914 if (PyErr_Occurred()) SWIG_fail;
1915 {
0439c23b 1916 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1919
1920 wxPyEndAllowThreads(__tstate);
110da5b0 1921 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1922 }
1923 {
1924 wxFont * resultptr;
1925 resultptr = new wxFont((wxFont &) result);
1926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1927 }
1928 return resultobj;
1929 fail:
1930 return NULL;
1931}
1932
1933
c370783e 1934static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1935 PyObject *resultobj;
1936 int arg1 ;
1937 int result;
1938 PyObject * obj0 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "index", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
c370783e 1944 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1945 if (PyErr_Occurred()) SWIG_fail;
1946 {
0439c23b 1947 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1950
1951 wxPyEndAllowThreads(__tstate);
110da5b0 1952 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 1953 }
c370783e 1954 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
1955 return resultobj;
1956 fail:
1957 return NULL;
1958}
1959
1960
c370783e 1961static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1962 PyObject *resultobj;
1963 int arg1 ;
1964 bool result;
1965 PyObject * obj0 = 0 ;
1966 char *kwnames[] = {
1967 (char *) "index", NULL
1968 };
1969
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
c370783e 1971 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
1972 if (PyErr_Occurred()) SWIG_fail;
1973 {
0439c23b 1974 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1977
1978 wxPyEndAllowThreads(__tstate);
110da5b0 1979 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1980 }
1981 {
1982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1983 }
1984 return resultobj;
1985 fail:
1986 return NULL;
1987}
1988
1989
c370783e 1990static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
1991 PyObject *resultobj;
1992 int result;
1993 char *kwnames[] = {
1994 NULL
1995 };
1996
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1998 {
0439c23b 1999 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2000 PyThreadState* __tstate = wxPyBeginAllowThreads();
2001 result = (int)wxSystemSettings::GetScreenType();
2002
2003 wxPyEndAllowThreads(__tstate);
110da5b0 2004 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 2005 }
c370783e 2006 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2007 return resultobj;
2008 fail:
2009 return NULL;
2010}
2011
2012
c370783e 2013static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2014 PyObject *resultobj;
2015 int arg1 ;
2016 PyObject * obj0 = 0 ;
2017 char *kwnames[] = {
2018 (char *) "screen", NULL
2019 };
2020
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
c370783e 2022 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2023 if (PyErr_Occurred()) SWIG_fail;
2024 {
0439c23b 2025 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2026 PyThreadState* __tstate = wxPyBeginAllowThreads();
2027 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
2028
2029 wxPyEndAllowThreads(__tstate);
110da5b0 2030 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2031 }
2032 Py_INCREF(Py_None); resultobj = Py_None;
2033 return resultobj;
2034 fail:
2035 return NULL;
2036}
2037
2038
c370783e 2039static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2040 PyObject *obj;
2041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2042 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
2043 Py_INCREF(obj);
2044 return Py_BuildValue((char *)"");
2045}
629e65c2
RD
2046static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
2047 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
2048 return 1;
2049}
2050
2051
2052static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() {
2053 PyObject *pyobj;
2054
2055 {
2056#if wxUSE_UNICODE
2057 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
2058#else
2059 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
2060#endif
2061 }
2062 return pyobj;
2063}
2064
2065
c370783e 2066static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2067 PyObject *resultobj;
2068 wxSystemOptions *result;
2069 char *kwnames[] = {
2070 NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 result = (wxSystemOptions *)new wxSystemOptions();
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
2082 return resultobj;
2083 fail:
2084 return NULL;
2085}
2086
2087
c370783e 2088static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2089 PyObject *resultobj;
2090 wxString *arg1 = 0 ;
2091 wxString *arg2 = 0 ;
b411df4a
RD
2092 bool temp1 = false ;
2093 bool temp2 = false ;
d55e5bfc
RD
2094 PyObject * obj0 = 0 ;
2095 PyObject * obj1 = 0 ;
2096 char *kwnames[] = {
2097 (char *) "name",(char *) "value", NULL
2098 };
2099
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
2101 {
2102 arg1 = wxString_in_helper(obj0);
2103 if (arg1 == NULL) SWIG_fail;
b411df4a 2104 temp1 = true;
d55e5bfc
RD
2105 }
2106 {
2107 arg2 = wxString_in_helper(obj1);
2108 if (arg2 == NULL) SWIG_fail;
b411df4a 2109 temp2 = true;
d55e5bfc
RD
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
2118 Py_INCREF(Py_None); resultobj = Py_None;
2119 {
2120 if (temp1)
2121 delete arg1;
2122 }
2123 {
2124 if (temp2)
2125 delete arg2;
2126 }
2127 return resultobj;
2128 fail:
2129 {
2130 if (temp1)
2131 delete arg1;
2132 }
2133 {
2134 if (temp2)
2135 delete arg2;
2136 }
2137 return NULL;
2138}
2139
2140
c370783e 2141static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2142 PyObject *resultobj;
2143 wxString *arg1 = 0 ;
2144 int arg2 ;
b411df4a 2145 bool temp1 = false ;
d55e5bfc
RD
2146 PyObject * obj0 = 0 ;
2147 PyObject * obj1 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "name",(char *) "value", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2153 {
2154 arg1 = wxString_in_helper(obj0);
2155 if (arg1 == NULL) SWIG_fail;
b411df4a 2156 temp1 = true;
d55e5bfc 2157 }
c370783e 2158 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2159 if (PyErr_Occurred()) SWIG_fail;
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 Py_INCREF(Py_None); resultobj = Py_None;
2168 {
2169 if (temp1)
2170 delete arg1;
2171 }
2172 return resultobj;
2173 fail:
2174 {
2175 if (temp1)
2176 delete arg1;
2177 }
2178 return NULL;
2179}
2180
2181
c370783e 2182static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2183 PyObject *resultobj;
2184 wxString *arg1 = 0 ;
2185 wxString result;
b411df4a 2186 bool temp1 = false ;
d55e5bfc
RD
2187 PyObject * obj0 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "name", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2193 {
2194 arg1 = wxString_in_helper(obj0);
2195 if (arg1 == NULL) SWIG_fail;
b411df4a 2196 temp1 = true;
d55e5bfc
RD
2197 }
2198 {
2199 PyThreadState* __tstate = wxPyBeginAllowThreads();
2200 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 {
2206#if wxUSE_UNICODE
2207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2208#else
2209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2210#endif
2211 }
2212 {
2213 if (temp1)
2214 delete arg1;
2215 }
2216 return resultobj;
2217 fail:
2218 {
2219 if (temp1)
2220 delete arg1;
2221 }
2222 return NULL;
2223}
2224
2225
c370783e 2226static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2227 PyObject *resultobj;
2228 wxString *arg1 = 0 ;
2229 int result;
b411df4a 2230 bool temp1 = false ;
d55e5bfc
RD
2231 PyObject * obj0 = 0 ;
2232 char *kwnames[] = {
2233 (char *) "name", NULL
2234 };
2235
2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2237 {
2238 arg1 = wxString_in_helper(obj0);
2239 if (arg1 == NULL) SWIG_fail;
b411df4a 2240 temp1 = true;
d55e5bfc
RD
2241 }
2242 {
2243 PyThreadState* __tstate = wxPyBeginAllowThreads();
2244 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2245
2246 wxPyEndAllowThreads(__tstate);
2247 if (PyErr_Occurred()) SWIG_fail;
2248 }
c370783e 2249 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2250 {
2251 if (temp1)
2252 delete arg1;
2253 }
2254 return resultobj;
2255 fail:
2256 {
2257 if (temp1)
2258 delete arg1;
2259 }
2260 return NULL;
2261}
2262
2263
c370783e 2264static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2265 PyObject *resultobj;
2266 wxString *arg1 = 0 ;
2267 bool result;
b411df4a 2268 bool temp1 = false ;
d55e5bfc
RD
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "name", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2275 {
2276 arg1 = wxString_in_helper(obj0);
2277 if (arg1 == NULL) SWIG_fail;
b411df4a 2278 temp1 = true;
d55e5bfc
RD
2279 }
2280 {
2281 PyThreadState* __tstate = wxPyBeginAllowThreads();
2282 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2283
2284 wxPyEndAllowThreads(__tstate);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 {
2288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2289 }
2290 {
2291 if (temp1)
2292 delete arg1;
2293 }
2294 return resultobj;
2295 fail:
2296 {
2297 if (temp1)
2298 delete arg1;
2299 }
2300 return NULL;
2301}
2302
2303
c370783e 2304static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2305 PyObject *obj;
2306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2307 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2308 Py_INCREF(obj);
2309 return Py_BuildValue((char *)"");
2310}
c370783e 2311static int _wrap_FileSelectorPromptStr_set(PyObject *) {
d55e5bfc
RD
2312 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2313 return 1;
2314}
2315
2316
2317static PyObject *_wrap_FileSelectorPromptStr_get() {
2318 PyObject *pyobj;
2319
2320 {
2321#if wxUSE_UNICODE
2322 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2323#else
2324 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2325#endif
2326 }
2327 return pyobj;
2328}
2329
2330
c370783e 2331static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
d55e5bfc
RD
2332 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2333 return 1;
2334}
2335
2336
2337static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2338 PyObject *pyobj;
2339
2340 {
2341#if wxUSE_UNICODE
2342 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2343#else
2344 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2345#endif
2346 }
2347 return pyobj;
2348}
2349
2350
c370783e 2351static int _wrap_DirSelectorPromptStr_set(PyObject *) {
d55e5bfc
RD
2352 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2353 return 1;
2354}
2355
2356
2357static PyObject *_wrap_DirSelectorPromptStr_get() {
2358 PyObject *pyobj;
2359
2360 {
2361#if wxUSE_UNICODE
2362 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2363#else
2364 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2365#endif
2366 }
2367 return pyobj;
2368}
2369
2370
c370783e 2371static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2372 PyObject *resultobj;
2373 long result;
2374 char *kwnames[] = {
2375 NULL
2376 };
2377
2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (long)wxNewId();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
c370783e 2386 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2387 return resultobj;
2388 fail:
2389 return NULL;
2390}
2391
2392
c370783e 2393static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2394 PyObject *resultobj;
2395 long arg1 ;
2396 PyObject * obj0 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "id", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
c370783e 2402 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
2403 if (PyErr_Occurred()) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 wxRegisterId(arg1);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 Py_INCREF(Py_None); resultobj = Py_None;
2412 return resultobj;
2413 fail:
2414 return NULL;
2415}
2416
2417
c370783e 2418static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2419 PyObject *resultobj;
2420 long result;
2421 char *kwnames[] = {
2422 NULL
2423 };
2424
2425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 result = (long)wxGetCurrentId();
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
c370783e 2433 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2434 return resultobj;
2435 fail:
2436 return NULL;
2437}
2438
2439
c370783e 2440static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
01ac03ba
RD
2441 PyObject *resultobj;
2442 int arg1 ;
2443 bool result;
2444 PyObject * obj0 = 0 ;
2445 char *kwnames[] = {
2446 (char *) "id", NULL
2447 };
2448
a8d99e09 2449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
c370783e 2450 arg1 = (int)SWIG_As_int(obj0);
01ac03ba
RD
2451 if (PyErr_Occurred()) SWIG_fail;
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 result = (bool)wxIsStockID(arg1);
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
2459 {
2460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2461 }
2462 return resultobj;
2463 fail:
2464 return NULL;
2465}
2466
2467
c370783e 2468static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
01ac03ba
RD
2469 PyObject *resultobj;
2470 int arg1 ;
2471 wxString *arg2 = 0 ;
2472 bool result;
b411df4a 2473 bool temp2 = false ;
01ac03ba
RD
2474 PyObject * obj0 = 0 ;
2475 PyObject * obj1 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "id",(char *) "label", NULL
2478 };
2479
a8d99e09 2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
c370783e 2481 arg1 = (int)SWIG_As_int(obj0);
01ac03ba
RD
2482 if (PyErr_Occurred()) SWIG_fail;
2483 {
2484 arg2 = wxString_in_helper(obj1);
2485 if (arg2 == NULL) SWIG_fail;
b411df4a 2486 temp2 = true;
01ac03ba
RD
2487 }
2488 {
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 {
2496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2497 }
2498 {
2499 if (temp2)
2500 delete arg2;
2501 }
2502 return resultobj;
2503 fail:
2504 {
2505 if (temp2)
2506 delete arg2;
2507 }
2508 return NULL;
2509}
2510
2511
c370783e 2512static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
01ac03ba
RD
2513 PyObject *resultobj;
2514 int arg1 ;
2515 wxString result;
2516 PyObject * obj0 = 0 ;
2517 char *kwnames[] = {
2518 (char *) "id", NULL
2519 };
2520
a8d99e09 2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
c370783e 2522 arg1 = (int)SWIG_As_int(obj0);
01ac03ba
RD
2523 if (PyErr_Occurred()) SWIG_fail;
2524 {
2525 PyThreadState* __tstate = wxPyBeginAllowThreads();
2526 result = wxGetStockLabel(arg1);
2527
2528 wxPyEndAllowThreads(__tstate);
2529 if (PyErr_Occurred()) SWIG_fail;
2530 }
2531 {
2532#if wxUSE_UNICODE
2533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2534#else
2535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2536#endif
2537 }
2538 return resultobj;
2539 fail:
2540 return NULL;
2541}
2542
2543
c370783e 2544static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2545 PyObject *resultobj;
2546 char *kwnames[] = {
2547 NULL
2548 };
2549
2550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2551 {
0439c23b 2552 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2553 PyThreadState* __tstate = wxPyBeginAllowThreads();
2554 wxBell();
2555
2556 wxPyEndAllowThreads(__tstate);
110da5b0 2557 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2558 }
2559 Py_INCREF(Py_None); resultobj = Py_None;
2560 return resultobj;
2561 fail:
2562 return NULL;
2563}
2564
2565
c370783e 2566static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2567 PyObject *resultobj;
2568 char *kwnames[] = {
2569 NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2573 {
0439c23b 2574 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2575 PyThreadState* __tstate = wxPyBeginAllowThreads();
2576 wxEndBusyCursor();
2577
2578 wxPyEndAllowThreads(__tstate);
110da5b0 2579 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2580 }
2581 Py_INCREF(Py_None); resultobj = Py_None;
2582 return resultobj;
2583 fail:
2584 return NULL;
2585}
2586
2587
c370783e 2588static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 2589 PyObject *resultobj;
b411df4a 2590 bool arg1 = (bool) true ;
d55e5bfc
RD
2591 long result;
2592 PyObject * obj0 = 0 ;
2593 char *kwnames[] = {
2594 (char *) "resetTimer", NULL
2595 };
2596
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2598 if (obj0) {
c370783e 2599 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 {
2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
2604 result = (long)wxGetElapsedTime(arg1);
2605
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) SWIG_fail;
2608 }
c370783e 2609 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2610 return resultobj;
2611 fail:
2612 return NULL;
2613}
2614
2615
c370783e 2616static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2617 PyObject *resultobj;
2618 int *arg1 = (int *) 0 ;
2619 int *arg2 = (int *) 0 ;
2620 int temp1 ;
c370783e 2621 int res1 = 0 ;
d55e5bfc 2622 int temp2 ;
c370783e 2623 int res2 = 0 ;
d55e5bfc
RD
2624 char *kwnames[] = {
2625 NULL
2626 };
2627
c370783e
RD
2628 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2629 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2631 {
0439c23b 2632 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2634 wxGetMousePosition(arg1,arg2);
2635
2636 wxPyEndAllowThreads(__tstate);
110da5b0 2637 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2638 }
2639 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
2640 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2641 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2642 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2643 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
2644 return resultobj;
2645 fail:
2646 return NULL;
2647}
2648
2649
c370783e 2650static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2651 PyObject *resultobj;
2652 bool result;
2653 char *kwnames[] = {
2654 NULL
2655 };
2656
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (bool)wxIsBusy();
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 {
2666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2667 }
2668 return resultobj;
2669 fail:
2670 return NULL;
2671}
2672
2673
c370783e 2674static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2675 PyObject *resultobj;
2676 wxString result;
2677 char *kwnames[] = {
2678 NULL
2679 };
2680
2681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2682 {
2683 PyThreadState* __tstate = wxPyBeginAllowThreads();
2684 result = wxNow();
2685
2686 wxPyEndAllowThreads(__tstate);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 }
2689 {
2690#if wxUSE_UNICODE
2691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2692#else
2693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2694#endif
2695 }
2696 return resultobj;
2697 fail:
2698 return NULL;
2699}
2700
2701
c370783e 2702static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2703 PyObject *resultobj;
2704 wxString const &arg1_defvalue = wxPyEmptyString ;
2705 wxString *arg1 = (wxString *) &arg1_defvalue ;
2706 bool result;
b411df4a 2707 bool temp1 = false ;
d55e5bfc
RD
2708 PyObject * obj0 = 0 ;
2709 char *kwnames[] = {
2710 (char *) "command", NULL
2711 };
2712
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2714 if (obj0) {
2715 {
2716 arg1 = wxString_in_helper(obj0);
2717 if (arg1 == NULL) SWIG_fail;
b411df4a 2718 temp1 = true;
d55e5bfc
RD
2719 }
2720 }
2721 {
2722 PyThreadState* __tstate = wxPyBeginAllowThreads();
2723 result = (bool)wxShell((wxString const &)*arg1);
2724
2725 wxPyEndAllowThreads(__tstate);
2726 if (PyErr_Occurred()) SWIG_fail;
2727 }
2728 {
2729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2730 }
2731 {
2732 if (temp1)
2733 delete arg1;
2734 }
2735 return resultobj;
2736 fail:
2737 {
2738 if (temp1)
2739 delete arg1;
2740 }
2741 return NULL;
2742}
2743
2744
c370783e 2745static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2746 PyObject *resultobj;
2747 char *kwnames[] = {
2748 NULL
2749 };
2750
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 wxStartTimer();
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 Py_INCREF(Py_None); resultobj = Py_None;
2760 return resultobj;
2761 fail:
2762 return NULL;
2763}
2764
2765
c370783e 2766static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2767 PyObject *resultobj;
2768 int *arg1 = (int *) 0 ;
2769 int *arg2 = (int *) 0 ;
2770 int result;
2771 int temp1 ;
c370783e 2772 int res1 = 0 ;
d55e5bfc 2773 int temp2 ;
c370783e 2774 int res2 = 0 ;
d55e5bfc
RD
2775 char *kwnames[] = {
2776 NULL
2777 };
2778
c370783e
RD
2779 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2780 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2782 {
2783 PyThreadState* __tstate = wxPyBeginAllowThreads();
2784 result = (int)wxGetOsVersion(arg1,arg2);
2785
2786 wxPyEndAllowThreads(__tstate);
2787 if (PyErr_Occurred()) SWIG_fail;
2788 }
c370783e
RD
2789 resultobj = SWIG_From_int((int)result);
2790 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2791 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2792 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2793 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
2794 return resultobj;
2795 fail:
2796 return NULL;
2797}
2798
2799
c370783e 2800static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2801 PyObject *resultobj;
2802 wxString result;
2803 char *kwnames[] = {
2804 NULL
2805 };
2806
2807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2808 {
2809 PyThreadState* __tstate = wxPyBeginAllowThreads();
2810 result = wxGetOsDescription();
2811
2812 wxPyEndAllowThreads(__tstate);
2813 if (PyErr_Occurred()) SWIG_fail;
2814 }
2815 {
2816#if wxUSE_UNICODE
2817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2818#else
2819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2820#endif
2821 }
2822 return resultobj;
2823 fail:
2824 return NULL;
2825}
2826
2827
c370783e 2828static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2829 PyObject *resultobj;
2830 long result;
2831 char *kwnames[] = {
2832 NULL
2833 };
2834
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2836 {
2837 PyThreadState* __tstate = wxPyBeginAllowThreads();
2838 result = (long)wxGetFreeMemory();
2839
2840 wxPyEndAllowThreads(__tstate);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 }
c370783e 2843 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
2844 return resultobj;
2845 fail:
2846 return NULL;
2847}
2848
2849
c370783e 2850static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2851 PyObject *resultobj;
2852 int arg1 ;
2853 bool result;
2854 PyObject * obj0 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "wFlags", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
c370783e 2860 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2861 if (PyErr_Occurred()) SWIG_fail;
2862 {
0439c23b 2863 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2866
2867 wxPyEndAllowThreads(__tstate);
110da5b0 2868 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2869 }
2870 {
2871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2872 }
2873 return resultobj;
2874 fail:
2875 return NULL;
2876}
2877
2878
c370783e 2879static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2880 PyObject *resultobj;
2881 int arg1 ;
2882 PyObject * obj0 = 0 ;
2883 char *kwnames[] = {
2884 (char *) "secs", NULL
2885 };
2886
2887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
c370783e 2888 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2889 if (PyErr_Occurred()) SWIG_fail;
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 wxSleep(arg1);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 Py_INCREF(Py_None); resultobj = Py_None;
2898 return resultobj;
2899 fail:
2900 return NULL;
2901}
2902
2903
c370783e 2904static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2905 PyObject *resultobj;
2906 unsigned long arg1 ;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "milliseconds", NULL
2910 };
2911
bf26d883 2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
c370783e 2913 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
2914 if (PyErr_Occurred()) SWIG_fail;
2915 {
2916 PyThreadState* __tstate = wxPyBeginAllowThreads();
bf26d883
RD
2917 wxMilliSleep(arg1);
2918
2919 wxPyEndAllowThreads(__tstate);
2920 if (PyErr_Occurred()) SWIG_fail;
2921 }
2922 Py_INCREF(Py_None); resultobj = Py_None;
2923 return resultobj;
2924 fail:
2925 return NULL;
2926}
2927
2928
c370783e 2929static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
bf26d883
RD
2930 PyObject *resultobj;
2931 unsigned long arg1 ;
2932 PyObject * obj0 = 0 ;
2933 char *kwnames[] = {
2934 (char *) "microseconds", NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
c370783e 2938 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
bf26d883
RD
2939 if (PyErr_Occurred()) SWIG_fail;
2940 {
2941 PyThreadState* __tstate = wxPyBeginAllowThreads();
2942 wxMicroSleep(arg1);
d55e5bfc
RD
2943
2944 wxPyEndAllowThreads(__tstate);
2945 if (PyErr_Occurred()) SWIG_fail;
2946 }
2947 Py_INCREF(Py_None); resultobj = Py_None;
2948 return resultobj;
2949 fail:
2950 return NULL;
2951}
2952
2953
c370783e 2954static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2955 PyObject *resultobj;
2956 bool arg1 ;
2957 PyObject * obj0 = 0 ;
2958 char *kwnames[] = {
2959 (char *) "enable", NULL
2960 };
2961
2962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
c370783e 2963 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
2964 if (PyErr_Occurred()) SWIG_fail;
2965 {
2966 PyThreadState* __tstate = wxPyBeginAllowThreads();
2967 wxEnableTopLevelWindows(arg1);
2968
2969 wxPyEndAllowThreads(__tstate);
2970 if (PyErr_Occurred()) SWIG_fail;
2971 }
2972 Py_INCREF(Py_None); resultobj = Py_None;
2973 return resultobj;
2974 fail:
2975 return NULL;
2976}
2977
2978
c370783e 2979static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2980 PyObject *resultobj;
2981 wxString *arg1 = 0 ;
2982 wxString result;
b411df4a 2983 bool temp1 = false ;
d55e5bfc
RD
2984 PyObject * obj0 = 0 ;
2985 char *kwnames[] = {
2986 (char *) "in", NULL
2987 };
2988
2989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2990 {
2991 arg1 = wxString_in_helper(obj0);
2992 if (arg1 == NULL) SWIG_fail;
b411df4a 2993 temp1 = true;
d55e5bfc
RD
2994 }
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 result = wxStripMenuCodes((wxString const &)*arg1);
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 {
3003#if wxUSE_UNICODE
3004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3005#else
3006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3007#endif
3008 }
3009 {
3010 if (temp1)
3011 delete arg1;
3012 }
3013 return resultobj;
3014 fail:
3015 {
3016 if (temp1)
3017 delete arg1;
3018 }
3019 return NULL;
3020}
3021
3022
c370783e 3023static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3024 PyObject *resultobj;
3025 wxString result;
3026 char *kwnames[] = {
3027 NULL
3028 };
3029
3030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = wxGetEmailAddress();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
3038 {
3039#if wxUSE_UNICODE
3040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3041#else
3042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3043#endif
3044 }
3045 return resultobj;
3046 fail:
3047 return NULL;
3048}
3049
3050
c370783e 3051static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3052 PyObject *resultobj;
3053 wxString result;
3054 char *kwnames[] = {
3055 NULL
3056 };
3057
3058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
3059 {
3060 PyThreadState* __tstate = wxPyBeginAllowThreads();
3061 result = wxGetHostName();
3062
3063 wxPyEndAllowThreads(__tstate);
3064 if (PyErr_Occurred()) SWIG_fail;
3065 }
3066 {
3067#if wxUSE_UNICODE
3068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3069#else
3070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3071#endif
3072 }
3073 return resultobj;
3074 fail:
3075 return NULL;
3076}
3077
3078
c370783e 3079static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3080 PyObject *resultobj;
3081 wxString result;
3082 char *kwnames[] = {
3083 NULL
3084 };
3085
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
3087 {
3088 PyThreadState* __tstate = wxPyBeginAllowThreads();
3089 result = wxGetFullHostName();
3090
3091 wxPyEndAllowThreads(__tstate);
3092 if (PyErr_Occurred()) SWIG_fail;
3093 }
3094 {
3095#if wxUSE_UNICODE
3096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3097#else
3098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3099#endif
3100 }
3101 return resultobj;
3102 fail:
3103 return NULL;
3104}
3105
3106
c370783e 3107static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3108 PyObject *resultobj;
3109 wxString result;
3110 char *kwnames[] = {
3111 NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = wxGetUserId();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 {
3123#if wxUSE_UNICODE
3124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3125#else
3126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3127#endif
3128 }
3129 return resultobj;
3130 fail:
3131 return NULL;
3132}
3133
3134
c370783e 3135static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3136 PyObject *resultobj;
3137 wxString result;
3138 char *kwnames[] = {
3139 NULL
3140 };
3141
3142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 result = wxGetUserName();
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 {
3151#if wxUSE_UNICODE
3152 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3153#else
3154 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3155#endif
3156 }
3157 return resultobj;
3158 fail:
3159 return NULL;
3160}
3161
3162
c370783e 3163static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3164 PyObject *resultobj;
3165 wxString result;
3166 char *kwnames[] = {
3167 NULL
3168 };
3169
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 result = wxGetHomeDir();
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 {
3179#if wxUSE_UNICODE
3180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3181#else
3182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3183#endif
3184 }
3185 return resultobj;
3186 fail:
3187 return NULL;
3188}
3189
3190
c370783e 3191static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3192 PyObject *resultobj;
3193 wxString const &arg1_defvalue = wxPyEmptyString ;
3194 wxString *arg1 = (wxString *) &arg1_defvalue ;
3195 wxString result;
b411df4a 3196 bool temp1 = false ;
d55e5bfc
RD
3197 PyObject * obj0 = 0 ;
3198 char *kwnames[] = {
3199 (char *) "user", NULL
3200 };
3201
3202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3203 if (obj0) {
3204 {
3205 arg1 = wxString_in_helper(obj0);
3206 if (arg1 == NULL) SWIG_fail;
b411df4a 3207 temp1 = true;
d55e5bfc
RD
3208 }
3209 }
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = wxGetUserHome((wxString const &)*arg1);
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 {
3218#if wxUSE_UNICODE
3219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3220#else
3221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3222#endif
3223 }
3224 {
3225 if (temp1)
3226 delete arg1;
3227 }
3228 return resultobj;
3229 fail:
3230 {
3231 if (temp1)
3232 delete arg1;
3233 }
3234 return NULL;
3235}
3236
3237
c370783e 3238static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3239 PyObject *resultobj;
3240 unsigned long result;
3241 char *kwnames[] = {
3242 NULL
3243 };
3244
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3246 {
3247 PyThreadState* __tstate = wxPyBeginAllowThreads();
3248 result = (unsigned long)wxGetProcessId();
3249
3250 wxPyEndAllowThreads(__tstate);
3251 if (PyErr_Occurred()) SWIG_fail;
3252 }
c370783e 3253 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
3254 return resultobj;
3255 fail:
3256 return NULL;
3257}
3258
3259
c370783e 3260static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3261 PyObject *resultobj;
3262 char *kwnames[] = {
3263 NULL
3264 };
3265
3266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3267 {
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 wxTrap();
3270
3271 wxPyEndAllowThreads(__tstate);
3272 if (PyErr_Occurred()) SWIG_fail;
3273 }
3274 Py_INCREF(Py_None); resultobj = Py_None;
3275 return resultobj;
3276 fail:
3277 return NULL;
3278}
3279
3280
c370783e 3281static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3282 PyObject *resultobj;
3283 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3284 wxString *arg1 = (wxString *) &arg1_defvalue ;
3285 wxString const &arg2_defvalue = wxPyEmptyString ;
3286 wxString *arg2 = (wxString *) &arg2_defvalue ;
3287 wxString const &arg3_defvalue = wxPyEmptyString ;
3288 wxString *arg3 = (wxString *) &arg3_defvalue ;
3289 wxString const &arg4_defvalue = wxPyEmptyString ;
3290 wxString *arg4 = (wxString *) &arg4_defvalue ;
3291 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3292 wxString *arg5 = (wxString *) &arg5_defvalue ;
3293 int arg6 = (int) 0 ;
3294 wxWindow *arg7 = (wxWindow *) NULL ;
3295 int arg8 = (int) -1 ;
3296 int arg9 = (int) -1 ;
3297 wxString result;
b411df4a
RD
3298 bool temp1 = false ;
3299 bool temp2 = false ;
3300 bool temp3 = false ;
3301 bool temp4 = false ;
3302 bool temp5 = false ;
d55e5bfc
RD
3303 PyObject * obj0 = 0 ;
3304 PyObject * obj1 = 0 ;
3305 PyObject * obj2 = 0 ;
3306 PyObject * obj3 = 0 ;
3307 PyObject * obj4 = 0 ;
3308 PyObject * obj5 = 0 ;
3309 PyObject * obj6 = 0 ;
3310 PyObject * obj7 = 0 ;
3311 PyObject * obj8 = 0 ;
3312 char *kwnames[] = {
3313 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3314 };
3315
3316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3317 if (obj0) {
3318 {
3319 arg1 = wxString_in_helper(obj0);
3320 if (arg1 == NULL) SWIG_fail;
b411df4a 3321 temp1 = true;
d55e5bfc
RD
3322 }
3323 }
3324 if (obj1) {
3325 {
3326 arg2 = wxString_in_helper(obj1);
3327 if (arg2 == NULL) SWIG_fail;
b411df4a 3328 temp2 = true;
d55e5bfc
RD
3329 }
3330 }
3331 if (obj2) {
3332 {
3333 arg3 = wxString_in_helper(obj2);
3334 if (arg3 == NULL) SWIG_fail;
b411df4a 3335 temp3 = true;
d55e5bfc
RD
3336 }
3337 }
3338 if (obj3) {
3339 {
3340 arg4 = wxString_in_helper(obj3);
3341 if (arg4 == NULL) SWIG_fail;
b411df4a 3342 temp4 = true;
d55e5bfc
RD
3343 }
3344 }
3345 if (obj4) {
3346 {
3347 arg5 = wxString_in_helper(obj4);
3348 if (arg5 == NULL) SWIG_fail;
b411df4a 3349 temp5 = true;
d55e5bfc
RD
3350 }
3351 }
3352 if (obj5) {
c370783e 3353 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 if (obj6) {
3357 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3359 }
3360 if (obj7) {
c370783e 3361 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
3362 if (PyErr_Occurred()) SWIG_fail;
3363 }
3364 if (obj8) {
c370783e 3365 arg9 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
3366 if (PyErr_Occurred()) SWIG_fail;
3367 }
3368 {
0439c23b 3369 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3370 PyThreadState* __tstate = wxPyBeginAllowThreads();
3371 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3372
3373 wxPyEndAllowThreads(__tstate);
110da5b0 3374 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3375 }
3376 {
3377#if wxUSE_UNICODE
3378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3379#else
3380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3381#endif
3382 }
3383 {
3384 if (temp1)
3385 delete arg1;
3386 }
3387 {
3388 if (temp2)
3389 delete arg2;
3390 }
3391 {
3392 if (temp3)
3393 delete arg3;
3394 }
3395 {
3396 if (temp4)
3397 delete arg4;
3398 }
3399 {
3400 if (temp5)
3401 delete arg5;
3402 }
3403 return resultobj;
3404 fail:
3405 {
3406 if (temp1)
3407 delete arg1;
3408 }
3409 {
3410 if (temp2)
3411 delete arg2;
3412 }
3413 {
3414 if (temp3)
3415 delete arg3;
3416 }
3417 {
3418 if (temp4)
3419 delete arg4;
3420 }
3421 {
3422 if (temp5)
3423 delete arg5;
3424 }
3425 return NULL;
3426}
3427
3428
c370783e 3429static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3430 PyObject *resultobj;
3431 wxString *arg1 = 0 ;
3432 wxString *arg2 = 0 ;
3433 wxString const &arg3_defvalue = wxPyEmptyString ;
3434 wxString *arg3 = (wxString *) &arg3_defvalue ;
3435 wxWindow *arg4 = (wxWindow *) NULL ;
3436 wxString result;
b411df4a
RD
3437 bool temp1 = false ;
3438 bool temp2 = false ;
3439 bool temp3 = false ;
d55e5bfc
RD
3440 PyObject * obj0 = 0 ;
3441 PyObject * obj1 = 0 ;
3442 PyObject * obj2 = 0 ;
3443 PyObject * obj3 = 0 ;
3444 char *kwnames[] = {
3445 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3446 };
3447
3448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3449 {
3450 arg1 = wxString_in_helper(obj0);
3451 if (arg1 == NULL) SWIG_fail;
b411df4a 3452 temp1 = true;
d55e5bfc
RD
3453 }
3454 {
3455 arg2 = wxString_in_helper(obj1);
3456 if (arg2 == NULL) SWIG_fail;
b411df4a 3457 temp2 = true;
d55e5bfc
RD
3458 }
3459 if (obj2) {
3460 {
3461 arg3 = wxString_in_helper(obj2);
3462 if (arg3 == NULL) SWIG_fail;
b411df4a 3463 temp3 = true;
d55e5bfc
RD
3464 }
3465 }
3466 if (obj3) {
3467 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3469 }
3470 {
0439c23b 3471 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3474
3475 wxPyEndAllowThreads(__tstate);
110da5b0 3476 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3477 }
3478 {
3479#if wxUSE_UNICODE
3480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3481#else
3482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3483#endif
3484 }
3485 {
3486 if (temp1)
3487 delete arg1;
3488 }
3489 {
3490 if (temp2)
3491 delete arg2;
3492 }
3493 {
3494 if (temp3)
3495 delete arg3;
3496 }
3497 return resultobj;
3498 fail:
3499 {
3500 if (temp1)
3501 delete arg1;
3502 }
3503 {
3504 if (temp2)
3505 delete arg2;
3506 }
3507 {
3508 if (temp3)
3509 delete arg3;
3510 }
3511 return NULL;
3512}
3513
3514
c370783e 3515static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3516 PyObject *resultobj;
3517 wxString *arg1 = 0 ;
3518 wxString *arg2 = 0 ;
3519 wxString const &arg3_defvalue = wxPyEmptyString ;
3520 wxString *arg3 = (wxString *) &arg3_defvalue ;
3521 wxWindow *arg4 = (wxWindow *) NULL ;
3522 wxString result;
b411df4a
RD
3523 bool temp1 = false ;
3524 bool temp2 = false ;
3525 bool temp3 = false ;
d55e5bfc
RD
3526 PyObject * obj0 = 0 ;
3527 PyObject * obj1 = 0 ;
3528 PyObject * obj2 = 0 ;
3529 PyObject * obj3 = 0 ;
3530 char *kwnames[] = {
3531 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3532 };
3533
3534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3535 {
3536 arg1 = wxString_in_helper(obj0);
3537 if (arg1 == NULL) SWIG_fail;
b411df4a 3538 temp1 = true;
d55e5bfc
RD
3539 }
3540 {
3541 arg2 = wxString_in_helper(obj1);
3542 if (arg2 == NULL) SWIG_fail;
b411df4a 3543 temp2 = true;
d55e5bfc
RD
3544 }
3545 if (obj2) {
3546 {
3547 arg3 = wxString_in_helper(obj2);
3548 if (arg3 == NULL) SWIG_fail;
b411df4a 3549 temp3 = true;
d55e5bfc
RD
3550 }
3551 }
3552 if (obj3) {
3553 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3555 }
3556 {
0439c23b 3557 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3560
3561 wxPyEndAllowThreads(__tstate);
110da5b0 3562 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3563 }
3564 {
3565#if wxUSE_UNICODE
3566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3567#else
3568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3569#endif
3570 }
3571 {
3572 if (temp1)
3573 delete arg1;
3574 }
3575 {
3576 if (temp2)
3577 delete arg2;
3578 }
3579 {
3580 if (temp3)
3581 delete arg3;
3582 }
3583 return resultobj;
3584 fail:
3585 {
3586 if (temp1)
3587 delete arg1;
3588 }
3589 {
3590 if (temp2)
3591 delete arg2;
3592 }
3593 {
3594 if (temp3)
3595 delete arg3;
3596 }
3597 return NULL;
3598}
3599
3600
c370783e 3601static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3602 PyObject *resultobj;
3603 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3604 wxString *arg1 = (wxString *) &arg1_defvalue ;
3605 wxString const &arg2_defvalue = wxPyEmptyString ;
3606 wxString *arg2 = (wxString *) &arg2_defvalue ;
3607 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3608 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3609 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3610 wxWindow *arg5 = (wxWindow *) NULL ;
3611 wxString result;
b411df4a
RD
3612 bool temp1 = false ;
3613 bool temp2 = false ;
d55e5bfc
RD
3614 wxPoint temp4 ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 PyObject * obj2 = 0 ;
3618 PyObject * obj3 = 0 ;
3619 PyObject * obj4 = 0 ;
3620 char *kwnames[] = {
3621 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3622 };
3623
3624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3625 if (obj0) {
3626 {
3627 arg1 = wxString_in_helper(obj0);
3628 if (arg1 == NULL) SWIG_fail;
b411df4a 3629 temp1 = true;
d55e5bfc
RD
3630 }
3631 }
3632 if (obj1) {
3633 {
3634 arg2 = wxString_in_helper(obj1);
3635 if (arg2 == NULL) SWIG_fail;
b411df4a 3636 temp2 = true;
d55e5bfc
RD
3637 }
3638 }
3639 if (obj2) {
c370783e 3640 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
3641 if (PyErr_Occurred()) SWIG_fail;
3642 }
3643 if (obj3) {
3644 {
3645 arg4 = &temp4;
3646 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3647 }
3648 }
3649 if (obj4) {
3650 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3652 }
3653 {
0439c23b 3654 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3655 PyThreadState* __tstate = wxPyBeginAllowThreads();
3656 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3657
3658 wxPyEndAllowThreads(__tstate);
110da5b0 3659 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3660 }
3661 {
3662#if wxUSE_UNICODE
3663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3664#else
3665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3666#endif
3667 }
3668 {
3669 if (temp1)
3670 delete arg1;
3671 }
3672 {
3673 if (temp2)
3674 delete arg2;
3675 }
3676 return resultobj;
3677 fail:
3678 {
3679 if (temp1)
3680 delete arg1;
3681 }
3682 {
3683 if (temp2)
3684 delete arg2;
3685 }
3686 return NULL;
3687}
3688
3689
c370783e 3690static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3691 PyObject *resultobj;
3692 wxString *arg1 = 0 ;
3693 wxString const &arg2_defvalue = wxPyEmptyString ;
3694 wxString *arg2 = (wxString *) &arg2_defvalue ;
3695 wxString const &arg3_defvalue = wxPyEmptyString ;
3696 wxString *arg3 = (wxString *) &arg3_defvalue ;
3697 wxWindow *arg4 = (wxWindow *) NULL ;
3698 int arg5 = (int) -1 ;
3699 int arg6 = (int) -1 ;
b411df4a 3700 bool arg7 = (bool) true ;
d55e5bfc 3701 wxString result;
b411df4a
RD
3702 bool temp1 = false ;
3703 bool temp2 = false ;
3704 bool temp3 = false ;
d55e5bfc
RD
3705 PyObject * obj0 = 0 ;
3706 PyObject * obj1 = 0 ;
3707 PyObject * obj2 = 0 ;
3708 PyObject * obj3 = 0 ;
3709 PyObject * obj4 = 0 ;
3710 PyObject * obj5 = 0 ;
3711 PyObject * obj6 = 0 ;
3712 char *kwnames[] = {
3713 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3714 };
3715
3716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3717 {
3718 arg1 = wxString_in_helper(obj0);
3719 if (arg1 == NULL) SWIG_fail;
b411df4a 3720 temp1 = true;
d55e5bfc
RD
3721 }
3722 if (obj1) {
3723 {
3724 arg2 = wxString_in_helper(obj1);
3725 if (arg2 == NULL) SWIG_fail;
b411df4a 3726 temp2 = true;
d55e5bfc
RD
3727 }
3728 }
3729 if (obj2) {
3730 {
3731 arg3 = wxString_in_helper(obj2);
3732 if (arg3 == NULL) SWIG_fail;
b411df4a 3733 temp3 = true;
d55e5bfc
RD
3734 }
3735 }
3736 if (obj3) {
3737 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3739 }
3740 if (obj4) {
c370783e 3741 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 if (obj5) {
c370783e 3745 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3746 if (PyErr_Occurred()) SWIG_fail;
3747 }
3748 if (obj6) {
c370783e 3749 arg7 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
3752 {
0439c23b 3753 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3754 PyThreadState* __tstate = wxPyBeginAllowThreads();
3755 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3756
3757 wxPyEndAllowThreads(__tstate);
110da5b0 3758 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3759 }
3760 {
3761#if wxUSE_UNICODE
3762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3763#else
3764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3765#endif
3766 }
3767 {
3768 if (temp1)
3769 delete arg1;
3770 }
3771 {
3772 if (temp2)
3773 delete arg2;
3774 }
3775 {
3776 if (temp3)
3777 delete arg3;
3778 }
3779 return resultobj;
3780 fail:
3781 {
3782 if (temp1)
3783 delete arg1;
3784 }
3785 {
3786 if (temp2)
3787 delete arg2;
3788 }
3789 {
3790 if (temp3)
3791 delete arg3;
3792 }
3793 return NULL;
3794}
3795
3796
c370783e 3797static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3798 PyObject *resultobj;
3799 wxString *arg1 = 0 ;
3800 wxString const &arg2_defvalue = wxPyEmptyString ;
3801 wxString *arg2 = (wxString *) &arg2_defvalue ;
3802 wxString const &arg3_defvalue = wxPyEmptyString ;
3803 wxString *arg3 = (wxString *) &arg3_defvalue ;
3804 wxWindow *arg4 = (wxWindow *) NULL ;
3805 wxString result;
b411df4a
RD
3806 bool temp1 = false ;
3807 bool temp2 = false ;
3808 bool temp3 = false ;
d55e5bfc
RD
3809 PyObject * obj0 = 0 ;
3810 PyObject * obj1 = 0 ;
3811 PyObject * obj2 = 0 ;
3812 PyObject * obj3 = 0 ;
3813 char *kwnames[] = {
3814 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3815 };
3816
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3818 {
3819 arg1 = wxString_in_helper(obj0);
3820 if (arg1 == NULL) SWIG_fail;
b411df4a 3821 temp1 = true;
d55e5bfc
RD
3822 }
3823 if (obj1) {
3824 {
3825 arg2 = wxString_in_helper(obj1);
3826 if (arg2 == NULL) SWIG_fail;
b411df4a 3827 temp2 = true;
d55e5bfc
RD
3828 }
3829 }
3830 if (obj2) {
3831 {
3832 arg3 = wxString_in_helper(obj2);
3833 if (arg3 == NULL) SWIG_fail;
b411df4a 3834 temp3 = true;
d55e5bfc
RD
3835 }
3836 }
3837 if (obj3) {
3838 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3840 }
3841 {
0439c23b 3842 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
3844 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3845
3846 wxPyEndAllowThreads(__tstate);
110da5b0 3847 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3848 }
3849 {
3850#if wxUSE_UNICODE
3851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3852#else
3853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3854#endif
3855 }
3856 {
3857 if (temp1)
3858 delete arg1;
3859 }
3860 {
3861 if (temp2)
3862 delete arg2;
3863 }
3864 {
3865 if (temp3)
3866 delete arg3;
3867 }
3868 return resultobj;
3869 fail:
3870 {
3871 if (temp1)
3872 delete arg1;
3873 }
3874 {
3875 if (temp2)
3876 delete arg2;
3877 }
3878 {
3879 if (temp3)
3880 delete arg3;
3881 }
3882 return NULL;
3883}
3884
3885
c370783e 3886static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3887 PyObject *resultobj;
3888 wxString *arg1 = 0 ;
3889 wxString *arg2 = 0 ;
3890 int arg3 ;
3891 wxString *arg4 = (wxString *) 0 ;
3892 wxWindow *arg5 = (wxWindow *) NULL ;
3893 int arg6 = (int) -1 ;
3894 int arg7 = (int) -1 ;
b411df4a 3895 bool arg8 = (bool) true ;
d55e5bfc
RD
3896 int arg9 = (int) 150 ;
3897 int arg10 = (int) 200 ;
3898 wxString result;
b411df4a
RD
3899 bool temp1 = false ;
3900 bool temp2 = false ;
d55e5bfc
RD
3901 PyObject * obj0 = 0 ;
3902 PyObject * obj1 = 0 ;
3903 PyObject * obj2 = 0 ;
3904 PyObject * obj3 = 0 ;
3905 PyObject * obj4 = 0 ;
3906 PyObject * obj5 = 0 ;
3907 PyObject * obj6 = 0 ;
3908 PyObject * obj7 = 0 ;
3909 PyObject * obj8 = 0 ;
3910 char *kwnames[] = {
3911 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3912 };
3913
3914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3915 {
3916 arg1 = wxString_in_helper(obj0);
3917 if (arg1 == NULL) SWIG_fail;
b411df4a 3918 temp1 = true;
d55e5bfc
RD
3919 }
3920 {
3921 arg2 = wxString_in_helper(obj1);
3922 if (arg2 == NULL) SWIG_fail;
b411df4a 3923 temp2 = true;
d55e5bfc
RD
3924 }
3925 {
3926 arg3 = PyList_Size(obj2);
3927 arg4 = wxString_LIST_helper(obj2);
3928 if (arg4 == NULL) SWIG_fail;
3929 }
3930 if (obj3) {
3931 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3933 }
3934 if (obj4) {
c370783e 3935 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 if (obj5) {
c370783e 3939 arg7 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 if (obj6) {
c370783e 3943 arg8 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 if (obj7) {
c370783e 3947 arg9 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 if (obj8) {
c370783e 3951 arg10 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 {
0439c23b 3955 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3956 PyThreadState* __tstate = wxPyBeginAllowThreads();
3957 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3958
3959 wxPyEndAllowThreads(__tstate);
110da5b0 3960 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3961 }
3962 {
3963#if wxUSE_UNICODE
3964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3965#else
3966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3967#endif
3968 }
3969 {
3970 if (temp1)
3971 delete arg1;
3972 }
3973 {
3974 if (temp2)
3975 delete arg2;
3976 }
3977 {
3978 if (arg4) delete [] arg4;
3979 }
3980 return resultobj;
3981 fail:
3982 {
3983 if (temp1)
3984 delete arg1;
3985 }
3986 {
3987 if (temp2)
3988 delete arg2;
3989 }
3990 {
3991 if (arg4) delete [] arg4;
3992 }
3993 return NULL;
3994}
3995
3996
c370783e 3997static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3998 PyObject *resultobj;
3999 wxString *arg1 = 0 ;
4000 wxString *arg2 = 0 ;
4001 int arg3 ;
4002 wxString *arg4 = (wxString *) 0 ;
4003 wxWindow *arg5 = (wxWindow *) NULL ;
4004 int arg6 = (int) -1 ;
4005 int arg7 = (int) -1 ;
b411df4a 4006 bool arg8 = (bool) true ;
d55e5bfc
RD
4007 int arg9 = (int) 150 ;
4008 int arg10 = (int) 200 ;
4009 int result;
b411df4a
RD
4010 bool temp1 = false ;
4011 bool temp2 = false ;
d55e5bfc
RD
4012 PyObject * obj0 = 0 ;
4013 PyObject * obj1 = 0 ;
4014 PyObject * obj2 = 0 ;
4015 PyObject * obj3 = 0 ;
4016 PyObject * obj4 = 0 ;
4017 PyObject * obj5 = 0 ;
4018 PyObject * obj6 = 0 ;
4019 PyObject * obj7 = 0 ;
4020 PyObject * obj8 = 0 ;
4021 char *kwnames[] = {
4022 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
4023 };
4024
4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4026 {
4027 arg1 = wxString_in_helper(obj0);
4028 if (arg1 == NULL) SWIG_fail;
b411df4a 4029 temp1 = true;
d55e5bfc
RD
4030 }
4031 {
4032 arg2 = wxString_in_helper(obj1);
4033 if (arg2 == NULL) SWIG_fail;
b411df4a 4034 temp2 = true;
d55e5bfc
RD
4035 }
4036 {
4037 arg3 = PyList_Size(obj2);
4038 arg4 = wxString_LIST_helper(obj2);
4039 if (arg4 == NULL) SWIG_fail;
4040 }
4041 if (obj3) {
4042 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
4043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4044 }
4045 if (obj4) {
c370783e 4046 arg6 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 if (obj5) {
c370783e 4050 arg7 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 if (obj6) {
c370783e 4054 arg8 = (bool)SWIG_As_bool(obj6);
d55e5bfc
RD
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 if (obj7) {
c370783e 4058 arg9 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 if (obj8) {
c370783e 4062 arg10 = (int)SWIG_As_int(obj8);
d55e5bfc
RD
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 {
0439c23b 4066 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
4069
4070 wxPyEndAllowThreads(__tstate);
110da5b0 4071 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4072 }
c370783e 4073 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4074 {
4075 if (temp1)
4076 delete arg1;
4077 }
4078 {
4079 if (temp2)
4080 delete arg2;
4081 }
4082 {
4083 if (arg4) delete [] arg4;
4084 }
4085 return resultobj;
4086 fail:
4087 {
4088 if (temp1)
4089 delete arg1;
4090 }
4091 {
4092 if (temp2)
4093 delete arg2;
4094 }
4095 {
4096 if (arg4) delete [] arg4;
4097 }
4098 return NULL;
4099}
4100
4101
c370783e 4102static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4103 PyObject *resultobj;
4104 wxString *arg1 = 0 ;
4105 wxString const &arg2_defvalue = wxPyEmptyString ;
4106 wxString *arg2 = (wxString *) &arg2_defvalue ;
4107 int arg3 = (int) wxOK|wxCENTRE ;
4108 wxWindow *arg4 = (wxWindow *) NULL ;
4109 int arg5 = (int) -1 ;
4110 int arg6 = (int) -1 ;
4111 int result;
b411df4a
RD
4112 bool temp1 = false ;
4113 bool temp2 = false ;
d55e5bfc
RD
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 PyObject * obj2 = 0 ;
4117 PyObject * obj3 = 0 ;
4118 PyObject * obj4 = 0 ;
4119 PyObject * obj5 = 0 ;
4120 char *kwnames[] = {
4121 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
4122 };
4123
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4125 {
4126 arg1 = wxString_in_helper(obj0);
4127 if (arg1 == NULL) SWIG_fail;
b411df4a 4128 temp1 = true;
d55e5bfc
RD
4129 }
4130 if (obj1) {
4131 {
4132 arg2 = wxString_in_helper(obj1);
4133 if (arg2 == NULL) SWIG_fail;
b411df4a 4134 temp2 = true;
d55e5bfc
RD
4135 }
4136 }
4137 if (obj2) {
c370783e 4138 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4139 if (PyErr_Occurred()) SWIG_fail;
4140 }
4141 if (obj3) {
4142 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4144 }
4145 if (obj4) {
c370783e 4146 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 if (obj5) {
c370783e 4150 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
0439c23b 4154 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4157
4158 wxPyEndAllowThreads(__tstate);
110da5b0 4159 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4160 }
c370783e 4161 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4162 {
4163 if (temp1)
4164 delete arg1;
4165 }
4166 {
4167 if (temp2)
4168 delete arg2;
4169 }
4170 return resultobj;
4171 fail:
4172 {
4173 if (temp1)
4174 delete arg1;
4175 }
4176 {
4177 if (temp2)
4178 delete arg2;
4179 }
4180 return NULL;
4181}
4182
4183
c370783e 4184static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4185 PyObject *resultobj;
4186 wxString *arg1 = 0 ;
4187 wxString *arg2 = 0 ;
4188 wxString *arg3 = 0 ;
4189 long arg4 ;
4190 long arg5 = (long) 0 ;
4191 long arg6 = (long) 100 ;
4192 wxWindow *arg7 = (wxWindow *) NULL ;
4193 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4194 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4195 long result;
b411df4a
RD
4196 bool temp1 = false ;
4197 bool temp2 = false ;
4198 bool temp3 = false ;
d55e5bfc
RD
4199 wxPoint temp8 ;
4200 PyObject * obj0 = 0 ;
4201 PyObject * obj1 = 0 ;
4202 PyObject * obj2 = 0 ;
4203 PyObject * obj3 = 0 ;
4204 PyObject * obj4 = 0 ;
4205 PyObject * obj5 = 0 ;
4206 PyObject * obj6 = 0 ;
4207 PyObject * obj7 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4213 {
4214 arg1 = wxString_in_helper(obj0);
4215 if (arg1 == NULL) SWIG_fail;
b411df4a 4216 temp1 = true;
d55e5bfc
RD
4217 }
4218 {
4219 arg2 = wxString_in_helper(obj1);
4220 if (arg2 == NULL) SWIG_fail;
b411df4a 4221 temp2 = true;
d55e5bfc
RD
4222 }
4223 {
4224 arg3 = wxString_in_helper(obj2);
4225 if (arg3 == NULL) SWIG_fail;
b411df4a 4226 temp3 = true;
d55e5bfc 4227 }
c370783e 4228 arg4 = (long)SWIG_As_long(obj3);
d55e5bfc
RD
4229 if (PyErr_Occurred()) SWIG_fail;
4230 if (obj4) {
c370783e 4231 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 if (obj5) {
c370783e 4235 arg6 = (long)SWIG_As_long(obj5);
d55e5bfc
RD
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 if (obj6) {
4239 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4241 }
4242 if (obj7) {
4243 {
4244 arg8 = &temp8;
4245 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4246 }
4247 }
4248 {
0439c23b 4249 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4252
4253 wxPyEndAllowThreads(__tstate);
110da5b0 4254 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4255 }
c370783e 4256 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
4257 {
4258 if (temp1)
4259 delete arg1;
4260 }
4261 {
4262 if (temp2)
4263 delete arg2;
4264 }
4265 {
4266 if (temp3)
4267 delete arg3;
4268 }
4269 return resultobj;
4270 fail:
4271 {
4272 if (temp1)
4273 delete arg1;
4274 }
4275 {
4276 if (temp2)
4277 delete arg2;
4278 }
4279 {
4280 if (temp3)
4281 delete arg3;
4282 }
4283 return NULL;
4284}
4285
4286
c370783e 4287static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4288 PyObject *resultobj;
4289 bool result;
4290 char *kwnames[] = {
4291 NULL
4292 };
4293
4294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4295 {
0439c23b 4296 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (bool)wxColourDisplay();
4299
4300 wxPyEndAllowThreads(__tstate);
110da5b0 4301 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4302 }
4303 {
4304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309}
4310
4311
c370783e 4312static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4313 PyObject *resultobj;
4314 int result;
4315 char *kwnames[] = {
4316 NULL
4317 };
4318
4319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4320 {
0439c23b 4321 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4322 PyThreadState* __tstate = wxPyBeginAllowThreads();
4323 result = (int)wxDisplayDepth();
4324
4325 wxPyEndAllowThreads(__tstate);
110da5b0 4326 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4327 }
c370783e 4328 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4329 return resultobj;
4330 fail:
4331 return NULL;
4332}
4333
4334
c370783e 4335static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4336 PyObject *resultobj;
4337 int result;
4338 char *kwnames[] = {
4339 NULL
4340 };
4341
4342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4343 {
0439c23b 4344 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (int)wxGetDisplayDepth();
4347
4348 wxPyEndAllowThreads(__tstate);
110da5b0 4349 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 4350 }
c370783e 4351 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4352 return resultobj;
4353 fail:
4354 return NULL;
4355}
4356
4357
c370783e 4358static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4359 PyObject *resultobj;
4360 int *arg1 = (int *) 0 ;
4361 int *arg2 = (int *) 0 ;
4362 int temp1 ;
c370783e 4363 int res1 = 0 ;
d55e5bfc 4364 int temp2 ;
c370783e 4365 int res2 = 0 ;
d55e5bfc
RD
4366 char *kwnames[] = {
4367 NULL
4368 };
4369
c370783e
RD
4370 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4371 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
4372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4373 {
0439c23b 4374 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4375 PyThreadState* __tstate = wxPyBeginAllowThreads();
4376 wxDisplaySize(arg1,arg2);
4377
4378 wxPyEndAllowThreads(__tstate);
110da5b0 4379 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4380 }
4381 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
4382 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4383 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4384 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4385 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4386 return resultobj;
4387 fail:
4388 return NULL;
4389}
4390
4391
c370783e 4392static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4393 PyObject *resultobj;
4394 wxSize result;
4395 char *kwnames[] = {
4396 NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4400 {
0439c23b 4401 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = wxGetDisplaySize();
4404
4405 wxPyEndAllowThreads(__tstate);
110da5b0 4406 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4407 }
4408 {
4409 wxSize * resultptr;
4410 resultptr = new wxSize((wxSize &) result);
4411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4412 }
4413 return resultobj;
4414 fail:
4415 return NULL;
4416}
4417
4418
c370783e 4419static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4420 PyObject *resultobj;
4421 int *arg1 = (int *) 0 ;
4422 int *arg2 = (int *) 0 ;
4423 int temp1 ;
c370783e 4424 int res1 = 0 ;
d55e5bfc 4425 int temp2 ;
c370783e 4426 int res2 = 0 ;
d55e5bfc
RD
4427 char *kwnames[] = {
4428 NULL
4429 };
4430
c370783e
RD
4431 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4432 arg2 = &temp2; res2 = SWIG_NEWOBJ;
d55e5bfc
RD
4433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4434 {
0439c23b 4435 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 wxDisplaySizeMM(arg1,arg2);
4438
4439 wxPyEndAllowThreads(__tstate);
110da5b0 4440 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4441 }
4442 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
4443 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4444 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4445 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4446 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4447 return resultobj;
4448 fail:
4449 return NULL;
4450}
4451
4452
c370783e 4453static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4454 PyObject *resultobj;
4455 wxSize result;
4456 char *kwnames[] = {
4457 NULL
4458 };
4459
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4461 {
0439c23b 4462 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 result = wxGetDisplaySizeMM();
4465
4466 wxPyEndAllowThreads(__tstate);
110da5b0 4467 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4468 }
4469 {
4470 wxSize * resultptr;
4471 resultptr = new wxSize((wxSize &) result);
4472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4473 }
4474 return resultobj;
4475 fail:
4476 return NULL;
4477}
4478
4479
c370783e 4480static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4481 PyObject *resultobj;
4482 int *arg1 = (int *) 0 ;
4483 int *arg2 = (int *) 0 ;
4484 int *arg3 = (int *) 0 ;
4485 int *arg4 = (int *) 0 ;
4486 int temp1 ;
c370783e 4487 int res1 = 0 ;
d55e5bfc 4488 int temp2 ;
c370783e 4489 int res2 = 0 ;
d55e5bfc 4490 int temp3 ;
c370783e 4491 int res3 = 0 ;
d55e5bfc 4492 int temp4 ;
c370783e 4493 int res4 = 0 ;
d55e5bfc
RD
4494 char *kwnames[] = {
4495 NULL
4496 };
4497
c370783e
RD
4498 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4499 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4500 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4501 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4503 {
0439c23b 4504 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4507
4508 wxPyEndAllowThreads(__tstate);
110da5b0 4509 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4510 }
4511 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
4512 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4513 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4514 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4515 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4516 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4517 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4518 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4519 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
4520 return resultobj;
4521 fail:
4522 return NULL;
4523}
4524
4525
c370783e 4526static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4527 PyObject *resultobj;
4528 wxRect result;
4529 char *kwnames[] = {
4530 NULL
4531 };
4532
4533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4534 {
0439c23b 4535 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 result = wxGetClientDisplayRect();
4538
4539 wxPyEndAllowThreads(__tstate);
110da5b0 4540 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4541 }
4542 {
4543 wxRect * resultptr;
4544 resultptr = new wxRect((wxRect &) result);
4545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4546 }
4547 return resultobj;
4548 fail:
4549 return NULL;
4550}
4551
4552
c370783e 4553static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4554 PyObject *resultobj;
4555 wxCursor *arg1 = 0 ;
4556 PyObject * obj0 = 0 ;
4557 char *kwnames[] = {
4558 (char *) "cursor", NULL
4559 };
4560
4561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4563 SWIG_POINTER_EXCEPTION | 0)) == -1)
4564 SWIG_fail;
4565 if (arg1 == NULL) {
4566 PyErr_SetString(PyExc_TypeError,"null reference");
4567 SWIG_fail;
4568 }
4569 {
0439c23b 4570 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 wxSetCursor(*arg1);
4573
4574 wxPyEndAllowThreads(__tstate);
110da5b0 4575 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4576 }
4577 Py_INCREF(Py_None); resultobj = Py_None;
4578 return resultobj;
4579 fail:
4580 return NULL;
4581}
4582
4583
c370783e 4584static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4585 PyObject *resultobj;
4586 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4587 PyObject * obj0 = 0 ;
4588 char *kwnames[] = {
4589 (char *) "cursor", NULL
4590 };
4591
4592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4593 if (obj0) {
4594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4596 }
4597 {
0439c23b 4598 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 wxBeginBusyCursor(arg1);
4601
4602 wxPyEndAllowThreads(__tstate);
110da5b0 4603 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4604 }
4605 Py_INCREF(Py_None); resultobj = Py_None;
4606 return resultobj;
4607 fail:
4608 return NULL;
4609}
4610
4611
c370783e 4612static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4613 PyObject *resultobj;
4614 wxWindow *result;
4615 char *kwnames[] = {
4616 NULL
4617 };
4618
4619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4620 {
0439c23b 4621 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (wxWindow *)wxGetActiveWindow();
4624
4625 wxPyEndAllowThreads(__tstate);
110da5b0 4626 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4627 }
4628 {
412d302d 4629 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4630 }
4631 return resultobj;
4632 fail:
4633 return NULL;
4634}
4635
4636
c370783e 4637static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4638 PyObject *resultobj;
4639 wxPoint *arg1 = 0 ;
4640 wxWindow *result;
4641 wxPoint temp1 ;
4642 PyObject * obj0 = 0 ;
4643 char *kwnames[] = {
4644 (char *) "pt", NULL
4645 };
4646
4647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4648 {
4649 arg1 = &temp1;
4650 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4651 }
4652 {
0439c23b 4653 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4656
4657 wxPyEndAllowThreads(__tstate);
110da5b0 4658 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4659 }
4660 {
412d302d 4661 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4662 }
4663 return resultobj;
4664 fail:
4665 return NULL;
4666}
4667
4668
c370783e 4669static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4670 PyObject *resultobj;
4671 wxPoint *arg1 = 0 ;
4672 wxWindow *result;
4673 wxPoint temp1 ;
4674 PyObject * obj0 = 0 ;
4675 char *kwnames[] = {
4676 (char *) "pt", NULL
4677 };
4678
4679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4680 {
4681 arg1 = &temp1;
4682 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4683 }
4684 {
0439c23b 4685 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4686 PyThreadState* __tstate = wxPyBeginAllowThreads();
4687 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4688
4689 wxPyEndAllowThreads(__tstate);
110da5b0 4690 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4691 }
4692 {
412d302d 4693 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4694 }
4695 return resultobj;
4696 fail:
4697 return NULL;
4698}
4699
4700
c370783e 4701static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4702 PyObject *resultobj;
4703 wxWindow *arg1 = (wxWindow *) 0 ;
4704 wxWindow *result;
4705 PyObject * obj0 = 0 ;
4706 char *kwnames[] = {
4707 (char *) "win", NULL
4708 };
4709
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4713 {
0439c23b 4714 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 result = (wxWindow *)wxGetTopLevelParent(arg1);
4717
4718 wxPyEndAllowThreads(__tstate);
110da5b0 4719 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4720 }
4721 {
412d302d 4722 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
4723 }
4724 return resultobj;
4725 fail:
4726 return NULL;
4727}
4728
4729
c370783e 4730static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4731 PyObject *resultobj;
4732 int arg1 ;
4733 bool result;
4734 PyObject * obj0 = 0 ;
4735 char *kwnames[] = {
4736 (char *) "key", NULL
4737 };
4738
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
c370783e 4740 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
4741 if (PyErr_Occurred()) SWIG_fail;
4742 {
0439c23b 4743 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4746
4747 wxPyEndAllowThreads(__tstate);
110da5b0 4748 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756}
4757
4758
c370783e 4759static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4760 PyObject *resultobj;
4761 char *kwnames[] = {
4762 NULL
4763 };
4764
4765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4766 {
0439c23b 4767 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 wxWakeUpMainThread();
4770
4771 wxPyEndAllowThreads(__tstate);
110da5b0 4772 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4773 }
4774 Py_INCREF(Py_None); resultobj = Py_None;
4775 return resultobj;
4776 fail:
4777 return NULL;
4778}
4779
4780
c370783e 4781static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4782 PyObject *resultobj;
4783 char *kwnames[] = {
4784 NULL
4785 };
4786
4787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4788 {
0439c23b 4789 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 wxMutexGuiEnter();
4792
4793 wxPyEndAllowThreads(__tstate);
110da5b0 4794 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4795 }
4796 Py_INCREF(Py_None); resultobj = Py_None;
4797 return resultobj;
4798 fail:
4799 return NULL;
4800}
4801
4802
c370783e 4803static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4804 PyObject *resultobj;
4805 char *kwnames[] = {
4806 NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4810 {
0439c23b 4811 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 wxMutexGuiLeave();
4814
4815 wxPyEndAllowThreads(__tstate);
110da5b0 4816 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4817 }
4818 Py_INCREF(Py_None); resultobj = Py_None;
4819 return resultobj;
4820 fail:
4821 return NULL;
4822}
4823
4824
c370783e 4825static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4826 PyObject *resultobj;
4827 wxMutexGuiLocker *result;
4828 char *kwnames[] = {
4829 NULL
4830 };
4831
4832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4833 {
0439c23b 4834 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4837
4838 wxPyEndAllowThreads(__tstate);
110da5b0 4839 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4840 }
4841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4842 return resultobj;
4843 fail:
4844 return NULL;
4845}
4846
4847
c370783e 4848static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4849 PyObject *resultobj;
4850 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4851 PyObject * obj0 = 0 ;
4852 char *kwnames[] = {
4853 (char *) "self", NULL
4854 };
4855
4856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 delete arg1;
4862
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 Py_INCREF(Py_None); resultobj = Py_None;
4867 return resultobj;
4868 fail:
4869 return NULL;
4870}
4871
4872
c370783e 4873static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
4874 PyObject *obj;
4875 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4876 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4877 Py_INCREF(obj);
4878 return Py_BuildValue((char *)"");
4879}
c370783e 4880static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4881 PyObject *resultobj;
4882 bool result;
4883 char *kwnames[] = {
4884 NULL
4885 };
4886
4887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 result = (bool)wxThread_IsMain();
4891
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 {
4896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4897 }
4898 return resultobj;
4899 fail:
4900 return NULL;
4901}
4902
4903
c370783e 4904static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4905 PyObject *resultobj;
4906 wxString *arg1 = 0 ;
4907 wxToolTip *result;
b411df4a 4908 bool temp1 = false ;
d55e5bfc
RD
4909 PyObject * obj0 = 0 ;
4910 char *kwnames[] = {
4911 (char *) "tip", NULL
4912 };
4913
4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4915 {
4916 arg1 = wxString_in_helper(obj0);
4917 if (arg1 == NULL) SWIG_fail;
b411df4a 4918 temp1 = true;
d55e5bfc
RD
4919 }
4920 {
0439c23b 4921 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4924
4925 wxPyEndAllowThreads(__tstate);
110da5b0 4926 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4927 }
4928 {
412d302d 4929 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
4930 }
4931 {
4932 if (temp1)
4933 delete arg1;
4934 }
4935 return resultobj;
4936 fail:
4937 {
4938 if (temp1)
4939 delete arg1;
4940 }
4941 return NULL;
4942}
4943
4944
c370783e 4945static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4946 PyObject *resultobj;
4947 wxToolTip *arg1 = (wxToolTip *) 0 ;
4948 wxString *arg2 = 0 ;
b411df4a 4949 bool temp2 = false ;
d55e5bfc
RD
4950 PyObject * obj0 = 0 ;
4951 PyObject * obj1 = 0 ;
4952 char *kwnames[] = {
4953 (char *) "self",(char *) "tip", NULL
4954 };
4955
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4959 {
4960 arg2 = wxString_in_helper(obj1);
4961 if (arg2 == NULL) SWIG_fail;
b411df4a 4962 temp2 = true;
d55e5bfc
RD
4963 }
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 (arg1)->SetTip((wxString const &)*arg2);
4967
4968 wxPyEndAllowThreads(__tstate);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 }
4971 Py_INCREF(Py_None); resultobj = Py_None;
4972 {
4973 if (temp2)
4974 delete arg2;
4975 }
4976 return resultobj;
4977 fail:
4978 {
4979 if (temp2)
4980 delete arg2;
4981 }
4982 return NULL;
4983}
4984
4985
c370783e 4986static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4987 PyObject *resultobj;
4988 wxToolTip *arg1 = (wxToolTip *) 0 ;
4989 wxString result;
4990 PyObject * obj0 = 0 ;
4991 char *kwnames[] = {
4992 (char *) "self", NULL
4993 };
4994
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4998 {
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 result = (arg1)->GetTip();
5001
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 {
5006#if wxUSE_UNICODE
5007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5008#else
5009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5010#endif
5011 }
5012 return resultobj;
5013 fail:
5014 return NULL;
5015}
5016
5017
c370783e 5018static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5019 PyObject *resultobj;
5020 wxToolTip *arg1 = (wxToolTip *) 0 ;
5021 wxWindow *result;
5022 PyObject * obj0 = 0 ;
5023 char *kwnames[] = {
5024 (char *) "self", NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
5028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
5029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (wxWindow *)(arg1)->GetWindow();
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 {
412d302d 5038 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
5039 }
5040 return resultobj;
5041 fail:
5042 return NULL;
5043}
5044
5045
c370783e 5046static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5047 PyObject *resultobj;
5048 bool arg1 ;
5049 PyObject * obj0 = 0 ;
5050 char *kwnames[] = {
5051 (char *) "flag", NULL
5052 };
5053
5054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
c370783e 5055 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
5056 if (PyErr_Occurred()) SWIG_fail;
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 wxToolTip::Enable(arg1);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 Py_INCREF(Py_None); resultobj = Py_None;
5065 return resultobj;
5066 fail:
5067 return NULL;
5068}
5069
5070
c370783e 5071static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5072 PyObject *resultobj;
5073 long arg1 ;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "milliseconds", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
c370783e 5080 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
5081 if (PyErr_Occurred()) SWIG_fail;
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 wxToolTip::SetDelay(arg1);
5085
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 Py_INCREF(Py_None); resultobj = Py_None;
5090 return resultobj;
5091 fail:
5092 return NULL;
5093}
5094
5095
c370783e 5096static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5097 PyObject *obj;
5098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5099 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
5100 Py_INCREF(obj);
5101 return Py_BuildValue((char *)"");
5102}
c370783e 5103static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5104 PyObject *resultobj;
5105 wxWindow *arg1 = (wxWindow *) 0 ;
5106 wxSize *arg2 = 0 ;
5107 wxCaret *result;
5108 wxSize temp2 ;
5109 PyObject * obj0 = 0 ;
5110 PyObject * obj1 = 0 ;
5111 char *kwnames[] = {
5112 (char *) "window",(char *) "size", NULL
5113 };
5114
5115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
5116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5118 {
5119 arg2 = &temp2;
5120 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5121 }
5122 {
0439c23b 5123 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
5126
5127 wxPyEndAllowThreads(__tstate);
110da5b0 5128 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5129 }
5130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5131 return resultobj;
5132 fail:
5133 return NULL;
5134}
5135
5136
c370783e 5137static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5138 PyObject *resultobj;
5139 wxCaret *arg1 = (wxCaret *) 0 ;
5140 PyObject * obj0 = 0 ;
5141 char *kwnames[] = {
5142 (char *) "self", NULL
5143 };
5144
5145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 delete arg1;
5151
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 Py_INCREF(Py_None); resultobj = Py_None;
5156 return resultobj;
5157 fail:
5158 return NULL;
5159}
5160
5161
c370783e 5162static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5163 PyObject *resultobj;
5164 wxCaret *arg1 = (wxCaret *) 0 ;
5165 bool result;
5166 PyObject * obj0 = 0 ;
5167 char *kwnames[] = {
5168 (char *) "self", NULL
5169 };
5170
5171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 result = (bool)(arg1)->IsOk();
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5183 }
5184 return resultobj;
5185 fail:
5186 return NULL;
5187}
5188
5189
c370783e 5190static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5191 PyObject *resultobj;
5192 wxCaret *arg1 = (wxCaret *) 0 ;
5193 bool result;
5194 PyObject * obj0 = 0 ;
5195 char *kwnames[] = {
5196 (char *) "self", NULL
5197 };
5198
5199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (bool)(arg1)->IsVisible();
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 {
5210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5211 }
5212 return resultobj;
5213 fail:
5214 return NULL;
5215}
5216
5217
c370783e 5218static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5219 PyObject *resultobj;
5220 wxCaret *arg1 = (wxCaret *) 0 ;
5221 wxPoint result;
5222 PyObject * obj0 = 0 ;
5223 char *kwnames[] = {
5224 (char *) "self", NULL
5225 };
5226
5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (arg1)->GetPosition();
5233
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 {
5238 wxPoint * resultptr;
5239 resultptr = new wxPoint((wxPoint &) result);
5240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245}
5246
5247
c370783e 5248static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5249 PyObject *resultobj;
5250 wxCaret *arg1 = (wxCaret *) 0 ;
5251 int *arg2 = (int *) 0 ;
5252 int *arg3 = (int *) 0 ;
5253 int temp2 ;
c370783e 5254 int res2 = 0 ;
d55e5bfc 5255 int temp3 ;
c370783e 5256 int res3 = 0 ;
d55e5bfc
RD
5257 PyObject * obj0 = 0 ;
5258 char *kwnames[] = {
5259 (char *) "self", NULL
5260 };
5261
c370783e
RD
5262 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5263 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 (arg1)->GetPosition(arg2,arg3);
5270
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
5275 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5276 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5277 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5278 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5279 return resultobj;
5280 fail:
5281 return NULL;
5282}
5283
5284
c370783e 5285static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5286 PyObject *resultobj;
5287 wxCaret *arg1 = (wxCaret *) 0 ;
5288 wxSize result;
5289 PyObject * obj0 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 result = (arg1)->GetSize();
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 {
5305 wxSize * resultptr;
5306 resultptr = new wxSize((wxSize &) result);
5307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5308 }
5309 return resultobj;
5310 fail:
5311 return NULL;
5312}
5313
5314
c370783e 5315static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5316 PyObject *resultobj;
5317 wxCaret *arg1 = (wxCaret *) 0 ;
5318 int *arg2 = (int *) 0 ;
5319 int *arg3 = (int *) 0 ;
5320 int temp2 ;
c370783e 5321 int res2 = 0 ;
d55e5bfc 5322 int temp3 ;
c370783e 5323 int res3 = 0 ;
d55e5bfc
RD
5324 PyObject * obj0 = 0 ;
5325 char *kwnames[] = {
5326 (char *) "self", NULL
5327 };
5328
c370783e
RD
5329 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5330 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 (arg1)->GetSize(arg2,arg3);
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 Py_INCREF(Py_None); resultobj = Py_None;
c370783e
RD
5342 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5343 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5344 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5345 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5346 return resultobj;
5347 fail:
5348 return NULL;
5349}
5350
5351
c370783e 5352static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5353 PyObject *resultobj;
5354 wxCaret *arg1 = (wxCaret *) 0 ;
5355 wxWindow *result;
5356 PyObject * obj0 = 0 ;
5357 char *kwnames[] = {
5358 (char *) "self", NULL
5359 };
5360
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (wxWindow *)(arg1)->GetWindow();
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 {
412d302d 5372 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
5373 }
5374 return resultobj;
5375 fail:
5376 return NULL;
5377}
5378
5379
c370783e 5380static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5381 PyObject *resultobj;
5382 wxCaret *arg1 = (wxCaret *) 0 ;
5383 int arg2 ;
5384 int arg3 ;
5385 PyObject * obj0 = 0 ;
5386 PyObject * obj1 = 0 ;
5387 PyObject * obj2 = 0 ;
5388 char *kwnames[] = {
5389 (char *) "self",(char *) "x",(char *) "y", NULL
5390 };
5391
5392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5395 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5396 if (PyErr_Occurred()) SWIG_fail;
c370783e 5397 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5398 if (PyErr_Occurred()) SWIG_fail;
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 (arg1)->Move(arg2,arg3);
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 Py_INCREF(Py_None); resultobj = Py_None;
5407 return resultobj;
5408 fail:
5409 return NULL;
5410}
5411
5412
c370783e 5413static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5414 PyObject *resultobj;
5415 wxCaret *arg1 = (wxCaret *) 0 ;
5416 wxPoint *arg2 = 0 ;
5417 wxPoint temp2 ;
5418 PyObject * obj0 = 0 ;
5419 PyObject * obj1 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "pt", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 {
5428 arg2 = &temp2;
5429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5430 }
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 (arg1)->Move((wxPoint const &)*arg2);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 Py_INCREF(Py_None); resultobj = Py_None;
5439 return resultobj;
5440 fail:
5441 return NULL;
5442}
5443
5444
c370783e 5445static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5446 PyObject *resultobj;
5447 wxCaret *arg1 = (wxCaret *) 0 ;
5448 int arg2 ;
5449 int arg3 ;
5450 PyObject * obj0 = 0 ;
5451 PyObject * obj1 = 0 ;
5452 PyObject * obj2 = 0 ;
5453 char *kwnames[] = {
5454 (char *) "self",(char *) "width",(char *) "height", NULL
5455 };
5456
5457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 5460 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 5461 if (PyErr_Occurred()) SWIG_fail;
c370783e 5462 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
5463 if (PyErr_Occurred()) SWIG_fail;
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->SetSize(arg2,arg3);
5467
5468 wxPyEndAllowThreads(__tstate);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 }
5471 Py_INCREF(Py_None); resultobj = Py_None;
5472 return resultobj;
5473 fail:
5474 return NULL;
5475}
5476
5477
c370783e 5478static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5479 PyObject *resultobj;
5480 wxCaret *arg1 = (wxCaret *) 0 ;
5481 wxSize *arg2 = 0 ;
5482 wxSize temp2 ;
5483 PyObject * obj0 = 0 ;
5484 PyObject * obj1 = 0 ;
5485 char *kwnames[] = {
5486 (char *) "self",(char *) "size", NULL
5487 };
5488
5489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5492 {
5493 arg2 = &temp2;
5494 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5495 }
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 (arg1)->SetSize((wxSize const &)*arg2);
5499
5500 wxPyEndAllowThreads(__tstate);
5501 if (PyErr_Occurred()) SWIG_fail;
5502 }
5503 Py_INCREF(Py_None); resultobj = Py_None;
5504 return resultobj;
5505 fail:
5506 return NULL;
5507}
5508
5509
c370783e 5510static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5511 PyObject *resultobj;
5512 wxCaret *arg1 = (wxCaret *) 0 ;
b411df4a 5513 int arg2 = (int) true ;
d55e5bfc
RD
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 char *kwnames[] = {
5517 (char *) "self",(char *) "show", NULL
5518 };
5519
5520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5523 if (obj1) {
c370783e 5524 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 {
5528 PyThreadState* __tstate = wxPyBeginAllowThreads();
5529 (arg1)->Show(arg2);
5530
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 Py_INCREF(Py_None); resultobj = Py_None;
5535 return resultobj;
5536 fail:
5537 return NULL;
5538}
5539
5540
c370783e 5541static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5542 PyObject *resultobj;
5543 wxCaret *arg1 = (wxCaret *) 0 ;
5544 PyObject * obj0 = 0 ;
5545 char *kwnames[] = {
5546 (char *) "self", NULL
5547 };
5548
5549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 (arg1)->Hide();
5555
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 Py_INCREF(Py_None); resultobj = Py_None;
5560 return resultobj;
5561 fail:
5562 return NULL;
5563}
5564
5565
c370783e 5566static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5567 PyObject *obj;
5568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5569 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5570 Py_INCREF(obj);
5571 return Py_BuildValue((char *)"");
5572}
c370783e 5573static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5574 PyObject *resultobj;
5575 int result;
5576 char *kwnames[] = {
5577 NULL
5578 };
5579
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5581 {
5582 PyThreadState* __tstate = wxPyBeginAllowThreads();
5583 result = (int)wxCaret_GetBlinkTime();
5584
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
c370783e 5588 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
5589 return resultobj;
5590 fail:
5591 return NULL;
5592}
5593
5594
c370783e 5595static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5596 PyObject *resultobj;
5597 int arg1 ;
5598 PyObject * obj0 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "milliseconds", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
c370783e 5604 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5605 if (PyErr_Occurred()) SWIG_fail;
5606 {
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 wxCaret_SetBlinkTime(arg1);
5609
5610 wxPyEndAllowThreads(__tstate);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 }
5613 Py_INCREF(Py_None); resultobj = Py_None;
5614 return resultobj;
5615 fail:
5616 return NULL;
5617}
5618
5619
c370783e 5620static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5621 PyObject *resultobj;
5622 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5623 wxBusyCursor *result;
5624 PyObject * obj0 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "cursor", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5630 if (obj0) {
5631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5633 }
5634 {
0439c23b 5635 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5638
5639 wxPyEndAllowThreads(__tstate);
110da5b0 5640 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5641 }
5642 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5643 return resultobj;
5644 fail:
5645 return NULL;
5646}
5647
5648
c370783e 5649static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5650 PyObject *resultobj;
5651 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5652 PyObject * obj0 = 0 ;
5653 char *kwnames[] = {
5654 (char *) "self", NULL
5655 };
5656
5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5660 {
5661 PyThreadState* __tstate = wxPyBeginAllowThreads();
5662 delete arg1;
5663
5664 wxPyEndAllowThreads(__tstate);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 }
5667 Py_INCREF(Py_None); resultobj = Py_None;
5668 return resultobj;
5669 fail:
5670 return NULL;
5671}
5672
5673
c370783e 5674static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5675 PyObject *obj;
5676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5677 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5678 Py_INCREF(obj);
5679 return Py_BuildValue((char *)"");
5680}
c370783e 5681static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5682 PyObject *resultobj;
5683 wxWindow *arg1 = (wxWindow *) NULL ;
5684 wxWindowDisabler *result;
5685 PyObject * obj0 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "winToSkip", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5691 if (obj0) {
5692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5694 }
5695 {
0439c23b 5696 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5699
5700 wxPyEndAllowThreads(__tstate);
110da5b0 5701 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5702 }
5703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5704 return resultobj;
5705 fail:
5706 return NULL;
5707}
5708
5709
c370783e 5710static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5711 PyObject *resultobj;
5712 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5713 PyObject * obj0 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 delete arg1;
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
c370783e 5735static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5736 PyObject *obj;
5737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5738 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5739 Py_INCREF(obj);
5740 return Py_BuildValue((char *)"");
5741}
c370783e 5742static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5743 PyObject *resultobj;
5744 wxString *arg1 = 0 ;
5745 wxBusyInfo *result;
b411df4a 5746 bool temp1 = false ;
d55e5bfc
RD
5747 PyObject * obj0 = 0 ;
5748 char *kwnames[] = {
5749 (char *) "message", NULL
5750 };
5751
5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5753 {
5754 arg1 = wxString_in_helper(obj0);
5755 if (arg1 == NULL) SWIG_fail;
b411df4a 5756 temp1 = true;
d55e5bfc
RD
5757 }
5758 {
0439c23b 5759 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5762
5763 wxPyEndAllowThreads(__tstate);
110da5b0 5764 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5765 }
5766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5767 {
5768 if (temp1)
5769 delete arg1;
5770 }
5771 return resultobj;
5772 fail:
5773 {
5774 if (temp1)
5775 delete arg1;
5776 }
5777 return NULL;
5778}
5779
5780
c370783e 5781static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5782 PyObject *resultobj;
5783 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5784 PyObject * obj0 = 0 ;
5785 char *kwnames[] = {
5786 (char *) "self", NULL
5787 };
5788
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5792 {
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 delete arg1;
5795
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 }
5799 Py_INCREF(Py_None); resultobj = Py_None;
5800 return resultobj;
5801 fail:
5802 return NULL;
5803}
5804
5805
c370783e 5806static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5807 PyObject *obj;
5808 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5809 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5810 Py_INCREF(obj);
5811 return Py_BuildValue((char *)"");
5812}
c370783e 5813static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5814 PyObject *resultobj;
5815 wxStopWatch *result;
5816 char *kwnames[] = {
5817 NULL
5818 };
5819
5820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (wxStopWatch *)new wxStopWatch();
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832}
5833
5834
c370783e 5835static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5836 PyObject *resultobj;
5837 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5838 long arg2 = (long) 0 ;
5839 PyObject * obj0 = 0 ;
5840 PyObject * obj1 = 0 ;
5841 char *kwnames[] = {
5842 (char *) "self",(char *) "t0", NULL
5843 };
5844
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5848 if (obj1) {
c370783e 5849 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 (arg1)->Start(arg2);
5855
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 Py_INCREF(Py_None); resultobj = Py_None;
5860 return resultobj;
5861 fail:
5862 return NULL;
5863}
5864
5865
c370783e 5866static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5867 PyObject *resultobj;
5868 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5869 PyObject * obj0 = 0 ;
5870 char *kwnames[] = {
5871 (char *) "self", NULL
5872 };
5873
5874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 (arg1)->Pause();
5880
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 Py_INCREF(Py_None); resultobj = Py_None;
5885 return resultobj;
5886 fail:
5887 return NULL;
5888}
5889
5890
c370783e 5891static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5892 PyObject *resultobj;
5893 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5894 PyObject * obj0 = 0 ;
5895 char *kwnames[] = {
5896 (char *) "self", NULL
5897 };
5898
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->Resume();
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 Py_INCREF(Py_None); resultobj = Py_None;
5910 return resultobj;
5911 fail:
5912 return NULL;
5913}
5914
5915
c370783e 5916static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5917 PyObject *resultobj;
5918 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5919 long result;
5920 PyObject * obj0 = 0 ;
5921 char *kwnames[] = {
5922 (char *) "self", NULL
5923 };
5924
5925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5928 {
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = (long)((wxStopWatch const *)arg1)->Time();
5931
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
c370783e 5935 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
5936 return resultobj;
5937 fail:
5938 return NULL;
5939}
5940
5941
c370783e 5942static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5943 PyObject *obj;
5944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5945 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5946 Py_INCREF(obj);
5947 return Py_BuildValue((char *)"");
5948}
c370783e 5949static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5950 PyObject *resultobj;
5951 int arg1 = (int) 9 ;
4cf4100f 5952 int arg2 = (int) wxID_FILE1 ;
d55e5bfc
RD
5953 wxFileHistory *result;
5954 PyObject * obj0 = 0 ;
4cf4100f 5955 PyObject * obj1 = 0 ;
d55e5bfc 5956 char *kwnames[] = {
4cf4100f 5957 (char *) "maxFiles",(char *) "idBase", NULL
d55e5bfc
RD
5958 };
5959
4cf4100f 5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc 5961 if (obj0) {
c370783e 5962 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
5963 if (PyErr_Occurred()) SWIG_fail;
5964 }
4cf4100f 5965 if (obj1) {
c370783e 5966 arg2 = (int)SWIG_As_int(obj1);
4cf4100f
RD
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
d55e5bfc
RD
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
4cf4100f 5971 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
d55e5bfc
RD
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5977 return resultobj;
5978 fail:
5979 return NULL;
5980}
5981
5982
c370783e 5983static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5984 PyObject *resultobj;
5985 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5986 PyObject * obj0 = 0 ;
5987 char *kwnames[] = {
5988 (char *) "self", NULL
5989 };
5990
5991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5994 {
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 delete arg1;
5997
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 Py_INCREF(Py_None); resultobj = Py_None;
6002 return resultobj;
6003 fail:
6004 return NULL;
6005}
6006
6007
c370783e 6008static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6009 PyObject *resultobj;
6010 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6011 wxString *arg2 = 0 ;
b411df4a 6012 bool temp2 = false ;
d55e5bfc
RD
6013 PyObject * obj0 = 0 ;
6014 PyObject * obj1 = 0 ;
6015 char *kwnames[] = {
6016 (char *) "self",(char *) "file", NULL
6017 };
6018
6019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
6020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6022 {
6023 arg2 = wxString_in_helper(obj1);
6024 if (arg2 == NULL) SWIG_fail;
b411df4a 6025 temp2 = true;
d55e5bfc
RD
6026 }
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
6029 (arg1)->AddFileToHistory((wxString const &)*arg2);
6030
6031 wxPyEndAllowThreads(__tstate);
6032 if (PyErr_Occurred()) SWIG_fail;
6033 }
6034 Py_INCREF(Py_None); resultobj = Py_None;
6035 {
6036 if (temp2)
6037 delete arg2;
6038 }
6039 return resultobj;
6040 fail:
6041 {
6042 if (temp2)
6043 delete arg2;
6044 }
6045 return NULL;
6046}
6047
6048
c370783e 6049static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6050 PyObject *resultobj;
6051 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6052 int arg2 ;
6053 PyObject * obj0 = 0 ;
6054 PyObject * obj1 = 0 ;
6055 char *kwnames[] = {
6056 (char *) "self",(char *) "i", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
6060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6062 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6063 if (PyErr_Occurred()) SWIG_fail;
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 (arg1)->RemoveFileFromHistory(arg2);
6067
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 Py_INCREF(Py_None); resultobj = Py_None;
6072 return resultobj;
6073 fail:
6074 return NULL;
6075}
6076
6077
c370783e 6078static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6079 PyObject *resultobj;
6080 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6081 int result;
6082 PyObject * obj0 = 0 ;
6083 char *kwnames[] = {
6084 (char *) "self", NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
6088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
6093
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
c370783e 6097 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6098 return resultobj;
6099 fail:
6100 return NULL;
6101}
6102
6103
c370783e 6104static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6105 PyObject *resultobj;
6106 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6107 wxMenu *arg2 = (wxMenu *) 0 ;
6108 PyObject * obj0 = 0 ;
6109 PyObject * obj1 = 0 ;
6110 char *kwnames[] = {
6111 (char *) "self",(char *) "menu", NULL
6112 };
6113
6114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
6115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 (arg1)->UseMenu(arg2);
6122
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 Py_INCREF(Py_None); resultobj = Py_None;
6127 return resultobj;
6128 fail:
6129 return NULL;
6130}
6131
6132
c370783e 6133static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6134 PyObject *resultobj;
6135 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6136 wxMenu *arg2 = (wxMenu *) 0 ;
6137 PyObject * obj0 = 0 ;
6138 PyObject * obj1 = 0 ;
6139 char *kwnames[] = {
6140 (char *) "self",(char *) "menu", NULL
6141 };
6142
6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 (arg1)->RemoveMenu(arg2);
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 Py_INCREF(Py_None); resultobj = Py_None;
6156 return resultobj;
6157 fail:
6158 return NULL;
6159}
6160
6161
c370783e 6162static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6163 PyObject *resultobj;
6164 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6165 wxConfigBase *arg2 = 0 ;
6166 PyObject * obj0 = 0 ;
6167 PyObject * obj1 = 0 ;
6168 char *kwnames[] = {
6169 (char *) "self",(char *) "config", NULL
6170 };
6171
6172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6176 SWIG_POINTER_EXCEPTION | 0)) == -1)
6177 SWIG_fail;
6178 if (arg2 == NULL) {
6179 PyErr_SetString(PyExc_TypeError,"null reference");
6180 SWIG_fail;
6181 }
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 (arg1)->Load(*arg2);
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 Py_INCREF(Py_None); resultobj = Py_None;
6190 return resultobj;
6191 fail:
6192 return NULL;
6193}
6194
6195
c370783e 6196static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6197 PyObject *resultobj;
6198 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6199 wxConfigBase *arg2 = 0 ;
6200 PyObject * obj0 = 0 ;
6201 PyObject * obj1 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "self",(char *) "config", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6210 SWIG_POINTER_EXCEPTION | 0)) == -1)
6211 SWIG_fail;
6212 if (arg2 == NULL) {
6213 PyErr_SetString(PyExc_TypeError,"null reference");
6214 SWIG_fail;
6215 }
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 (arg1)->Save(*arg2);
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 Py_INCREF(Py_None); resultobj = Py_None;
6224 return resultobj;
6225 fail:
6226 return NULL;
6227}
6228
6229
c370783e 6230static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6231 PyObject *resultobj;
6232 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6233 PyObject * obj0 = 0 ;
6234 char *kwnames[] = {
6235 (char *) "self", NULL
6236 };
6237
6238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 (arg1)->AddFilesToMenu();
6244
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 Py_INCREF(Py_None); resultobj = Py_None;
6249 return resultobj;
6250 fail:
6251 return NULL;
6252}
6253
6254
c370783e 6255static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6256 PyObject *resultobj;
6257 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6258 wxMenu *arg2 = (wxMenu *) 0 ;
6259 PyObject * obj0 = 0 ;
6260 PyObject * obj1 = 0 ;
6261 char *kwnames[] = {
6262 (char *) "self",(char *) "menu", NULL
6263 };
6264
6265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 (arg1)->AddFilesToMenu(arg2);
6273
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 Py_INCREF(Py_None); resultobj = Py_None;
6278 return resultobj;
6279 fail:
6280 return NULL;
6281}
6282
6283
c370783e 6284static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6285 PyObject *resultobj;
6286 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6287 int arg2 ;
6288 wxString result;
6289 PyObject * obj0 = 0 ;
6290 PyObject * obj1 = 0 ;
6291 char *kwnames[] = {
6292 (char *) "self",(char *) "i", NULL
6293 };
6294
6295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 6298 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6299 if (PyErr_Occurred()) SWIG_fail;
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6303
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 {
6308#if wxUSE_UNICODE
6309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6310#else
6311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6312#endif
6313 }
6314 return resultobj;
6315 fail:
6316 return NULL;
6317}
6318
6319
c370783e 6320static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6321 PyObject *resultobj;
6322 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6323 int result;
6324 PyObject * obj0 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "self", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 result = (int)((wxFileHistory const *)arg1)->GetCount();
6335
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
c370783e 6339 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6340 return resultobj;
6341 fail:
6342 return NULL;
6343}
6344
6345
c370783e 6346static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6347 PyObject *obj;
6348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6349 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6350 Py_INCREF(obj);
6351 return Py_BuildValue((char *)"");
6352}
c370783e 6353static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6354 PyObject *resultobj;
6355 wxString *arg1 = 0 ;
6356 wxString const &arg2_defvalue = wxPyEmptyString ;
6357 wxString *arg2 = (wxString *) &arg2_defvalue ;
6358 wxSingleInstanceChecker *result;
b411df4a
RD
6359 bool temp1 = false ;
6360 bool temp2 = false ;
d55e5bfc
RD
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "name",(char *) "path", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6368 {
6369 arg1 = wxString_in_helper(obj0);
6370 if (arg1 == NULL) SWIG_fail;
b411df4a 6371 temp1 = true;
d55e5bfc
RD
6372 }
6373 if (obj1) {
6374 {
6375 arg2 = wxString_in_helper(obj1);
6376 if (arg2 == NULL) SWIG_fail;
b411df4a 6377 temp2 = true;
d55e5bfc
RD
6378 }
6379 }
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6388 {
6389 if (temp1)
6390 delete arg1;
6391 }
6392 {
6393 if (temp2)
6394 delete arg2;
6395 }
6396 return resultobj;
6397 fail:
6398 {
6399 if (temp1)
6400 delete arg1;
6401 }
6402 {
6403 if (temp2)
6404 delete arg2;
6405 }
6406 return NULL;
6407}
6408
6409
c370783e 6410static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6411 PyObject *resultobj;
6412 wxSingleInstanceChecker *result;
6413 char *kwnames[] = {
6414 NULL
6415 };
6416
6417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6426 return resultobj;
6427 fail:
6428 return NULL;
6429}
6430
6431
c370783e 6432static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6433 PyObject *resultobj;
6434 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6435 PyObject * obj0 = 0 ;
6436 char *kwnames[] = {
6437 (char *) "self", NULL
6438 };
6439
6440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 delete arg1;
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 Py_INCREF(Py_None); resultobj = Py_None;
6451 return resultobj;
6452 fail:
6453 return NULL;
6454}
6455
6456
c370783e 6457static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6458 PyObject *resultobj;
6459 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6460 wxString *arg2 = 0 ;
6461 wxString const &arg3_defvalue = wxPyEmptyString ;
6462 wxString *arg3 = (wxString *) &arg3_defvalue ;
6463 bool result;
b411df4a
RD
6464 bool temp2 = false ;
6465 bool temp3 = false ;
d55e5bfc
RD
6466 PyObject * obj0 = 0 ;
6467 PyObject * obj1 = 0 ;
6468 PyObject * obj2 = 0 ;
6469 char *kwnames[] = {
6470 (char *) "self",(char *) "name",(char *) "path", NULL
6471 };
6472
6473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6476 {
6477 arg2 = wxString_in_helper(obj1);
6478 if (arg2 == NULL) SWIG_fail;
b411df4a 6479 temp2 = true;
d55e5bfc
RD
6480 }
6481 if (obj2) {
6482 {
6483 arg3 = wxString_in_helper(obj2);
6484 if (arg3 == NULL) SWIG_fail;
b411df4a 6485 temp3 = true;
d55e5bfc
RD
6486 }
6487 }
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6491
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 {
6499 if (temp2)
6500 delete arg2;
6501 }
6502 {
6503 if (temp3)
6504 delete arg3;
6505 }
6506 return resultobj;
6507 fail:
6508 {
6509 if (temp2)
6510 delete arg2;
6511 }
6512 {
6513 if (temp3)
6514 delete arg3;
6515 }
6516 return NULL;
6517}
6518
6519
c370783e 6520static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6521 PyObject *resultobj;
6522 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6523 bool result;
6524 PyObject * obj0 = 0 ;
6525 char *kwnames[] = {
6526 (char *) "self", NULL
6527 };
6528
6529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 {
6540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6541 }
6542 return resultobj;
6543 fail:
6544 return NULL;
6545}
6546
6547
c370783e 6548static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6549 PyObject *obj;
6550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6551 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6552 Py_INCREF(obj);
6553 return Py_BuildValue((char *)"");
6554}
c370783e 6555static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6556 PyObject *resultobj;
6557 wxWindow *arg1 = (wxWindow *) 0 ;
6558 wxDC *arg2 = 0 ;
6559 int arg3 ;
6560 PyObject * obj0 = 0 ;
6561 PyObject * obj1 = 0 ;
6562 PyObject * obj2 = 0 ;
6563 char *kwnames[] = {
6564 (char *) "window",(char *) "dc",(char *) "method", NULL
6565 };
6566
6567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6571 SWIG_POINTER_EXCEPTION | 0)) == -1)
6572 SWIG_fail;
6573 if (arg2 == NULL) {
6574 PyErr_SetString(PyExc_TypeError,"null reference");
6575 SWIG_fail;
6576 }
c370783e 6577 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6578 if (PyErr_Occurred()) SWIG_fail;
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6582
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 Py_INCREF(Py_None); resultobj = Py_None;
6587 return resultobj;
6588 fail:
6589 return NULL;
6590}
6591
6592
c370783e 6593static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6594 PyObject *resultobj;
6595 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6596 PyObject * obj0 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 delete arg1;
6607
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 Py_INCREF(Py_None); resultobj = Py_None;
6612 return resultobj;
6613 fail:
6614 return NULL;
6615}
6616
6617
c370783e 6618static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6619 PyObject *resultobj;
6620 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6621 wxString result;
6622 PyObject * obj0 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (arg1)->GetTip();
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 {
6638#if wxUSE_UNICODE
6639 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6640#else
6641 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6642#endif
6643 }
6644 return resultobj;
6645 fail:
6646 return NULL;
6647}
6648
6649
c370783e 6650static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6651 PyObject *resultobj;
6652 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6653 size_t result;
6654 PyObject * obj0 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 result = (size_t)(arg1)->GetCurrentTip();
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
c370783e 6669 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
6670 return resultobj;
6671 fail:
6672 return NULL;
6673}
6674
6675
c370783e 6676static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6677 PyObject *resultobj;
6678 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6679 wxString *arg2 = 0 ;
6680 wxString result;
b411df4a 6681 bool temp2 = false ;
d55e5bfc
RD
6682 PyObject * obj0 = 0 ;
6683 PyObject * obj1 = 0 ;
6684 char *kwnames[] = {
6685 (char *) "self",(char *) "tip", NULL
6686 };
6687
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6691 {
6692 arg2 = wxString_in_helper(obj1);
6693 if (arg2 == NULL) SWIG_fail;
b411df4a 6694 temp2 = true;
d55e5bfc
RD
6695 }
6696 {
6697 PyThreadState* __tstate = wxPyBeginAllowThreads();
6698 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6699
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 {
6704#if wxUSE_UNICODE
6705 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6706#else
6707 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6708#endif
6709 }
6710 {
6711 if (temp2)
6712 delete arg2;
6713 }
6714 return resultobj;
6715 fail:
6716 {
6717 if (temp2)
6718 delete arg2;
6719 }
6720 return NULL;
6721}
6722
6723
c370783e 6724static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6725 PyObject *obj;
6726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6727 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6728 Py_INCREF(obj);
6729 return Py_BuildValue((char *)"");
6730}
c370783e 6731static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6732 PyObject *resultobj;
6733 size_t arg1 ;
6734 wxPyTipProvider *result;
6735 PyObject * obj0 = 0 ;
6736 char *kwnames[] = {
6737 (char *) "currentTip", NULL
6738 };
6739
6740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
c370783e 6741 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
6742 if (PyErr_Occurred()) SWIG_fail;
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6746
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) SWIG_fail;
6749 }
6750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6751 return resultobj;
6752 fail:
6753 return NULL;
6754}
6755
6756
c370783e 6757static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6758 PyObject *resultobj;
6759 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6760 PyObject *arg2 = (PyObject *) 0 ;
6761 PyObject *arg3 = (PyObject *) 0 ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 PyObject * obj2 = 0 ;
6765 char *kwnames[] = {
6766 (char *) "self",(char *) "self",(char *) "_class", NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6772 arg2 = obj1;
6773 arg3 = obj2;
6774 {
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 (arg1)->_setCallbackInfo(arg2,arg3);
6777
6778 wxPyEndAllowThreads(__tstate);
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 Py_INCREF(Py_None); resultobj = Py_None;
6782 return resultobj;
6783 fail:
6784 return NULL;
6785}
6786
6787
c370783e 6788static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6789 PyObject *obj;
6790 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6791 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6792 Py_INCREF(obj);
6793 return Py_BuildValue((char *)"");
6794}
c370783e 6795static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6796 PyObject *resultobj;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
b411df4a 6799 bool arg3 = (bool) true ;
d55e5bfc
RD
6800 bool result;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 PyObject * obj2 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6813 if (obj2) {
c370783e 6814 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 {
0439c23b 6818 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6819 PyThreadState* __tstate = wxPyBeginAllowThreads();
6820 result = (bool)wxShowTip(arg1,arg2,arg3);
6821
6822 wxPyEndAllowThreads(__tstate);
110da5b0 6823 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6824 }
6825 {
6826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6827 }
6828 return resultobj;
6829 fail:
6830 return NULL;
6831}
6832
6833
c370783e 6834static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6835 PyObject *resultobj;
6836 wxString *arg1 = 0 ;
6837 size_t arg2 ;
6838 wxTipProvider *result;
b411df4a 6839 bool temp1 = false ;
d55e5bfc
RD
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 char *kwnames[] = {
6843 (char *) "filename",(char *) "currentTip", NULL
6844 };
6845
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6847 {
6848 arg1 = wxString_in_helper(obj0);
6849 if (arg1 == NULL) SWIG_fail;
b411df4a 6850 temp1 = true;
d55e5bfc 6851 }
c370783e 6852 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
6853 if (PyErr_Occurred()) SWIG_fail;
6854 {
0439c23b 6855 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6856 PyThreadState* __tstate = wxPyBeginAllowThreads();
6857 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6858
6859 wxPyEndAllowThreads(__tstate);
110da5b0 6860 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6861 }
6862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6863 {
6864 if (temp1)
6865 delete arg1;
6866 }
6867 return resultobj;
6868 fail:
6869 {
6870 if (temp1)
6871 delete arg1;
6872 }
6873 return NULL;
6874}
6875
6876
c370783e 6877static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6878 PyObject *resultobj;
6879 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6880 int arg2 = (int) -1 ;
6881 wxPyTimer *result;
6882 PyObject * obj0 = 0 ;
6883 PyObject * obj1 = 0 ;
6884 char *kwnames[] = {
6885 (char *) "owner",(char *) "id", NULL
6886 };
6887
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6889 if (obj0) {
6890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6892 }
6893 if (obj1) {
c370783e 6894 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 {
0439c23b 6898 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6901
6902 wxPyEndAllowThreads(__tstate);
110da5b0 6903 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6904 }
6905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909}
6910
6911
c370783e 6912static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6913 PyObject *resultobj;
6914 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6915 PyObject * obj0 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "self", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6923 {
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 delete arg1;
6926
6927 wxPyEndAllowThreads(__tstate);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 Py_INCREF(Py_None); resultobj = Py_None;
6931 return resultobj;
6932 fail:
6933 return NULL;
6934}
6935
6936
c370783e 6937static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6938 PyObject *resultobj;
6939 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6940 PyObject *arg2 = (PyObject *) 0 ;
6941 PyObject *arg3 = (PyObject *) 0 ;
6942 int arg4 = (int) 1 ;
6943 PyObject * obj0 = 0 ;
6944 PyObject * obj1 = 0 ;
6945 PyObject * obj2 = 0 ;
6946 PyObject * obj3 = 0 ;
6947 char *kwnames[] = {
6948 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6949 };
6950
6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6954 arg2 = obj1;
6955 arg3 = obj2;
6956 if (obj3) {
c370783e 6957 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
6958 if (PyErr_Occurred()) SWIG_fail;
6959 }
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 Py_INCREF(Py_None); resultobj = Py_None;
6968 return resultobj;
6969 fail:
6970 return NULL;
6971}
6972
6973
c370783e 6974static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6975 PyObject *resultobj;
6976 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6977 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6978 int arg3 = (int) -1 ;
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 PyObject * obj2 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self",(char *) "owner",(char *) "id", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6989 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6991 if (obj2) {
c370783e 6992 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
6997 (arg1)->SetOwner(arg2,arg3);
6998
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 Py_INCREF(Py_None); resultobj = Py_None;
7003 return resultobj;
7004 fail:
7005 return NULL;
7006}
7007
7008
c370783e 7009static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
1a6bba1e
RD
7010 PyObject *resultobj;
7011 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7012 wxEvtHandler *result;
7013 PyObject * obj0 = 0 ;
7014 char *kwnames[] = {
7015 (char *) "self", NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
7019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 result = (wxEvtHandler *)(arg1)->GetOwner();
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 {
412d302d 7029 resultobj = wxPyMake_wxObject(result, 0);
1a6bba1e
RD
7030 }
7031 return resultobj;
7032 fail:
7033 return NULL;
7034}
7035
7036
c370783e 7037static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7038 PyObject *resultobj;
7039 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7040 int arg2 = (int) -1 ;
b411df4a 7041 bool arg3 = (bool) false ;
d55e5bfc
RD
7042 bool result;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 PyObject * obj2 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7053 if (obj1) {
c370783e 7054 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7055 if (PyErr_Occurred()) SWIG_fail;
7056 }
7057 if (obj2) {
c370783e 7058 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 result = (bool)(arg1)->Start(arg2,arg3);
7064
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 {
7069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7070 }
7071 return resultobj;
7072 fail:
7073 return NULL;
7074}
7075
7076
c370783e 7077static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7078 PyObject *resultobj;
7079 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7080 PyObject * obj0 = 0 ;
7081 char *kwnames[] = {
7082 (char *) "self", NULL
7083 };
7084
7085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
7086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 (arg1)->Stop();
7091
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 Py_INCREF(Py_None); resultobj = Py_None;
7096 return resultobj;
7097 fail:
7098 return NULL;
7099}
7100
7101
c370783e 7102static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7103 PyObject *resultobj;
7104 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7105 bool result;
7106 PyObject * obj0 = 0 ;
7107 char *kwnames[] = {
7108 (char *) "self", NULL
7109 };
7110
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
7112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 {
7122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7123 }
7124 return resultobj;
7125 fail:
7126 return NULL;
7127}
7128
7129
c370783e 7130static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7131 PyObject *resultobj;
7132 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7133 int result;
7134 PyObject * obj0 = 0 ;
7135 char *kwnames[] = {
7136 (char *) "self", NULL
7137 };
7138
7139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
c370783e 7149 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7150 return resultobj;
7151 fail:
7152 return NULL;
7153}
7154
7155
c370783e 7156static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7157 PyObject *resultobj;
7158 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7159 bool result;
7160 PyObject * obj0 = 0 ;
7161 char *kwnames[] = {
7162 (char *) "self", NULL
7163 };
7164
7165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7168 {
7169 PyThreadState* __tstate = wxPyBeginAllowThreads();
7170 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7171
7172 wxPyEndAllowThreads(__tstate);
7173 if (PyErr_Occurred()) SWIG_fail;
7174 }
7175 {
7176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7177 }
7178 return resultobj;
7179 fail:
7180 return NULL;
7181}
7182
7183
c370783e 7184static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7185 PyObject *resultobj;
7186 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7187 int result;
7188 PyObject * obj0 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "self", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 result = (int)((wxPyTimer const *)arg1)->GetId();
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
c370783e 7203 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7204 return resultobj;
7205 fail:
7206 return NULL;
7207}
7208
7209
c370783e 7210static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7211 PyObject *obj;
7212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7213 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7214 Py_INCREF(obj);
7215 return Py_BuildValue((char *)"");
7216}
c370783e 7217static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7218 PyObject *resultobj;
7219 int arg1 = (int) 0 ;
7220 int arg2 = (int) 0 ;
7221 wxTimerEvent *result;
7222 PyObject * obj0 = 0 ;
7223 PyObject * obj1 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "timerid",(char *) "interval", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7229 if (obj0) {
c370783e 7230 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 if (obj1) {
c370783e 7234 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7240
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7245 return resultobj;
7246 fail:
7247 return NULL;
7248}
7249
7250
c370783e 7251static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7252 PyObject *resultobj;
7253 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7254 int result;
7255 PyObject * obj0 = 0 ;
7256 char *kwnames[] = {
7257 (char *) "self", NULL
7258 };
7259
7260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7266
7267 wxPyEndAllowThreads(__tstate);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
c370783e 7270 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
7271 return resultobj;
7272 fail:
7273 return NULL;
7274}
7275
7276
c370783e 7277static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7278 PyObject *obj;
7279 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7280 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7281 Py_INCREF(obj);
7282 return Py_BuildValue((char *)"");
7283}
c370783e 7284static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
7285 PyObject *resultobj;
7286 wxTimer *arg1 = 0 ;
7287 wxTimerRunner *result;
7288 PyObject * obj0 = 0 ;
7289
7290 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7292 SWIG_POINTER_EXCEPTION | 0)) == -1)
7293 SWIG_fail;
7294 if (arg1 == NULL) {
7295 PyErr_SetString(PyExc_TypeError,"null reference");
7296 SWIG_fail;
7297 }
7298 {
0439c23b 7299 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7300 PyThreadState* __tstate = wxPyBeginAllowThreads();
7301 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7302
7303 wxPyEndAllowThreads(__tstate);
110da5b0 7304 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7305 }
7306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7307 return resultobj;
7308 fail:
7309 return NULL;
7310}
7311
7312
c370783e 7313static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
7314 PyObject *resultobj;
7315 wxTimer *arg1 = 0 ;
7316 int arg2 ;
b411df4a 7317 bool arg3 = (bool) false ;
d55e5bfc
RD
7318 wxTimerRunner *result;
7319 PyObject * obj0 = 0 ;
7320 PyObject * obj1 = 0 ;
7321 PyObject * obj2 = 0 ;
7322
7323 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1)
7326 SWIG_fail;
7327 if (arg1 == NULL) {
7328 PyErr_SetString(PyExc_TypeError,"null reference");
7329 SWIG_fail;
7330 }
c370783e 7331 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7332 if (PyErr_Occurred()) SWIG_fail;
7333 if (obj2) {
c370783e 7334 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 {
0439c23b 7338 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7341
7342 wxPyEndAllowThreads(__tstate);
110da5b0 7343 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7344 }
7345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7346 return resultobj;
7347 fail:
7348 return NULL;
7349}
7350
7351
7352static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7353 int argc;
7354 PyObject *argv[4];
7355 int ii;
7356
7357 argc = PyObject_Length(args);
7358 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7359 argv[ii] = PyTuple_GetItem(args,ii);
7360 }
7361 if (argc == 1) {
7362 int _v;
7363 {
7364 void *ptr;
7365 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7366 _v = 0;
7367 PyErr_Clear();
7368 } else {
7369 _v = 1;
7370 }
7371 }
7372 if (_v) {
7373 return _wrap_new_TimerRunner__SWIG_0(self,args);
7374 }
7375 }
7376 if ((argc >= 2) && (argc <= 3)) {
7377 int _v;
7378 {
7379 void *ptr;
7380 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7381 _v = 0;
7382 PyErr_Clear();
7383 } else {
7384 _v = 1;
7385 }
7386 }
7387 if (_v) {
c370783e 7388 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
7389 if (_v) {
7390 if (argc <= 2) {
7391 return _wrap_new_TimerRunner__SWIG_1(self,args);
7392 }
c370783e 7393 _v = SWIG_Check_bool(argv[2]);
d55e5bfc
RD
7394 if (_v) {
7395 return _wrap_new_TimerRunner__SWIG_1(self,args);
7396 }
7397 }
7398 }
7399 }
7400
7401 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7402 return NULL;
7403}
7404
7405
c370783e 7406static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7407 PyObject *resultobj;
7408 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7409 PyObject * obj0 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "self", NULL
7412 };
7413
7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 delete arg1;
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 Py_INCREF(Py_None); resultobj = Py_None;
7425 return resultobj;
7426 fail:
7427 return NULL;
7428}
7429
7430
c370783e 7431static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7432 PyObject *resultobj;
7433 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7434 int arg2 ;
b411df4a 7435 bool arg3 = (bool) false ;
d55e5bfc
RD
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7438 PyObject * obj2 = 0 ;
7439 char *kwnames[] = {
7440 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7441 };
7442
7443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7446 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
7447 if (PyErr_Occurred()) SWIG_fail;
7448 if (obj2) {
c370783e 7449 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 (arg1)->Start(arg2,arg3);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 Py_INCREF(Py_None); resultobj = Py_None;
7460 return resultobj;
7461 fail:
7462 return NULL;
7463}
7464
7465
c370783e 7466static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7467 PyObject *obj;
7468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7469 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7470 Py_INCREF(obj);
7471 return Py_BuildValue((char *)"");
7472}
c370783e 7473static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7474 PyObject *resultobj;
7475 wxLog *result;
7476 char *kwnames[] = {
7477 NULL
7478 };
7479
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 result = (wxLog *)new wxLog();
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7489 return resultobj;
7490 fail:
7491 return NULL;
7492}
7493
7494
c370783e 7495static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7496 PyObject *resultobj;
7497 bool result;
7498 char *kwnames[] = {
7499 NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 result = (bool)wxLog::IsEnabled();
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 {
7511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7512 }
7513 return resultobj;
7514 fail:
7515 return NULL;
7516}
7517
7518
c370783e 7519static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7520 PyObject *resultobj;
b411df4a 7521 bool arg1 = (bool) true ;
d55e5bfc
RD
7522 bool result;
7523 PyObject * obj0 = 0 ;
7524 char *kwnames[] = {
7525 (char *) "doIt", NULL
7526 };
7527
7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7529 if (obj0) {
c370783e 7530 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
7531 if (PyErr_Occurred()) SWIG_fail;
7532 }
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (bool)wxLog::EnableLogging(arg1);
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544 fail:
7545 return NULL;
7546}
7547
7548
c370783e 7549static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7550 PyObject *resultobj;
7551 wxLogLevel arg1 ;
7552 wxChar *arg2 = (wxChar *) 0 ;
7553 time_t arg3 ;
7554 PyObject * obj0 = 0 ;
7555 PyObject * obj1 = 0 ;
7556 PyObject * obj2 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "level",(char *) "szString",(char *) "t", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
c370783e 7562 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7563 if (PyErr_Occurred()) SWIG_fail;
7564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 7566 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
d55e5bfc
RD
7567 if (PyErr_Occurred()) SWIG_fail;
7568 {
7569 PyThreadState* __tstate = wxPyBeginAllowThreads();
7570 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7571
7572 wxPyEndAllowThreads(__tstate);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 Py_INCREF(Py_None); resultobj = Py_None;
7576 return resultobj;
7577 fail:
7578 return NULL;
7579}
7580
7581
c370783e 7582static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7583 PyObject *resultobj;
7584 wxLog *arg1 = (wxLog *) 0 ;
7585 PyObject * obj0 = 0 ;
7586 char *kwnames[] = {
7587 (char *) "self", NULL
7588 };
7589
7590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 (arg1)->Flush();
7596
7597 wxPyEndAllowThreads(__tstate);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 Py_INCREF(Py_None); resultobj = Py_None;
7601 return resultobj;
7602 fail:
7603 return NULL;
7604}
7605
7606
c370783e 7607static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7608 PyObject *resultobj;
7609 char *kwnames[] = {
7610 NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 wxLog::FlushActive();
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 Py_INCREF(Py_None); resultobj = Py_None;
7622 return resultobj;
7623 fail:
7624 return NULL;
7625}
7626
7627
c370783e 7628static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7629 PyObject *resultobj;
7630 wxLog *result;
7631 char *kwnames[] = {
7632 NULL
7633 };
7634
7635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 result = (wxLog *)wxLog::GetActiveTarget();
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7644 return resultobj;
7645 fail:
7646 return NULL;
7647}
7648
7649
c370783e 7650static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7651 PyObject *resultobj;
7652 wxLog *arg1 = (wxLog *) 0 ;
7653 wxLog *result;
7654 PyObject * obj0 = 0 ;
7655 char *kwnames[] = {
7656 (char *) "pLogger", NULL
7657 };
7658
7659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7670 return resultobj;
7671 fail:
7672 return NULL;
7673}
7674
7675
c370783e 7676static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7677 PyObject *resultobj;
7678 char *kwnames[] = {
7679 NULL
7680 };
7681
7682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7683 {
7684 PyThreadState* __tstate = wxPyBeginAllowThreads();
7685 wxLog::Suspend();
7686
7687 wxPyEndAllowThreads(__tstate);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 Py_INCREF(Py_None); resultobj = Py_None;
7691 return resultobj;
7692 fail:
7693 return NULL;
7694}
7695
7696
c370783e 7697static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7698 PyObject *resultobj;
7699 char *kwnames[] = {
7700 NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7704 {
7705 PyThreadState* __tstate = wxPyBeginAllowThreads();
7706 wxLog::Resume();
7707
7708 wxPyEndAllowThreads(__tstate);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 Py_INCREF(Py_None); resultobj = Py_None;
7712 return resultobj;
7713 fail:
7714 return NULL;
7715}
7716
7717
c370783e 7718static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 7719 PyObject *resultobj;
b411df4a 7720 bool arg1 = (bool) true ;
d55e5bfc
RD
7721 PyObject * obj0 = 0 ;
7722 char *kwnames[] = {
7723 (char *) "bVerbose", NULL
7724 };
7725
7726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7727 if (obj0) {
c370783e 7728 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 {
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 wxLog::SetVerbose(arg1);
7734
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 Py_INCREF(Py_None); resultobj = Py_None;
7739 return resultobj;
7740 fail:
7741 return NULL;
7742}
7743
7744
c370783e 7745static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7746 PyObject *resultobj;
7747 wxLogLevel arg1 ;
7748 PyObject * obj0 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "logLevel", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
c370783e 7754 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7755 if (PyErr_Occurred()) SWIG_fail;
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
7758 wxLog::SetLogLevel(arg1);
7759
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 Py_INCREF(Py_None); resultobj = Py_None;
7764 return resultobj;
7765 fail:
7766 return NULL;
7767}
7768
7769
c370783e 7770static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7771 PyObject *resultobj;
7772 char *kwnames[] = {
7773 NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7777 {
7778 PyThreadState* __tstate = wxPyBeginAllowThreads();
7779 wxLog::DontCreateOnDemand();
7780
7781 wxPyEndAllowThreads(__tstate);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 Py_INCREF(Py_None); resultobj = Py_None;
7785 return resultobj;
7786 fail:
7787 return NULL;
7788}
7789
7790
c370783e 7791static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7792 PyObject *resultobj;
7793 wxTraceMask arg1 ;
7794 PyObject * obj0 = 0 ;
7795 char *kwnames[] = {
7796 (char *) "ulMask", NULL
7797 };
7798
7799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
c370783e 7800 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
7801 if (PyErr_Occurred()) SWIG_fail;
7802 {
7803 PyThreadState* __tstate = wxPyBeginAllowThreads();
7804 wxLog::SetTraceMask(arg1);
7805
7806 wxPyEndAllowThreads(__tstate);
7807 if (PyErr_Occurred()) SWIG_fail;
7808 }
7809 Py_INCREF(Py_None); resultobj = Py_None;
7810 return resultobj;
7811 fail:
7812 return NULL;
7813}
7814
7815
c370783e 7816static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7817 PyObject *resultobj;
7818 wxString *arg1 = 0 ;
b411df4a 7819 bool temp1 = false ;
d55e5bfc
RD
7820 PyObject * obj0 = 0 ;
7821 char *kwnames[] = {
7822 (char *) "str", NULL
7823 };
7824
7825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7826 {
7827 arg1 = wxString_in_helper(obj0);
7828 if (arg1 == NULL) SWIG_fail;
b411df4a 7829 temp1 = true;
d55e5bfc
RD
7830 }
7831 {
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 wxLog::AddTraceMask((wxString const &)*arg1);
7834
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 Py_INCREF(Py_None); resultobj = Py_None;
7839 {
7840 if (temp1)
7841 delete arg1;
7842 }
7843 return resultobj;
7844 fail:
7845 {
7846 if (temp1)
7847 delete arg1;
7848 }
7849 return NULL;
7850}
7851
7852
c370783e 7853static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7854 PyObject *resultobj;
7855 wxString *arg1 = 0 ;
b411df4a 7856 bool temp1 = false ;
d55e5bfc
RD
7857 PyObject * obj0 = 0 ;
7858 char *kwnames[] = {
7859 (char *) "str", NULL
7860 };
7861
7862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7863 {
7864 arg1 = wxString_in_helper(obj0);
7865 if (arg1 == NULL) SWIG_fail;
b411df4a 7866 temp1 = true;
d55e5bfc
RD
7867 }
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 wxLog::RemoveTraceMask((wxString const &)*arg1);
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 Py_INCREF(Py_None); resultobj = Py_None;
7876 {
7877 if (temp1)
7878 delete arg1;
7879 }
7880 return resultobj;
7881 fail:
7882 {
7883 if (temp1)
7884 delete arg1;
7885 }
7886 return NULL;
7887}
7888
7889
c370783e 7890static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7891 PyObject *resultobj;
7892 char *kwnames[] = {
7893 NULL
7894 };
7895
7896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 wxLog::ClearTraceMasks();
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 Py_INCREF(Py_None); resultobj = Py_None;
7905 return resultobj;
7906 fail:
7907 return NULL;
7908}
7909
7910
c370783e 7911static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7912 PyObject *resultobj;
7913 wxArrayString *result;
7914 char *kwnames[] = {
7915 NULL
7916 };
7917
7918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7919 {
7920 PyThreadState* __tstate = wxPyBeginAllowThreads();
7921 {
7922 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7923 result = (wxArrayString *) &_result_ref;
7924 }
7925
7926 wxPyEndAllowThreads(__tstate);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 {
7930 resultobj = wxArrayString2PyList_helper(*result);
7931 }
7932 return resultobj;
7933 fail:
7934 return NULL;
7935}
7936
7937
c370783e 7938static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7939 PyObject *resultobj;
7940 wxChar *arg1 = (wxChar *) 0 ;
7941 PyObject * obj0 = 0 ;
7942 char *kwnames[] = {
7943 (char *) "ts", NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7949 {
7950 PyThreadState* __tstate = wxPyBeginAllowThreads();
7951 wxLog::SetTimestamp((wxChar const *)arg1);
7952
7953 wxPyEndAllowThreads(__tstate);
7954 if (PyErr_Occurred()) SWIG_fail;
7955 }
7956 Py_INCREF(Py_None); resultobj = Py_None;
7957 return resultobj;
7958 fail:
7959 return NULL;
7960}
7961
7962
c370783e 7963static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7964 PyObject *resultobj;
7965 bool result;
7966 char *kwnames[] = {
7967 NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 result = (bool)wxLog::GetVerbose();
7974
7975 wxPyEndAllowThreads(__tstate);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 {
7979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7980 }
7981 return resultobj;
7982 fail:
7983 return NULL;
7984}
7985
7986
c370783e 7987static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7988 PyObject *resultobj;
7989 wxTraceMask result;
7990 char *kwnames[] = {
7991 NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (wxTraceMask)wxLog::GetTraceMask();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
c370783e 8002 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
8003 return resultobj;
8004 fail:
8005 return NULL;
8006}
8007
8008
c370783e 8009static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8010 PyObject *resultobj;
8011 wxChar *arg1 = (wxChar *) 0 ;
8012 bool result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "mask", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 {
8029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8030 }
8031 return resultobj;
8032 fail:
8033 return NULL;
8034}
8035
8036
c370783e 8037static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8038 PyObject *resultobj;
8039 wxLogLevel result;
8040 char *kwnames[] = {
8041 NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (wxLogLevel)wxLog::GetLogLevel();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
c370783e 8052 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
8053 return resultobj;
8054 fail:
8055 return NULL;
8056}
8057
8058
c370783e 8059static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8060 PyObject *resultobj;
8061 wxChar *result;
8062 char *kwnames[] = {
8063 NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = (wxChar *)wxLog::GetTimestamp();
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
8075 return resultobj;
8076 fail:
8077 return NULL;
8078}
8079
8080
c370783e 8081static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8082 PyObject *resultobj;
8083 wxString result;
8084 char *kwnames[] = {
8085 NULL
8086 };
8087
8088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
8089 {
8090 PyThreadState* __tstate = wxPyBeginAllowThreads();
8091 result = Log_TimeStamp();
8092
8093 wxPyEndAllowThreads(__tstate);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 {
8097#if wxUSE_UNICODE
8098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8099#else
8100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8101#endif
8102 }
8103 return resultobj;
8104 fail:
8105 return NULL;
8106}
8107
8108
c370783e 8109static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8110 PyObject *resultobj;
8111 wxLog *arg1 = (wxLog *) 0 ;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8120 {
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 wxLog_Destroy(arg1);
8123
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 Py_INCREF(Py_None); resultobj = Py_None;
8128 return resultobj;
8129 fail:
8130 return NULL;
8131}
8132
8133
c370783e 8134static PyObject * Log_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8135 PyObject *obj;
8136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8137 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8138 Py_INCREF(obj);
8139 return Py_BuildValue((char *)"");
8140}
c370783e 8141static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8142 PyObject *resultobj;
8143 wxLogStderr *result;
8144 char *kwnames[] = {
8145 NULL
8146 };
8147
8148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 result = (wxLogStderr *)new wxLogStderr();
8152
8153 wxPyEndAllowThreads(__tstate);
8154 if (PyErr_Occurred()) SWIG_fail;
8155 }
8156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8157 return resultobj;
8158 fail:
8159 return NULL;
8160}
8161
8162
c370783e 8163static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8164 PyObject *obj;
8165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8166 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8167 Py_INCREF(obj);
8168 return Py_BuildValue((char *)"");
8169}
c370783e 8170static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8171 PyObject *resultobj;
8172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8173 wxLogTextCtrl *result;
8174 PyObject * obj0 = 0 ;
8175 char *kwnames[] = {
8176 (char *) "pTextCtrl", NULL
8177 };
8178
8179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8182 {
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8185
8186 wxPyEndAllowThreads(__tstate);
8187 if (PyErr_Occurred()) SWIG_fail;
8188 }
8189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8190 return resultobj;
8191 fail:
8192 return NULL;
8193}
8194
8195
c370783e 8196static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8197 PyObject *obj;
8198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8199 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8200 Py_INCREF(obj);
8201 return Py_BuildValue((char *)"");
8202}
c370783e 8203static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8204 PyObject *resultobj;
8205 wxLogGui *result;
8206 char *kwnames[] = {
8207 NULL
8208 };
8209
8210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 result = (wxLogGui *)new wxLogGui();
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8219 return resultobj;
8220 fail:
8221 return NULL;
8222}
8223
8224
c370783e 8225static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8226 PyObject *obj;
8227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8228 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8229 Py_INCREF(obj);
8230 return Py_BuildValue((char *)"");
8231}
c370783e 8232static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8233 PyObject *resultobj;
8234 wxFrame *arg1 = (wxFrame *) 0 ;
8235 wxString *arg2 = 0 ;
b411df4a
RD
8236 bool arg3 = (bool) true ;
8237 bool arg4 = (bool) true ;
d55e5bfc 8238 wxLogWindow *result;
b411df4a 8239 bool temp2 = false ;
d55e5bfc
RD
8240 PyObject * obj0 = 0 ;
8241 PyObject * obj1 = 0 ;
8242 PyObject * obj2 = 0 ;
8243 PyObject * obj3 = 0 ;
8244 char *kwnames[] = {
8245 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8251 {
8252 arg2 = wxString_in_helper(obj1);
8253 if (arg2 == NULL) SWIG_fail;
b411df4a 8254 temp2 = true;
d55e5bfc
RD
8255 }
8256 if (obj2) {
c370783e 8257 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
8258 if (PyErr_Occurred()) SWIG_fail;
8259 }
8260 if (obj3) {
c370783e 8261 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 {
8265 PyThreadState* __tstate = wxPyBeginAllowThreads();
8266 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8267
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8272 {
8273 if (temp2)
8274 delete arg2;
8275 }
8276 return resultobj;
8277 fail:
8278 {
8279 if (temp2)
8280 delete arg2;
8281 }
8282 return NULL;
8283}
8284
8285
c370783e 8286static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8287 PyObject *resultobj;
8288 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
b411df4a 8289 bool arg2 = (bool) true ;
d55e5bfc
RD
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char *kwnames[] = {
8293 (char *) "self",(char *) "bShow", NULL
8294 };
8295
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8299 if (obj1) {
c370783e 8300 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 (arg1)->Show(arg2);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 Py_INCREF(Py_None); resultobj = Py_None;
8311 return resultobj;
8312 fail:
8313 return NULL;
8314}
8315
8316
c370783e 8317static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8318 PyObject *resultobj;
8319 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8320 wxFrame *result;
8321 PyObject * obj0 = 0 ;
8322 char *kwnames[] = {
8323 (char *) "self", NULL
8324 };
8325
8326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 {
412d302d 8337 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
8338 }
8339 return resultobj;
8340 fail:
8341 return NULL;
8342}
8343
8344
c370783e 8345static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8346 PyObject *resultobj;
8347 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8348 wxLog *result;
8349 PyObject * obj0 = 0 ;
8350 char *kwnames[] = {
8351 (char *) "self", NULL
8352 };
8353
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8357 {
8358 PyThreadState* __tstate = wxPyBeginAllowThreads();
8359 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8360
8361 wxPyEndAllowThreads(__tstate);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8365 return resultobj;
8366 fail:
8367 return NULL;
8368}
8369
8370
c370783e 8371static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8372 PyObject *resultobj;
8373 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8374 bool result;
8375 PyObject * obj0 = 0 ;
8376 char *kwnames[] = {
8377 (char *) "self", NULL
8378 };
8379
8380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 {
8391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8392 }
8393 return resultobj;
8394 fail:
8395 return NULL;
8396}
8397
8398
c370783e 8399static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8400 PyObject *resultobj;
8401 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8402 bool arg2 ;
8403 PyObject * obj0 = 0 ;
8404 PyObject * obj1 = 0 ;
8405 char *kwnames[] = {
8406 (char *) "self",(char *) "bDoPass", NULL
8407 };
8408
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8412 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8413 if (PyErr_Occurred()) SWIG_fail;
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 (arg1)->PassMessages(arg2);
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 Py_INCREF(Py_None); resultobj = Py_None;
8422 return resultobj;
8423 fail:
8424 return NULL;
8425}
8426
8427
c370783e 8428static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8429 PyObject *obj;
8430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8431 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8432 Py_INCREF(obj);
8433 return Py_BuildValue((char *)"");
8434}
c370783e 8435static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8436 PyObject *resultobj;
8437 wxLog *arg1 = (wxLog *) 0 ;
8438 wxLogChain *result;
8439 PyObject * obj0 = 0 ;
8440 char *kwnames[] = {
8441 (char *) "logger", NULL
8442 };
8443
8444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (wxLogChain *)new wxLogChain(arg1);
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8455 return resultobj;
8456 fail:
8457 return NULL;
8458}
8459
8460
c370783e 8461static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8462 PyObject *resultobj;
8463 wxLogChain *arg1 = (wxLogChain *) 0 ;
8464 wxLog *arg2 = (wxLog *) 0 ;
8465 PyObject * obj0 = 0 ;
8466 PyObject * obj1 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "self",(char *) "logger", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8474 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8476 {
8477 PyThreadState* __tstate = wxPyBeginAllowThreads();
8478 (arg1)->SetLog(arg2);
8479
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 Py_INCREF(Py_None); resultobj = Py_None;
8484 return resultobj;
8485 fail:
8486 return NULL;
8487}
8488
8489
c370783e 8490static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8491 PyObject *resultobj;
8492 wxLogChain *arg1 = (wxLogChain *) 0 ;
8493 bool arg2 ;
8494 PyObject * obj0 = 0 ;
8495 PyObject * obj1 = 0 ;
8496 char *kwnames[] = {
8497 (char *) "self",(char *) "bDoPass", NULL
8498 };
8499
8500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 8503 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
8504 if (PyErr_Occurred()) SWIG_fail;
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 (arg1)->PassMessages(arg2);
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 Py_INCREF(Py_None); resultobj = Py_None;
8513 return resultobj;
8514 fail:
8515 return NULL;
8516}
8517
8518
c370783e 8519static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8520 PyObject *resultobj;
8521 wxLogChain *arg1 = (wxLogChain *) 0 ;
8522 bool result;
8523 PyObject * obj0 = 0 ;
8524 char *kwnames[] = {
8525 (char *) "self", NULL
8526 };
8527
8528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 result = (bool)(arg1)->IsPassingMessages();
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 {
8539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8540 }
8541 return resultobj;
8542 fail:
8543 return NULL;
8544}
8545
8546
c370783e 8547static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8548 PyObject *resultobj;
8549 wxLogChain *arg1 = (wxLogChain *) 0 ;
8550 wxLog *result;
8551 PyObject * obj0 = 0 ;
8552 char *kwnames[] = {
8553 (char *) "self", NULL
8554 };
8555
8556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 result = (wxLog *)(arg1)->GetOldLog();
8562
8563 wxPyEndAllowThreads(__tstate);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8567 return resultobj;
8568 fail:
8569 return NULL;
8570}
8571
8572
c370783e 8573static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8574 PyObject *obj;
8575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8576 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8577 Py_INCREF(obj);
8578 return Py_BuildValue((char *)"");
8579}
c370783e 8580static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8581 PyObject *resultobj;
8582 unsigned long result;
8583 char *kwnames[] = {
8584 NULL
8585 };
8586
8587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8588 {
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (unsigned long)wxSysErrorCode();
8591
8592 wxPyEndAllowThreads(__tstate);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
c370783e 8595 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
8596 return resultobj;
8597 fail:
8598 return NULL;
8599}
8600
8601
c370783e 8602static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8603 PyObject *resultobj;
8604 unsigned long arg1 = (unsigned long) 0 ;
8605 wxString result;
8606 PyObject * obj0 = 0 ;
8607 char *kwnames[] = {
8608 (char *) "nErrCode", NULL
8609 };
8610
8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8612 if (obj0) {
c370783e 8613 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 result = wxSysErrorMsg(arg1);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 {
8624#if wxUSE_UNICODE
8625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8626#else
8627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8628#endif
8629 }
8630 return resultobj;
8631 fail:
8632 return NULL;
8633}
8634
8635
c370783e 8636static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8637 PyObject *resultobj;
8638 wxString *arg1 = 0 ;
b411df4a 8639 bool temp1 = false ;
d55e5bfc
RD
8640 PyObject * obj0 = 0 ;
8641 char *kwnames[] = {
8642 (char *) "msg", NULL
8643 };
8644
8645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8646 {
8647 arg1 = wxString_in_helper(obj0);
8648 if (arg1 == NULL) SWIG_fail;
b411df4a 8649 temp1 = true;
d55e5bfc
RD
8650 }
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8653 wxPyLogFatalError((wxString const &)*arg1);
d55e5bfc
RD
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 Py_INCREF(Py_None); resultobj = Py_None;
8659 {
8660 if (temp1)
8661 delete arg1;
8662 }
8663 return resultobj;
8664 fail:
8665 {
8666 if (temp1)
8667 delete arg1;
8668 }
8669 return NULL;
8670}
8671
8672
c370783e 8673static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8674 PyObject *resultobj;
8675 wxString *arg1 = 0 ;
b411df4a 8676 bool temp1 = false ;
d55e5bfc
RD
8677 PyObject * obj0 = 0 ;
8678 char *kwnames[] = {
8679 (char *) "msg", NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8683 {
8684 arg1 = wxString_in_helper(obj0);
8685 if (arg1 == NULL) SWIG_fail;
b411df4a 8686 temp1 = true;
d55e5bfc
RD
8687 }
8688 {
8689 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8690 wxPyLogError((wxString const &)*arg1);
d55e5bfc
RD
8691
8692 wxPyEndAllowThreads(__tstate);
8693 if (PyErr_Occurred()) SWIG_fail;
8694 }
8695 Py_INCREF(Py_None); resultobj = Py_None;
8696 {
8697 if (temp1)
8698 delete arg1;
8699 }
8700 return resultobj;
8701 fail:
8702 {
8703 if (temp1)
8704 delete arg1;
8705 }
8706 return NULL;
8707}
8708
8709
c370783e 8710static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8711 PyObject *resultobj;
8712 wxString *arg1 = 0 ;
b411df4a 8713 bool temp1 = false ;
d55e5bfc
RD
8714 PyObject * obj0 = 0 ;
8715 char *kwnames[] = {
8716 (char *) "msg", NULL
8717 };
8718
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8720 {
8721 arg1 = wxString_in_helper(obj0);
8722 if (arg1 == NULL) SWIG_fail;
b411df4a 8723 temp1 = true;
d55e5bfc
RD
8724 }
8725 {
8726 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8727 wxPyLogWarning((wxString const &)*arg1);
d55e5bfc
RD
8728
8729 wxPyEndAllowThreads(__tstate);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 Py_INCREF(Py_None); resultobj = Py_None;
8733 {
8734 if (temp1)
8735 delete arg1;
8736 }
8737 return resultobj;
8738 fail:
8739 {
8740 if (temp1)
8741 delete arg1;
8742 }
8743 return NULL;
8744}
8745
8746
c370783e 8747static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8748 PyObject *resultobj;
8749 wxString *arg1 = 0 ;
b411df4a 8750 bool temp1 = false ;
d55e5bfc
RD
8751 PyObject * obj0 = 0 ;
8752 char *kwnames[] = {
8753 (char *) "msg", NULL
8754 };
8755
8756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8757 {
8758 arg1 = wxString_in_helper(obj0);
8759 if (arg1 == NULL) SWIG_fail;
b411df4a 8760 temp1 = true;
d55e5bfc
RD
8761 }
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8764 wxPyLogMessage((wxString const &)*arg1);
d55e5bfc
RD
8765
8766 wxPyEndAllowThreads(__tstate);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 Py_INCREF(Py_None); resultobj = Py_None;
8770 {
8771 if (temp1)
8772 delete arg1;
8773 }
8774 return resultobj;
8775 fail:
8776 {
8777 if (temp1)
8778 delete arg1;
8779 }
8780 return NULL;
8781}
8782
8783
c370783e 8784static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8785 PyObject *resultobj;
8786 wxString *arg1 = 0 ;
b411df4a 8787 bool temp1 = false ;
d55e5bfc
RD
8788 PyObject * obj0 = 0 ;
8789 char *kwnames[] = {
8790 (char *) "msg", NULL
8791 };
8792
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8794 {
8795 arg1 = wxString_in_helper(obj0);
8796 if (arg1 == NULL) SWIG_fail;
b411df4a 8797 temp1 = true;
d55e5bfc
RD
8798 }
8799 {
8800 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8801 wxPyLogInfo((wxString const &)*arg1);
d55e5bfc
RD
8802
8803 wxPyEndAllowThreads(__tstate);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 }
8806 Py_INCREF(Py_None); resultobj = Py_None;
8807 {
8808 if (temp1)
8809 delete arg1;
8810 }
8811 return resultobj;
8812 fail:
8813 {
8814 if (temp1)
8815 delete arg1;
8816 }
8817 return NULL;
8818}
8819
8820
c370783e 8821static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8822 PyObject *resultobj;
8823 wxString *arg1 = 0 ;
b411df4a 8824 bool temp1 = false ;
d55e5bfc
RD
8825 PyObject * obj0 = 0 ;
8826 char *kwnames[] = {
8827 (char *) "msg", NULL
8828 };
8829
8830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8831 {
8832 arg1 = wxString_in_helper(obj0);
8833 if (arg1 == NULL) SWIG_fail;
b411df4a 8834 temp1 = true;
d55e5bfc
RD
8835 }
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8838 wxPyLogDebug((wxString const &)*arg1);
d55e5bfc
RD
8839
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 Py_INCREF(Py_None); resultobj = Py_None;
8844 {
8845 if (temp1)
8846 delete arg1;
8847 }
8848 return resultobj;
8849 fail:
8850 {
8851 if (temp1)
8852 delete arg1;
8853 }
8854 return NULL;
8855}
8856
8857
c370783e 8858static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8859 PyObject *resultobj;
8860 wxString *arg1 = 0 ;
b411df4a 8861 bool temp1 = false ;
d55e5bfc
RD
8862 PyObject * obj0 = 0 ;
8863 char *kwnames[] = {
8864 (char *) "msg", NULL
8865 };
8866
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8868 {
8869 arg1 = wxString_in_helper(obj0);
8870 if (arg1 == NULL) SWIG_fail;
b411df4a 8871 temp1 = true;
d55e5bfc
RD
8872 }
8873 {
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8875 wxPyLogVerbose((wxString const &)*arg1);
d55e5bfc
RD
8876
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 Py_INCREF(Py_None); resultobj = Py_None;
8881 {
8882 if (temp1)
8883 delete arg1;
8884 }
8885 return resultobj;
8886 fail:
8887 {
8888 if (temp1)
8889 delete arg1;
8890 }
8891 return NULL;
8892}
8893
8894
c370783e 8895static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8896 PyObject *resultobj;
8897 wxString *arg1 = 0 ;
b411df4a 8898 bool temp1 = false ;
d55e5bfc
RD
8899 PyObject * obj0 = 0 ;
8900 char *kwnames[] = {
8901 (char *) "msg", NULL
8902 };
8903
8904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8905 {
8906 arg1 = wxString_in_helper(obj0);
8907 if (arg1 == NULL) SWIG_fail;
b411df4a 8908 temp1 = true;
d55e5bfc
RD
8909 }
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8912 wxPyLogStatus((wxString const &)*arg1);
d55e5bfc
RD
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 Py_INCREF(Py_None); resultobj = Py_None;
8918 {
8919 if (temp1)
8920 delete arg1;
8921 }
8922 return resultobj;
8923 fail:
8924 {
8925 if (temp1)
8926 delete arg1;
8927 }
8928 return NULL;
8929}
8930
8931
c370783e 8932static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8933 PyObject *resultobj;
8934 wxFrame *arg1 = (wxFrame *) 0 ;
8935 wxString *arg2 = 0 ;
b411df4a 8936 bool temp2 = false ;
d55e5bfc
RD
8937 PyObject * obj0 = 0 ;
8938 PyObject * obj1 = 0 ;
8939 char *kwnames[] = {
8940 (char *) "pFrame",(char *) "msg", NULL
8941 };
8942
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8946 {
8947 arg2 = wxString_in_helper(obj1);
8948 if (arg2 == NULL) SWIG_fail;
b411df4a 8949 temp2 = true;
d55e5bfc
RD
8950 }
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8953 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
d55e5bfc
RD
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 Py_INCREF(Py_None); resultobj = Py_None;
8959 {
8960 if (temp2)
8961 delete arg2;
8962 }
8963 return resultobj;
8964 fail:
8965 {
8966 if (temp2)
8967 delete arg2;
8968 }
8969 return NULL;
8970}
8971
8972
c370783e 8973static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8974 PyObject *resultobj;
8975 wxString *arg1 = 0 ;
b411df4a 8976 bool temp1 = false ;
d55e5bfc
RD
8977 PyObject * obj0 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "msg", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8983 {
8984 arg1 = wxString_in_helper(obj0);
8985 if (arg1 == NULL) SWIG_fail;
b411df4a 8986 temp1 = true;
d55e5bfc
RD
8987 }
8988 {
8989 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 8990 wxPyLogSysError((wxString const &)*arg1);
d55e5bfc
RD
8991
8992 wxPyEndAllowThreads(__tstate);
8993 if (PyErr_Occurred()) SWIG_fail;
8994 }
8995 Py_INCREF(Py_None); resultobj = Py_None;
8996 {
8997 if (temp1)
8998 delete arg1;
8999 }
9000 return resultobj;
9001 fail:
9002 {
9003 if (temp1)
9004 delete arg1;
9005 }
9006 return NULL;
9007}
9008
9009
f78cc896
RD
9010static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj;
9012 unsigned long arg1 ;
9013 wxString *arg2 = 0 ;
9014 bool temp2 = false ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 char *kwnames[] = {
9018 (char *) "level",(char *) "msg", NULL
9019 };
9020
9021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
9022 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 {
9025 arg2 = wxString_in_helper(obj1);
9026 if (arg2 == NULL) SWIG_fail;
9027 temp2 = true;
9028 }
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 wxPyLogGeneric(arg1,(wxString const &)*arg2);
9032
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 Py_INCREF(Py_None); resultobj = Py_None;
9037 {
9038 if (temp2)
9039 delete arg2;
9040 }
9041 return resultobj;
9042 fail:
9043 {
9044 if (temp2)
9045 delete arg2;
9046 }
9047 return NULL;
9048}
9049
9050
c370783e 9051static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
9052 PyObject *resultobj;
9053 unsigned long arg1 ;
9054 wxString *arg2 = 0 ;
b411df4a 9055 bool temp2 = false ;
d55e5bfc
RD
9056 PyObject * obj0 = 0 ;
9057 PyObject * obj1 = 0 ;
9058
9059 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
c370783e 9060 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
9061 if (PyErr_Occurred()) SWIG_fail;
9062 {
9063 arg2 = wxString_in_helper(obj1);
9064 if (arg2 == NULL) SWIG_fail;
b411df4a 9065 temp2 = true;
d55e5bfc
RD
9066 }
9067 {
9068 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 9069 wxPyLogTrace(arg1,(wxString const &)*arg2);
d55e5bfc
RD
9070
9071 wxPyEndAllowThreads(__tstate);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 }
9074 Py_INCREF(Py_None); resultobj = Py_None;
9075 {
9076 if (temp2)
9077 delete arg2;
9078 }
9079 return resultobj;
9080 fail:
9081 {
9082 if (temp2)
9083 delete arg2;
9084 }
9085 return NULL;
9086}
9087
9088
c370783e 9089static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
9090 PyObject *resultobj;
9091 wxString *arg1 = 0 ;
9092 wxString *arg2 = 0 ;
b411df4a
RD
9093 bool temp1 = false ;
9094 bool temp2 = false ;
d55e5bfc
RD
9095 PyObject * obj0 = 0 ;
9096 PyObject * obj1 = 0 ;
9097
9098 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
9099 {
9100 arg1 = wxString_in_helper(obj0);
9101 if (arg1 == NULL) SWIG_fail;
b411df4a 9102 temp1 = true;
d55e5bfc
RD
9103 }
9104 {
9105 arg2 = wxString_in_helper(obj1);
9106 if (arg2 == NULL) SWIG_fail;
b411df4a 9107 temp2 = true;
d55e5bfc
RD
9108 }
9109 {
9110 PyThreadState* __tstate = wxPyBeginAllowThreads();
f78cc896 9111 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
d55e5bfc
RD
9112
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 Py_INCREF(Py_None); resultobj = Py_None;
9117 {
9118 if (temp1)
9119 delete arg1;
9120 }
9121 {
9122 if (temp2)
9123 delete arg2;
9124 }
9125 return resultobj;
9126 fail:
9127 {
9128 if (temp1)
9129 delete arg1;
9130 }
9131 {
9132 if (temp2)
9133 delete arg2;
9134 }
9135 return NULL;
9136}
9137
9138
9139static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
9140 int argc;
9141 PyObject *argv[3];
9142 int ii;
9143
9144 argc = PyObject_Length(args);
9145 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
9146 argv[ii] = PyTuple_GetItem(args,ii);
9147 }
9148 if (argc == 2) {
9149 int _v;
9150 {
9151 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9152 }
9153 if (_v) {
9154 {
9155 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9156 }
9157 if (_v) {
9158 return _wrap_LogTrace__SWIG_1(self,args);
9159 }
9160 }
9161 }
9162 if (argc == 2) {
9163 int _v;
c370783e 9164 _v = SWIG_Check_unsigned_SS_long(argv[0]);
d55e5bfc
RD
9165 if (_v) {
9166 {
9167 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9168 }
9169 if (_v) {
9170 return _wrap_LogTrace__SWIG_0(self,args);
9171 }
9172 }
9173 }
9174
9175 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9176 return NULL;
9177}
9178
9179
c370783e 9180static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9181 PyObject *resultobj;
9182 wxString *arg1 = 0 ;
9183 wxString *arg2 = 0 ;
b411df4a
RD
9184 bool temp1 = false ;
9185 bool temp2 = false ;
d55e5bfc
RD
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "title",(char *) "text", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9193 {
9194 arg1 = wxString_in_helper(obj0);
9195 if (arg1 == NULL) SWIG_fail;
b411df4a 9196 temp1 = true;
d55e5bfc
RD
9197 }
9198 {
9199 arg2 = wxString_in_helper(obj1);
9200 if (arg2 == NULL) SWIG_fail;
b411df4a 9201 temp2 = true;
d55e5bfc
RD
9202 }
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 Py_INCREF(Py_None); resultobj = Py_None;
9211 {
9212 if (temp1)
9213 delete arg1;
9214 }
9215 {
9216 if (temp2)
9217 delete arg2;
9218 }
9219 return resultobj;
9220 fail:
9221 {
9222 if (temp1)
9223 delete arg1;
9224 }
9225 {
9226 if (temp2)
9227 delete arg2;
9228 }
9229 return NULL;
9230}
9231
9232
c370783e 9233static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9234 PyObject *resultobj;
9235 wxLogNull *result;
9236 char *kwnames[] = {
9237 NULL
9238 };
9239
9240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (wxLogNull *)new wxLogNull();
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9249 return resultobj;
9250 fail:
9251 return NULL;
9252}
9253
9254
c370783e 9255static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9256 PyObject *resultobj;
9257 wxLogNull *arg1 = (wxLogNull *) 0 ;
9258 PyObject * obj0 = 0 ;
9259 char *kwnames[] = {
9260 (char *) "self", NULL
9261 };
9262
9263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9266 {
9267 PyThreadState* __tstate = wxPyBeginAllowThreads();
9268 delete arg1;
9269
9270 wxPyEndAllowThreads(__tstate);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 }
9273 Py_INCREF(Py_None); resultobj = Py_None;
9274 return resultobj;
9275 fail:
9276 return NULL;
9277}
9278
9279
c370783e 9280static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9281 PyObject *obj;
9282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9283 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9284 Py_INCREF(obj);
9285 return Py_BuildValue((char *)"");
9286}
c370783e 9287static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9288 PyObject *resultobj;
9289 wxPyLog *result;
9290 char *kwnames[] = {
9291 NULL
9292 };
9293
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9295 {
9296 PyThreadState* __tstate = wxPyBeginAllowThreads();
9297 result = (wxPyLog *)new wxPyLog();
9298
9299 wxPyEndAllowThreads(__tstate);
9300 if (PyErr_Occurred()) SWIG_fail;
9301 }
9302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9303 return resultobj;
9304 fail:
9305 return NULL;
9306}
9307
9308
c370783e 9309static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9310 PyObject *resultobj;
9311 wxPyLog *arg1 = (wxPyLog *) 0 ;
9312 PyObject *arg2 = (PyObject *) 0 ;
9313 PyObject *arg3 = (PyObject *) 0 ;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 PyObject * obj2 = 0 ;
9317 char *kwnames[] = {
9318 (char *) "self",(char *) "self",(char *) "_class", NULL
9319 };
9320
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9324 arg2 = obj1;
9325 arg3 = obj2;
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 (arg1)->_setCallbackInfo(arg2,arg3);
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 Py_INCREF(Py_None); resultobj = Py_None;
9334 return resultobj;
9335 fail:
9336 return NULL;
9337}
9338
9339
c370783e 9340static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9341 PyObject *obj;
9342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9343 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9344 Py_INCREF(obj);
9345 return Py_BuildValue((char *)"");
9346}
c370783e 9347static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9348 PyObject *resultobj;
9349 int arg1 ;
9350 int arg2 = (int) wxSIGTERM ;
9351 int result;
9352 PyObject * obj0 = 0 ;
9353 PyObject * obj1 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "pid",(char *) "sig", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
c370783e 9359 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9360 if (PyErr_Occurred()) SWIG_fail;
9361 if (obj1) {
c370783e 9362 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
c370783e 9372 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9373 return resultobj;
9374 fail:
9375 return NULL;
9376}
9377
9378
c370783e 9379static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9380 PyObject *resultobj;
9381 int arg1 ;
9382 bool result;
9383 PyObject * obj0 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "pid", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
c370783e 9389 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9390 if (PyErr_Occurred()) SWIG_fail;
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 result = (bool)wxPyProcess::Exists(arg1);
9394
9395 wxPyEndAllowThreads(__tstate);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 {
9399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9400 }
9401 return resultobj;
9402 fail:
9403 return NULL;
9404}
9405
9406
c370783e 9407static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9408 PyObject *resultobj;
9409 wxString *arg1 = 0 ;
9410 int arg2 = (int) wxEXEC_ASYNC ;
9411 wxPyProcess *result;
b411df4a 9412 bool temp1 = false ;
d55e5bfc
RD
9413 PyObject * obj0 = 0 ;
9414 PyObject * obj1 = 0 ;
9415 char *kwnames[] = {
9416 (char *) "cmd",(char *) "flags", NULL
9417 };
9418
9419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9420 {
9421 arg1 = wxString_in_helper(obj0);
9422 if (arg1 == NULL) SWIG_fail;
b411df4a 9423 temp1 = true;
d55e5bfc
RD
9424 }
9425 if (obj1) {
c370783e 9426 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9437 {
9438 if (temp1)
9439 delete arg1;
9440 }
9441 return resultobj;
9442 fail:
9443 {
9444 if (temp1)
9445 delete arg1;
9446 }
9447 return NULL;
9448}
9449
9450
c370783e 9451static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9452 PyObject *resultobj;
9453 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9454 int arg2 = (int) -1 ;
9455 wxPyProcess *result;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 char *kwnames[] = {
9459 (char *) "parent",(char *) "id", NULL
9460 };
9461
9462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9463 if (obj0) {
9464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9466 }
9467 if (obj1) {
c370783e 9468 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9469 if (PyErr_Occurred()) SWIG_fail;
9470 }
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9474
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9479 return resultobj;
9480 fail:
9481 return NULL;
9482}
9483
9484
c370783e 9485static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9486 PyObject *resultobj;
9487 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9488 PyObject *arg2 = (PyObject *) 0 ;
9489 PyObject *arg3 = (PyObject *) 0 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 PyObject * obj2 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self",(char *) "self",(char *) "_class", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 arg2 = obj1;
9501 arg3 = obj2;
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 (arg1)->_setCallbackInfo(arg2,arg3);
9505
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 Py_INCREF(Py_None); resultobj = Py_None;
9510 return resultobj;
9511 fail:
9512 return NULL;
9513}
9514
9515
c370783e 9516static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9517 PyObject *resultobj;
9518 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9519 int arg2 ;
9520 int arg3 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 PyObject * obj2 = 0 ;
9524 char *kwnames[] = {
9525 (char *) "self",(char *) "pid",(char *) "status", NULL
9526 };
9527
9528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 9531 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9532 if (PyErr_Occurred()) SWIG_fail;
c370783e 9533 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9534 if (PyErr_Occurred()) SWIG_fail;
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 (arg1)->base_OnTerminate(arg2,arg3);
9538
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 Py_INCREF(Py_None); resultobj = Py_None;
9543 return resultobj;
9544 fail:
9545 return NULL;
9546}
9547
9548
c370783e 9549static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9550 PyObject *resultobj;
9551 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9552 PyObject * obj0 = 0 ;
9553 char *kwnames[] = {
9554 (char *) "self", NULL
9555 };
9556
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 (arg1)->Redirect();
9563
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 Py_INCREF(Py_None); resultobj = Py_None;
9568 return resultobj;
9569 fail:
9570 return NULL;
9571}
9572
9573
c370783e 9574static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9575 PyObject *resultobj;
9576 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9577 bool result;
9578 PyObject * obj0 = 0 ;
9579 char *kwnames[] = {
9580 (char *) "self", NULL
9581 };
9582
9583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (bool)(arg1)->IsRedirected();
9589
9590 wxPyEndAllowThreads(__tstate);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 {
9594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9595 }
9596 return resultobj;
9597 fail:
9598 return NULL;
9599}
9600
9601
c370783e 9602static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9603 PyObject *resultobj;
9604 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9605 PyObject * obj0 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "self", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 (arg1)->Detach();
9616
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 Py_INCREF(Py_None); resultobj = Py_None;
9621 return resultobj;
9622 fail:
9623 return NULL;
9624}
9625
9626
c370783e 9627static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9628 PyObject *resultobj;
9629 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9630 wxInputStream *result;
9631 PyObject * obj0 = 0 ;
9632 char *kwnames[] = {
9633 (char *) "self", NULL
9634 };
9635
9636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 result = (wxInputStream *)(arg1)->GetInputStream();
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 {
9647 wxPyInputStream * _ptr = NULL;
9648
9649 if (result) {
9650 _ptr = new wxPyInputStream(result);
9651 }
fc71d09b 9652 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
d55e5bfc
RD
9653 }
9654 return resultobj;
9655 fail:
9656 return NULL;
9657}
9658
9659
c370783e 9660static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9661 PyObject *resultobj;
9662 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9663 wxInputStream *result;
9664 PyObject * obj0 = 0 ;
9665 char *kwnames[] = {
9666 (char *) "self", NULL
9667 };
9668
9669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 result = (wxInputStream *)(arg1)->GetErrorStream();
9675
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 {
9680 wxPyInputStream * _ptr = NULL;
9681
9682 if (result) {
9683 _ptr = new wxPyInputStream(result);
9684 }
fc71d09b 9685 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
d55e5bfc
RD
9686 }
9687 return resultobj;
9688 fail:
9689 return NULL;
9690}
9691
9692
c370783e 9693static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9694 PyObject *resultobj;
9695 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9696 wxOutputStream *result;
9697 PyObject * obj0 = 0 ;
9698 char *kwnames[] = {
9699 (char *) "self", NULL
9700 };
9701
9702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = (wxOutputStream *)(arg1)->GetOutputStream();
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9713 return resultobj;
9714 fail:
9715 return NULL;
9716}
9717
9718
c370783e 9719static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9720 PyObject *resultobj;
9721 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9722 PyObject * obj0 = 0 ;
9723 char *kwnames[] = {
9724 (char *) "self", NULL
9725 };
9726
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 (arg1)->CloseOutput();
9733
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 Py_INCREF(Py_None); resultobj = Py_None;
9738 return resultobj;
9739 fail:
9740 return NULL;
9741}
9742
9743
c370783e 9744static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9745 PyObject *resultobj;
9746 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9747 bool result;
9748 PyObject * obj0 = 0 ;
9749 char *kwnames[] = {
9750 (char *) "self", NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 {
9764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9765 }
9766 return resultobj;
9767 fail:
9768 return NULL;
9769}
9770
9771
c370783e 9772static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9773 PyObject *resultobj;
9774 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9775 bool result;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 {
9792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9793 }
9794 return resultobj;
9795 fail:
9796 return NULL;
9797}
9798
9799
c370783e 9800static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9801 PyObject *resultobj;
9802 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9803 bool result;
9804 PyObject * obj0 = 0 ;
9805 char *kwnames[] = {
9806 (char *) "self", NULL
9807 };
9808
9809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 {
9820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9821 }
9822 return resultobj;
9823 fail:
9824 return NULL;
9825}
9826
9827
c370783e 9828static PyObject * Process_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
9829 PyObject *obj;
9830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9831 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9832 Py_INCREF(obj);
9833 return Py_BuildValue((char *)"");
9834}
c370783e 9835static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9836 PyObject *resultobj;
9837 int arg1 = (int) 0 ;
9838 int arg2 = (int) 0 ;
9839 int arg3 = (int) 0 ;
9840 wxProcessEvent *result;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 PyObject * obj2 = 0 ;
9844 char *kwnames[] = {
9845 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9846 };
9847
9848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9849 if (obj0) {
c370783e 9850 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 if (obj1) {
c370783e 9854 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 if (obj2) {
c370783e 9858 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9869 return resultobj;
9870 fail:
9871 return NULL;
9872}
9873
9874
c370783e 9875static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9876 PyObject *resultobj;
9877 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9878 int result;
9879 PyObject * obj0 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 result = (int)(arg1)->GetPid();
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
c370783e 9894 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9895 return resultobj;
9896 fail:
9897 return NULL;
9898}
9899
9900
c370783e 9901static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9902 PyObject *resultobj;
9903 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9904 int result;
9905 PyObject * obj0 = 0 ;
9906 char *kwnames[] = {
9907 (char *) "self", NULL
9908 };
9909
9910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 result = (int)(arg1)->GetExitCode();
9916
9917 wxPyEndAllowThreads(__tstate);
9918 if (PyErr_Occurred()) SWIG_fail;
9919 }
c370783e 9920 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9921 return resultobj;
9922 fail:
9923 return NULL;
9924}
9925
9926
c370783e 9927static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9928 PyObject *resultobj;
9929 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9930 int arg2 ;
9931 PyObject * obj0 = 0 ;
9932 PyObject * obj1 = 0 ;
9933 char *kwnames[] = {
9934 (char *) "self",(char *) "m_pid", NULL
9935 };
9936
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 9940 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9941 if (PyErr_Occurred()) SWIG_fail;
9942 if (arg1) (arg1)->m_pid = arg2;
9943
9944 Py_INCREF(Py_None); resultobj = Py_None;
9945 return resultobj;
9946 fail:
9947 return NULL;
9948}
9949
9950
c370783e 9951static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9952 PyObject *resultobj;
9953 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9954 int result;
9955 PyObject * obj0 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "self", NULL
9958 };
9959
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9963 result = (int) ((arg1)->m_pid);
9964
c370783e 9965 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9966 return resultobj;
9967 fail:
9968 return NULL;
9969}
9970
9971
c370783e 9972static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9973 PyObject *resultobj;
9974 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9975 int arg2 ;
9976 PyObject * obj0 = 0 ;
9977 PyObject * obj1 = 0 ;
9978 char *kwnames[] = {
9979 (char *) "self",(char *) "m_exitcode", NULL
9980 };
9981
9982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 9985 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9986 if (PyErr_Occurred()) SWIG_fail;
9987 if (arg1) (arg1)->m_exitcode = arg2;
9988
9989 Py_INCREF(Py_None); resultobj = Py_None;
9990 return resultobj;
9991 fail:
9992 return NULL;
9993}
9994
9995
c370783e 9996static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9997 PyObject *resultobj;
9998 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9999 int result;
10000 PyObject * obj0 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
10007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10008 result = (int) ((arg1)->m_exitcode);
10009
c370783e 10010 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10011 return resultobj;
10012 fail:
10013 return NULL;
10014}
10015
10016
c370783e 10017static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
10018 PyObject *obj;
10019 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10020 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
10021 Py_INCREF(obj);
10022 return Py_BuildValue((char *)"");
10023}
c370783e 10024static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10025 PyObject *resultobj;
10026 wxString *arg1 = 0 ;
10027 int arg2 = (int) wxEXEC_ASYNC ;
10028 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
10029 long result;
b411df4a 10030 bool temp1 = false ;
d55e5bfc
RD
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 PyObject * obj2 = 0 ;
10034 char *kwnames[] = {
10035 (char *) "command",(char *) "flags",(char *) "process", NULL
10036 };
10037
10038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
10039 {
10040 arg1 = wxString_in_helper(obj0);
10041 if (arg1 == NULL) SWIG_fail;
b411df4a 10042 temp1 = true;
d55e5bfc
RD
10043 }
10044 if (obj1) {
c370783e 10045 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 if (obj2) {
10049 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
10050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10051 }
10052 {
0439c23b 10053 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
10056
10057 wxPyEndAllowThreads(__tstate);
110da5b0 10058 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 10059 }
c370783e 10060 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
10061 {
10062 if (temp1)
10063 delete arg1;
10064 }
10065 return resultobj;
10066 fail:
10067 {
10068 if (temp1)
10069 delete arg1;
10070 }
10071 return NULL;
10072}
10073
10074
c370783e 10075static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10076 PyObject *resultobj;
10077 int arg1 = (int) wxJOYSTICK1 ;
10078 wxJoystick *result;
10079 PyObject * obj0 = 0 ;
10080 char *kwnames[] = {
10081 (char *) "joystick", NULL
10082 };
10083
10084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
10085 if (obj0) {
c370783e 10086 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 {
0439c23b 10090 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxJoystick *)new wxJoystick(arg1);
10093
10094 wxPyEndAllowThreads(__tstate);
110da5b0 10095 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
10096 }
10097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
10098 return resultobj;
10099 fail:
10100 return NULL;
10101}
10102
10103
c370783e 10104static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10105 PyObject *resultobj;
10106 wxJoystick *arg1 = (wxJoystick *) 0 ;
10107 PyObject * obj0 = 0 ;
10108 char *kwnames[] = {
10109 (char *) "self", NULL
10110 };
10111
10112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
10113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10115 {
10116 PyThreadState* __tstate = wxPyBeginAllowThreads();
10117 delete arg1;
10118
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 Py_INCREF(Py_None); resultobj = Py_None;
10123 return resultobj;
10124 fail:
10125 return NULL;
10126}
10127
10128
c370783e 10129static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10130 PyObject *resultobj;
10131 wxJoystick *arg1 = (wxJoystick *) 0 ;
10132 wxPoint result;
10133 PyObject * obj0 = 0 ;
10134 char *kwnames[] = {
10135 (char *) "self", NULL
10136 };
10137
10138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10141 {
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = (arg1)->GetPosition();
10144
10145 wxPyEndAllowThreads(__tstate);
10146 if (PyErr_Occurred()) SWIG_fail;
10147 }
10148 {
10149 wxPoint * resultptr;
10150 resultptr = new wxPoint((wxPoint &) result);
10151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10152 }
10153 return resultobj;
10154 fail:
10155 return NULL;
10156}
10157
10158
c370783e 10159static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10160 PyObject *resultobj;
10161 wxJoystick *arg1 = (wxJoystick *) 0 ;
10162 int result;
10163 PyObject * obj0 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 result = (int)(arg1)->GetZPosition();
10174
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
c370783e 10178 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10179 return resultobj;
10180 fail:
10181 return NULL;
10182}
10183
10184
c370783e 10185static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10186 PyObject *resultobj;
10187 wxJoystick *arg1 = (wxJoystick *) 0 ;
10188 int result;
10189 PyObject * obj0 = 0 ;
10190 char *kwnames[] = {
10191 (char *) "self", NULL
10192 };
10193
10194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (int)(arg1)->GetButtonState();
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
c370783e 10204 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10205 return resultobj;
10206 fail:
10207 return NULL;
10208}
10209
10210
c370783e 10211static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10212 PyObject *resultobj;
10213 wxJoystick *arg1 = (wxJoystick *) 0 ;
10214 int result;
10215 PyObject * obj0 = 0 ;
10216 char *kwnames[] = {
10217 (char *) "self", NULL
10218 };
10219
10220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (int)(arg1)->GetPOVPosition();
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
c370783e 10230 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10231 return resultobj;
10232 fail:
10233 return NULL;
10234}
10235
10236
c370783e 10237static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10238 PyObject *resultobj;
10239 wxJoystick *arg1 = (wxJoystick *) 0 ;
10240 int result;
10241 PyObject * obj0 = 0 ;
10242 char *kwnames[] = {
10243 (char *) "self", NULL
10244 };
10245
10246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10249 {
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 result = (int)(arg1)->GetPOVCTSPosition();
10252
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
c370783e 10256 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10257 return resultobj;
10258 fail:
10259 return NULL;
10260}
10261
10262
c370783e 10263static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10264 PyObject *resultobj;
10265 wxJoystick *arg1 = (wxJoystick *) 0 ;
10266 int result;
10267 PyObject * obj0 = 0 ;
10268 char *kwnames[] = {
10269 (char *) "self", NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 result = (int)(arg1)->GetRudderPosition();
10278
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
c370783e 10282 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10283 return resultobj;
10284 fail:
10285 return NULL;
10286}
10287
10288
c370783e 10289static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10290 PyObject *resultobj;
10291 wxJoystick *arg1 = (wxJoystick *) 0 ;
10292 int result;
10293 PyObject * obj0 = 0 ;
10294 char *kwnames[] = {
10295 (char *) "self", NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (int)(arg1)->GetUPosition();
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
c370783e 10308 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10309 return resultobj;
10310 fail:
10311 return NULL;
10312}
10313
10314
c370783e 10315static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10316 PyObject *resultobj;
10317 wxJoystick *arg1 = (wxJoystick *) 0 ;
10318 int result;
10319 PyObject * obj0 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = (int)(arg1)->GetVPosition();
10330
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
c370783e 10334 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10335 return resultobj;
10336 fail:
10337 return NULL;
10338}
10339
10340
c370783e 10341static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10342 PyObject *resultobj;
10343 wxJoystick *arg1 = (wxJoystick *) 0 ;
10344 int result;
10345 PyObject * obj0 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 result = (int)(arg1)->GetMovementThreshold();
10356
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 }
c370783e 10360 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10361 return resultobj;
10362 fail:
10363 return NULL;
10364}
10365
10366
c370783e 10367static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10368 PyObject *resultobj;
10369 wxJoystick *arg1 = (wxJoystick *) 0 ;
10370 int arg2 ;
10371 PyObject * obj0 = 0 ;
10372 PyObject * obj1 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self",(char *) "threshold", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 10380 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
10381 if (PyErr_Occurred()) SWIG_fail;
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 (arg1)->SetMovementThreshold(arg2);
10385
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 Py_INCREF(Py_None); resultobj = Py_None;
10390 return resultobj;
10391 fail:
10392 return NULL;
10393}
10394
10395
c370783e 10396static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10397 PyObject *resultobj;
10398 wxJoystick *arg1 = (wxJoystick *) 0 ;
10399 bool result;
10400 PyObject * obj0 = 0 ;
10401 char *kwnames[] = {
10402 (char *) "self", NULL
10403 };
10404
10405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 result = (bool)(arg1)->IsOk();
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 {
10416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10417 }
10418 return resultobj;
10419 fail:
10420 return NULL;
10421}
10422
10423
c370783e 10424static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10425 PyObject *resultobj;
10426 wxJoystick *arg1 = (wxJoystick *) 0 ;
10427 int result;
10428 PyObject * obj0 = 0 ;
10429 char *kwnames[] = {
10430 (char *) "self", NULL
10431 };
10432
10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (int)(arg1)->GetNumberJoysticks();
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
c370783e 10443 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10444 return resultobj;
10445 fail:
10446 return NULL;
10447}
10448
10449
c370783e 10450static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10451 PyObject *resultobj;
10452 wxJoystick *arg1 = (wxJoystick *) 0 ;
10453 int result;
10454 PyObject * obj0 = 0 ;
10455 char *kwnames[] = {
10456 (char *) "self", NULL
10457 };
10458
10459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 result = (int)(arg1)->GetManufacturerId();
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
c370783e 10469 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10470 return resultobj;
10471 fail:
10472 return NULL;
10473}
10474
10475
c370783e 10476static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10477 PyObject *resultobj;
10478 wxJoystick *arg1 = (wxJoystick *) 0 ;
10479 int result;
10480 PyObject * obj0 = 0 ;
10481 char *kwnames[] = {
10482 (char *) "self", NULL
10483 };
10484
10485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 result = (int)(arg1)->GetProductId();
10491
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
c370783e 10495 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10496 return resultobj;
10497 fail:
10498 return NULL;
10499}
10500
10501
c370783e 10502static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10503 PyObject *resultobj;
10504 wxJoystick *arg1 = (wxJoystick *) 0 ;
10505 wxString result;
10506 PyObject * obj0 = 0 ;
10507 char *kwnames[] = {
10508 (char *) "self", NULL
10509 };
10510
10511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (arg1)->GetProductName();
10517
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 {
10522#if wxUSE_UNICODE
10523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10524#else
10525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10526#endif
10527 }
10528 return resultobj;
10529 fail:
10530 return NULL;
10531}
10532
10533
c370783e 10534static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10535 PyObject *resultobj;
10536 wxJoystick *arg1 = (wxJoystick *) 0 ;
10537 int result;
10538 PyObject * obj0 = 0 ;
10539 char *kwnames[] = {
10540 (char *) "self", NULL
10541 };
10542
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 result = (int)(arg1)->GetXMin();
10549
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
c370783e 10553 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10554 return resultobj;
10555 fail:
10556 return NULL;
10557}
10558
10559
c370783e 10560static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10561 PyObject *resultobj;
10562 wxJoystick *arg1 = (wxJoystick *) 0 ;
10563 int result;
10564 PyObject * obj0 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 result = (int)(arg1)->GetYMin();
10575
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
c370783e 10579 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10580 return resultobj;
10581 fail:
10582 return NULL;
10583}
10584
10585
c370783e 10586static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10587 PyObject *resultobj;
10588 wxJoystick *arg1 = (wxJoystick *) 0 ;
10589 int result;
10590 PyObject * obj0 = 0 ;
10591 char *kwnames[] = {
10592 (char *) "self", NULL
10593 };
10594
10595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 result = (int)(arg1)->GetZMin();
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
c370783e 10605 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10606 return resultobj;
10607 fail:
10608 return NULL;
10609}
10610
10611
c370783e 10612static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10613 PyObject *resultobj;
10614 wxJoystick *arg1 = (wxJoystick *) 0 ;
10615 int result;
10616 PyObject * obj0 = 0 ;
10617 char *kwnames[] = {
10618 (char *) "self", NULL
10619 };
10620
10621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10624 {
10625 PyThreadState* __tstate = wxPyBeginAllowThreads();
10626 result = (int)(arg1)->GetXMax();
10627
10628 wxPyEndAllowThreads(__tstate);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
c370783e 10631 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10632 return resultobj;
10633 fail:
10634 return NULL;
10635}
10636
10637
c370783e 10638static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10639 PyObject *resultobj;
10640 wxJoystick *arg1 = (wxJoystick *) 0 ;
10641 int result;
10642 PyObject * obj0 = 0 ;
10643 char *kwnames[] = {
10644 (char *) "self", NULL
10645 };
10646
10647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 result = (int)(arg1)->GetYMax();
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
c370783e 10657 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10658 return resultobj;
10659 fail:
10660 return NULL;
10661}
10662
10663
c370783e 10664static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10665 PyObject *resultobj;
10666 wxJoystick *arg1 = (wxJoystick *) 0 ;
10667 int result;
10668 PyObject * obj0 = 0 ;
10669 char *kwnames[] = {
10670 (char *) "self", NULL
10671 };
10672
10673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 result = (int)(arg1)->GetZMax();
10679
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
c370783e 10683 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10684 return resultobj;
10685 fail:
10686 return NULL;
10687}
10688
10689
c370783e 10690static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10691 PyObject *resultobj;
10692 wxJoystick *arg1 = (wxJoystick *) 0 ;
10693 int result;
10694 PyObject * obj0 = 0 ;
10695 char *kwnames[] = {
10696 (char *) "self", NULL
10697 };
10698
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 result = (int)(arg1)->GetNumberButtons();
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
c370783e 10709 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10710 return resultobj;
10711 fail:
10712 return NULL;
10713}
10714
10715
c370783e 10716static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10717 PyObject *resultobj;
10718 wxJoystick *arg1 = (wxJoystick *) 0 ;
10719 int result;
10720 PyObject * obj0 = 0 ;
10721 char *kwnames[] = {
10722 (char *) "self", NULL
10723 };
10724
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 result = (int)(arg1)->GetNumberAxes();
10731
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
c370783e 10735 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10736 return resultobj;
10737 fail:
10738 return NULL;
10739}
10740
10741
c370783e 10742static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10743 PyObject *resultobj;
10744 wxJoystick *arg1 = (wxJoystick *) 0 ;
10745 int result;
10746 PyObject * obj0 = 0 ;
10747 char *kwnames[] = {
10748 (char *) "self", NULL
10749 };
10750
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = (int)(arg1)->GetMaxButtons();
10757
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
c370783e 10761 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10762 return resultobj;
10763 fail:
10764 return NULL;
10765}
10766
10767
c370783e 10768static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10769 PyObject *resultobj;
10770 wxJoystick *arg1 = (wxJoystick *) 0 ;
10771 int result;
10772 PyObject * obj0 = 0 ;
10773 char *kwnames[] = {
10774 (char *) "self", NULL
10775 };
10776
10777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 result = (int)(arg1)->GetMaxAxes();
10783
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
c370783e 10787 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10788 return resultobj;
10789 fail:
10790 return NULL;
10791}
10792
10793
c370783e 10794static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10795 PyObject *resultobj;
10796 wxJoystick *arg1 = (wxJoystick *) 0 ;
10797 int result;
10798 PyObject * obj0 = 0 ;
10799 char *kwnames[] = {
10800 (char *) "self", NULL
10801 };
10802
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 result = (int)(arg1)->GetPollingMin();
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
c370783e 10813 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10814 return resultobj;
10815 fail:
10816 return NULL;
10817}
10818
10819
c370783e 10820static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10821 PyObject *resultobj;
10822 wxJoystick *arg1 = (wxJoystick *) 0 ;
10823 int result;
10824 PyObject * obj0 = 0 ;
10825 char *kwnames[] = {
10826 (char *) "self", NULL
10827 };
10828
10829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 result = (int)(arg1)->GetPollingMax();
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
c370783e 10839 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10840 return resultobj;
10841 fail:
10842 return NULL;
10843}
10844
10845
c370783e 10846static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10847 PyObject *resultobj;
10848 wxJoystick *arg1 = (wxJoystick *) 0 ;
10849 int result;
10850 PyObject * obj0 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10858 {
10859 PyThreadState* __tstate = wxPyBeginAllowThreads();
10860 result = (int)(arg1)->GetRudderMin();
10861
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
c370783e 10865 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10866 return resultobj;
10867 fail:
10868 return NULL;
10869}
10870
10871
c370783e 10872static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10873 PyObject *resultobj;
10874 wxJoystick *arg1 = (wxJoystick *) 0 ;
10875 int result;
10876 PyObject * obj0 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 result = (int)(arg1)->GetRudderMax();
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
c370783e 10891 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10892 return resultobj;
10893 fail:
10894 return NULL;
10895}
10896
10897
c370783e 10898static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10899 PyObject *resultobj;
10900 wxJoystick *arg1 = (wxJoystick *) 0 ;
10901 int result;
10902 PyObject * obj0 = 0 ;
10903 char *kwnames[] = {
10904 (char *) "self", NULL
10905 };
10906
10907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10910 {
10911 PyThreadState* __tstate = wxPyBeginAllowThreads();
10912 result = (int)(arg1)->GetUMin();
10913
10914 wxPyEndAllowThreads(__tstate);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
c370783e 10917 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10918 return resultobj;
10919 fail:
10920 return NULL;
10921}
10922
10923
c370783e 10924static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10925 PyObject *resultobj;
10926 wxJoystick *arg1 = (wxJoystick *) 0 ;
10927 int result;
10928 PyObject * obj0 = 0 ;
10929 char *kwnames[] = {
10930 (char *) "self", NULL
10931 };
10932
10933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10936 {
10937 PyThreadState* __tstate = wxPyBeginAllowThreads();
10938 result = (int)(arg1)->GetUMax();
10939
10940 wxPyEndAllowThreads(__tstate);
10941 if (PyErr_Occurred()) SWIG_fail;
10942 }
c370783e 10943 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10944 return resultobj;
10945 fail:
10946 return NULL;
10947}
10948
10949
c370783e 10950static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10951 PyObject *resultobj;
10952 wxJoystick *arg1 = (wxJoystick *) 0 ;
10953 int result;
10954 PyObject * obj0 = 0 ;
10955 char *kwnames[] = {
10956 (char *) "self", NULL
10957 };
10958
10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 result = (int)(arg1)->GetVMin();
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
c370783e 10969 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10970 return resultobj;
10971 fail:
10972 return NULL;
10973}
10974
10975
c370783e 10976static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10977 PyObject *resultobj;
10978 wxJoystick *arg1 = (wxJoystick *) 0 ;
10979 int result;
10980 PyObject * obj0 = 0 ;
10981 char *kwnames[] = {
10982 (char *) "self", NULL
10983 };
10984
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (int)(arg1)->GetVMax();
10991
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
c370783e 10995 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10996 return resultobj;
10997 fail:
10998 return NULL;
10999}
11000
11001
c370783e 11002static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11003 PyObject *resultobj;
11004 wxJoystick *arg1 = (wxJoystick *) 0 ;
11005 bool result;
11006 PyObject * obj0 = 0 ;
11007 char *kwnames[] = {
11008 (char *) "self", NULL
11009 };
11010
11011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
11012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11014 {
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 result = (bool)(arg1)->HasRudder();
11017
11018 wxPyEndAllowThreads(__tstate);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 {
11022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11023 }
11024 return resultobj;
11025 fail:
11026 return NULL;
11027}
11028
11029
c370783e 11030static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11031 PyObject *resultobj;
11032 wxJoystick *arg1 = (wxJoystick *) 0 ;
11033 bool result;
11034 PyObject * obj0 = 0 ;
11035 char *kwnames[] = {
11036 (char *) "self", NULL
11037 };
11038
11039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
11040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11042 {
11043 PyThreadState* __tstate = wxPyBeginAllowThreads();
11044 result = (bool)(arg1)->HasZ();
11045
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 {
11050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11051 }
11052 return resultobj;
11053 fail:
11054 return NULL;
11055}
11056
11057
c370783e 11058static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11059 PyObject *resultobj;
11060 wxJoystick *arg1 = (wxJoystick *) 0 ;
11061 bool result;
11062 PyObject * obj0 = 0 ;
11063 char *kwnames[] = {
11064 (char *) "self", NULL
11065 };
11066
11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
11068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = (bool)(arg1)->HasU();
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083}
11084
11085
c370783e 11086static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11087 PyObject *resultobj;
11088 wxJoystick *arg1 = (wxJoystick *) 0 ;
11089 bool result;
11090 PyObject * obj0 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self", NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)(arg1)->HasV();
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 {
11106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11107 }
11108 return resultobj;
11109 fail:
11110 return NULL;
11111}
11112
11113
c370783e 11114static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11115 PyObject *resultobj;
11116 wxJoystick *arg1 = (wxJoystick *) 0 ;
11117 bool result;
11118 PyObject * obj0 = 0 ;
11119 char *kwnames[] = {
11120 (char *) "self", NULL
11121 };
11122
11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
11124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11126 {
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
11128 result = (bool)(arg1)->HasPOV();
11129
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 {
11134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11135 }
11136 return resultobj;
11137 fail:
11138 return NULL;
11139}
11140
11141
c370783e 11142static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11143 PyObject *resultobj;
11144 wxJoystick *arg1 = (wxJoystick *) 0 ;
11145 bool result;
11146 PyObject * obj0 = 0 ;
11147 char *kwnames[] = {
11148 (char *) "self", NULL
11149 };
11150
11151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)(arg1)->HasPOV4Dir();
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11163 }
11164 return resultobj;
11165 fail:
11166 return NULL;
11167}
11168
11169
c370783e 11170static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11171 PyObject *resultobj;
11172 wxJoystick *arg1 = (wxJoystick *) 0 ;
11173 bool result;
11174 PyObject * obj0 = 0 ;
11175 char *kwnames[] = {
11176 (char *) "self", NULL
11177 };
11178
11179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 result = (bool)(arg1)->HasPOVCTS();
11185
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 {
11190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11191 }
11192 return resultobj;
11193 fail:
11194 return NULL;
11195}
11196
11197
c370783e 11198static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11199 PyObject *resultobj;
11200 wxJoystick *arg1 = (wxJoystick *) 0 ;
11201 wxWindow *arg2 = (wxWindow *) 0 ;
11202 int arg3 = (int) 0 ;
11203 bool result;
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 PyObject * obj2 = 0 ;
11207 char *kwnames[] = {
11208 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11209 };
11210
11211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11216 if (obj2) {
c370783e 11217 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 result = (bool)(arg1)->SetCapture(arg2,arg3);
11223
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 {
11228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11229 }
11230 return resultobj;
11231 fail:
11232 return NULL;
11233}
11234
11235
c370783e 11236static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11237 PyObject *resultobj;
11238 wxJoystick *arg1 = (wxJoystick *) 0 ;
11239 bool result;
11240 PyObject * obj0 = 0 ;
11241 char *kwnames[] = {
11242 (char *) "self", NULL
11243 };
11244
11245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = (bool)(arg1)->ReleaseCapture();
11251
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) SWIG_fail;
11254 }
11255 {
11256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11257 }
11258 return resultobj;
11259 fail:
11260 return NULL;
11261}
11262
11263
c370783e 11264static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11265 PyObject *obj;
11266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11267 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11268 Py_INCREF(obj);
11269 return Py_BuildValue((char *)"");
11270}
c370783e 11271static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11272 PyObject *resultobj;
11273 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11274 wxPoint *arg2 = (wxPoint *) 0 ;
11275 PyObject * obj0 = 0 ;
11276 PyObject * obj1 = 0 ;
11277 char *kwnames[] = {
11278 (char *) "self",(char *) "m_pos", NULL
11279 };
11280
11281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11286 if (arg1) (arg1)->m_pos = *arg2;
11287
11288 Py_INCREF(Py_None); resultobj = Py_None;
11289 return resultobj;
11290 fail:
11291 return NULL;
11292}
11293
11294
c370783e 11295static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11296 PyObject *resultobj;
11297 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11298 wxPoint *result;
11299 PyObject * obj0 = 0 ;
11300 char *kwnames[] = {
11301 (char *) "self", NULL
11302 };
11303
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11307 result = (wxPoint *)& ((arg1)->m_pos);
11308
11309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11310 return resultobj;
11311 fail:
11312 return NULL;
11313}
11314
11315
c370783e 11316static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11317 PyObject *resultobj;
11318 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11319 int arg2 ;
11320 PyObject * obj0 = 0 ;
11321 PyObject * obj1 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self",(char *) "m_zPosition", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11329 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11330 if (PyErr_Occurred()) SWIG_fail;
11331 if (arg1) (arg1)->m_zPosition = arg2;
11332
11333 Py_INCREF(Py_None); resultobj = Py_None;
11334 return resultobj;
11335 fail:
11336 return NULL;
11337}
11338
11339
c370783e 11340static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11341 PyObject *resultobj;
11342 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11343 int result;
11344 PyObject * obj0 = 0 ;
11345 char *kwnames[] = {
11346 (char *) "self", NULL
11347 };
11348
11349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11352 result = (int) ((arg1)->m_zPosition);
11353
c370783e 11354 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11355 return resultobj;
11356 fail:
11357 return NULL;
11358}
11359
11360
c370783e 11361static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11362 PyObject *resultobj;
11363 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11364 int arg2 ;
11365 PyObject * obj0 = 0 ;
11366 PyObject * obj1 = 0 ;
11367 char *kwnames[] = {
11368 (char *) "self",(char *) "m_buttonChange", NULL
11369 };
11370
11371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11374 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11375 if (PyErr_Occurred()) SWIG_fail;
11376 if (arg1) (arg1)->m_buttonChange = arg2;
11377
11378 Py_INCREF(Py_None); resultobj = Py_None;
11379 return resultobj;
11380 fail:
11381 return NULL;
11382}
11383
11384
c370783e 11385static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11386 PyObject *resultobj;
11387 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11388 int result;
11389 PyObject * obj0 = 0 ;
11390 char *kwnames[] = {
11391 (char *) "self", NULL
11392 };
11393
11394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11397 result = (int) ((arg1)->m_buttonChange);
11398
c370783e 11399 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11400 return resultobj;
11401 fail:
11402 return NULL;
11403}
11404
11405
c370783e 11406static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11407 PyObject *resultobj;
11408 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11409 int arg2 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 char *kwnames[] = {
11413 (char *) "self",(char *) "m_buttonState", NULL
11414 };
11415
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11419 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11420 if (PyErr_Occurred()) SWIG_fail;
11421 if (arg1) (arg1)->m_buttonState = arg2;
11422
11423 Py_INCREF(Py_None); resultobj = Py_None;
11424 return resultobj;
11425 fail:
11426 return NULL;
11427}
11428
11429
c370783e 11430static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11431 PyObject *resultobj;
11432 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11433 int result;
11434 PyObject * obj0 = 0 ;
11435 char *kwnames[] = {
11436 (char *) "self", NULL
11437 };
11438
11439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11442 result = (int) ((arg1)->m_buttonState);
11443
c370783e 11444 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11445 return resultobj;
11446 fail:
11447 return NULL;
11448}
11449
11450
c370783e 11451static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11452 PyObject *resultobj;
11453 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11454 int arg2 ;
11455 PyObject * obj0 = 0 ;
11456 PyObject * obj1 = 0 ;
11457 char *kwnames[] = {
11458 (char *) "self",(char *) "m_joyStick", NULL
11459 };
11460
11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11464 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11465 if (PyErr_Occurred()) SWIG_fail;
11466 if (arg1) (arg1)->m_joyStick = arg2;
11467
11468 Py_INCREF(Py_None); resultobj = Py_None;
11469 return resultobj;
11470 fail:
11471 return NULL;
11472}
11473
11474
c370783e 11475static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11476 PyObject *resultobj;
11477 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11478 int result;
11479 PyObject * obj0 = 0 ;
11480 char *kwnames[] = {
11481 (char *) "self", NULL
11482 };
11483
11484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11487 result = (int) ((arg1)->m_joyStick);
11488
c370783e 11489 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11490 return resultobj;
11491 fail:
11492 return NULL;
11493}
11494
11495
c370783e 11496static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11497 PyObject *resultobj;
11498 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11499 int arg2 = (int) 0 ;
11500 int arg3 = (int) wxJOYSTICK1 ;
11501 int arg4 = (int) 0 ;
11502 wxJoystickEvent *result;
11503 PyObject * obj0 = 0 ;
11504 PyObject * obj1 = 0 ;
11505 PyObject * obj2 = 0 ;
11506 PyObject * obj3 = 0 ;
11507 char *kwnames[] = {
11508 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11509 };
11510
11511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11512 if (obj0) {
c370783e 11513 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 if (obj1) {
c370783e 11517 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11518 if (PyErr_Occurred()) SWIG_fail;
11519 }
11520 if (obj2) {
c370783e 11521 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 if (obj3) {
c370783e 11525 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11536 return resultobj;
11537 fail:
11538 return NULL;
11539}
11540
11541
c370783e 11542static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11543 PyObject *resultobj;
11544 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11545 wxPoint result;
11546 PyObject * obj0 = 0 ;
11547 char *kwnames[] = {
11548 (char *) "self", NULL
11549 };
11550
11551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11557
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 {
11562 wxPoint * resultptr;
11563 resultptr = new wxPoint((wxPoint &) result);
11564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11565 }
11566 return resultobj;
11567 fail:
11568 return NULL;
11569}
11570
11571
c370783e 11572static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11573 PyObject *resultobj;
11574 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11575 int result;
11576 PyObject * obj0 = 0 ;
11577 char *kwnames[] = {
11578 (char *) "self", NULL
11579 };
11580
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
c370783e 11591 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11592 return resultobj;
11593 fail:
11594 return NULL;
11595}
11596
11597
c370783e 11598static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11599 PyObject *resultobj;
11600 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11601 int result;
11602 PyObject * obj0 = 0 ;
11603 char *kwnames[] = {
11604 (char *) "self", NULL
11605 };
11606
11607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
c370783e 11617 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11618 return resultobj;
11619 fail:
11620 return NULL;
11621}
11622
11623
c370783e 11624static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11625 PyObject *resultobj;
11626 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11627 int result;
11628 PyObject * obj0 = 0 ;
11629 char *kwnames[] = {
11630 (char *) "self", NULL
11631 };
11632
11633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11639
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
c370783e 11643 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11644 return resultobj;
11645 fail:
11646 return NULL;
11647}
11648
11649
c370783e 11650static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11651 PyObject *resultobj;
11652 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11653 int result;
11654 PyObject * obj0 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "self", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
c370783e 11669 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11670 return resultobj;
11671 fail:
11672 return NULL;
11673}
11674
11675
c370783e 11676static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11677 PyObject *resultobj;
11678 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11679 int arg2 ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 char *kwnames[] = {
11683 (char *) "self",(char *) "stick", NULL
11684 };
11685
11686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11689 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11690 if (PyErr_Occurred()) SWIG_fail;
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 (arg1)->SetJoystick(arg2);
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 Py_INCREF(Py_None); resultobj = Py_None;
11699 return resultobj;
11700 fail:
11701 return NULL;
11702}
11703
11704
c370783e 11705static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11706 PyObject *resultobj;
11707 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11708 int arg2 ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 char *kwnames[] = {
11712 (char *) "self",(char *) "state", NULL
11713 };
11714
11715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11718 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11719 if (PyErr_Occurred()) SWIG_fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 (arg1)->SetButtonState(arg2);
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 Py_INCREF(Py_None); resultobj = Py_None;
11728 return resultobj;
11729 fail:
11730 return NULL;
11731}
11732
11733
c370783e 11734static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11735 PyObject *resultobj;
11736 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11737 int arg2 ;
11738 PyObject * obj0 = 0 ;
11739 PyObject * obj1 = 0 ;
11740 char *kwnames[] = {
11741 (char *) "self",(char *) "change", NULL
11742 };
11743
11744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11747 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11748 if (PyErr_Occurred()) SWIG_fail;
11749 {
11750 PyThreadState* __tstate = wxPyBeginAllowThreads();
11751 (arg1)->SetButtonChange(arg2);
11752
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 Py_INCREF(Py_None); resultobj = Py_None;
11757 return resultobj;
11758 fail:
11759 return NULL;
11760}
11761
11762
c370783e 11763static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11764 PyObject *resultobj;
11765 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11766 wxPoint *arg2 = 0 ;
11767 wxPoint temp2 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 char *kwnames[] = {
11771 (char *) "self",(char *) "pos", NULL
11772 };
11773
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11777 {
11778 arg2 = &temp2;
11779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11780 }
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 (arg1)->SetPosition((wxPoint const &)*arg2);
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 Py_INCREF(Py_None); resultobj = Py_None;
11789 return resultobj;
11790 fail:
11791 return NULL;
11792}
11793
11794
c370783e 11795static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11796 PyObject *resultobj;
11797 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11798 int arg2 ;
11799 PyObject * obj0 = 0 ;
11800 PyObject * obj1 = 0 ;
11801 char *kwnames[] = {
11802 (char *) "self",(char *) "zPos", NULL
11803 };
11804
11805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 11808 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11809 if (PyErr_Occurred()) SWIG_fail;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 (arg1)->SetZPosition(arg2);
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 Py_INCREF(Py_None); resultobj = Py_None;
11818 return resultobj;
11819 fail:
11820 return NULL;
11821}
11822
11823
c370783e 11824static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11825 PyObject *resultobj;
11826 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11827 bool result;
11828 PyObject * obj0 = 0 ;
11829 char *kwnames[] = {
11830 (char *) "self", NULL
11831 };
11832
11833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11836 {
11837 PyThreadState* __tstate = wxPyBeginAllowThreads();
11838 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11839
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 {
11844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11845 }
11846 return resultobj;
11847 fail:
11848 return NULL;
11849}
11850
11851
c370783e 11852static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11853 PyObject *resultobj;
11854 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11855 bool result;
11856 PyObject * obj0 = 0 ;
11857 char *kwnames[] = {
11858 (char *) "self", NULL
11859 };
11860
11861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11864 {
11865 PyThreadState* __tstate = wxPyBeginAllowThreads();
11866 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11867
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 {
11872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11873 }
11874 return resultobj;
11875 fail:
11876 return NULL;
11877}
11878
11879
c370783e 11880static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11881 PyObject *resultobj;
11882 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11883 bool result;
11884 PyObject * obj0 = 0 ;
11885 char *kwnames[] = {
11886 (char *) "self", NULL
11887 };
11888
11889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11895
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 {
11900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11901 }
11902 return resultobj;
11903 fail:
11904 return NULL;
11905}
11906
11907
c370783e 11908static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11909 PyObject *resultobj;
11910 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11911 int arg2 = (int) wxJOY_BUTTON_ANY ;
11912 bool result;
11913 PyObject * obj0 = 0 ;
11914 PyObject * obj1 = 0 ;
11915 char *kwnames[] = {
11916 (char *) "self",(char *) "but", NULL
11917 };
11918
11919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11922 if (obj1) {
c370783e 11923 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11935 }
11936 return resultobj;
11937 fail:
11938 return NULL;
11939}
11940
11941
c370783e 11942static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11943 PyObject *resultobj;
11944 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11945 int arg2 = (int) wxJOY_BUTTON_ANY ;
11946 bool result;
11947 PyObject * obj0 = 0 ;
11948 PyObject * obj1 = 0 ;
11949 char *kwnames[] = {
11950 (char *) "self",(char *) "but", NULL
11951 };
11952
11953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11956 if (obj1) {
c370783e 11957 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11958 if (PyErr_Occurred()) SWIG_fail;
11959 }
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11963
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11969 }
11970 return resultobj;
11971 fail:
11972 return NULL;
11973}
11974
11975
c370783e 11976static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11977 PyObject *resultobj;
11978 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11979 int arg2 = (int) wxJOY_BUTTON_ANY ;
11980 bool result;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 char *kwnames[] = {
11984 (char *) "self",(char *) "but", NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11990 if (obj1) {
c370783e 11991 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 {
12002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12003 }
12004 return resultobj;
12005 fail:
12006 return NULL;
12007}
12008
12009
c370783e 12010static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12011 PyObject *obj;
12012 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12013 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
12014 Py_INCREF(obj);
12015 return Py_BuildValue((char *)"");
12016}
c370783e 12017static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12018 PyObject *resultobj;
0346c964
RD
12019 wxString const &arg1_defvalue = wxPyEmptyString ;
12020 wxString *arg1 = (wxString *) &arg1_defvalue ;
d55e5bfc 12021 wxSound *result;
b411df4a 12022 bool temp1 = false ;
d55e5bfc 12023 PyObject * obj0 = 0 ;
0346c964
RD
12024 char *kwnames[] = {
12025 (char *) "fileName", NULL
12026 };
d55e5bfc 12027
0346c964
RD
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
12029 if (obj0) {
12030 {
12031 arg1 = wxString_in_helper(obj0);
12032 if (arg1 == NULL) SWIG_fail;
b411df4a 12033 temp1 = true;
0346c964 12034 }
d55e5bfc
RD
12035 }
12036 {
0439c23b 12037 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 12039 result = (wxSound *)new_wxSound((wxString const &)*arg1);
d55e5bfc
RD
12040
12041 wxPyEndAllowThreads(__tstate);
110da5b0 12042 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12043 }
12044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
12045 {
12046 if (temp1)
12047 delete arg1;
12048 }
12049 return resultobj;
12050 fail:
12051 {
12052 if (temp1)
12053 delete arg1;
12054 }
12055 return NULL;
12056}
12057
12058
c370783e 12059static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 12060 PyObject *resultobj;
0346c964 12061 PyObject *arg1 = (PyObject *) 0 ;
d55e5bfc
RD
12062 wxSound *result;
12063 PyObject * obj0 = 0 ;
0346c964
RD
12064 char *kwnames[] = {
12065 (char *) "data", NULL
12066 };
d55e5bfc 12067
0346c964
RD
12068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
12069 arg1 = obj0;
d55e5bfc 12070 {
0439c23b 12071 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 12073 result = (wxSound *)new_wxSound(arg1);
d55e5bfc
RD
12074
12075 wxPyEndAllowThreads(__tstate);
110da5b0 12076 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12077 }
12078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
12079 return resultobj;
12080 fail:
12081 return NULL;
12082}
12083
12084
c370783e 12085static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12086 PyObject *resultobj;
12087 wxSound *arg1 = (wxSound *) 0 ;
12088 PyObject * obj0 = 0 ;
12089 char *kwnames[] = {
12090 (char *) "self", NULL
12091 };
12092
12093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
12094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12096 {
12097 PyThreadState* __tstate = wxPyBeginAllowThreads();
12098 delete arg1;
12099
12100 wxPyEndAllowThreads(__tstate);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 }
12103 Py_INCREF(Py_None); resultobj = Py_None;
12104 return resultobj;
12105 fail:
12106 return NULL;
12107}
12108
12109
c370783e 12110static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12111 PyObject *resultobj;
12112 wxSound *arg1 = (wxSound *) 0 ;
12113 wxString *arg2 = 0 ;
d55e5bfc 12114 bool result;
b411df4a 12115 bool temp2 = false ;
d55e5bfc
RD
12116 PyObject * obj0 = 0 ;
12117 PyObject * obj1 = 0 ;
0346c964
RD
12118 char *kwnames[] = {
12119 (char *) "self",(char *) "fileName", NULL
12120 };
d55e5bfc 12121
0346c964 12122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12125 {
12126 arg2 = wxString_in_helper(obj1);
12127 if (arg2 == NULL) SWIG_fail;
b411df4a 12128 temp2 = true;
d55e5bfc 12129 }
d55e5bfc
RD
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 12132 result = (bool)(arg1)->Create((wxString const &)*arg2);
d55e5bfc
RD
12133
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12139 }
12140 {
12141 if (temp2)
12142 delete arg2;
12143 }
12144 return resultobj;
12145 fail:
12146 {
12147 if (temp2)
12148 delete arg2;
12149 }
12150 return NULL;
12151}
12152
12153
c370783e 12154static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12155 PyObject *resultobj;
12156 wxSound *arg1 = (wxSound *) 0 ;
0346c964 12157 PyObject *arg2 = (PyObject *) 0 ;
d55e5bfc
RD
12158 bool result;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
0346c964
RD
12161 char *kwnames[] = {
12162 (char *) "self",(char *) "data", NULL
12163 };
d55e5bfc 12164
0346c964 12165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
0346c964 12168 arg2 = obj1;
d55e5bfc
RD
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 12171 result = (bool)wxSound_CreateFromData(arg1,arg2);
d55e5bfc
RD
12172
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 {
12177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12178 }
12179 return resultobj;
12180 fail:
12181 return NULL;
12182}
12183
12184
c370783e 12185static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12186 PyObject *resultobj;
12187 wxSound *arg1 = (wxSound *) 0 ;
12188 bool result;
12189 PyObject * obj0 = 0 ;
12190 char *kwnames[] = {
12191 (char *) "self", NULL
12192 };
12193
12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 result = (bool)(arg1)->IsOk();
12200
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 {
12205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12206 }
12207 return resultobj;
12208 fail:
12209 return NULL;
12210}
12211
12212
c370783e 12213static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12214 PyObject *resultobj;
12215 wxSound *arg1 = (wxSound *) 0 ;
12216 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12217 bool result;
12218 PyObject * obj0 = 0 ;
12219 PyObject * obj1 = 0 ;
0346c964
RD
12220 char *kwnames[] = {
12221 (char *) "self",(char *) "flags", NULL
12222 };
d55e5bfc 12223
0346c964 12224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12227 if (obj1) {
c370783e 12228 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 {
0439c23b 12232 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (bool)((wxSound const *)arg1)->Play(arg2);
12235
12236 wxPyEndAllowThreads(__tstate);
110da5b0 12237 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12238 }
12239 {
12240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12241 }
12242 return resultobj;
12243 fail:
12244 return NULL;
12245}
12246
12247
c370783e 12248static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12249 PyObject *resultobj;
12250 wxString *arg1 = 0 ;
12251 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12252 bool result;
b411df4a 12253 bool temp1 = false ;
d55e5bfc
RD
12254 PyObject * obj0 = 0 ;
12255 PyObject * obj1 = 0 ;
0346c964
RD
12256 char *kwnames[] = {
12257 (char *) "filename",(char *) "flags", NULL
12258 };
d55e5bfc 12259
0346c964 12260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
12261 {
12262 arg1 = wxString_in_helper(obj0);
12263 if (arg1 == NULL) SWIG_fail;
b411df4a 12264 temp1 = true;
d55e5bfc
RD
12265 }
12266 if (obj1) {
c370783e 12267 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 {
0439c23b 12271 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12274
12275 wxPyEndAllowThreads(__tstate);
110da5b0 12276 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12277 }
12278 {
12279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12280 }
12281 {
12282 if (temp1)
12283 delete arg1;
12284 }
12285 return resultobj;
12286 fail:
12287 {
12288 if (temp1)
12289 delete arg1;
12290 }
12291 return NULL;
12292}
12293
12294
c370783e 12295static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12296 PyObject *resultobj;
12297 char *kwnames[] = {
12298 NULL
12299 };
12300
12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12302 {
0439c23b 12303 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 Sound_Stop();
12306
12307 wxPyEndAllowThreads(__tstate);
110da5b0 12308 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
12309 }
12310 Py_INCREF(Py_None); resultobj = Py_None;
12311 return resultobj;
12312 fail:
12313 return NULL;
12314}
12315
12316
c370783e 12317static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12318 PyObject *obj;
12319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12320 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12321 Py_INCREF(obj);
12322 return Py_BuildValue((char *)"");
12323}
c370783e 12324static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12325 PyObject *resultobj;
12326 wxString *arg1 = 0 ;
12327 wxString *arg2 = 0 ;
12328 wxString *arg3 = 0 ;
12329 wxString *arg4 = 0 ;
12330 wxFileTypeInfo *result;
b411df4a
RD
12331 bool temp1 = false ;
12332 bool temp2 = false ;
12333 bool temp3 = false ;
12334 bool temp4 = false ;
d55e5bfc
RD
12335 PyObject * obj0 = 0 ;
12336 PyObject * obj1 = 0 ;
12337 PyObject * obj2 = 0 ;
12338 PyObject * obj3 = 0 ;
12339 char *kwnames[] = {
12340 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12341 };
12342
12343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12344 {
12345 arg1 = wxString_in_helper(obj0);
12346 if (arg1 == NULL) SWIG_fail;
b411df4a 12347 temp1 = true;
d55e5bfc
RD
12348 }
12349 {
12350 arg2 = wxString_in_helper(obj1);
12351 if (arg2 == NULL) SWIG_fail;
b411df4a 12352 temp2 = true;
d55e5bfc
RD
12353 }
12354 {
12355 arg3 = wxString_in_helper(obj2);
12356 if (arg3 == NULL) SWIG_fail;
b411df4a 12357 temp3 = true;
d55e5bfc
RD
12358 }
12359 {
12360 arg4 = wxString_in_helper(obj3);
12361 if (arg4 == NULL) SWIG_fail;
b411df4a 12362 temp4 = true;
d55e5bfc
RD
12363 }
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12372 {
12373 if (temp1)
12374 delete arg1;
12375 }
12376 {
12377 if (temp2)
12378 delete arg2;
12379 }
12380 {
12381 if (temp3)
12382 delete arg3;
12383 }
12384 {
12385 if (temp4)
12386 delete arg4;
12387 }
12388 return resultobj;
12389 fail:
12390 {
12391 if (temp1)
12392 delete arg1;
12393 }
12394 {
12395 if (temp2)
12396 delete arg2;
12397 }
12398 {
12399 if (temp3)
12400 delete arg3;
12401 }
12402 {
12403 if (temp4)
12404 delete arg4;
12405 }
12406 return NULL;
12407}
12408
12409
c370783e 12410static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12411 PyObject *resultobj;
12412 wxArrayString *arg1 = 0 ;
12413 wxFileTypeInfo *result;
b411df4a 12414 bool temp1 = false ;
d55e5bfc
RD
12415 PyObject * obj0 = 0 ;
12416 char *kwnames[] = {
12417 (char *) "sArray", NULL
12418 };
12419
12420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12421 {
12422 if (! PySequence_Check(obj0)) {
12423 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12424 SWIG_fail;
12425 }
12426 arg1 = new wxArrayString;
b411df4a 12427 temp1 = true;
d55e5bfc
RD
12428 int i, len=PySequence_Length(obj0);
12429 for (i=0; i<len; i++) {
12430 PyObject* item = PySequence_GetItem(obj0, i);
12431#if wxUSE_UNICODE
12432 PyObject* str = PyObject_Unicode(item);
12433#else
12434 PyObject* str = PyObject_Str(item);
12435#endif
12436 if (PyErr_Occurred()) SWIG_fail;
12437 arg1->Add(Py2wxString(str));
12438 Py_DECREF(item);
12439 Py_DECREF(str);
12440 }
12441 }
12442 {
12443 PyThreadState* __tstate = wxPyBeginAllowThreads();
12444 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12445
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12450 {
12451 if (temp1) delete arg1;
12452 }
12453 return resultobj;
12454 fail:
12455 {
12456 if (temp1) delete arg1;
12457 }
12458 return NULL;
12459}
12460
12461
c370783e 12462static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12463 PyObject *resultobj;
12464 wxFileTypeInfo *result;
12465 char *kwnames[] = {
12466 NULL
12467 };
12468
12469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12478 return resultobj;
12479 fail:
12480 return NULL;
12481}
12482
12483
c370783e 12484static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12485 PyObject *resultobj;
12486 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12487 bool result;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 {
12504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12505 }
12506 return resultobj;
12507 fail:
12508 return NULL;
12509}
12510
12511
c370783e 12512static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12513 PyObject *resultobj;
12514 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12515 wxString *arg2 = 0 ;
12516 int arg3 = (int) 0 ;
b411df4a 12517 bool temp2 = false ;
d55e5bfc
RD
12518 PyObject * obj0 = 0 ;
12519 PyObject * obj1 = 0 ;
12520 PyObject * obj2 = 0 ;
12521 char *kwnames[] = {
12522 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12523 };
12524
12525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12528 {
12529 arg2 = wxString_in_helper(obj1);
12530 if (arg2 == NULL) SWIG_fail;
b411df4a 12531 temp2 = true;
d55e5bfc
RD
12532 }
12533 if (obj2) {
c370783e 12534 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 Py_INCREF(Py_None); resultobj = Py_None;
12545 {
12546 if (temp2)
12547 delete arg2;
12548 }
12549 return resultobj;
12550 fail:
12551 {
12552 if (temp2)
12553 delete arg2;
12554 }
12555 return NULL;
12556}
12557
12558
c370783e 12559static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12560 PyObject *resultobj;
12561 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12562 wxString *arg2 = 0 ;
b411df4a 12563 bool temp2 = false ;
d55e5bfc
RD
12564 PyObject * obj0 = 0 ;
12565 PyObject * obj1 = 0 ;
12566 char *kwnames[] = {
12567 (char *) "self",(char *) "shortDesc", NULL
12568 };
12569
12570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12573 {
12574 arg2 = wxString_in_helper(obj1);
12575 if (arg2 == NULL) SWIG_fail;
b411df4a 12576 temp2 = true;
d55e5bfc
RD
12577 }
12578 {
12579 PyThreadState* __tstate = wxPyBeginAllowThreads();
12580 (arg1)->SetShortDesc((wxString const &)*arg2);
12581
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 Py_INCREF(Py_None); resultobj = Py_None;
12586 {
12587 if (temp2)
12588 delete arg2;
12589 }
12590 return resultobj;
12591 fail:
12592 {
12593 if (temp2)
12594 delete arg2;
12595 }
12596 return NULL;
12597}
12598
12599
c370783e 12600static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12601 PyObject *resultobj;
12602 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12603 wxString *result;
12604 PyObject * obj0 = 0 ;
12605 char *kwnames[] = {
12606 (char *) "self", NULL
12607 };
12608
12609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 {
12615 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12616 result = (wxString *) &_result_ref;
12617 }
12618
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 {
12623#if wxUSE_UNICODE
12624 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12625#else
12626 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12627#endif
12628 }
12629 return resultobj;
12630 fail:
12631 return NULL;
12632}
12633
12634
c370783e 12635static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12636 PyObject *resultobj;
12637 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12638 wxString *result;
12639 PyObject * obj0 = 0 ;
12640 char *kwnames[] = {
12641 (char *) "self", NULL
12642 };
12643
12644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 {
12650 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12651 result = (wxString *) &_result_ref;
12652 }
12653
12654 wxPyEndAllowThreads(__tstate);
12655 if (PyErr_Occurred()) SWIG_fail;
12656 }
12657 {
12658#if wxUSE_UNICODE
12659 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12660#else
12661 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12662#endif
12663 }
12664 return resultobj;
12665 fail:
12666 return NULL;
12667}
12668
12669
c370783e 12670static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12671 PyObject *resultobj;
12672 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12673 wxString *result;
12674 PyObject * obj0 = 0 ;
12675 char *kwnames[] = {
12676 (char *) "self", NULL
12677 };
12678
12679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 {
12685 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12686 result = (wxString *) &_result_ref;
12687 }
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 {
12693#if wxUSE_UNICODE
12694 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12695#else
12696 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12697#endif
12698 }
12699 return resultobj;
12700 fail:
12701 return NULL;
12702}
12703
12704
c370783e 12705static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12706 PyObject *resultobj;
12707 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12708 wxString *result;
12709 PyObject * obj0 = 0 ;
12710 char *kwnames[] = {
12711 (char *) "self", NULL
12712 };
12713
12714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 {
12720 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12721 result = (wxString *) &_result_ref;
12722 }
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728#if wxUSE_UNICODE
12729 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12730#else
12731 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12732#endif
12733 }
12734 return resultobj;
12735 fail:
12736 return NULL;
12737}
12738
12739
c370783e 12740static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12741 PyObject *resultobj;
12742 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12743 wxString *result;
12744 PyObject * obj0 = 0 ;
12745 char *kwnames[] = {
12746 (char *) "self", NULL
12747 };
12748
12749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12752 {
12753 PyThreadState* __tstate = wxPyBeginAllowThreads();
12754 {
12755 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12756 result = (wxString *) &_result_ref;
12757 }
12758
12759 wxPyEndAllowThreads(__tstate);
12760 if (PyErr_Occurred()) SWIG_fail;
12761 }
12762 {
12763#if wxUSE_UNICODE
12764 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12765#else
12766 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12767#endif
12768 }
12769 return resultobj;
12770 fail:
12771 return NULL;
12772}
12773
12774
c370783e 12775static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12776 PyObject *resultobj;
12777 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12778 wxArrayString *result;
12779 PyObject * obj0 = 0 ;
12780 char *kwnames[] = {
12781 (char *) "self", NULL
12782 };
12783
12784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12787 {
12788 PyThreadState* __tstate = wxPyBeginAllowThreads();
12789 {
12790 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12791 result = (wxArrayString *) &_result_ref;
12792 }
12793
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 {
12798 resultobj = wxArrayString2PyList_helper(*result);
12799 }
12800 return resultobj;
12801 fail:
12802 return NULL;
12803}
12804
12805
c370783e 12806static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12807 PyObject *resultobj;
12808 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12809 int result;
12810 PyObject * obj0 = 0 ;
12811 char *kwnames[] = {
12812 (char *) "self", NULL
12813 };
12814
12815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12821
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
c370783e 12825 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12826 return resultobj;
12827 fail:
12828 return NULL;
12829}
12830
12831
c370783e 12832static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12833 PyObject *resultobj;
12834 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12835 wxString *result;
12836 PyObject * obj0 = 0 ;
12837 char *kwnames[] = {
12838 (char *) "self", NULL
12839 };
12840
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12844 {
12845 PyThreadState* __tstate = wxPyBeginAllowThreads();
12846 {
12847 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12848 result = (wxString *) &_result_ref;
12849 }
12850
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 {
12855#if wxUSE_UNICODE
12856 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12857#else
12858 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12859#endif
12860 }
12861 return resultobj;
12862 fail:
12863 return NULL;
12864}
12865
12866
c370783e 12867static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12868 PyObject *resultobj;
12869 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12870 int result;
12871 PyObject * obj0 = 0 ;
12872 char *kwnames[] = {
12873 (char *) "self", NULL
12874 };
12875
12876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12879 {
12880 PyThreadState* __tstate = wxPyBeginAllowThreads();
12881 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12882
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
c370783e 12886 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12887 return resultobj;
12888 fail:
12889 return NULL;
12890}
12891
12892
c370783e 12893static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12894 PyObject *obj;
12895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12896 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12897 Py_INCREF(obj);
12898 return Py_BuildValue((char *)"");
12899}
c370783e 12900static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12901 PyObject *resultobj;
12902 wxFileTypeInfo *arg1 = 0 ;
12903 wxFileType *result;
12904 PyObject * obj0 = 0 ;
12905 char *kwnames[] = {
12906 (char *) "ftInfo", NULL
12907 };
12908
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12911 SWIG_POINTER_EXCEPTION | 0)) == -1)
12912 SWIG_fail;
12913 if (arg1 == NULL) {
12914 PyErr_SetString(PyExc_TypeError,"null reference");
12915 SWIG_fail;
12916 }
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12920
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12925 return resultobj;
12926 fail:
12927 return NULL;
12928}
12929
12930
c370783e 12931static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12932 PyObject *resultobj;
12933 wxFileType *arg1 = (wxFileType *) 0 ;
12934 PyObject * obj0 = 0 ;
12935 char *kwnames[] = {
12936 (char *) "self", NULL
12937 };
12938
12939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 delete arg1;
12945
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 Py_INCREF(Py_None); resultobj = Py_None;
12950 return resultobj;
12951 fail:
12952 return NULL;
12953}
12954
12955
c370783e 12956static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12957 PyObject *resultobj;
12958 wxFileType *arg1 = (wxFileType *) 0 ;
12959 PyObject *result;
12960 PyObject * obj0 = 0 ;
12961 char *kwnames[] = {
12962 (char *) "self", NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (PyObject *)wxFileType_GetMimeType(arg1);
12971
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 resultobj = result;
12976 return resultobj;
12977 fail:
12978 return NULL;
12979}
12980
12981
c370783e 12982static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12983 PyObject *resultobj;
12984 wxFileType *arg1 = (wxFileType *) 0 ;
12985 PyObject *result;
12986 PyObject * obj0 = 0 ;
12987 char *kwnames[] = {
12988 (char *) "self", NULL
12989 };
12990
12991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12994 {
12995 PyThreadState* __tstate = wxPyBeginAllowThreads();
12996 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12997
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 resultobj = result;
13002 return resultobj;
13003 fail:
13004 return NULL;
13005}
13006
13007
c370783e 13008static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13009 PyObject *resultobj;
13010 wxFileType *arg1 = (wxFileType *) 0 ;
13011 PyObject *result;
13012 PyObject * obj0 = 0 ;
13013 char *kwnames[] = {
13014 (char *) "self", NULL
13015 };
13016
13017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
13018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 result = (PyObject *)wxFileType_GetExtensions(arg1);
13023
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 resultobj = result;
13028 return resultobj;
13029 fail:
13030 return NULL;
13031}
13032
13033
c370783e 13034static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13035 PyObject *resultobj;
13036 wxFileType *arg1 = (wxFileType *) 0 ;
13037 wxIcon *result;
13038 PyObject * obj0 = 0 ;
13039 char *kwnames[] = {
13040 (char *) "self", NULL
13041 };
13042
13043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
13044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = (wxIcon *)wxFileType_GetIcon(arg1);
13049
13050 wxPyEndAllowThreads(__tstate);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
13054 return resultobj;
13055 fail:
13056 return NULL;
13057}
13058
13059
c370783e 13060static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13061 PyObject *resultobj;
13062 wxFileType *arg1 = (wxFileType *) 0 ;
13063 PyObject *result;
13064 PyObject * obj0 = 0 ;
13065 char *kwnames[] = {
13066 (char *) "self", NULL
13067 };
13068
13069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
13070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13072 {
13073 PyThreadState* __tstate = wxPyBeginAllowThreads();
13074 result = (PyObject *)wxFileType_GetIconInfo(arg1);
13075
13076 wxPyEndAllowThreads(__tstate);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 resultobj = result;
13080 return resultobj;
13081 fail:
13082 return NULL;
13083}
13084
13085
c370783e 13086static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13087 PyObject *resultobj;
13088 wxFileType *arg1 = (wxFileType *) 0 ;
13089 PyObject *result;
13090 PyObject * obj0 = 0 ;
13091 char *kwnames[] = {
13092 (char *) "self", NULL
13093 };
13094
13095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
13096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (PyObject *)wxFileType_GetDescription(arg1);
13101
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 resultobj = result;
13106 return resultobj;
13107 fail:
13108 return NULL;
13109}
13110
13111
c370783e 13112static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13113 PyObject *resultobj;
13114 wxFileType *arg1 = (wxFileType *) 0 ;
13115 wxString *arg2 = 0 ;
13116 wxString const &arg3_defvalue = wxPyEmptyString ;
13117 wxString *arg3 = (wxString *) &arg3_defvalue ;
13118 PyObject *result;
b411df4a
RD
13119 bool temp2 = false ;
13120 bool temp3 = false ;
d55e5bfc
RD
13121 PyObject * obj0 = 0 ;
13122 PyObject * obj1 = 0 ;
13123 PyObject * obj2 = 0 ;
13124 char *kwnames[] = {
13125 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13126 };
13127
13128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13131 {
13132 arg2 = wxString_in_helper(obj1);
13133 if (arg2 == NULL) SWIG_fail;
b411df4a 13134 temp2 = true;
d55e5bfc
RD
13135 }
13136 if (obj2) {
13137 {
13138 arg3 = wxString_in_helper(obj2);
13139 if (arg3 == NULL) SWIG_fail;
b411df4a 13140 temp3 = true;
d55e5bfc
RD
13141 }
13142 }
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13146
13147 wxPyEndAllowThreads(__tstate);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 resultobj = result;
13151 {
13152 if (temp2)
13153 delete arg2;
13154 }
13155 {
13156 if (temp3)
13157 delete arg3;
13158 }
13159 return resultobj;
13160 fail:
13161 {
13162 if (temp2)
13163 delete arg2;
13164 }
13165 {
13166 if (temp3)
13167 delete arg3;
13168 }
13169 return NULL;
13170}
13171
13172
c370783e 13173static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13174 PyObject *resultobj;
13175 wxFileType *arg1 = (wxFileType *) 0 ;
13176 wxString *arg2 = 0 ;
13177 wxString const &arg3_defvalue = wxPyEmptyString ;
13178 wxString *arg3 = (wxString *) &arg3_defvalue ;
13179 PyObject *result;
b411df4a
RD
13180 bool temp2 = false ;
13181 bool temp3 = false ;
d55e5bfc
RD
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 PyObject * obj2 = 0 ;
13185 char *kwnames[] = {
13186 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13187 };
13188
13189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13192 {
13193 arg2 = wxString_in_helper(obj1);
13194 if (arg2 == NULL) SWIG_fail;
b411df4a 13195 temp2 = true;
d55e5bfc
RD
13196 }
13197 if (obj2) {
13198 {
13199 arg3 = wxString_in_helper(obj2);
13200 if (arg3 == NULL) SWIG_fail;
b411df4a 13201 temp3 = true;
d55e5bfc
RD
13202 }
13203 }
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 resultobj = result;
13212 {
13213 if (temp2)
13214 delete arg2;
13215 }
13216 {
13217 if (temp3)
13218 delete arg3;
13219 }
13220 return resultobj;
13221 fail:
13222 {
13223 if (temp2)
13224 delete arg2;
13225 }
13226 {
13227 if (temp3)
13228 delete arg3;
13229 }
13230 return NULL;
13231}
13232
13233
c370783e 13234static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13235 PyObject *resultobj;
13236 wxFileType *arg1 = (wxFileType *) 0 ;
13237 wxString *arg2 = 0 ;
13238 wxString const &arg3_defvalue = wxPyEmptyString ;
13239 wxString *arg3 = (wxString *) &arg3_defvalue ;
13240 PyObject *result;
b411df4a
RD
13241 bool temp2 = false ;
13242 bool temp3 = false ;
d55e5bfc
RD
13243 PyObject * obj0 = 0 ;
13244 PyObject * obj1 = 0 ;
13245 PyObject * obj2 = 0 ;
13246 char *kwnames[] = {
13247 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13248 };
13249
13250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13253 {
13254 arg2 = wxString_in_helper(obj1);
13255 if (arg2 == NULL) SWIG_fail;
b411df4a 13256 temp2 = true;
d55e5bfc
RD
13257 }
13258 if (obj2) {
13259 {
13260 arg3 = wxString_in_helper(obj2);
13261 if (arg3 == NULL) SWIG_fail;
b411df4a 13262 temp3 = true;
d55e5bfc
RD
13263 }
13264 }
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13268
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 resultobj = result;
13273 {
13274 if (temp2)
13275 delete arg2;
13276 }
13277 {
13278 if (temp3)
13279 delete arg3;
13280 }
13281 return resultobj;
13282 fail:
13283 {
13284 if (temp2)
13285 delete arg2;
13286 }
13287 {
13288 if (temp3)
13289 delete arg3;
13290 }
13291 return NULL;
13292}
13293
13294
c370783e 13295static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13296 PyObject *resultobj;
13297 wxFileType *arg1 = (wxFileType *) 0 ;
13298 wxString *arg2 = 0 ;
13299 wxString *arg3 = 0 ;
b411df4a 13300 bool arg4 = (bool) true ;
d55e5bfc 13301 bool result;
b411df4a
RD
13302 bool temp2 = false ;
13303 bool temp3 = false ;
d55e5bfc
RD
13304 PyObject * obj0 = 0 ;
13305 PyObject * obj1 = 0 ;
13306 PyObject * obj2 = 0 ;
13307 PyObject * obj3 = 0 ;
13308 char *kwnames[] = {
13309 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13310 };
13311
13312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13315 {
13316 arg2 = wxString_in_helper(obj1);
13317 if (arg2 == NULL) SWIG_fail;
b411df4a 13318 temp2 = true;
d55e5bfc
RD
13319 }
13320 {
13321 arg3 = wxString_in_helper(obj2);
13322 if (arg3 == NULL) SWIG_fail;
b411df4a 13323 temp3 = true;
d55e5bfc
RD
13324 }
13325 if (obj3) {
c370783e 13326 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13332
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 {
13337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13338 }
13339 {
13340 if (temp2)
13341 delete arg2;
13342 }
13343 {
13344 if (temp3)
13345 delete arg3;
13346 }
13347 return resultobj;
13348 fail:
13349 {
13350 if (temp2)
13351 delete arg2;
13352 }
13353 {
13354 if (temp3)
13355 delete arg3;
13356 }
13357 return NULL;
13358}
13359
13360
c370783e 13361static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13362 PyObject *resultobj;
13363 wxFileType *arg1 = (wxFileType *) 0 ;
13364 wxString const &arg2_defvalue = wxPyEmptyString ;
13365 wxString *arg2 = (wxString *) &arg2_defvalue ;
13366 int arg3 = (int) 0 ;
13367 bool result;
b411df4a 13368 bool temp2 = false ;
d55e5bfc
RD
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 PyObject * obj2 = 0 ;
13372 char *kwnames[] = {
13373 (char *) "self",(char *) "cmd",(char *) "index", NULL
13374 };
13375
13376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13379 if (obj1) {
13380 {
13381 arg2 = wxString_in_helper(obj1);
13382 if (arg2 == NULL) SWIG_fail;
b411df4a 13383 temp2 = true;
d55e5bfc
RD
13384 }
13385 }
13386 if (obj2) {
c370783e 13387 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13393
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 {
13398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13399 }
13400 {
13401 if (temp2)
13402 delete arg2;
13403 }
13404 return resultobj;
13405 fail:
13406 {
13407 if (temp2)
13408 delete arg2;
13409 }
13410 return NULL;
13411}
13412
13413
c370783e 13414static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13415 PyObject *resultobj;
13416 wxFileType *arg1 = (wxFileType *) 0 ;
13417 bool result;
13418 PyObject * obj0 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = (bool)(arg1)->Unassociate();
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13435 }
13436 return resultobj;
13437 fail:
13438 return NULL;
13439}
13440
13441
c370783e 13442static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13443 PyObject *resultobj;
13444 wxString *arg1 = 0 ;
13445 wxString *arg2 = 0 ;
13446 wxString const &arg3_defvalue = wxPyEmptyString ;
13447 wxString *arg3 = (wxString *) &arg3_defvalue ;
13448 wxString result;
b411df4a
RD
13449 bool temp1 = false ;
13450 bool temp2 = false ;
13451 bool temp3 = false ;
d55e5bfc
RD
13452 PyObject * obj0 = 0 ;
13453 PyObject * obj1 = 0 ;
13454 PyObject * obj2 = 0 ;
13455 char *kwnames[] = {
13456 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13457 };
13458
13459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13460 {
13461 arg1 = wxString_in_helper(obj0);
13462 if (arg1 == NULL) SWIG_fail;
b411df4a 13463 temp1 = true;
d55e5bfc
RD
13464 }
13465 {
13466 arg2 = wxString_in_helper(obj1);
13467 if (arg2 == NULL) SWIG_fail;
b411df4a 13468 temp2 = true;
d55e5bfc
RD
13469 }
13470 if (obj2) {
13471 {
13472 arg3 = wxString_in_helper(obj2);
13473 if (arg3 == NULL) SWIG_fail;
b411df4a 13474 temp3 = true;
d55e5bfc
RD
13475 }
13476 }
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13480
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 {
13485#if wxUSE_UNICODE
13486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13487#else
13488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13489#endif
13490 }
13491 {
13492 if (temp1)
13493 delete arg1;
13494 }
13495 {
13496 if (temp2)
13497 delete arg2;
13498 }
13499 {
13500 if (temp3)
13501 delete arg3;
13502 }
13503 return resultobj;
13504 fail:
13505 {
13506 if (temp1)
13507 delete arg1;
13508 }
13509 {
13510 if (temp2)
13511 delete arg2;
13512 }
13513 {
13514 if (temp3)
13515 delete arg3;
13516 }
13517 return NULL;
13518}
13519
13520
c370783e 13521static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13522 PyObject *obj;
13523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13524 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13525 Py_INCREF(obj);
13526 return Py_BuildValue((char *)"");
13527}
c370783e 13528static int _wrap_TheMimeTypesManager_set(PyObject *) {
d55e5bfc
RD
13529 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13530 return 1;
13531}
13532
13533
13534static PyObject *_wrap_TheMimeTypesManager_get() {
13535 PyObject *pyobj;
13536
13537 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13538 return pyobj;
13539}
13540
13541
c370783e 13542static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13543 PyObject *resultobj;
13544 wxString *arg1 = 0 ;
13545 wxString *arg2 = 0 ;
13546 bool result;
b411df4a
RD
13547 bool temp1 = false ;
13548 bool temp2 = false ;
d55e5bfc
RD
13549 PyObject * obj0 = 0 ;
13550 PyObject * obj1 = 0 ;
13551 char *kwnames[] = {
13552 (char *) "mimeType",(char *) "wildcard", NULL
13553 };
13554
13555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13556 {
13557 arg1 = wxString_in_helper(obj0);
13558 if (arg1 == NULL) SWIG_fail;
b411df4a 13559 temp1 = true;
d55e5bfc
RD
13560 }
13561 {
13562 arg2 = wxString_in_helper(obj1);
13563 if (arg2 == NULL) SWIG_fail;
b411df4a 13564 temp2 = true;
d55e5bfc
RD
13565 }
13566 {
13567 PyThreadState* __tstate = wxPyBeginAllowThreads();
13568 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13569
13570 wxPyEndAllowThreads(__tstate);
13571 if (PyErr_Occurred()) SWIG_fail;
13572 }
13573 {
13574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13575 }
13576 {
13577 if (temp1)
13578 delete arg1;
13579 }
13580 {
13581 if (temp2)
13582 delete arg2;
13583 }
13584 return resultobj;
13585 fail:
13586 {
13587 if (temp1)
13588 delete arg1;
13589 }
13590 {
13591 if (temp2)
13592 delete arg2;
13593 }
13594 return NULL;
13595}
13596
13597
c370783e 13598static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13599 PyObject *resultobj;
13600 wxMimeTypesManager *result;
13601 char *kwnames[] = {
13602 NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13614 return resultobj;
13615 fail:
13616 return NULL;
13617}
13618
13619
c370783e 13620static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13621 PyObject *resultobj;
13622 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13623 int arg2 = (int) wxMAILCAP_ALL ;
13624 wxString const &arg3_defvalue = wxPyEmptyString ;
13625 wxString *arg3 = (wxString *) &arg3_defvalue ;
b411df4a 13626 bool temp3 = false ;
d55e5bfc
RD
13627 PyObject * obj0 = 0 ;
13628 PyObject * obj1 = 0 ;
13629 PyObject * obj2 = 0 ;
13630 char *kwnames[] = {
13631 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13632 };
13633
13634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13637 if (obj1) {
c370783e 13638 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13639 if (PyErr_Occurred()) SWIG_fail;
13640 }
13641 if (obj2) {
13642 {
13643 arg3 = wxString_in_helper(obj2);
13644 if (arg3 == NULL) SWIG_fail;
b411df4a 13645 temp3 = true;
d55e5bfc
RD
13646 }
13647 }
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13651
13652 wxPyEndAllowThreads(__tstate);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 Py_INCREF(Py_None); resultobj = Py_None;
13656 {
13657 if (temp3)
13658 delete arg3;
13659 }
13660 return resultobj;
13661 fail:
13662 {
13663 if (temp3)
13664 delete arg3;
13665 }
13666 return NULL;
13667}
13668
13669
c370783e 13670static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13671 PyObject *resultobj;
13672 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13673 PyObject * obj0 = 0 ;
13674 char *kwnames[] = {
13675 (char *) "self", NULL
13676 };
13677
13678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->ClearData();
13684
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 Py_INCREF(Py_None); resultobj = Py_None;
13689 return resultobj;
13690 fail:
13691 return NULL;
13692}
13693
13694
c370783e 13695static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13696 PyObject *resultobj;
13697 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13698 wxString *arg2 = 0 ;
13699 wxFileType *result;
b411df4a 13700 bool temp2 = false ;
d55e5bfc
RD
13701 PyObject * obj0 = 0 ;
13702 PyObject * obj1 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self",(char *) "ext", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13710 {
13711 arg2 = wxString_in_helper(obj1);
13712 if (arg2 == NULL) SWIG_fail;
b411df4a 13713 temp2 = true;
d55e5bfc
RD
13714 }
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13718
13719 wxPyEndAllowThreads(__tstate);
13720 if (PyErr_Occurred()) SWIG_fail;
13721 }
13722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13723 {
13724 if (temp2)
13725 delete arg2;
13726 }
13727 return resultobj;
13728 fail:
13729 {
13730 if (temp2)
13731 delete arg2;
13732 }
13733 return NULL;
13734}
13735
13736
c370783e 13737static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13738 PyObject *resultobj;
13739 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13740 wxString *arg2 = 0 ;
13741 wxFileType *result;
b411df4a 13742 bool temp2 = false ;
d55e5bfc
RD
13743 PyObject * obj0 = 0 ;
13744 PyObject * obj1 = 0 ;
13745 char *kwnames[] = {
13746 (char *) "self",(char *) "mimeType", NULL
13747 };
13748
13749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13752 {
13753 arg2 = wxString_in_helper(obj1);
13754 if (arg2 == NULL) SWIG_fail;
b411df4a 13755 temp2 = true;
d55e5bfc
RD
13756 }
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13760
13761 wxPyEndAllowThreads(__tstate);
13762 if (PyErr_Occurred()) SWIG_fail;
13763 }
13764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13765 {
13766 if (temp2)
13767 delete arg2;
13768 }
13769 return resultobj;
13770 fail:
13771 {
13772 if (temp2)
13773 delete arg2;
13774 }
13775 return NULL;
13776}
13777
13778
c370783e 13779static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13780 PyObject *resultobj;
13781 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13782 wxString *arg2 = 0 ;
b411df4a 13783 bool arg3 = (bool) false ;
d55e5bfc 13784 bool result;
b411df4a 13785 bool temp2 = false ;
d55e5bfc
RD
13786 PyObject * obj0 = 0 ;
13787 PyObject * obj1 = 0 ;
13788 PyObject * obj2 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13796 {
13797 arg2 = wxString_in_helper(obj1);
13798 if (arg2 == NULL) SWIG_fail;
b411df4a 13799 temp2 = true;
d55e5bfc
RD
13800 }
13801 if (obj2) {
c370783e 13802 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13808
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 {
13813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13814 }
13815 {
13816 if (temp2)
13817 delete arg2;
13818 }
13819 return resultobj;
13820 fail:
13821 {
13822 if (temp2)
13823 delete arg2;
13824 }
13825 return NULL;
13826}
13827
13828
c370783e 13829static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13830 PyObject *resultobj;
13831 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13832 wxString *arg2 = 0 ;
13833 bool result;
b411df4a 13834 bool temp2 = false ;
d55e5bfc
RD
13835 PyObject * obj0 = 0 ;
13836 PyObject * obj1 = 0 ;
13837 char *kwnames[] = {
13838 (char *) "self",(char *) "filename", NULL
13839 };
13840
13841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13844 {
13845 arg2 = wxString_in_helper(obj1);
13846 if (arg2 == NULL) SWIG_fail;
b411df4a 13847 temp2 = true;
d55e5bfc
RD
13848 }
13849 {
13850 PyThreadState* __tstate = wxPyBeginAllowThreads();
13851 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13852
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 {
13857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13858 }
13859 {
13860 if (temp2)
13861 delete arg2;
13862 }
13863 return resultobj;
13864 fail:
13865 {
13866 if (temp2)
13867 delete arg2;
13868 }
13869 return NULL;
13870}
13871
13872
c370783e 13873static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13874 PyObject *resultobj;
13875 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13876 PyObject *result;
13877 PyObject * obj0 = 0 ;
13878 char *kwnames[] = {
13879 (char *) "self", NULL
13880 };
13881
13882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13888
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 resultobj = result;
13893 return resultobj;
13894 fail:
13895 return NULL;
13896}
13897
13898
c370783e 13899static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13900 PyObject *resultobj;
13901 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13902 wxFileTypeInfo *arg2 = 0 ;
13903 PyObject * obj0 = 0 ;
13904 PyObject * obj1 = 0 ;
13905 char *kwnames[] = {
13906 (char *) "self",(char *) "ft", NULL
13907 };
13908
13909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13913 SWIG_POINTER_EXCEPTION | 0)) == -1)
13914 SWIG_fail;
13915 if (arg2 == NULL) {
13916 PyErr_SetString(PyExc_TypeError,"null reference");
13917 SWIG_fail;
13918 }
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13922
13923 wxPyEndAllowThreads(__tstate);
13924 if (PyErr_Occurred()) SWIG_fail;
13925 }
13926 Py_INCREF(Py_None); resultobj = Py_None;
13927 return resultobj;
13928 fail:
13929 return NULL;
13930}
13931
13932
c370783e 13933static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13934 PyObject *resultobj;
13935 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13936 wxFileTypeInfo *arg2 = 0 ;
13937 wxFileType *result;
13938 PyObject * obj0 = 0 ;
13939 PyObject * obj1 = 0 ;
13940 char *kwnames[] = {
13941 (char *) "self",(char *) "ftInfo", NULL
13942 };
13943
13944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13948 SWIG_POINTER_EXCEPTION | 0)) == -1)
13949 SWIG_fail;
13950 if (arg2 == NULL) {
13951 PyErr_SetString(PyExc_TypeError,"null reference");
13952 SWIG_fail;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13962 return resultobj;
13963 fail:
13964 return NULL;
13965}
13966
13967
c370783e 13968static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13969 PyObject *resultobj;
13970 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13971 wxFileType *arg2 = (wxFileType *) 0 ;
13972 bool result;
13973 PyObject * obj0 = 0 ;
13974 PyObject * obj1 = 0 ;
13975 char *kwnames[] = {
13976 (char *) "self",(char *) "ft", NULL
13977 };
13978
13979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (bool)(arg1)->Unassociate(arg2);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 {
13992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13993 }
13994 return resultobj;
13995 fail:
13996 return NULL;
13997}
13998
13999
c370783e 14000static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14001 PyObject *resultobj;
14002 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
14003 PyObject * obj0 = 0 ;
14004 char *kwnames[] = {
14005 (char *) "self", NULL
14006 };
14007
14008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
14009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
14010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 delete arg1;
14014
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 Py_INCREF(Py_None); resultobj = Py_None;
14019 return resultobj;
14020 fail:
14021 return NULL;
14022}
14023
14024
c370783e 14025static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
14026 PyObject *obj;
14027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14028 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
14029 Py_INCREF(obj);
14030 return Py_BuildValue((char *)"");
14031}
c370783e 14032static int _wrap_ART_TOOLBAR_set(PyObject *) {
d55e5bfc
RD
14033 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
14034 return 1;
14035}
14036
14037
14038static PyObject *_wrap_ART_TOOLBAR_get() {
14039 PyObject *pyobj;
14040
14041 {
14042#if wxUSE_UNICODE
14043 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
14044#else
14045 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
14046#endif
14047 }
14048 return pyobj;
14049}
14050
14051
c370783e 14052static int _wrap_ART_MENU_set(PyObject *) {
d55e5bfc
RD
14053 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
14054 return 1;
14055}
14056
14057
14058static PyObject *_wrap_ART_MENU_get() {
14059 PyObject *pyobj;
14060
14061 {
14062#if wxUSE_UNICODE
14063 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
14064#else
14065 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
14066#endif
14067 }
14068 return pyobj;
14069}
14070
14071
c370783e 14072static int _wrap_ART_FRAME_ICON_set(PyObject *) {
d55e5bfc
RD
14073 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
14074 return 1;
14075}
14076
14077
14078static PyObject *_wrap_ART_FRAME_ICON_get() {
14079 PyObject *pyobj;
14080
14081 {
14082#if wxUSE_UNICODE
14083 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
14084#else
14085 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
14086#endif
14087 }
14088 return pyobj;
14089}
14090
14091
c370783e 14092static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
d55e5bfc
RD
14093 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
14094 return 1;
14095}
14096
14097
14098static PyObject *_wrap_ART_CMN_DIALOG_get() {
14099 PyObject *pyobj;
14100
14101 {
14102#if wxUSE_UNICODE
14103 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14104#else
14105 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14106#endif
14107 }
14108 return pyobj;
14109}
14110
14111
c370783e 14112static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
d55e5bfc
RD
14113 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
14114 return 1;
14115}
14116
14117
14118static PyObject *_wrap_ART_HELP_BROWSER_get() {
14119 PyObject *pyobj;
14120
14121 {
14122#if wxUSE_UNICODE
14123 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14124#else
14125 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14126#endif
14127 }
14128 return pyobj;
14129}
14130
14131
c370783e 14132static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
d55e5bfc
RD
14133 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14134 return 1;
14135}
14136
14137
14138static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14139 PyObject *pyobj;
14140
14141 {
14142#if wxUSE_UNICODE
14143 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14144#else
14145 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14146#endif
14147 }
14148 return pyobj;
14149}
14150
14151
c370783e 14152static int _wrap_ART_BUTTON_set(PyObject *) {
4cf4100f
RD
14153 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14154 return 1;
14155}
14156
14157
14158static PyObject *_wrap_ART_BUTTON_get() {
14159 PyObject *pyobj;
14160
14161 {
14162#if wxUSE_UNICODE
14163 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14164#else
14165 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14166#endif
14167 }
14168 return pyobj;
14169}
14170
14171
c370783e 14172static int _wrap_ART_OTHER_set(PyObject *) {
d55e5bfc
RD
14173 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14174 return 1;
14175}
14176
14177
14178static PyObject *_wrap_ART_OTHER_get() {
14179 PyObject *pyobj;
14180
14181 {
14182#if wxUSE_UNICODE
14183 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14184#else
14185 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14186#endif
14187 }
14188 return pyobj;
14189}
14190
14191
c370783e 14192static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
d55e5bfc
RD
14193 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14194 return 1;
14195}
14196
14197
14198static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14199 PyObject *pyobj;
14200
14201 {
14202#if wxUSE_UNICODE
14203 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14204#else
14205 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14206#endif
14207 }
14208 return pyobj;
14209}
14210
14211
c370783e 14212static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
d55e5bfc
RD
14213 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14214 return 1;
14215}
14216
14217
14218static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14219 PyObject *pyobj;
14220
14221 {
14222#if wxUSE_UNICODE
14223 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14224#else
14225 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14226#endif
14227 }
14228 return pyobj;
14229}
14230
14231
c370783e 14232static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
d55e5bfc
RD
14233 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14234 return 1;
14235}
14236
14237
14238static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14239 PyObject *pyobj;
14240
14241 {
14242#if wxUSE_UNICODE
14243 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14244#else
14245 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14246#endif
14247 }
14248 return pyobj;
14249}
14250
14251
c370783e 14252static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
d55e5bfc
RD
14253 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14254 return 1;
14255}
14256
14257
14258static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14259 PyObject *pyobj;
14260
14261 {
14262#if wxUSE_UNICODE
14263 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14264#else
14265 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14266#endif
14267 }
14268 return pyobj;
14269}
14270
14271
c370783e 14272static int _wrap_ART_HELP_BOOK_set(PyObject *) {
d55e5bfc
RD
14273 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14274 return 1;
14275}
14276
14277
14278static PyObject *_wrap_ART_HELP_BOOK_get() {
14279 PyObject *pyobj;
14280
14281 {
14282#if wxUSE_UNICODE
14283 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14284#else
14285 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14286#endif
14287 }
14288 return pyobj;
14289}
14290
14291
c370783e 14292static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
d55e5bfc
RD
14293 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14294 return 1;
14295}
14296
14297
14298static PyObject *_wrap_ART_HELP_FOLDER_get() {
14299 PyObject *pyobj;
14300
14301 {
14302#if wxUSE_UNICODE
14303 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14304#else
14305 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14306#endif
14307 }
14308 return pyobj;
14309}
14310
14311
c370783e 14312static int _wrap_ART_HELP_PAGE_set(PyObject *) {
d55e5bfc
RD
14313 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14314 return 1;
14315}
14316
14317
14318static PyObject *_wrap_ART_HELP_PAGE_get() {
14319 PyObject *pyobj;
14320
14321 {
14322#if wxUSE_UNICODE
14323 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14324#else
14325 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14326#endif
14327 }
14328 return pyobj;
14329}
14330
14331
c370783e 14332static int _wrap_ART_GO_BACK_set(PyObject *) {
d55e5bfc
RD
14333 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14334 return 1;
14335}
14336
14337
14338static PyObject *_wrap_ART_GO_BACK_get() {
14339 PyObject *pyobj;
14340
14341 {
14342#if wxUSE_UNICODE
14343 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14344#else
14345 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14346#endif
14347 }
14348 return pyobj;
14349}
14350
14351
c370783e 14352static int _wrap_ART_GO_FORWARD_set(PyObject *) {
d55e5bfc
RD
14353 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14354 return 1;
14355}
14356
14357
14358static PyObject *_wrap_ART_GO_FORWARD_get() {
14359 PyObject *pyobj;
14360
14361 {
14362#if wxUSE_UNICODE
14363 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14364#else
14365 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14366#endif
14367 }
14368 return pyobj;
14369}
14370
14371
c370783e 14372static int _wrap_ART_GO_UP_set(PyObject *) {
d55e5bfc
RD
14373 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14374 return 1;
14375}
14376
14377
14378static PyObject *_wrap_ART_GO_UP_get() {
14379 PyObject *pyobj;
14380
14381 {
14382#if wxUSE_UNICODE
14383 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14384#else
14385 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14386#endif
14387 }
14388 return pyobj;
14389}
14390
14391
c370783e 14392static int _wrap_ART_GO_DOWN_set(PyObject *) {
d55e5bfc
RD
14393 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14394 return 1;
14395}
14396
14397
14398static PyObject *_wrap_ART_GO_DOWN_get() {
14399 PyObject *pyobj;
14400
14401 {
14402#if wxUSE_UNICODE
14403 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14404#else
14405 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14406#endif
14407 }
14408 return pyobj;
14409}
14410
14411
c370783e 14412static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
d55e5bfc
RD
14413 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14414 return 1;
14415}
14416
14417
14418static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14419 PyObject *pyobj;
14420
14421 {
14422#if wxUSE_UNICODE
14423 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14424#else
14425 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14426#endif
14427 }
14428 return pyobj;
14429}
14430
14431
c370783e 14432static int _wrap_ART_GO_HOME_set(PyObject *) {
d55e5bfc
RD
14433 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14434 return 1;
14435}
14436
14437
14438static PyObject *_wrap_ART_GO_HOME_get() {
14439 PyObject *pyobj;
14440
14441 {
14442#if wxUSE_UNICODE
14443 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14444#else
14445 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14446#endif
14447 }
14448 return pyobj;
14449}
14450
14451
c370783e 14452static int _wrap_ART_FILE_OPEN_set(PyObject *) {
d55e5bfc
RD
14453 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14454 return 1;
14455}
14456
14457
14458static PyObject *_wrap_ART_FILE_OPEN_get() {
14459 PyObject *pyobj;
14460
14461 {
14462#if wxUSE_UNICODE
14463 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14464#else
14465 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14466#endif
14467 }
14468 return pyobj;
14469}
14470
14471
c370783e 14472static int _wrap_ART_PRINT_set(PyObject *) {
d55e5bfc
RD
14473 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14474 return 1;
14475}
14476
14477
14478static PyObject *_wrap_ART_PRINT_get() {
14479 PyObject *pyobj;
14480
14481 {
14482#if wxUSE_UNICODE
14483 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14484#else
14485 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14486#endif
14487 }
14488 return pyobj;
14489}
14490
14491
c370783e 14492static int _wrap_ART_HELP_set(PyObject *) {
d55e5bfc
RD
14493 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14494 return 1;
14495}
14496
14497
14498static PyObject *_wrap_ART_HELP_get() {
14499 PyObject *pyobj;
14500
14501 {
14502#if wxUSE_UNICODE
14503 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14504#else
14505 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14506#endif
14507 }
14508 return pyobj;
14509}
14510
14511
c370783e 14512static int _wrap_ART_TIP_set(PyObject *) {
d55e5bfc
RD
14513 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14514 return 1;
14515}
14516
14517
14518static PyObject *_wrap_ART_TIP_get() {
14519 PyObject *pyobj;
14520
14521 {
14522#if wxUSE_UNICODE
14523 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14524#else
14525 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14526#endif
14527 }
14528 return pyobj;
14529}
14530
14531
c370783e 14532static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
d55e5bfc
RD
14533 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14534 return 1;
14535}
14536
14537
14538static PyObject *_wrap_ART_REPORT_VIEW_get() {
14539 PyObject *pyobj;
14540
14541 {
14542#if wxUSE_UNICODE
14543 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14544#else
14545 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14546#endif
14547 }
14548 return pyobj;
14549}
14550
14551
c370783e 14552static int _wrap_ART_LIST_VIEW_set(PyObject *) {
d55e5bfc
RD
14553 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14554 return 1;
14555}
14556
14557
14558static PyObject *_wrap_ART_LIST_VIEW_get() {
14559 PyObject *pyobj;
14560
14561 {
14562#if wxUSE_UNICODE
14563 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14564#else
14565 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14566#endif
14567 }
14568 return pyobj;
14569}
14570
14571
c370783e 14572static int _wrap_ART_NEW_DIR_set(PyObject *) {
d55e5bfc
RD
14573 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14574 return 1;
14575}
14576
14577
14578static PyObject *_wrap_ART_NEW_DIR_get() {
14579 PyObject *pyobj;
14580
14581 {
14582#if wxUSE_UNICODE
14583 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14584#else
14585 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14586#endif
14587 }
14588 return pyobj;
14589}
14590
14591
f78cc896
RD
14592static int _wrap_ART_HARDDISK_set(PyObject *) {
14593 PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only.");
14594 return 1;
14595}
14596
14597
14598static PyObject *_wrap_ART_HARDDISK_get() {
14599 PyObject *pyobj;
14600
14601 {
14602#if wxUSE_UNICODE
14603 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
14604#else
14605 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
14606#endif
14607 }
14608 return pyobj;
14609}
14610
14611
14612static int _wrap_ART_FLOPPY_set(PyObject *) {
14613 PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only.");
14614 return 1;
14615}
14616
14617
14618static PyObject *_wrap_ART_FLOPPY_get() {
14619 PyObject *pyobj;
14620
14621 {
14622#if wxUSE_UNICODE
14623 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
14624#else
14625 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
14626#endif
14627 }
14628 return pyobj;
14629}
14630
14631
14632static int _wrap_ART_CDROM_set(PyObject *) {
14633 PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only.");
14634 return 1;
14635}
14636
14637
14638static PyObject *_wrap_ART_CDROM_get() {
14639 PyObject *pyobj;
14640
14641 {
14642#if wxUSE_UNICODE
14643 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
14644#else
14645 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
14646#endif
14647 }
14648 return pyobj;
14649}
14650
14651
14652static int _wrap_ART_REMOVABLE_set(PyObject *) {
14653 PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only.");
14654 return 1;
14655}
14656
14657
14658static PyObject *_wrap_ART_REMOVABLE_get() {
14659 PyObject *pyobj;
14660
14661 {
14662#if wxUSE_UNICODE
14663 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
14664#else
14665 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
14666#endif
14667 }
14668 return pyobj;
14669}
14670
14671
c370783e 14672static int _wrap_ART_FOLDER_set(PyObject *) {
d55e5bfc
RD
14673 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14674 return 1;
14675}
14676
14677
14678static PyObject *_wrap_ART_FOLDER_get() {
14679 PyObject *pyobj;
14680
14681 {
14682#if wxUSE_UNICODE
14683 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14684#else
14685 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14686#endif
14687 }
14688 return pyobj;
14689}
14690
14691
f78cc896
RD
14692static int _wrap_ART_FOLDER_OPEN_set(PyObject *) {
14693 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only.");
14694 return 1;
14695}
14696
14697
14698static PyObject *_wrap_ART_FOLDER_OPEN_get() {
14699 PyObject *pyobj;
14700
14701 {
14702#if wxUSE_UNICODE
14703 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
14704#else
14705 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
14706#endif
14707 }
14708 return pyobj;
14709}
14710
14711
c370783e 14712static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
d55e5bfc
RD
14713 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14714 return 1;
14715}
14716
14717
14718static PyObject *_wrap_ART_GO_DIR_UP_get() {
14719 PyObject *pyobj;
14720
14721 {
14722#if wxUSE_UNICODE
14723 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14724#else
14725 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14726#endif
14727 }
14728 return pyobj;
14729}
14730
14731
c370783e 14732static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
d55e5bfc
RD
14733 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14734 return 1;
14735}
14736
14737
14738static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14739 PyObject *pyobj;
14740
14741 {
14742#if wxUSE_UNICODE
14743 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14744#else
14745 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14746#endif
14747 }
14748 return pyobj;
14749}
14750
14751
c370783e 14752static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
d55e5bfc
RD
14753 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14754 return 1;
14755}
14756
14757
14758static PyObject *_wrap_ART_NORMAL_FILE_get() {
14759 PyObject *pyobj;
14760
14761 {
14762#if wxUSE_UNICODE
14763 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14764#else
14765 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14766#endif
14767 }
14768 return pyobj;
14769}
14770
14771
c370783e 14772static int _wrap_ART_TICK_MARK_set(PyObject *) {
d55e5bfc
RD
14773 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14774 return 1;
14775}
14776
14777
14778static PyObject *_wrap_ART_TICK_MARK_get() {
14779 PyObject *pyobj;
14780
14781 {
14782#if wxUSE_UNICODE
14783 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14784#else
14785 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14786#endif
14787 }
14788 return pyobj;
14789}
14790
14791
c370783e 14792static int _wrap_ART_CROSS_MARK_set(PyObject *) {
d55e5bfc
RD
14793 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14794 return 1;
14795}
14796
14797
14798static PyObject *_wrap_ART_CROSS_MARK_get() {
14799 PyObject *pyobj;
14800
14801 {
14802#if wxUSE_UNICODE
14803 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14804#else
14805 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14806#endif
14807 }
14808 return pyobj;
14809}
14810
14811
c370783e 14812static int _wrap_ART_ERROR_set(PyObject *) {
d55e5bfc
RD
14813 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14814 return 1;
14815}
14816
14817
14818static PyObject *_wrap_ART_ERROR_get() {
14819 PyObject *pyobj;
14820
14821 {
14822#if wxUSE_UNICODE
14823 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14824#else
14825 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14826#endif
14827 }
14828 return pyobj;
14829}
14830
14831
c370783e 14832static int _wrap_ART_QUESTION_set(PyObject *) {
d55e5bfc
RD
14833 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14834 return 1;
14835}
14836
14837
14838static PyObject *_wrap_ART_QUESTION_get() {
14839 PyObject *pyobj;
14840
14841 {
14842#if wxUSE_UNICODE
14843 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14844#else
14845 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14846#endif
14847 }
14848 return pyobj;
14849}
14850
14851
c370783e 14852static int _wrap_ART_WARNING_set(PyObject *) {
d55e5bfc
RD
14853 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14854 return 1;
14855}
14856
14857
14858static PyObject *_wrap_ART_WARNING_get() {
14859 PyObject *pyobj;
14860
14861 {
14862#if wxUSE_UNICODE
14863 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14864#else
14865 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14866#endif
14867 }
14868 return pyobj;
14869}
14870
14871
c370783e 14872static int _wrap_ART_INFORMATION_set(PyObject *) {
d55e5bfc
RD
14873 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14874 return 1;
14875}
14876
14877
14878static PyObject *_wrap_ART_INFORMATION_get() {
14879 PyObject *pyobj;
14880
14881 {
14882#if wxUSE_UNICODE
14883 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14884#else
14885 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14886#endif
14887 }
14888 return pyobj;
14889}
14890
14891
c370783e 14892static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
d55e5bfc
RD
14893 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14894 return 1;
14895}
14896
14897
14898static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14899 PyObject *pyobj;
14900
14901 {
14902#if wxUSE_UNICODE
14903 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14904#else
14905 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14906#endif
14907 }
14908 return pyobj;
14909}
14910
14911
c370783e 14912static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14913 PyObject *resultobj;
14914 wxPyArtProvider *result;
14915 char *kwnames[] = {
14916 NULL
14917 };
14918
14919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14920 {
0439c23b 14921 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 result = (wxPyArtProvider *)new wxPyArtProvider();
14924
14925 wxPyEndAllowThreads(__tstate);
110da5b0 14926 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14927 }
14928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14929 return resultobj;
14930 fail:
14931 return NULL;
14932}
14933
14934
c370783e 14935static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14936 PyObject *resultobj;
14937 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14938 PyObject *arg2 = (PyObject *) 0 ;
14939 PyObject *arg3 = (PyObject *) 0 ;
14940 PyObject * obj0 = 0 ;
14941 PyObject * obj1 = 0 ;
14942 PyObject * obj2 = 0 ;
14943 char *kwnames[] = {
14944 (char *) "self",(char *) "self",(char *) "_class", NULL
14945 };
14946
14947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14950 arg2 = obj1;
14951 arg3 = obj2;
14952 {
14953 PyThreadState* __tstate = wxPyBeginAllowThreads();
14954 (arg1)->_setCallbackInfo(arg2,arg3);
14955
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 Py_INCREF(Py_None); resultobj = Py_None;
14960 return resultobj;
14961 fail:
14962 return NULL;
14963}
14964
14965
c370783e 14966static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14967 PyObject *resultobj;
14968 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14969 PyObject * obj0 = 0 ;
14970 char *kwnames[] = {
14971 (char *) "provider", NULL
14972 };
14973
14974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 wxPyArtProvider::PushProvider(arg1);
14980
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 Py_INCREF(Py_None); resultobj = Py_None;
14985 return resultobj;
14986 fail:
14987 return NULL;
14988}
14989
14990
c370783e 14991static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14992 PyObject *resultobj;
14993 bool result;
14994 char *kwnames[] = {
14995 NULL
14996 };
14997
14998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (bool)wxPyArtProvider::PopProvider();
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 {
15007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15008 }
15009 return resultobj;
15010 fail:
15011 return NULL;
15012}
15013
15014
c370783e 15015static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15016 PyObject *resultobj;
15017 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
15018 bool result;
15019 PyObject * obj0 = 0 ;
15020 char *kwnames[] = {
15021 (char *) "provider", NULL
15022 };
15023
15024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
15025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
15026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 {
15035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15036 }
15037 return resultobj;
15038 fail:
15039 return NULL;
15040}
15041
15042
c370783e 15043static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15044 PyObject *resultobj;
15045 wxString *arg1 = 0 ;
15046 wxString const &arg2_defvalue = wxPyART_OTHER ;
15047 wxString *arg2 = (wxString *) &arg2_defvalue ;
15048 wxSize const &arg3_defvalue = wxDefaultSize ;
15049 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
15050 wxBitmap result;
b411df4a
RD
15051 bool temp1 = false ;
15052 bool temp2 = false ;
d55e5bfc
RD
15053 wxSize temp3 ;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 PyObject * obj2 = 0 ;
15057 char *kwnames[] = {
15058 (char *) "id",(char *) "client",(char *) "size", NULL
15059 };
15060
15061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
15062 {
15063 arg1 = wxString_in_helper(obj0);
15064 if (arg1 == NULL) SWIG_fail;
b411df4a 15065 temp1 = true;
d55e5bfc
RD
15066 }
15067 if (obj1) {
15068 {
15069 arg2 = wxString_in_helper(obj1);
15070 if (arg2 == NULL) SWIG_fail;
b411df4a 15071 temp2 = true;
d55e5bfc
RD
15072 }
15073 }
15074 if (obj2) {
15075 {
15076 arg3 = &temp3;
15077 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15078 }
15079 }
15080 {
0439c23b 15081 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
15084
15085 wxPyEndAllowThreads(__tstate);
110da5b0 15086 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15087 }
15088 {
15089 wxBitmap * resultptr;
15090 resultptr = new wxBitmap((wxBitmap &) result);
15091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15092 }
15093 {
15094 if (temp1)
15095 delete arg1;
15096 }
15097 {
15098 if (temp2)
15099 delete arg2;
15100 }
15101 return resultobj;
15102 fail:
15103 {
15104 if (temp1)
15105 delete arg1;
15106 }
15107 {
15108 if (temp2)
15109 delete arg2;
15110 }
15111 return NULL;
15112}
15113
15114
c370783e 15115static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15116 PyObject *resultobj;
15117 wxString *arg1 = 0 ;
15118 wxString const &arg2_defvalue = wxPyART_OTHER ;
15119 wxString *arg2 = (wxString *) &arg2_defvalue ;
15120 wxSize const &arg3_defvalue = wxDefaultSize ;
15121 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
15122 wxIcon result;
b411df4a
RD
15123 bool temp1 = false ;
15124 bool temp2 = false ;
d55e5bfc
RD
15125 wxSize temp3 ;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 PyObject * obj2 = 0 ;
15129 char *kwnames[] = {
15130 (char *) "id",(char *) "client",(char *) "size", NULL
15131 };
15132
15133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15134 {
15135 arg1 = wxString_in_helper(obj0);
15136 if (arg1 == NULL) SWIG_fail;
b411df4a 15137 temp1 = true;
d55e5bfc
RD
15138 }
15139 if (obj1) {
15140 {
15141 arg2 = wxString_in_helper(obj1);
15142 if (arg2 == NULL) SWIG_fail;
b411df4a 15143 temp2 = true;
d55e5bfc
RD
15144 }
15145 }
15146 if (obj2) {
15147 {
15148 arg3 = &temp3;
15149 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15150 }
15151 }
15152 {
0439c23b 15153 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
15156
15157 wxPyEndAllowThreads(__tstate);
110da5b0 15158 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15159 }
15160 {
15161 wxIcon * resultptr;
15162 resultptr = new wxIcon((wxIcon &) result);
15163 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
15164 }
15165 {
15166 if (temp1)
15167 delete arg1;
15168 }
15169 {
15170 if (temp2)
15171 delete arg2;
15172 }
15173 return resultobj;
15174 fail:
15175 {
15176 if (temp1)
15177 delete arg1;
15178 }
15179 {
15180 if (temp2)
15181 delete arg2;
15182 }
15183 return NULL;
15184}
15185
15186
c370783e 15187static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15188 PyObject *resultobj;
15189 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
15190 PyObject * obj0 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
15197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 wxPyArtProvider_Destroy(arg1);
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 Py_INCREF(Py_None); resultobj = Py_None;
15206 return resultobj;
15207 fail:
15208 return NULL;
15209}
15210
15211
c370783e 15212static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15213 PyObject *obj;
15214 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15215 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
15216 Py_INCREF(obj);
15217 return Py_BuildValue((char *)"");
15218}
c370783e 15219static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15220 PyObject *resultobj;
15221 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15222 PyObject * obj0 = 0 ;
15223 char *kwnames[] = {
15224 (char *) "self", NULL
15225 };
15226
15227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 delete arg1;
15233
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 Py_INCREF(Py_None); resultobj = Py_None;
15238 return resultobj;
15239 fail:
15240 return NULL;
15241}
15242
15243
c370783e 15244static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15245 PyObject *resultobj;
15246 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15247 wxConfigBase *result;
15248 PyObject * obj0 = 0 ;
15249 char *kwnames[] = {
15250 (char *) "config", NULL
15251 };
15252
15253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15259
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15264 return resultobj;
15265 fail:
15266 return NULL;
15267}
15268
15269
c370783e 15270static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 15271 PyObject *resultobj;
b411df4a 15272 bool arg1 = (bool) true ;
d55e5bfc
RD
15273 wxConfigBase *result;
15274 PyObject * obj0 = 0 ;
15275 char *kwnames[] = {
15276 (char *) "createOnDemand", NULL
15277 };
15278
15279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15280 if (obj0) {
c370783e 15281 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15287
15288 wxPyEndAllowThreads(__tstate);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15292 return resultobj;
15293 fail:
15294 return NULL;
15295}
15296
15297
c370783e 15298static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15299 PyObject *resultobj;
15300 wxConfigBase *result;
15301 char *kwnames[] = {
15302 NULL
15303 };
15304
15305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (wxConfigBase *)wxConfigBase::Create();
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15314 return resultobj;
15315 fail:
15316 return NULL;
15317}
15318
15319
c370783e 15320static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15321 PyObject *resultobj;
15322 char *kwnames[] = {
15323 NULL
15324 };
15325
15326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 wxConfigBase::DontCreateOnDemand();
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 Py_INCREF(Py_None); resultobj = Py_None;
15335 return resultobj;
15336 fail:
15337 return NULL;
15338}
15339
15340
c370783e 15341static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15342 PyObject *resultobj;
15343 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15344 wxString *arg2 = 0 ;
b411df4a 15345 bool temp2 = false ;
d55e5bfc
RD
15346 PyObject * obj0 = 0 ;
15347 PyObject * obj1 = 0 ;
15348 char *kwnames[] = {
15349 (char *) "self",(char *) "path", NULL
15350 };
15351
15352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15355 {
15356 arg2 = wxString_in_helper(obj1);
15357 if (arg2 == NULL) SWIG_fail;
b411df4a 15358 temp2 = true;
d55e5bfc
RD
15359 }
15360 {
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 (arg1)->SetPath((wxString const &)*arg2);
15363
15364 wxPyEndAllowThreads(__tstate);
15365 if (PyErr_Occurred()) SWIG_fail;
15366 }
15367 Py_INCREF(Py_None); resultobj = Py_None;
15368 {
15369 if (temp2)
15370 delete arg2;
15371 }
15372 return resultobj;
15373 fail:
15374 {
15375 if (temp2)
15376 delete arg2;
15377 }
15378 return NULL;
15379}
15380
15381
c370783e 15382static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15383 PyObject *resultobj;
15384 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15385 wxString *result;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 {
15397 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15398 result = (wxString *) &_result_ref;
15399 }
15400
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 {
15405#if wxUSE_UNICODE
15406 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15407#else
15408 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15409#endif
15410 }
15411 return resultobj;
15412 fail:
15413 return NULL;
15414}
15415
15416
c370783e 15417static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15418 PyObject *resultobj;
15419 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15420 PyObject *result;
15421 PyObject * obj0 = 0 ;
15422 char *kwnames[] = {
15423 (char *) "self", NULL
15424 };
15425
15426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15432
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 resultobj = result;
15437 return resultobj;
15438 fail:
15439 return NULL;
15440}
15441
15442
c370783e 15443static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15444 PyObject *resultobj;
15445 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15446 long arg2 ;
15447 PyObject *result;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 char *kwnames[] = {
15451 (char *) "self",(char *) "index", NULL
15452 };
15453
15454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 15457 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
15458 if (PyErr_Occurred()) SWIG_fail;
15459 {
15460 PyThreadState* __tstate = wxPyBeginAllowThreads();
15461 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15462
15463 wxPyEndAllowThreads(__tstate);
15464 if (PyErr_Occurred()) SWIG_fail;
15465 }
15466 resultobj = result;
15467 return resultobj;
15468 fail:
15469 return NULL;
15470}
15471
15472
c370783e 15473static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15474 PyObject *resultobj;
15475 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15476 PyObject *result;
15477 PyObject * obj0 = 0 ;
15478 char *kwnames[] = {
15479 (char *) "self", NULL
15480 };
15481
15482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15488
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 resultobj = result;
15493 return resultobj;
15494 fail:
15495 return NULL;
15496}
15497
15498
c370783e 15499static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15500 PyObject *resultobj;
15501 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15502 long arg2 ;
15503 PyObject *result;
15504 PyObject * obj0 = 0 ;
15505 PyObject * obj1 = 0 ;
15506 char *kwnames[] = {
15507 (char *) "self",(char *) "index", NULL
15508 };
15509
15510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 15513 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
15514 if (PyErr_Occurred()) SWIG_fail;
15515 {
15516 PyThreadState* __tstate = wxPyBeginAllowThreads();
15517 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15518
15519 wxPyEndAllowThreads(__tstate);
15520 if (PyErr_Occurred()) SWIG_fail;
15521 }
15522 resultobj = result;
15523 return resultobj;
15524 fail:
15525 return NULL;
15526}
15527
15528
c370783e 15529static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15530 PyObject *resultobj;
15531 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b411df4a 15532 bool arg2 = (bool) false ;
d55e5bfc
RD
15533 size_t result;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 char *kwnames[] = {
15537 (char *) "self",(char *) "recursive", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 if (obj1) {
c370783e 15544 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15550
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
c370783e 15554 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
15555 return resultobj;
15556 fail:
15557 return NULL;
15558}
15559
15560
c370783e 15561static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15562 PyObject *resultobj;
15563 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b411df4a 15564 bool arg2 = (bool) false ;
d55e5bfc
RD
15565 size_t result;
15566 PyObject * obj0 = 0 ;
15567 PyObject * obj1 = 0 ;
15568 char *kwnames[] = {
15569 (char *) "self",(char *) "recursive", NULL
15570 };
15571
15572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15575 if (obj1) {
c370783e 15576 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 {
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15582
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
c370783e 15586 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
15587 return resultobj;
15588 fail:
15589 return NULL;
15590}
15591
15592
c370783e 15593static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15594 PyObject *resultobj;
15595 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15596 wxString *arg2 = 0 ;
15597 bool result;
b411df4a 15598 bool temp2 = false ;
d55e5bfc
RD
15599 PyObject * obj0 = 0 ;
15600 PyObject * obj1 = 0 ;
15601 char *kwnames[] = {
15602 (char *) "self",(char *) "name", NULL
15603 };
15604
15605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15608 {
15609 arg2 = wxString_in_helper(obj1);
15610 if (arg2 == NULL) SWIG_fail;
b411df4a 15611 temp2 = true;
d55e5bfc
RD
15612 }
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15616
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 {
15621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15622 }
15623 {
15624 if (temp2)
15625 delete arg2;
15626 }
15627 return resultobj;
15628 fail:
15629 {
15630 if (temp2)
15631 delete arg2;
15632 }
15633 return NULL;
15634}
15635
15636
c370783e 15637static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15638 PyObject *resultobj;
15639 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15640 wxString *arg2 = 0 ;
15641 bool result;
b411df4a 15642 bool temp2 = false ;
d55e5bfc
RD
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 char *kwnames[] = {
15646 (char *) "self",(char *) "name", NULL
15647 };
15648
15649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15652 {
15653 arg2 = wxString_in_helper(obj1);
15654 if (arg2 == NULL) SWIG_fail;
b411df4a 15655 temp2 = true;
d55e5bfc
RD
15656 }
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15660
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 {
15665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15666 }
15667 {
15668 if (temp2)
15669 delete arg2;
15670 }
15671 return resultobj;
15672 fail:
15673 {
15674 if (temp2)
15675 delete arg2;
15676 }
15677 return NULL;
15678}
15679
15680
c370783e 15681static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15682 PyObject *resultobj;
15683 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15684 wxString *arg2 = 0 ;
15685 bool result;
b411df4a 15686 bool temp2 = false ;
d55e5bfc
RD
15687 PyObject * obj0 = 0 ;
15688 PyObject * obj1 = 0 ;
15689 char *kwnames[] = {
15690 (char *) "self",(char *) "name", NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15696 {
15697 arg2 = wxString_in_helper(obj1);
15698 if (arg2 == NULL) SWIG_fail;
b411df4a 15699 temp2 = true;
d55e5bfc
RD
15700 }
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15704
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 {
15709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15710 }
15711 {
15712 if (temp2)
15713 delete arg2;
15714 }
15715 return resultobj;
15716 fail:
15717 {
15718 if (temp2)
15719 delete arg2;
15720 }
15721 return NULL;
15722}
15723
15724
c370783e 15725static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15726 PyObject *resultobj;
15727 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15728 wxString *arg2 = 0 ;
15729 int result;
b411df4a 15730 bool temp2 = false ;
d55e5bfc
RD
15731 PyObject * obj0 = 0 ;
15732 PyObject * obj1 = 0 ;
15733 char *kwnames[] = {
15734 (char *) "self",(char *) "name", NULL
15735 };
15736
15737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15740 {
15741 arg2 = wxString_in_helper(obj1);
15742 if (arg2 == NULL) SWIG_fail;
b411df4a 15743 temp2 = true;
d55e5bfc
RD
15744 }
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
c370783e 15752 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15753 {
15754 if (temp2)
15755 delete arg2;
15756 }
15757 return resultobj;
15758 fail:
15759 {
15760 if (temp2)
15761 delete arg2;
15762 }
15763 return NULL;
15764}
15765
15766
c370783e 15767static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15768 PyObject *resultobj;
15769 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15770 wxString *arg2 = 0 ;
15771 wxString const &arg3_defvalue = wxPyEmptyString ;
15772 wxString *arg3 = (wxString *) &arg3_defvalue ;
15773 wxString result;
b411df4a
RD
15774 bool temp2 = false ;
15775 bool temp3 = false ;
d55e5bfc
RD
15776 PyObject * obj0 = 0 ;
15777 PyObject * obj1 = 0 ;
15778 PyObject * obj2 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15786 {
15787 arg2 = wxString_in_helper(obj1);
15788 if (arg2 == NULL) SWIG_fail;
b411df4a 15789 temp2 = true;
d55e5bfc
RD
15790 }
15791 if (obj2) {
15792 {
15793 arg3 = wxString_in_helper(obj2);
15794 if (arg3 == NULL) SWIG_fail;
b411df4a 15795 temp3 = true;
d55e5bfc
RD
15796 }
15797 }
15798 {
15799 PyThreadState* __tstate = wxPyBeginAllowThreads();
15800 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15801
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 {
15806#if wxUSE_UNICODE
15807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15808#else
15809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15810#endif
15811 }
15812 {
15813 if (temp2)
15814 delete arg2;
15815 }
15816 {
15817 if (temp3)
15818 delete arg3;
15819 }
15820 return resultobj;
15821 fail:
15822 {
15823 if (temp2)
15824 delete arg2;
15825 }
15826 {
15827 if (temp3)
15828 delete arg3;
15829 }
15830 return NULL;
15831}
15832
15833
c370783e 15834static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15835 PyObject *resultobj;
15836 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15837 wxString *arg2 = 0 ;
15838 long arg3 = (long) 0 ;
15839 long result;
b411df4a 15840 bool temp2 = false ;
d55e5bfc
RD
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 PyObject * obj2 = 0 ;
15844 char *kwnames[] = {
15845 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15846 };
15847
15848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15851 {
15852 arg2 = wxString_in_helper(obj1);
15853 if (arg2 == NULL) SWIG_fail;
b411df4a 15854 temp2 = true;
d55e5bfc
RD
15855 }
15856 if (obj2) {
c370783e 15857 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 PyThreadState* __tstate = wxPyBeginAllowThreads();
15862 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15863
15864 wxPyEndAllowThreads(__tstate);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
c370783e 15867 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
15868 {
15869 if (temp2)
15870 delete arg2;
15871 }
15872 return resultobj;
15873 fail:
15874 {
15875 if (temp2)
15876 delete arg2;
15877 }
15878 return NULL;
15879}
15880
15881
c370783e 15882static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15883 PyObject *resultobj;
15884 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15885 wxString *arg2 = 0 ;
15886 double arg3 = (double) 0.0 ;
15887 double result;
b411df4a 15888 bool temp2 = false ;
d55e5bfc
RD
15889 PyObject * obj0 = 0 ;
15890 PyObject * obj1 = 0 ;
15891 PyObject * obj2 = 0 ;
15892 char *kwnames[] = {
15893 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15894 };
15895
15896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15899 {
15900 arg2 = wxString_in_helper(obj1);
15901 if (arg2 == NULL) SWIG_fail;
b411df4a 15902 temp2 = true;
d55e5bfc
RD
15903 }
15904 if (obj2) {
c370783e 15905 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 {
15909 PyThreadState* __tstate = wxPyBeginAllowThreads();
15910 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15911
15912 wxPyEndAllowThreads(__tstate);
15913 if (PyErr_Occurred()) SWIG_fail;
15914 }
c370783e 15915 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
15916 {
15917 if (temp2)
15918 delete arg2;
15919 }
15920 return resultobj;
15921 fail:
15922 {
15923 if (temp2)
15924 delete arg2;
15925 }
15926 return NULL;
15927}
15928
15929
c370783e 15930static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15931 PyObject *resultobj;
15932 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15933 wxString *arg2 = 0 ;
b411df4a 15934 bool arg3 = (bool) false ;
d55e5bfc 15935 bool result;
b411df4a 15936 bool temp2 = false ;
d55e5bfc
RD
15937 PyObject * obj0 = 0 ;
15938 PyObject * obj1 = 0 ;
15939 PyObject * obj2 = 0 ;
15940 char *kwnames[] = {
15941 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15942 };
15943
15944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15947 {
15948 arg2 = wxString_in_helper(obj1);
15949 if (arg2 == NULL) SWIG_fail;
b411df4a 15950 temp2 = true;
d55e5bfc
RD
15951 }
15952 if (obj2) {
c370783e 15953 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 {
15957 PyThreadState* __tstate = wxPyBeginAllowThreads();
15958 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15959
15960 wxPyEndAllowThreads(__tstate);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 {
15964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15965 }
15966 {
15967 if (temp2)
15968 delete arg2;
15969 }
15970 return resultobj;
15971 fail:
15972 {
15973 if (temp2)
15974 delete arg2;
15975 }
15976 return NULL;
15977}
15978
15979
c370783e 15980static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15981 PyObject *resultobj;
15982 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15983 wxString *arg2 = 0 ;
15984 wxString *arg3 = 0 ;
15985 bool result;
b411df4a
RD
15986 bool temp2 = false ;
15987 bool temp3 = false ;
d55e5bfc
RD
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 PyObject * obj2 = 0 ;
15991 char *kwnames[] = {
15992 (char *) "self",(char *) "key",(char *) "value", NULL
15993 };
15994
15995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15998 {
15999 arg2 = wxString_in_helper(obj1);
16000 if (arg2 == NULL) SWIG_fail;
b411df4a 16001 temp2 = true;
d55e5bfc
RD
16002 }
16003 {
16004 arg3 = wxString_in_helper(obj2);
16005 if (arg3 == NULL) SWIG_fail;
b411df4a 16006 temp3 = true;
d55e5bfc
RD
16007 }
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 {
16016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16017 }
16018 {
16019 if (temp2)
16020 delete arg2;
16021 }
16022 {
16023 if (temp3)
16024 delete arg3;
16025 }
16026 return resultobj;
16027 fail:
16028 {
16029 if (temp2)
16030 delete arg2;
16031 }
16032 {
16033 if (temp3)
16034 delete arg3;
16035 }
16036 return NULL;
16037}
16038
16039
c370783e 16040static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16041 PyObject *resultobj;
16042 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16043 wxString *arg2 = 0 ;
16044 long arg3 ;
16045 bool result;
b411df4a 16046 bool temp2 = false ;
d55e5bfc
RD
16047 PyObject * obj0 = 0 ;
16048 PyObject * obj1 = 0 ;
16049 PyObject * obj2 = 0 ;
16050 char *kwnames[] = {
16051 (char *) "self",(char *) "key",(char *) "value", NULL
16052 };
16053
16054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
16055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16057 {
16058 arg2 = wxString_in_helper(obj1);
16059 if (arg2 == NULL) SWIG_fail;
b411df4a 16060 temp2 = true;
d55e5bfc 16061 }
c370783e 16062 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
16063 if (PyErr_Occurred()) SWIG_fail;
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 {
16072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16073 }
16074 {
16075 if (temp2)
16076 delete arg2;
16077 }
16078 return resultobj;
16079 fail:
16080 {
16081 if (temp2)
16082 delete arg2;
16083 }
16084 return NULL;
16085}
16086
16087
c370783e 16088static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16089 PyObject *resultobj;
16090 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16091 wxString *arg2 = 0 ;
16092 double arg3 ;
16093 bool result;
b411df4a 16094 bool temp2 = false ;
d55e5bfc
RD
16095 PyObject * obj0 = 0 ;
16096 PyObject * obj1 = 0 ;
16097 PyObject * obj2 = 0 ;
16098 char *kwnames[] = {
16099 (char *) "self",(char *) "key",(char *) "value", NULL
16100 };
16101
16102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
16103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16105 {
16106 arg2 = wxString_in_helper(obj1);
16107 if (arg2 == NULL) SWIG_fail;
b411df4a 16108 temp2 = true;
d55e5bfc 16109 }
c370783e 16110 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
16111 if (PyErr_Occurred()) SWIG_fail;
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16115
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 {
16120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16121 }
16122 {
16123 if (temp2)
16124 delete arg2;
16125 }
16126 return resultobj;
16127 fail:
16128 {
16129 if (temp2)
16130 delete arg2;
16131 }
16132 return NULL;
16133}
16134
16135
c370783e 16136static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16137 PyObject *resultobj;
16138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16139 wxString *arg2 = 0 ;
16140 bool arg3 ;
16141 bool result;
b411df4a 16142 bool temp2 = false ;
d55e5bfc
RD
16143 PyObject * obj0 = 0 ;
16144 PyObject * obj1 = 0 ;
16145 PyObject * obj2 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "self",(char *) "key",(char *) "value", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16153 {
16154 arg2 = wxString_in_helper(obj1);
16155 if (arg2 == NULL) SWIG_fail;
b411df4a 16156 temp2 = true;
d55e5bfc 16157 }
c370783e 16158 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
16159 if (PyErr_Occurred()) SWIG_fail;
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 {
16168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16169 }
16170 {
16171 if (temp2)
16172 delete arg2;
16173 }
16174 return resultobj;
16175 fail:
16176 {
16177 if (temp2)
16178 delete arg2;
16179 }
16180 return NULL;
16181}
16182
16183
c370783e 16184static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16185 PyObject *resultobj;
16186 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b411df4a 16187 bool arg2 = (bool) false ;
d55e5bfc
RD
16188 bool result;
16189 PyObject * obj0 = 0 ;
16190 PyObject * obj1 = 0 ;
16191 char *kwnames[] = {
16192 (char *) "self",(char *) "currentOnly", NULL
16193 };
16194
16195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
16196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16198 if (obj1) {
c370783e 16199 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 result = (bool)(arg1)->Flush(arg2);
16205
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 {
16210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16211 }
16212 return resultobj;
16213 fail:
16214 return NULL;
16215}
16216
16217
c370783e 16218static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16219 PyObject *resultobj;
16220 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16221 wxString *arg2 = 0 ;
16222 wxString *arg3 = 0 ;
16223 bool result;
b411df4a
RD
16224 bool temp2 = false ;
16225 bool temp3 = false ;
d55e5bfc
RD
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 PyObject * obj2 = 0 ;
16229 char *kwnames[] = {
16230 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16231 };
16232
16233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16236 {
16237 arg2 = wxString_in_helper(obj1);
16238 if (arg2 == NULL) SWIG_fail;
b411df4a 16239 temp2 = true;
d55e5bfc
RD
16240 }
16241 {
16242 arg3 = wxString_in_helper(obj2);
16243 if (arg3 == NULL) SWIG_fail;
b411df4a 16244 temp3 = true;
d55e5bfc
RD
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16255 }
16256 {
16257 if (temp2)
16258 delete arg2;
16259 }
16260 {
16261 if (temp3)
16262 delete arg3;
16263 }
16264 return resultobj;
16265 fail:
16266 {
16267 if (temp2)
16268 delete arg2;
16269 }
16270 {
16271 if (temp3)
16272 delete arg3;
16273 }
16274 return NULL;
16275}
16276
16277
c370783e 16278static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16279 PyObject *resultobj;
16280 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16281 wxString *arg2 = 0 ;
16282 wxString *arg3 = 0 ;
16283 bool result;
b411df4a
RD
16284 bool temp2 = false ;
16285 bool temp3 = false ;
d55e5bfc
RD
16286 PyObject * obj0 = 0 ;
16287 PyObject * obj1 = 0 ;
16288 PyObject * obj2 = 0 ;
16289 char *kwnames[] = {
16290 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16291 };
16292
16293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16296 {
16297 arg2 = wxString_in_helper(obj1);
16298 if (arg2 == NULL) SWIG_fail;
b411df4a 16299 temp2 = true;
d55e5bfc
RD
16300 }
16301 {
16302 arg3 = wxString_in_helper(obj2);
16303 if (arg3 == NULL) SWIG_fail;
b411df4a 16304 temp3 = true;
d55e5bfc
RD
16305 }
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 {
16314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16315 }
16316 {
16317 if (temp2)
16318 delete arg2;
16319 }
16320 {
16321 if (temp3)
16322 delete arg3;
16323 }
16324 return resultobj;
16325 fail:
16326 {
16327 if (temp2)
16328 delete arg2;
16329 }
16330 {
16331 if (temp3)
16332 delete arg3;
16333 }
16334 return NULL;
16335}
16336
16337
c370783e 16338static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16339 PyObject *resultobj;
16340 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16341 wxString *arg2 = 0 ;
b411df4a 16342 bool arg3 = (bool) true ;
d55e5bfc 16343 bool result;
b411df4a 16344 bool temp2 = false ;
d55e5bfc
RD
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 PyObject * obj2 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 {
16356 arg2 = wxString_in_helper(obj1);
16357 if (arg2 == NULL) SWIG_fail;
b411df4a 16358 temp2 = true;
d55e5bfc
RD
16359 }
16360 if (obj2) {
c370783e 16361 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
16362 if (PyErr_Occurred()) SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 {
16372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16373 }
16374 {
16375 if (temp2)
16376 delete arg2;
16377 }
16378 return resultobj;
16379 fail:
16380 {
16381 if (temp2)
16382 delete arg2;
16383 }
16384 return NULL;
16385}
16386
16387
c370783e 16388static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16389 PyObject *resultobj;
16390 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16391 wxString *arg2 = 0 ;
16392 bool result;
b411df4a 16393 bool temp2 = false ;
d55e5bfc
RD
16394 PyObject * obj0 = 0 ;
16395 PyObject * obj1 = 0 ;
16396 char *kwnames[] = {
16397 (char *) "self",(char *) "key", NULL
16398 };
16399
16400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16403 {
16404 arg2 = wxString_in_helper(obj1);
16405 if (arg2 == NULL) SWIG_fail;
b411df4a 16406 temp2 = true;
d55e5bfc
RD
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16411
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 {
16416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16417 }
16418 {
16419 if (temp2)
16420 delete arg2;
16421 }
16422 return resultobj;
16423 fail:
16424 {
16425 if (temp2)
16426 delete arg2;
16427 }
16428 return NULL;
16429}
16430
16431
c370783e 16432static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16433 PyObject *resultobj;
16434 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16435 bool result;
16436 PyObject * obj0 = 0 ;
16437 char *kwnames[] = {
16438 (char *) "self", NULL
16439 };
16440
16441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (bool)(arg1)->DeleteAll();
16447
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 {
16452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16453 }
16454 return resultobj;
16455 fail:
16456 return NULL;
16457}
16458
16459
c370783e 16460static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16461 PyObject *resultobj;
16462 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b411df4a 16463 bool arg2 = (bool) true ;
d55e5bfc
RD
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char *kwnames[] = {
16467 (char *) "self",(char *) "doIt", NULL
16468 };
16469
16470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16473 if (obj1) {
c370783e 16474 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16475 if (PyErr_Occurred()) SWIG_fail;
16476 }
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 (arg1)->SetExpandEnvVars(arg2);
16480
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 Py_INCREF(Py_None); resultobj = Py_None;
16485 return resultobj;
16486 fail:
16487 return NULL;
16488}
16489
16490
c370783e 16491static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16492 PyObject *resultobj;
16493 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16494 bool result;
16495 PyObject * obj0 = 0 ;
16496 char *kwnames[] = {
16497 (char *) "self", NULL
16498 };
16499
16500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 {
16511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16512 }
16513 return resultobj;
16514 fail:
16515 return NULL;
16516}
16517
16518
c370783e 16519static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16520 PyObject *resultobj;
16521 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b411df4a 16522 bool arg2 = (bool) true ;
d55e5bfc
RD
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 char *kwnames[] = {
16526 (char *) "self",(char *) "doIt", NULL
16527 };
16528
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16532 if (obj1) {
c370783e 16533 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16534 if (PyErr_Occurred()) SWIG_fail;
16535 }
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 (arg1)->SetRecordDefaults(arg2);
16539
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 Py_INCREF(Py_None); resultobj = Py_None;
16544 return resultobj;
16545 fail:
16546 return NULL;
16547}
16548
16549
c370783e 16550static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16551 PyObject *resultobj;
16552 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16553 bool result;
16554 PyObject * obj0 = 0 ;
16555 char *kwnames[] = {
16556 (char *) "self", NULL
16557 };
16558
16559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16565
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 {
16570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16571 }
16572 return resultobj;
16573 fail:
16574 return NULL;
16575}
16576
16577
c370783e 16578static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16579 PyObject *resultobj;
16580 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16581 wxString *arg2 = 0 ;
16582 wxString result;
b411df4a 16583 bool temp2 = false ;
d55e5bfc
RD
16584 PyObject * obj0 = 0 ;
16585 PyObject * obj1 = 0 ;
16586 char *kwnames[] = {
16587 (char *) "self",(char *) "str", NULL
16588 };
16589
16590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16593 {
16594 arg2 = wxString_in_helper(obj1);
16595 if (arg2 == NULL) SWIG_fail;
b411df4a 16596 temp2 = true;
d55e5bfc
RD
16597 }
16598 {
16599 PyThreadState* __tstate = wxPyBeginAllowThreads();
16600 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16601
16602 wxPyEndAllowThreads(__tstate);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 }
16605 {
16606#if wxUSE_UNICODE
16607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16608#else
16609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16610#endif
16611 }
16612 {
16613 if (temp2)
16614 delete arg2;
16615 }
16616 return resultobj;
16617 fail:
16618 {
16619 if (temp2)
16620 delete arg2;
16621 }
16622 return NULL;
16623}
16624
16625
c370783e 16626static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16627 PyObject *resultobj;
16628 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16629 wxString result;
16630 PyObject * obj0 = 0 ;
16631 char *kwnames[] = {
16632 (char *) "self", NULL
16633 };
16634
16635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = ((wxConfigBase const *)arg1)->GetAppName();
16641
16642 wxPyEndAllowThreads(__tstate);
16643 if (PyErr_Occurred()) SWIG_fail;
16644 }
16645 {
16646#if wxUSE_UNICODE
16647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16648#else
16649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16650#endif
16651 }
16652 return resultobj;
16653 fail:
16654 return NULL;
16655}
16656
16657
c370783e 16658static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16659 PyObject *resultobj;
16660 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16661 wxString result;
16662 PyObject * obj0 = 0 ;
16663 char *kwnames[] = {
16664 (char *) "self", NULL
16665 };
16666
16667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = ((wxConfigBase const *)arg1)->GetVendorName();
16673
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 {
16678#if wxUSE_UNICODE
16679 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16680#else
16681 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16682#endif
16683 }
16684 return resultobj;
16685 fail:
16686 return NULL;
16687}
16688
16689
c370783e 16690static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16691 PyObject *resultobj;
16692 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16693 wxString *arg2 = 0 ;
b411df4a 16694 bool temp2 = false ;
d55e5bfc
RD
16695 PyObject * obj0 = 0 ;
16696 PyObject * obj1 = 0 ;
16697 char *kwnames[] = {
16698 (char *) "self",(char *) "appName", NULL
16699 };
16700
16701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16704 {
16705 arg2 = wxString_in_helper(obj1);
16706 if (arg2 == NULL) SWIG_fail;
b411df4a 16707 temp2 = true;
d55e5bfc
RD
16708 }
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 (arg1)->SetAppName((wxString const &)*arg2);
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 Py_INCREF(Py_None); resultobj = Py_None;
16717 {
16718 if (temp2)
16719 delete arg2;
16720 }
16721 return resultobj;
16722 fail:
16723 {
16724 if (temp2)
16725 delete arg2;
16726 }
16727 return NULL;
16728}
16729
16730
c370783e 16731static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16732 PyObject *resultobj;
16733 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16734 wxString *arg2 = 0 ;
b411df4a 16735 bool temp2 = false ;
d55e5bfc
RD
16736 PyObject * obj0 = 0 ;
16737 PyObject * obj1 = 0 ;
16738 char *kwnames[] = {
16739 (char *) "self",(char *) "vendorName", NULL
16740 };
16741
16742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16745 {
16746 arg2 = wxString_in_helper(obj1);
16747 if (arg2 == NULL) SWIG_fail;
b411df4a 16748 temp2 = true;
d55e5bfc
RD
16749 }
16750 {
16751 PyThreadState* __tstate = wxPyBeginAllowThreads();
16752 (arg1)->SetVendorName((wxString const &)*arg2);
16753
16754 wxPyEndAllowThreads(__tstate);
16755 if (PyErr_Occurred()) SWIG_fail;
16756 }
16757 Py_INCREF(Py_None); resultobj = Py_None;
16758 {
16759 if (temp2)
16760 delete arg2;
16761 }
16762 return resultobj;
16763 fail:
16764 {
16765 if (temp2)
16766 delete arg2;
16767 }
16768 return NULL;
16769}
16770
16771
c370783e 16772static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16773 PyObject *resultobj;
16774 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16775 long arg2 ;
16776 PyObject * obj0 = 0 ;
16777 PyObject * obj1 = 0 ;
16778 char *kwnames[] = {
16779 (char *) "self",(char *) "style", NULL
16780 };
16781
16782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 16785 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
16786 if (PyErr_Occurred()) SWIG_fail;
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 (arg1)->SetStyle(arg2);
16790
16791 wxPyEndAllowThreads(__tstate);
16792 if (PyErr_Occurred()) SWIG_fail;
16793 }
16794 Py_INCREF(Py_None); resultobj = Py_None;
16795 return resultobj;
16796 fail:
16797 return NULL;
16798}
16799
16800
c370783e 16801static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16802 PyObject *resultobj;
16803 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16804 long result;
16805 PyObject * obj0 = 0 ;
16806 char *kwnames[] = {
16807 (char *) "self", NULL
16808 };
16809
16810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16816
16817 wxPyEndAllowThreads(__tstate);
16818 if (PyErr_Occurred()) SWIG_fail;
16819 }
c370783e 16820 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
16821 return resultobj;
16822 fail:
16823 return NULL;
16824}
16825
16826
c370783e 16827static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16828 PyObject *obj;
16829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16830 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16831 Py_INCREF(obj);
16832 return Py_BuildValue((char *)"");
16833}
c370783e 16834static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16835 PyObject *resultobj;
16836 wxString const &arg1_defvalue = wxPyEmptyString ;
16837 wxString *arg1 = (wxString *) &arg1_defvalue ;
16838 wxString const &arg2_defvalue = wxPyEmptyString ;
16839 wxString *arg2 = (wxString *) &arg2_defvalue ;
16840 wxString const &arg3_defvalue = wxPyEmptyString ;
16841 wxString *arg3 = (wxString *) &arg3_defvalue ;
16842 wxString const &arg4_defvalue = wxPyEmptyString ;
16843 wxString *arg4 = (wxString *) &arg4_defvalue ;
16844 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16845 wxConfig *result;
b411df4a
RD
16846 bool temp1 = false ;
16847 bool temp2 = false ;
16848 bool temp3 = false ;
16849 bool temp4 = false ;
d55e5bfc
RD
16850 PyObject * obj0 = 0 ;
16851 PyObject * obj1 = 0 ;
16852 PyObject * obj2 = 0 ;
16853 PyObject * obj3 = 0 ;
16854 PyObject * obj4 = 0 ;
16855 char *kwnames[] = {
16856 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16857 };
16858
16859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16860 if (obj0) {
16861 {
16862 arg1 = wxString_in_helper(obj0);
16863 if (arg1 == NULL) SWIG_fail;
b411df4a 16864 temp1 = true;
d55e5bfc
RD
16865 }
16866 }
16867 if (obj1) {
16868 {
16869 arg2 = wxString_in_helper(obj1);
16870 if (arg2 == NULL) SWIG_fail;
b411df4a 16871 temp2 = true;
d55e5bfc
RD
16872 }
16873 }
16874 if (obj2) {
16875 {
16876 arg3 = wxString_in_helper(obj2);
16877 if (arg3 == NULL) SWIG_fail;
b411df4a 16878 temp3 = true;
d55e5bfc
RD
16879 }
16880 }
16881 if (obj3) {
16882 {
16883 arg4 = wxString_in_helper(obj3);
16884 if (arg4 == NULL) SWIG_fail;
b411df4a 16885 temp4 = true;
d55e5bfc
RD
16886 }
16887 }
16888 if (obj4) {
c370783e 16889 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16900 {
16901 if (temp1)
16902 delete arg1;
16903 }
16904 {
16905 if (temp2)
16906 delete arg2;
16907 }
16908 {
16909 if (temp3)
16910 delete arg3;
16911 }
16912 {
16913 if (temp4)
16914 delete arg4;
16915 }
16916 return resultobj;
16917 fail:
16918 {
16919 if (temp1)
16920 delete arg1;
16921 }
16922 {
16923 if (temp2)
16924 delete arg2;
16925 }
16926 {
16927 if (temp3)
16928 delete arg3;
16929 }
16930 {
16931 if (temp4)
16932 delete arg4;
16933 }
16934 return NULL;
16935}
16936
16937
c370783e 16938static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16939 PyObject *resultobj;
16940 wxConfig *arg1 = (wxConfig *) 0 ;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 delete arg1;
16952
16953 wxPyEndAllowThreads(__tstate);
16954 if (PyErr_Occurred()) SWIG_fail;
16955 }
16956 Py_INCREF(Py_None); resultobj = Py_None;
16957 return resultobj;
16958 fail:
16959 return NULL;
16960}
16961
16962
c370783e 16963static PyObject * Config_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16964 PyObject *obj;
16965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16966 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16967 Py_INCREF(obj);
16968 return Py_BuildValue((char *)"");
16969}
c370783e 16970static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16971 PyObject *resultobj;
16972 wxString const &arg1_defvalue = wxPyEmptyString ;
16973 wxString *arg1 = (wxString *) &arg1_defvalue ;
16974 wxString const &arg2_defvalue = wxPyEmptyString ;
16975 wxString *arg2 = (wxString *) &arg2_defvalue ;
16976 wxString const &arg3_defvalue = wxPyEmptyString ;
16977 wxString *arg3 = (wxString *) &arg3_defvalue ;
16978 wxString const &arg4_defvalue = wxPyEmptyString ;
16979 wxString *arg4 = (wxString *) &arg4_defvalue ;
16980 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16981 wxFileConfig *result;
b411df4a
RD
16982 bool temp1 = false ;
16983 bool temp2 = false ;
16984 bool temp3 = false ;
16985 bool temp4 = false ;
d55e5bfc
RD
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 PyObject * obj2 = 0 ;
16989 PyObject * obj3 = 0 ;
16990 PyObject * obj4 = 0 ;
16991 char *kwnames[] = {
16992 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16993 };
16994
16995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16996 if (obj0) {
16997 {
16998 arg1 = wxString_in_helper(obj0);
16999 if (arg1 == NULL) SWIG_fail;
b411df4a 17000 temp1 = true;
d55e5bfc
RD
17001 }
17002 }
17003 if (obj1) {
17004 {
17005 arg2 = wxString_in_helper(obj1);
17006 if (arg2 == NULL) SWIG_fail;
b411df4a 17007 temp2 = true;
d55e5bfc
RD
17008 }
17009 }
17010 if (obj2) {
17011 {
17012 arg3 = wxString_in_helper(obj2);
17013 if (arg3 == NULL) SWIG_fail;
b411df4a 17014 temp3 = true;
d55e5bfc
RD
17015 }
17016 }
17017 if (obj3) {
17018 {
17019 arg4 = wxString_in_helper(obj3);
17020 if (arg4 == NULL) SWIG_fail;
b411df4a 17021 temp4 = true;
d55e5bfc
RD
17022 }
17023 }
17024 if (obj4) {
c370783e 17025 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
17036 {
17037 if (temp1)
17038 delete arg1;
17039 }
17040 {
17041 if (temp2)
17042 delete arg2;
17043 }
17044 {
17045 if (temp3)
17046 delete arg3;
17047 }
17048 {
17049 if (temp4)
17050 delete arg4;
17051 }
17052 return resultobj;
17053 fail:
17054 {
17055 if (temp1)
17056 delete arg1;
17057 }
17058 {
17059 if (temp2)
17060 delete arg2;
17061 }
17062 {
17063 if (temp3)
17064 delete arg3;
17065 }
17066 {
17067 if (temp4)
17068 delete arg4;
17069 }
17070 return NULL;
17071}
17072
17073
c370783e 17074static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17075 PyObject *resultobj;
17076 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
17077 PyObject * obj0 = 0 ;
17078 char *kwnames[] = {
17079 (char *) "self", NULL
17080 };
17081
17082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
17083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
17084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17085 {
17086 PyThreadState* __tstate = wxPyBeginAllowThreads();
17087 delete arg1;
17088
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 Py_INCREF(Py_None); resultobj = Py_None;
17093 return resultobj;
17094 fail:
17095 return NULL;
17096}
17097
17098
c370783e 17099static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17100 PyObject *obj;
17101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17102 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
17103 Py_INCREF(obj);
17104 return Py_BuildValue((char *)"");
17105}
c370783e 17106static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17107 PyObject *resultobj;
17108 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17109 wxString *arg2 = 0 ;
17110 wxConfigPathChanger *result;
b411df4a 17111 bool temp2 = false ;
d55e5bfc
RD
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 char *kwnames[] = {
17115 (char *) "config",(char *) "entry", NULL
17116 };
17117
17118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
17119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
17120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17121 {
17122 arg2 = wxString_in_helper(obj1);
17123 if (arg2 == NULL) SWIG_fail;
b411df4a 17124 temp2 = true;
d55e5bfc
RD
17125 }
17126 {
17127 PyThreadState* __tstate = wxPyBeginAllowThreads();
17128 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
17129
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
17134 {
17135 if (temp2)
17136 delete arg2;
17137 }
17138 return resultobj;
17139 fail:
17140 {
17141 if (temp2)
17142 delete arg2;
17143 }
17144 return NULL;
17145}
17146
17147
c370783e 17148static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17149 PyObject *resultobj;
17150 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
17151 PyObject * obj0 = 0 ;
17152 char *kwnames[] = {
17153 (char *) "self", NULL
17154 };
17155
17156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
17157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
17158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 delete arg1;
17162
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 Py_INCREF(Py_None); resultobj = Py_None;
17167 return resultobj;
17168 fail:
17169 return NULL;
17170}
17171
17172
c370783e 17173static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17174 PyObject *resultobj;
17175 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
17176 wxString *result;
17177 PyObject * obj0 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "self", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
17183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
17184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 {
17188 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
17189 result = (wxString *) &_result_ref;
17190 }
17191
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196#if wxUSE_UNICODE
17197 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17198#else
17199 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17200#endif
17201 }
17202 return resultobj;
17203 fail:
17204 return NULL;
17205}
17206
17207
c370783e 17208static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17209 PyObject *obj;
17210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17211 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
17212 Py_INCREF(obj);
17213 return Py_BuildValue((char *)"");
17214}
c370783e 17215static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17216 PyObject *resultobj;
17217 wxString *arg1 = 0 ;
17218 wxString result;
b411df4a 17219 bool temp1 = false ;
d55e5bfc
RD
17220 PyObject * obj0 = 0 ;
17221 char *kwnames[] = {
17222 (char *) "sz", NULL
17223 };
17224
17225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
17226 {
17227 arg1 = wxString_in_helper(obj0);
17228 if (arg1 == NULL) SWIG_fail;
b411df4a 17229 temp1 = true;
d55e5bfc
RD
17230 }
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = wxExpandEnvVars((wxString const &)*arg1);
17234
17235 wxPyEndAllowThreads(__tstate);
17236 if (PyErr_Occurred()) SWIG_fail;
17237 }
17238 {
17239#if wxUSE_UNICODE
17240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17241#else
17242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17243#endif
17244 }
17245 {
17246 if (temp1)
17247 delete arg1;
17248 }
17249 return resultobj;
17250 fail:
17251 {
17252 if (temp1)
17253 delete arg1;
17254 }
17255 return NULL;
17256}
17257
17258
c370783e 17259static int _wrap_DateFormatStr_set(PyObject *) {
d55e5bfc
RD
17260 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17261 return 1;
17262}
17263
17264
17265static PyObject *_wrap_DateFormatStr_get() {
17266 PyObject *pyobj;
17267
17268 {
17269#if wxUSE_UNICODE
17270 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17271#else
17272 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17273#endif
17274 }
17275 return pyobj;
17276}
17277
17278
c370783e 17279static int _wrap_TimeSpanFormatStr_set(PyObject *) {
d55e5bfc
RD
17280 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17281 return 1;
17282}
17283
17284
17285static PyObject *_wrap_TimeSpanFormatStr_get() {
17286 PyObject *pyobj;
17287
17288 {
17289#if wxUSE_UNICODE
17290 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17291#else
17292 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17293#endif
17294 }
17295 return pyobj;
17296}
17297
17298
c370783e 17299static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17300 PyObject *resultobj;
17301 int arg1 ;
17302 PyObject * obj0 = 0 ;
17303 char *kwnames[] = {
17304 (char *) "country", NULL
17305 };
17306
17307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
c370783e 17308 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17309 if (PyErr_Occurred()) SWIG_fail;
17310 {
17311 PyThreadState* __tstate = wxPyBeginAllowThreads();
17312 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17313
17314 wxPyEndAllowThreads(__tstate);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 Py_INCREF(Py_None); resultobj = Py_None;
17318 return resultobj;
17319 fail:
17320 return NULL;
17321}
17322
17323
c370783e 17324static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17325 PyObject *resultobj;
17326 int result;
17327 char *kwnames[] = {
17328 NULL
17329 };
17330
17331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 result = (int)wxDateTime::GetCountry();
17335
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
c370783e 17339 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17340 return resultobj;
17341 fail:
17342 return NULL;
17343}
17344
17345
c370783e 17346static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17347 PyObject *resultobj;
17348 int arg1 = (int) wxDateTime::Country_Default ;
17349 bool result;
17350 PyObject * obj0 = 0 ;
17351 char *kwnames[] = {
17352 (char *) "country", NULL
17353 };
17354
17355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17356 if (obj0) {
c370783e 17357 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 {
17361 PyThreadState* __tstate = wxPyBeginAllowThreads();
17362 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17363
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17369 }
17370 return resultobj;
17371 fail:
17372 return NULL;
17373}
17374
17375
c370783e 17376static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17377 PyObject *resultobj;
17378 int arg1 = (int) wxDateTime::Gregorian ;
17379 int result;
17380 PyObject * obj0 = 0 ;
17381 char *kwnames[] = {
17382 (char *) "cal", NULL
17383 };
17384
17385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17386 if (obj0) {
c370783e 17387 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17393
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
c370783e 17397 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17398 return resultobj;
17399 fail:
17400 return NULL;
17401}
17402
17403
c370783e 17404static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17405 PyObject *resultobj;
17406 int arg1 ;
17407 int result;
17408 PyObject * obj0 = 0 ;
17409 char *kwnames[] = {
17410 (char *) "year", NULL
17411 };
17412
17413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
c370783e 17414 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17415 if (PyErr_Occurred()) SWIG_fail;
17416 {
17417 PyThreadState* __tstate = wxPyBeginAllowThreads();
17418 result = (int)wxDateTime::ConvertYearToBC(arg1);
17419
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
c370783e 17423 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17424 return resultobj;
17425 fail:
17426 return NULL;
17427}
17428
17429
c370783e 17430static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17431 PyObject *resultobj;
17432 int arg1 = (int) wxDateTime::Gregorian ;
17433 int result;
17434 PyObject * obj0 = 0 ;
17435 char *kwnames[] = {
17436 (char *) "cal", NULL
17437 };
17438
17439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17440 if (obj0) {
c370783e 17441 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17447
17448 wxPyEndAllowThreads(__tstate);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
c370783e 17451 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17452 return resultobj;
17453 fail:
17454 return NULL;
17455}
17456
17457
c370783e 17458static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17459 PyObject *resultobj;
17460 int arg1 = (int) wxDateTime::Inv_Year ;
17461 int arg2 = (int) wxDateTime::Gregorian ;
17462 bool result;
17463 PyObject * obj0 = 0 ;
17464 PyObject * obj1 = 0 ;
17465 char *kwnames[] = {
17466 (char *) "year",(char *) "cal", NULL
17467 };
17468
17469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17470 if (obj0) {
c370783e 17471 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 if (obj1) {
c370783e 17475 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17481
17482 wxPyEndAllowThreads(__tstate);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 }
17485 {
17486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17487 }
17488 return resultobj;
17489 fail:
17490 return NULL;
17491}
17492
17493
c370783e 17494static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17495 PyObject *resultobj;
17496 int arg1 = (int) wxDateTime::Inv_Year ;
17497 int result;
17498 PyObject * obj0 = 0 ;
17499 char *kwnames[] = {
17500 (char *) "year", NULL
17501 };
17502
17503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17504 if (obj0) {
c370783e 17505 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17506 if (PyErr_Occurred()) SWIG_fail;
17507 }
17508 {
17509 PyThreadState* __tstate = wxPyBeginAllowThreads();
17510 result = (int)wxDateTime::GetCentury(arg1);
17511
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
c370783e 17515 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17516 return resultobj;
17517 fail:
17518 return NULL;
17519}
17520
17521
c370783e 17522static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17523 PyObject *resultobj;
17524 int arg1 ;
17525 int arg2 = (int) wxDateTime::Gregorian ;
17526 int result;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 char *kwnames[] = {
17530 (char *) "year",(char *) "cal", NULL
17531 };
17532
17533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
c370783e 17534 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17535 if (PyErr_Occurred()) SWIG_fail;
17536 if (obj1) {
c370783e 17537 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17538 if (PyErr_Occurred()) SWIG_fail;
17539 }
17540 {
17541 PyThreadState* __tstate = wxPyBeginAllowThreads();
17542 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17543
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
c370783e 17547 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17548 return resultobj;
17549 fail:
17550 return NULL;
17551}
17552
17553
c370783e 17554static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17555 PyObject *resultobj;
17556 int arg1 ;
17557 int arg2 = (int) wxDateTime::Inv_Year ;
17558 int arg3 = (int) wxDateTime::Gregorian ;
17559 int result;
17560 PyObject * obj0 = 0 ;
17561 PyObject * obj1 = 0 ;
17562 PyObject * obj2 = 0 ;
17563 char *kwnames[] = {
17564 (char *) "month",(char *) "year",(char *) "cal", NULL
17565 };
17566
17567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
c370783e 17568 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17569 if (PyErr_Occurred()) SWIG_fail;
17570 if (obj1) {
c370783e 17571 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 if (obj2) {
c370783e 17575 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17581
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
c370783e 17585 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17586 return resultobj;
17587 fail:
17588 return NULL;
17589}
17590
17591
c370783e 17592static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17593 PyObject *resultobj;
17594 int arg1 ;
17595 int arg2 = (int) wxDateTime::Name_Full ;
17596 wxString result;
17597 PyObject * obj0 = 0 ;
17598 PyObject * obj1 = 0 ;
17599 char *kwnames[] = {
17600 (char *) "month",(char *) "flags", NULL
17601 };
17602
17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
c370783e 17604 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17605 if (PyErr_Occurred()) SWIG_fail;
17606 if (obj1) {
c370783e 17607 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17608 if (PyErr_Occurred()) SWIG_fail;
17609 }
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
17612 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17613
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 {
17618#if wxUSE_UNICODE
17619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17620#else
17621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17622#endif
17623 }
17624 return resultobj;
17625 fail:
17626 return NULL;
17627}
17628
17629
c370783e 17630static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17631 PyObject *resultobj;
17632 int arg1 ;
17633 int arg2 = (int) wxDateTime::Name_Full ;
17634 wxString result;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 char *kwnames[] = {
17638 (char *) "weekday",(char *) "flags", NULL
17639 };
17640
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
c370783e 17642 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17643 if (PyErr_Occurred()) SWIG_fail;
17644 if (obj1) {
c370783e 17645 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17646 if (PyErr_Occurred()) SWIG_fail;
17647 }
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17651
17652 wxPyEndAllowThreads(__tstate);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 {
17656#if wxUSE_UNICODE
17657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17658#else
17659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17660#endif
17661 }
17662 return resultobj;
17663 fail:
17664 return NULL;
17665}
17666
17667
c370783e 17668static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17669 PyObject *resultobj;
17670 wxString *arg1 = (wxString *) 0 ;
17671 wxString *arg2 = (wxString *) 0 ;
b411df4a
RD
17672 bool temp1 = false ;
17673 bool temp2 = false ;
d55e5bfc
RD
17674 PyObject * obj0 = 0 ;
17675 PyObject * obj1 = 0 ;
17676 char *kwnames[] = {
17677 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17678 };
17679
17680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17681 {
17682 arg1 = wxString_in_helper(obj0);
17683 if (arg1 == NULL) SWIG_fail;
b411df4a 17684 temp1 = true;
d55e5bfc
RD
17685 }
17686 {
17687 arg2 = wxString_in_helper(obj1);
17688 if (arg2 == NULL) SWIG_fail;
b411df4a 17689 temp2 = true;
d55e5bfc
RD
17690 }
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 wxDateTime::GetAmPmStrings(arg1,arg2);
17694
17695 wxPyEndAllowThreads(__tstate);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 Py_INCREF(Py_None); resultobj = Py_None;
17699 {
17700 if (temp1)
17701 delete arg1;
17702 }
17703 {
17704 if (temp2)
17705 delete arg2;
17706 }
17707 return resultobj;
17708 fail:
17709 {
17710 if (temp1)
17711 delete arg1;
17712 }
17713 {
17714 if (temp2)
17715 delete arg2;
17716 }
17717 return NULL;
17718}
17719
17720
c370783e 17721static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17722 PyObject *resultobj;
17723 int arg1 = (int) wxDateTime::Inv_Year ;
17724 int arg2 = (int) wxDateTime::Country_Default ;
17725 bool result;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "year",(char *) "country", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17733 if (obj0) {
c370783e 17734 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 if (obj1) {
c370783e 17738 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 {
17742 PyThreadState* __tstate = wxPyBeginAllowThreads();
17743 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17744
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
17749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17750 }
17751 return resultobj;
17752 fail:
17753 return NULL;
17754}
17755
17756
c370783e 17757static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17758 PyObject *resultobj;
17759 int arg1 = (int) wxDateTime::Inv_Year ;
17760 int arg2 = (int) wxDateTime::Country_Default ;
17761 wxDateTime result;
17762 PyObject * obj0 = 0 ;
17763 PyObject * obj1 = 0 ;
17764 char *kwnames[] = {
17765 (char *) "year",(char *) "country", NULL
17766 };
17767
17768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17769 if (obj0) {
c370783e 17770 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 if (obj1) {
c370783e 17774 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17780
17781 wxPyEndAllowThreads(__tstate);
17782 if (PyErr_Occurred()) SWIG_fail;
17783 }
17784 {
17785 wxDateTime * resultptr;
17786 resultptr = new wxDateTime((wxDateTime &) result);
17787 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17788 }
17789 return resultobj;
17790 fail:
17791 return NULL;
17792}
17793
17794
c370783e 17795static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17796 PyObject *resultobj;
17797 int arg1 = (int) wxDateTime::Inv_Year ;
17798 int arg2 = (int) wxDateTime::Country_Default ;
17799 wxDateTime result;
17800 PyObject * obj0 = 0 ;
17801 PyObject * obj1 = 0 ;
17802 char *kwnames[] = {
17803 (char *) "year",(char *) "country", NULL
17804 };
17805
17806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17807 if (obj0) {
c370783e 17808 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 if (obj1) {
c370783e 17812 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17818
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 {
17823 wxDateTime * resultptr;
17824 resultptr = new wxDateTime((wxDateTime &) result);
17825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17826 }
17827 return resultobj;
17828 fail:
17829 return NULL;
17830}
17831
17832
c370783e 17833static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17834 PyObject *resultobj;
17835 wxDateTime result;
17836 char *kwnames[] = {
17837 NULL
17838 };
17839
17840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17841 {
17842 PyThreadState* __tstate = wxPyBeginAllowThreads();
17843 result = wxDateTime::Now();
17844
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 {
17849 wxDateTime * resultptr;
17850 resultptr = new wxDateTime((wxDateTime &) result);
17851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17852 }
17853 return resultobj;
17854 fail:
17855 return NULL;
17856}
17857
17858
c370783e 17859static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17860 PyObject *resultobj;
17861 wxDateTime result;
17862 char *kwnames[] = {
17863 NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
17869 result = wxDateTime::UNow();
17870
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 {
17875 wxDateTime * resultptr;
17876 resultptr = new wxDateTime((wxDateTime &) result);
17877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17878 }
17879 return resultobj;
17880 fail:
17881 return NULL;
17882}
17883
17884
c370783e 17885static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17886 PyObject *resultobj;
17887 wxDateTime result;
17888 char *kwnames[] = {
17889 NULL
17890 };
17891
17892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = wxDateTime::Today();
17896
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 {
17901 wxDateTime * resultptr;
17902 resultptr = new wxDateTime((wxDateTime &) result);
17903 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17904 }
17905 return resultobj;
17906 fail:
17907 return NULL;
17908}
17909
17910
c370783e 17911static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17912 PyObject *resultobj;
17913 wxDateTime *result;
17914 char *kwnames[] = {
17915 NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 result = (wxDateTime *)new wxDateTime();
17922
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17927 return resultobj;
17928 fail:
17929 return NULL;
17930}
17931
17932
c370783e 17933static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17934 PyObject *resultobj;
17935 time_t arg1 ;
17936 wxDateTime *result;
17937 PyObject * obj0 = 0 ;
17938 char *kwnames[] = {
17939 (char *) "timet", NULL
17940 };
17941
17942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
c370783e 17943 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
d55e5bfc
RD
17944 if (PyErr_Occurred()) SWIG_fail;
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = (wxDateTime *)new wxDateTime(arg1);
17948
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17953 return resultobj;
17954 fail:
17955 return NULL;
17956}
17957
17958
c370783e 17959static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17960 PyObject *resultobj;
17961 double arg1 ;
17962 wxDateTime *result;
17963 PyObject * obj0 = 0 ;
17964 char *kwnames[] = {
17965 (char *) "jdn", NULL
17966 };
17967
17968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
c370783e 17969 arg1 = (double)SWIG_As_double(obj0);
d55e5bfc
RD
17970 if (PyErr_Occurred()) SWIG_fail;
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 result = (wxDateTime *)new wxDateTime(arg1);
17974
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17979 return resultobj;
17980 fail:
17981 return NULL;
17982}
17983
17984
c370783e 17985static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17986 PyObject *resultobj;
17987 int arg1 ;
17988 int arg2 = (int) 0 ;
17989 int arg3 = (int) 0 ;
17990 int arg4 = (int) 0 ;
17991 wxDateTime *result;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 PyObject * obj2 = 0 ;
17995 PyObject * obj3 = 0 ;
17996 char *kwnames[] = {
17997 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17998 };
17999
18000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c370783e 18001 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18002 if (PyErr_Occurred()) SWIG_fail;
18003 if (obj1) {
c370783e 18004 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 if (obj2) {
c370783e 18008 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 if (obj3) {
c370783e 18012 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
18017 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
18018
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
18023 return resultobj;
18024 fail:
18025 return NULL;
18026}
18027
18028
c370783e 18029static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18030 PyObject *resultobj;
18031 int arg1 ;
18032 int arg2 = (int) wxDateTime::Inv_Month ;
18033 int arg3 = (int) wxDateTime::Inv_Year ;
18034 int arg4 = (int) 0 ;
18035 int arg5 = (int) 0 ;
18036 int arg6 = (int) 0 ;
18037 int arg7 = (int) 0 ;
18038 wxDateTime *result;
18039 PyObject * obj0 = 0 ;
18040 PyObject * obj1 = 0 ;
18041 PyObject * obj2 = 0 ;
18042 PyObject * obj3 = 0 ;
18043 PyObject * obj4 = 0 ;
18044 PyObject * obj5 = 0 ;
18045 PyObject * obj6 = 0 ;
18046 char *kwnames[] = {
18047 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18048 };
18049
18050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c370783e 18051 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18052 if (PyErr_Occurred()) SWIG_fail;
18053 if (obj1) {
c370783e 18054 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 if (obj2) {
c370783e 18058 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 if (obj3) {
c370783e 18062 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 if (obj4) {
c370783e 18066 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 if (obj5) {
c370783e 18070 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 if (obj6) {
c370783e 18074 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
18085 return resultobj;
18086 fail:
18087 return NULL;
18088}
18089
18090
c370783e 18091static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18092 PyObject *resultobj;
18093 wxDateTime *arg1 = (wxDateTime *) 0 ;
18094 PyObject * obj0 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "self", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
18100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 delete arg1;
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 Py_INCREF(Py_None); resultobj = Py_None;
18110 return resultobj;
18111 fail:
18112 return NULL;
18113}
18114
18115
c370783e 18116static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18117 PyObject *resultobj;
18118 wxDateTime *arg1 = (wxDateTime *) 0 ;
18119 wxDateTime *result;
18120 PyObject * obj0 = 0 ;
18121 char *kwnames[] = {
18122 (char *) "self", NULL
18123 };
18124
18125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
18126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 {
18131 wxDateTime &_result_ref = (arg1)->SetToCurrent();
18132 result = (wxDateTime *) &_result_ref;
18133 }
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18139 return resultobj;
18140 fail:
18141 return NULL;
18142}
18143
18144
c370783e 18145static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18146 PyObject *resultobj;
18147 wxDateTime *arg1 = (wxDateTime *) 0 ;
18148 time_t arg2 ;
18149 wxDateTime *result;
18150 PyObject * obj0 = 0 ;
18151 PyObject * obj1 = 0 ;
18152 char *kwnames[] = {
18153 (char *) "self",(char *) "timet", NULL
18154 };
18155
18156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
18157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18159 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
18160 if (PyErr_Occurred()) SWIG_fail;
18161 {
18162 PyThreadState* __tstate = wxPyBeginAllowThreads();
18163 {
18164 wxDateTime &_result_ref = (arg1)->Set(arg2);
18165 result = (wxDateTime *) &_result_ref;
18166 }
18167
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18172 return resultobj;
18173 fail:
18174 return NULL;
18175}
18176
18177
c370783e 18178static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18179 PyObject *resultobj;
18180 wxDateTime *arg1 = (wxDateTime *) 0 ;
18181 double arg2 ;
18182 wxDateTime *result;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char *kwnames[] = {
18186 (char *) "self",(char *) "jdn", NULL
18187 };
18188
18189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
18190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18192 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
18193 if (PyErr_Occurred()) SWIG_fail;
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 {
18197 wxDateTime &_result_ref = (arg1)->Set(arg2);
18198 result = (wxDateTime *) &_result_ref;
18199 }
18200
18201 wxPyEndAllowThreads(__tstate);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18205 return resultobj;
18206 fail:
18207 return NULL;
18208}
18209
18210
c370783e 18211static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18212 PyObject *resultobj;
18213 wxDateTime *arg1 = (wxDateTime *) 0 ;
18214 int arg2 ;
18215 int arg3 = (int) 0 ;
18216 int arg4 = (int) 0 ;
18217 int arg5 = (int) 0 ;
18218 wxDateTime *result;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 PyObject * obj2 = 0 ;
18222 PyObject * obj3 = 0 ;
18223 PyObject * obj4 = 0 ;
18224 char *kwnames[] = {
18225 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18226 };
18227
18228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18231 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18232 if (PyErr_Occurred()) SWIG_fail;
18233 if (obj2) {
c370783e 18234 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 if (obj3) {
c370783e 18238 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 if (obj4) {
c370783e 18242 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 {
18248 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18249 result = (wxDateTime *) &_result_ref;
18250 }
18251
18252 wxPyEndAllowThreads(__tstate);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 }
18255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18256 return resultobj;
18257 fail:
18258 return NULL;
18259}
18260
18261
c370783e 18262static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18263 PyObject *resultobj;
18264 wxDateTime *arg1 = (wxDateTime *) 0 ;
18265 int arg2 ;
18266 int arg3 = (int) wxDateTime::Inv_Month ;
18267 int arg4 = (int) wxDateTime::Inv_Year ;
18268 int arg5 = (int) 0 ;
18269 int arg6 = (int) 0 ;
18270 int arg7 = (int) 0 ;
18271 int arg8 = (int) 0 ;
18272 wxDateTime *result;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 PyObject * obj2 = 0 ;
18276 PyObject * obj3 = 0 ;
18277 PyObject * obj4 = 0 ;
18278 PyObject * obj5 = 0 ;
18279 PyObject * obj6 = 0 ;
18280 PyObject * obj7 = 0 ;
18281 char *kwnames[] = {
18282 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18283 };
18284
18285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18288 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18289 if (PyErr_Occurred()) SWIG_fail;
18290 if (obj2) {
c370783e 18291 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 if (obj3) {
c370783e 18295 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 if (obj4) {
c370783e 18299 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18300 if (PyErr_Occurred()) SWIG_fail;
18301 }
18302 if (obj5) {
c370783e 18303 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 if (obj6) {
c370783e 18307 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 if (obj7) {
c370783e 18311 arg8 = (int)SWIG_As_int(obj7);
d55e5bfc
RD
18312 if (PyErr_Occurred()) SWIG_fail;
18313 }
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 {
18317 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18318 result = (wxDateTime *) &_result_ref;
18319 }
18320
18321 wxPyEndAllowThreads(__tstate);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18325 return resultobj;
18326 fail:
18327 return NULL;
18328}
18329
18330
c370783e 18331static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18332 PyObject *resultobj;
18333 wxDateTime *arg1 = (wxDateTime *) 0 ;
18334 wxDateTime *result;
18335 PyObject * obj0 = 0 ;
18336 char *kwnames[] = {
18337 (char *) "self", NULL
18338 };
18339
18340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 {
18346 wxDateTime &_result_ref = (arg1)->ResetTime();
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
c370783e 18360static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18361 PyObject *resultobj;
18362 wxDateTime *arg1 = (wxDateTime *) 0 ;
18363 int arg2 ;
18364 wxDateTime *result;
18365 PyObject * obj0 = 0 ;
18366 PyObject * obj1 = 0 ;
18367 char *kwnames[] = {
18368 (char *) "self",(char *) "year", NULL
18369 };
18370
18371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18374 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18375 if (PyErr_Occurred()) SWIG_fail;
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 {
18379 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18380 result = (wxDateTime *) &_result_ref;
18381 }
18382
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18387 return resultobj;
18388 fail:
18389 return NULL;
18390}
18391
18392
c370783e 18393static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18394 PyObject *resultobj;
18395 wxDateTime *arg1 = (wxDateTime *) 0 ;
18396 int arg2 ;
18397 wxDateTime *result;
18398 PyObject * obj0 = 0 ;
18399 PyObject * obj1 = 0 ;
18400 char *kwnames[] = {
18401 (char *) "self",(char *) "month", NULL
18402 };
18403
18404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18407 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18408 if (PyErr_Occurred()) SWIG_fail;
18409 {
18410 PyThreadState* __tstate = wxPyBeginAllowThreads();
18411 {
18412 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18413 result = (wxDateTime *) &_result_ref;
18414 }
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18420 return resultobj;
18421 fail:
18422 return NULL;
18423}
18424
18425
c370783e 18426static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18427 PyObject *resultobj;
18428 wxDateTime *arg1 = (wxDateTime *) 0 ;
18429 int arg2 ;
18430 wxDateTime *result;
18431 PyObject * obj0 = 0 ;
18432 PyObject * obj1 = 0 ;
18433 char *kwnames[] = {
18434 (char *) "self",(char *) "day", NULL
18435 };
18436
18437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18440 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18441 if (PyErr_Occurred()) SWIG_fail;
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 {
18445 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18446 result = (wxDateTime *) &_result_ref;
18447 }
18448
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18453 return resultobj;
18454 fail:
18455 return NULL;
18456}
18457
18458
c370783e 18459static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18460 PyObject *resultobj;
18461 wxDateTime *arg1 = (wxDateTime *) 0 ;
18462 int arg2 ;
18463 wxDateTime *result;
18464 PyObject * obj0 = 0 ;
18465 PyObject * obj1 = 0 ;
18466 char *kwnames[] = {
18467 (char *) "self",(char *) "hour", NULL
18468 };
18469
18470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18473 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18474 if (PyErr_Occurred()) SWIG_fail;
18475 {
18476 PyThreadState* __tstate = wxPyBeginAllowThreads();
18477 {
18478 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18479 result = (wxDateTime *) &_result_ref;
18480 }
18481
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18486 return resultobj;
18487 fail:
18488 return NULL;
18489}
18490
18491
c370783e 18492static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18493 PyObject *resultobj;
18494 wxDateTime *arg1 = (wxDateTime *) 0 ;
18495 int arg2 ;
18496 wxDateTime *result;
18497 PyObject * obj0 = 0 ;
18498 PyObject * obj1 = 0 ;
18499 char *kwnames[] = {
18500 (char *) "self",(char *) "minute", NULL
18501 };
18502
18503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18506 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18507 if (PyErr_Occurred()) SWIG_fail;
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 {
18511 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18512 result = (wxDateTime *) &_result_ref;
18513 }
18514
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18519 return resultobj;
18520 fail:
18521 return NULL;
18522}
18523
18524
c370783e 18525static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18526 PyObject *resultobj;
18527 wxDateTime *arg1 = (wxDateTime *) 0 ;
18528 int arg2 ;
18529 wxDateTime *result;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "self",(char *) "second", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18539 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18540 if (PyErr_Occurred()) SWIG_fail;
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 {
18544 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18545 result = (wxDateTime *) &_result_ref;
18546 }
18547
18548 wxPyEndAllowThreads(__tstate);
18549 if (PyErr_Occurred()) SWIG_fail;
18550 }
18551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18552 return resultobj;
18553 fail:
18554 return NULL;
18555}
18556
18557
c370783e 18558static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18559 PyObject *resultobj;
18560 wxDateTime *arg1 = (wxDateTime *) 0 ;
18561 int arg2 ;
18562 wxDateTime *result;
18563 PyObject * obj0 = 0 ;
18564 PyObject * obj1 = 0 ;
18565 char *kwnames[] = {
18566 (char *) "self",(char *) "millisecond", NULL
18567 };
18568
18569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18572 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18573 if (PyErr_Occurred()) SWIG_fail;
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 {
18577 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18578 result = (wxDateTime *) &_result_ref;
18579 }
18580
18581 wxPyEndAllowThreads(__tstate);
18582 if (PyErr_Occurred()) SWIG_fail;
18583 }
18584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18585 return resultobj;
18586 fail:
18587 return NULL;
18588}
18589
18590
c370783e 18591static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18592 PyObject *resultobj;
18593 wxDateTime *arg1 = (wxDateTime *) 0 ;
18594 int arg2 ;
18595 int arg3 = (int) wxDateTime::Monday_First ;
18596 wxDateTime *result;
18597 PyObject * obj0 = 0 ;
18598 PyObject * obj1 = 0 ;
18599 PyObject * obj2 = 0 ;
18600 char *kwnames[] = {
18601 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18602 };
18603
18604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18607 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18608 if (PyErr_Occurred()) SWIG_fail;
18609 if (obj2) {
c370783e 18610 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 {
18614 PyThreadState* __tstate = wxPyBeginAllowThreads();
18615 {
18616 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18617 result = (wxDateTime *) &_result_ref;
18618 }
18619
18620 wxPyEndAllowThreads(__tstate);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18624 return resultobj;
18625 fail:
18626 return NULL;
18627}
18628
18629
c370783e 18630static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18631 PyObject *resultobj;
18632 wxDateTime *arg1 = (wxDateTime *) 0 ;
18633 int arg2 ;
18634 int arg3 = (int) wxDateTime::Monday_First ;
18635 wxDateTime result;
18636 PyObject * obj0 = 0 ;
18637 PyObject * obj1 = 0 ;
18638 PyObject * obj2 = 0 ;
18639 char *kwnames[] = {
18640 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18641 };
18642
18643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18646 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18647 if (PyErr_Occurred()) SWIG_fail;
18648 if (obj2) {
c370783e 18649 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18650 if (PyErr_Occurred()) SWIG_fail;
18651 }
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18655
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 {
18660 wxDateTime * resultptr;
18661 resultptr = new wxDateTime((wxDateTime &) result);
18662 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18663 }
18664 return resultobj;
18665 fail:
18666 return NULL;
18667}
18668
18669
c370783e 18670static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18671 PyObject *resultobj;
18672 wxDateTime *arg1 = (wxDateTime *) 0 ;
18673 int arg2 ;
18674 wxDateTime *result;
18675 PyObject * obj0 = 0 ;
18676 PyObject * obj1 = 0 ;
18677 char *kwnames[] = {
18678 (char *) "self",(char *) "weekday", NULL
18679 };
18680
18681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18684 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18685 if (PyErr_Occurred()) SWIG_fail;
18686 {
18687 PyThreadState* __tstate = wxPyBeginAllowThreads();
18688 {
18689 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18690 result = (wxDateTime *) &_result_ref;
18691 }
18692
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18697 return resultobj;
18698 fail:
18699 return NULL;
18700}
18701
18702
c370783e 18703static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18704 PyObject *resultobj;
18705 wxDateTime *arg1 = (wxDateTime *) 0 ;
18706 int arg2 ;
18707 wxDateTime result;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self",(char *) "weekday", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18717 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18718 if (PyErr_Occurred()) SWIG_fail;
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 {
18727 wxDateTime * resultptr;
18728 resultptr = new wxDateTime((wxDateTime &) result);
18729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18730 }
18731 return resultobj;
18732 fail:
18733 return NULL;
18734}
18735
18736
c370783e 18737static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18738 PyObject *resultobj;
18739 wxDateTime *arg1 = (wxDateTime *) 0 ;
18740 int arg2 ;
18741 wxDateTime *result;
18742 PyObject * obj0 = 0 ;
18743 PyObject * obj1 = 0 ;
18744 char *kwnames[] = {
18745 (char *) "self",(char *) "weekday", NULL
18746 };
18747
18748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18751 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18752 if (PyErr_Occurred()) SWIG_fail;
18753 {
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 {
18756 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18757 result = (wxDateTime *) &_result_ref;
18758 }
18759
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18764 return resultobj;
18765 fail:
18766 return NULL;
18767}
18768
18769
c370783e 18770static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18771 PyObject *resultobj;
18772 wxDateTime *arg1 = (wxDateTime *) 0 ;
18773 int arg2 ;
18774 wxDateTime result;
18775 PyObject * obj0 = 0 ;
18776 PyObject * obj1 = 0 ;
18777 char *kwnames[] = {
18778 (char *) "self",(char *) "weekday", NULL
18779 };
18780
18781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18784 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18785 if (PyErr_Occurred()) SWIG_fail;
18786 {
18787 PyThreadState* __tstate = wxPyBeginAllowThreads();
18788 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18789
18790 wxPyEndAllowThreads(__tstate);
18791 if (PyErr_Occurred()) SWIG_fail;
18792 }
18793 {
18794 wxDateTime * resultptr;
18795 resultptr = new wxDateTime((wxDateTime &) result);
18796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18797 }
18798 return resultobj;
18799 fail:
18800 return NULL;
18801}
18802
18803
c370783e 18804static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18805 PyObject *resultobj;
18806 wxDateTime *arg1 = (wxDateTime *) 0 ;
18807 int arg2 ;
18808 int arg3 = (int) 1 ;
18809 int arg4 = (int) wxDateTime::Inv_Month ;
18810 int arg5 = (int) wxDateTime::Inv_Year ;
18811 bool result;
18812 PyObject * obj0 = 0 ;
18813 PyObject * obj1 = 0 ;
18814 PyObject * obj2 = 0 ;
18815 PyObject * obj3 = 0 ;
18816 PyObject * obj4 = 0 ;
18817 char *kwnames[] = {
18818 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18819 };
18820
18821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18824 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18825 if (PyErr_Occurred()) SWIG_fail;
18826 if (obj2) {
c370783e 18827 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18828 if (PyErr_Occurred()) SWIG_fail;
18829 }
18830 if (obj3) {
c370783e 18831 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18832 if (PyErr_Occurred()) SWIG_fail;
18833 }
18834 if (obj4) {
c370783e 18835 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 {
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18841
18842 wxPyEndAllowThreads(__tstate);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 {
18846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18847 }
18848 return resultobj;
18849 fail:
18850 return NULL;
18851}
18852
18853
c370783e 18854static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18855 PyObject *resultobj;
18856 wxDateTime *arg1 = (wxDateTime *) 0 ;
18857 int arg2 ;
18858 int arg3 = (int) wxDateTime::Inv_Month ;
18859 int arg4 = (int) wxDateTime::Inv_Year ;
18860 bool result;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 PyObject * obj2 = 0 ;
18864 PyObject * obj3 = 0 ;
18865 char *kwnames[] = {
18866 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18867 };
18868
18869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18872 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18873 if (PyErr_Occurred()) SWIG_fail;
18874 if (obj2) {
c370783e 18875 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18876 if (PyErr_Occurred()) SWIG_fail;
18877 }
18878 if (obj3) {
c370783e 18879 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 {
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18885
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 {
18890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18891 }
18892 return resultobj;
18893 fail:
18894 return NULL;
18895}
18896
18897
c370783e 18898static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18899 PyObject *resultobj;
18900 wxDateTime *arg1 = (wxDateTime *) 0 ;
18901 int arg2 ;
18902 int arg3 = (int) wxDateTime::Inv_Month ;
18903 int arg4 = (int) wxDateTime::Inv_Year ;
18904 wxDateTime result;
18905 PyObject * obj0 = 0 ;
18906 PyObject * obj1 = 0 ;
18907 PyObject * obj2 = 0 ;
18908 PyObject * obj3 = 0 ;
18909 char *kwnames[] = {
18910 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18911 };
18912
18913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18916 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18917 if (PyErr_Occurred()) SWIG_fail;
18918 if (obj2) {
c370783e 18919 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 if (obj3) {
c370783e 18923 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 {
18927 PyThreadState* __tstate = wxPyBeginAllowThreads();
18928 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18929
18930 wxPyEndAllowThreads(__tstate);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 {
18934 wxDateTime * resultptr;
18935 resultptr = new wxDateTime((wxDateTime &) result);
18936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18937 }
18938 return resultobj;
18939 fail:
18940 return NULL;
18941}
18942
18943
c370783e 18944static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18945 PyObject *resultobj;
18946 wxDateTime *arg1 = (wxDateTime *) 0 ;
18947 int arg2 ;
18948 int arg3 = (int) wxDateTime::Mon ;
18949 int arg4 = (int) wxDateTime::Monday_First ;
18950 bool result;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 PyObject * obj2 = 0 ;
18954 PyObject * obj3 = 0 ;
18955 char *kwnames[] = {
18956 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18957 };
18958
18959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 18962 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
18963 if (PyErr_Occurred()) SWIG_fail;
18964 if (obj2) {
c370783e 18965 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
18966 if (PyErr_Occurred()) SWIG_fail;
18967 }
18968 if (obj3) {
c370783e 18969 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 {
18973 PyThreadState* __tstate = wxPyBeginAllowThreads();
18974 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18975
18976 wxPyEndAllowThreads(__tstate);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 {
18980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18981 }
18982 return resultobj;
18983 fail:
18984 return NULL;
18985}
18986
18987
c370783e 18988static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18989 PyObject *resultobj;
18990 wxDateTime *arg1 = (wxDateTime *) 0 ;
18991 int arg2 ;
18992 int arg3 = (int) wxDateTime::Mon ;
18993 int arg4 = (int) wxDateTime::Monday_First ;
18994 wxDateTime result;
18995 PyObject * obj0 = 0 ;
18996 PyObject * obj1 = 0 ;
18997 PyObject * obj2 = 0 ;
18998 PyObject * obj3 = 0 ;
18999 char *kwnames[] = {
19000 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
19001 };
19002
19003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 19006 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19007 if (PyErr_Occurred()) SWIG_fail;
19008 if (obj2) {
c370783e 19009 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
19010 if (PyErr_Occurred()) SWIG_fail;
19011 }
19012 if (obj3) {
c370783e 19013 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
19019
19020 wxPyEndAllowThreads(__tstate);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 {
19024 wxDateTime * resultptr;
19025 resultptr = new wxDateTime((wxDateTime &) result);
19026 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19027 }
19028 return resultobj;
19029 fail:
19030 return NULL;
19031}
19032
19033
629e65c2
RD
19034static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19035 PyObject *resultobj;
19036 int arg1 ;
19037 int arg2 ;
19038 int arg3 = (int) wxDateTime::Mon ;
19039 wxDateTime result;
19040 PyObject * obj0 = 0 ;
19041 PyObject * obj1 = 0 ;
19042 PyObject * obj2 = 0 ;
19043 char *kwnames[] = {
19044 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
19045 };
19046
19047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19048 arg1 = (int)SWIG_As_int(obj0);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 arg2 = (int)SWIG_As_int(obj1);
19051 if (PyErr_Occurred()) SWIG_fail;
19052 if (obj2) {
19053 arg3 = (int)SWIG_As_int(obj2);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 {
19057 PyThreadState* __tstate = wxPyBeginAllowThreads();
19058 result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3);
19059
19060 wxPyEndAllowThreads(__tstate);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 {
19064 wxDateTime * resultptr;
19065 resultptr = new wxDateTime((wxDateTime &) result);
19066 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19067 }
19068 return resultobj;
19069 fail:
19070 return NULL;
19071}
19072
19073
c370783e 19074static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19075 PyObject *resultobj;
19076 wxDateTime *arg1 = (wxDateTime *) 0 ;
19077 int arg2 = (int) wxDateTime::Inv_Month ;
19078 int arg3 = (int) wxDateTime::Inv_Year ;
19079 wxDateTime *result;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 char *kwnames[] = {
19084 (char *) "self",(char *) "month",(char *) "year", NULL
19085 };
19086
19087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
19088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19090 if (obj1) {
c370783e 19091 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 if (obj2) {
c370783e 19095 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 {
19099 PyThreadState* __tstate = wxPyBeginAllowThreads();
19100 {
19101 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
19102 result = (wxDateTime *) &_result_ref;
19103 }
19104
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19109 return resultobj;
19110 fail:
19111 return NULL;
19112}
19113
19114
c370783e 19115static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19116 PyObject *resultobj;
19117 wxDateTime *arg1 = (wxDateTime *) 0 ;
19118 int arg2 = (int) wxDateTime::Inv_Month ;
19119 int arg3 = (int) wxDateTime::Inv_Year ;
19120 wxDateTime result;
19121 PyObject * obj0 = 0 ;
19122 PyObject * obj1 = 0 ;
19123 PyObject * obj2 = 0 ;
19124 char *kwnames[] = {
19125 (char *) "self",(char *) "month",(char *) "year", NULL
19126 };
19127
19128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
19129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19131 if (obj1) {
c370783e 19132 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19133 if (PyErr_Occurred()) SWIG_fail;
19134 }
19135 if (obj2) {
c370783e 19136 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
19137 if (PyErr_Occurred()) SWIG_fail;
19138 }
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
19142
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 {
19147 wxDateTime * resultptr;
19148 resultptr = new wxDateTime((wxDateTime &) result);
19149 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19150 }
19151 return resultobj;
19152 fail:
19153 return NULL;
19154}
19155
19156
c370783e 19157static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19158 PyObject *resultobj;
19159 wxDateTime *arg1 = (wxDateTime *) 0 ;
19160 int arg2 ;
19161 wxDateTime *result;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 char *kwnames[] = {
19165 (char *) "self",(char *) "yday", NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
19169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 19171 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19172 if (PyErr_Occurred()) SWIG_fail;
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 {
19176 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
19177 result = (wxDateTime *) &_result_ref;
19178 }
19179
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19184 return resultobj;
19185 fail:
19186 return NULL;
19187}
19188
19189
c370783e 19190static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19191 PyObject *resultobj;
19192 wxDateTime *arg1 = (wxDateTime *) 0 ;
19193 int arg2 ;
19194 wxDateTime result;
19195 PyObject * obj0 = 0 ;
19196 PyObject * obj1 = 0 ;
19197 char *kwnames[] = {
19198 (char *) "self",(char *) "yday", NULL
19199 };
19200
19201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
19202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 19204 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19205 if (PyErr_Occurred()) SWIG_fail;
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = (arg1)->GetYearDay(arg2);
19209
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 {
19214 wxDateTime * resultptr;
19215 resultptr = new wxDateTime((wxDateTime &) result);
19216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19217 }
19218 return resultobj;
19219 fail:
19220 return NULL;
19221}
19222
19223
c370783e 19224static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19225 PyObject *resultobj;
19226 wxDateTime *arg1 = (wxDateTime *) 0 ;
19227 double result;
19228 PyObject * obj0 = 0 ;
19229 char *kwnames[] = {
19230 (char *) "self", NULL
19231 };
19232
19233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
19234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 result = (double)(arg1)->GetJulianDayNumber();
19239
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
c370783e 19243 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19244 return resultobj;
19245 fail:
19246 return NULL;
19247}
19248
19249
c370783e 19250static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19251 PyObject *resultobj;
19252 wxDateTime *arg1 = (wxDateTime *) 0 ;
19253 double result;
19254 PyObject * obj0 = 0 ;
19255 char *kwnames[] = {
19256 (char *) "self", NULL
19257 };
19258
19259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
19260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19262 {
19263 PyThreadState* __tstate = wxPyBeginAllowThreads();
19264 result = (double)(arg1)->GetJDN();
19265
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
c370783e 19269 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19270 return resultobj;
19271 fail:
19272 return NULL;
19273}
19274
19275
c370783e 19276static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19277 PyObject *resultobj;
19278 wxDateTime *arg1 = (wxDateTime *) 0 ;
19279 double result;
19280 PyObject * obj0 = 0 ;
19281 char *kwnames[] = {
19282 (char *) "self", NULL
19283 };
19284
19285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19291
19292 wxPyEndAllowThreads(__tstate);
19293 if (PyErr_Occurred()) SWIG_fail;
19294 }
c370783e 19295 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19296 return resultobj;
19297 fail:
19298 return NULL;
19299}
19300
19301
c370783e 19302static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19303 PyObject *resultobj;
19304 wxDateTime *arg1 = (wxDateTime *) 0 ;
19305 double result;
19306 PyObject * obj0 = 0 ;
19307 char *kwnames[] = {
19308 (char *) "self", NULL
19309 };
19310
19311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 result = (double)(arg1)->GetMJD();
19317
19318 wxPyEndAllowThreads(__tstate);
19319 if (PyErr_Occurred()) SWIG_fail;
19320 }
c370783e 19321 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19322 return resultobj;
19323 fail:
19324 return NULL;
19325}
19326
19327
c370783e 19328static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19329 PyObject *resultobj;
19330 wxDateTime *arg1 = (wxDateTime *) 0 ;
19331 double result;
19332 PyObject * obj0 = 0 ;
19333 char *kwnames[] = {
19334 (char *) "self", NULL
19335 };
19336
19337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 result = (double)(arg1)->GetRataDie();
19343
19344 wxPyEndAllowThreads(__tstate);
19345 if (PyErr_Occurred()) SWIG_fail;
19346 }
c370783e 19347 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
19348 return resultobj;
19349 fail:
19350 return NULL;
19351}
19352
19353
c370783e 19354static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19355 PyObject *resultobj;
19356 wxDateTime *arg1 = (wxDateTime *) 0 ;
19357 wxDateTime::TimeZone *arg2 = 0 ;
b411df4a 19358 bool arg3 = (bool) false ;
d55e5bfc 19359 wxDateTime result;
b411df4a 19360 bool temp2 = false ;
d55e5bfc
RD
19361 PyObject * obj0 = 0 ;
19362 PyObject * obj1 = 0 ;
19363 PyObject * obj2 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19371 {
19372 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19373 temp2 = true;
d55e5bfc
RD
19374 }
19375 if (obj2) {
c370783e 19376 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19382
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 {
19387 wxDateTime * resultptr;
19388 resultptr = new wxDateTime((wxDateTime &) result);
19389 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19390 }
19391 {
19392 if (temp2) delete arg2;
19393 }
19394 return resultobj;
19395 fail:
19396 {
19397 if (temp2) delete arg2;
19398 }
19399 return NULL;
19400}
19401
19402
c370783e 19403static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19404 PyObject *resultobj;
19405 wxDateTime *arg1 = (wxDateTime *) 0 ;
19406 wxDateTime::TimeZone *arg2 = 0 ;
b411df4a 19407 bool arg3 = (bool) false ;
d55e5bfc 19408 wxDateTime *result;
b411df4a 19409 bool temp2 = false ;
d55e5bfc
RD
19410 PyObject * obj0 = 0 ;
19411 PyObject * obj1 = 0 ;
19412 PyObject * obj2 = 0 ;
19413 char *kwnames[] = {
19414 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19415 };
19416
19417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19420 {
19421 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19422 temp2 = true;
d55e5bfc
RD
19423 }
19424 if (obj2) {
c370783e 19425 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 {
19429 PyThreadState* __tstate = wxPyBeginAllowThreads();
19430 {
19431 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19432 result = (wxDateTime *) &_result_ref;
19433 }
19434
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19439 {
19440 if (temp2) delete arg2;
19441 }
19442 return resultobj;
19443 fail:
19444 {
19445 if (temp2) delete arg2;
19446 }
19447 return NULL;
19448}
19449
19450
c370783e 19451static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19452 PyObject *resultobj;
19453 wxDateTime *arg1 = (wxDateTime *) 0 ;
b411df4a 19454 bool arg2 = (bool) false ;
d55e5bfc
RD
19455 wxDateTime result;
19456 PyObject * obj0 = 0 ;
19457 PyObject * obj1 = 0 ;
19458 char *kwnames[] = {
19459 (char *) "self",(char *) "noDST", NULL
19460 };
19461
19462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19465 if (obj1) {
c370783e 19466 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 result = (arg1)->ToGMT(arg2);
19472
19473 wxPyEndAllowThreads(__tstate);
19474 if (PyErr_Occurred()) SWIG_fail;
19475 }
19476 {
19477 wxDateTime * resultptr;
19478 resultptr = new wxDateTime((wxDateTime &) result);
19479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19480 }
19481 return resultobj;
19482 fail:
19483 return NULL;
19484}
19485
19486
c370783e 19487static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19488 PyObject *resultobj;
19489 wxDateTime *arg1 = (wxDateTime *) 0 ;
b411df4a 19490 bool arg2 = (bool) false ;
d55e5bfc
RD
19491 wxDateTime *result;
19492 PyObject * obj0 = 0 ;
19493 PyObject * obj1 = 0 ;
19494 char *kwnames[] = {
19495 (char *) "self",(char *) "noDST", NULL
19496 };
19497
19498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19501 if (obj1) {
c370783e 19502 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19503 if (PyErr_Occurred()) SWIG_fail;
19504 }
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 {
19508 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19509 result = (wxDateTime *) &_result_ref;
19510 }
19511
19512 wxPyEndAllowThreads(__tstate);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
19515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19516 return resultobj;
19517 fail:
19518 return NULL;
19519}
19520
19521
c370783e 19522static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19523 PyObject *resultobj;
19524 wxDateTime *arg1 = (wxDateTime *) 0 ;
19525 int arg2 = (int) wxDateTime::Country_Default ;
19526 int result;
19527 PyObject * obj0 = 0 ;
19528 PyObject * obj1 = 0 ;
19529 char *kwnames[] = {
19530 (char *) "self",(char *) "country", NULL
19531 };
19532
19533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19536 if (obj1) {
c370783e 19537 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19543
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
c370783e 19547 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19548 return resultobj;
19549 fail:
19550 return NULL;
19551}
19552
19553
c370783e 19554static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19555 PyObject *resultobj;
19556 wxDateTime *arg1 = (wxDateTime *) 0 ;
19557 bool result;
19558 PyObject * obj0 = 0 ;
19559 char *kwnames[] = {
19560 (char *) "self", NULL
19561 };
19562
19563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19566 {
19567 PyThreadState* __tstate = wxPyBeginAllowThreads();
19568 result = (bool)((wxDateTime const *)arg1)->IsValid();
19569
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 {
19574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19575 }
19576 return resultobj;
19577 fail:
19578 return NULL;
19579}
19580
19581
c370783e 19582static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19583 PyObject *resultobj;
19584 wxDateTime *arg1 = (wxDateTime *) 0 ;
19585 time_t result;
19586 PyObject * obj0 = 0 ;
19587 char *kwnames[] = {
19588 (char *) "self", NULL
19589 };
19590
19591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19594 {
19595 PyThreadState* __tstate = wxPyBeginAllowThreads();
19596 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19597
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
c370783e 19601 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
19602 return resultobj;
19603 fail:
19604 return NULL;
19605}
19606
19607
c370783e 19608static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19609 PyObject *resultobj;
19610 wxDateTime *arg1 = (wxDateTime *) 0 ;
19611 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19612 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19613 int result;
b411df4a 19614 bool temp2 = false ;
d55e5bfc
RD
19615 PyObject * obj0 = 0 ;
19616 PyObject * obj1 = 0 ;
19617 char *kwnames[] = {
19618 (char *) "self",(char *) "tz", NULL
19619 };
19620
19621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19624 if (obj1) {
19625 {
19626 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19627 temp2 = true;
d55e5bfc
RD
19628 }
19629 }
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19633
19634 wxPyEndAllowThreads(__tstate);
19635 if (PyErr_Occurred()) SWIG_fail;
19636 }
c370783e 19637 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19638 {
19639 if (temp2) delete arg2;
19640 }
19641 return resultobj;
19642 fail:
19643 {
19644 if (temp2) delete arg2;
19645 }
19646 return NULL;
19647}
19648
19649
c370783e 19650static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19651 PyObject *resultobj;
19652 wxDateTime *arg1 = (wxDateTime *) 0 ;
19653 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19654 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19655 int result;
b411df4a 19656 bool temp2 = false ;
d55e5bfc
RD
19657 PyObject * obj0 = 0 ;
19658 PyObject * obj1 = 0 ;
19659 char *kwnames[] = {
19660 (char *) "self",(char *) "tz", NULL
19661 };
19662
19663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19666 if (obj1) {
19667 {
19668 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19669 temp2 = true;
d55e5bfc
RD
19670 }
19671 }
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19675
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
c370783e 19679 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19680 {
19681 if (temp2) delete arg2;
19682 }
19683 return resultobj;
19684 fail:
19685 {
19686 if (temp2) delete arg2;
19687 }
19688 return NULL;
19689}
19690
19691
c370783e 19692static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19693 PyObject *resultobj;
19694 wxDateTime *arg1 = (wxDateTime *) 0 ;
19695 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19696 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19697 int result;
b411df4a 19698 bool temp2 = false ;
d55e5bfc
RD
19699 PyObject * obj0 = 0 ;
19700 PyObject * obj1 = 0 ;
19701 char *kwnames[] = {
19702 (char *) "self",(char *) "tz", NULL
19703 };
19704
19705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19708 if (obj1) {
19709 {
19710 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19711 temp2 = true;
d55e5bfc
RD
19712 }
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
c370783e 19721 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19722 {
19723 if (temp2) delete arg2;
19724 }
19725 return resultobj;
19726 fail:
19727 {
19728 if (temp2) delete arg2;
19729 }
19730 return NULL;
19731}
19732
19733
c370783e 19734static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19735 PyObject *resultobj;
19736 wxDateTime *arg1 = (wxDateTime *) 0 ;
19737 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19738 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19739 int result;
b411df4a 19740 bool temp2 = false ;
d55e5bfc
RD
19741 PyObject * obj0 = 0 ;
19742 PyObject * obj1 = 0 ;
19743 char *kwnames[] = {
19744 (char *) "self",(char *) "tz", NULL
19745 };
19746
19747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19750 if (obj1) {
19751 {
19752 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19753 temp2 = true;
d55e5bfc
RD
19754 }
19755 }
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19759
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
c370783e 19763 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19764 {
19765 if (temp2) delete arg2;
19766 }
19767 return resultobj;
19768 fail:
19769 {
19770 if (temp2) delete arg2;
19771 }
19772 return NULL;
19773}
19774
19775
c370783e 19776static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19777 PyObject *resultobj;
19778 wxDateTime *arg1 = (wxDateTime *) 0 ;
19779 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19780 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19781 int result;
b411df4a 19782 bool temp2 = false ;
d55e5bfc
RD
19783 PyObject * obj0 = 0 ;
19784 PyObject * obj1 = 0 ;
19785 char *kwnames[] = {
19786 (char *) "self",(char *) "tz", NULL
19787 };
19788
19789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19792 if (obj1) {
19793 {
19794 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19795 temp2 = true;
d55e5bfc
RD
19796 }
19797 }
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19801
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
c370783e 19805 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19806 {
19807 if (temp2) delete arg2;
19808 }
19809 return resultobj;
19810 fail:
19811 {
19812 if (temp2) delete arg2;
19813 }
19814 return NULL;
19815}
19816
19817
c370783e 19818static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19819 PyObject *resultobj;
19820 wxDateTime *arg1 = (wxDateTime *) 0 ;
19821 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19822 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19823 int result;
b411df4a 19824 bool temp2 = false ;
d55e5bfc
RD
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 char *kwnames[] = {
19828 (char *) "self",(char *) "tz", NULL
19829 };
19830
19831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19834 if (obj1) {
19835 {
19836 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19837 temp2 = true;
d55e5bfc
RD
19838 }
19839 }
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19843
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
c370783e 19847 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19848 {
19849 if (temp2) delete arg2;
19850 }
19851 return resultobj;
19852 fail:
19853 {
19854 if (temp2) delete arg2;
19855 }
19856 return NULL;
19857}
19858
19859
c370783e 19860static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19861 PyObject *resultobj;
19862 wxDateTime *arg1 = (wxDateTime *) 0 ;
19863 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19864 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19865 int result;
b411df4a 19866 bool temp2 = false ;
d55e5bfc
RD
19867 PyObject * obj0 = 0 ;
19868 PyObject * obj1 = 0 ;
19869 char *kwnames[] = {
19870 (char *) "self",(char *) "tz", NULL
19871 };
19872
19873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19876 if (obj1) {
19877 {
19878 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19879 temp2 = true;
d55e5bfc
RD
19880 }
19881 }
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19885
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
c370783e 19889 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19890 {
19891 if (temp2) delete arg2;
19892 }
19893 return resultobj;
19894 fail:
19895 {
19896 if (temp2) delete arg2;
19897 }
19898 return NULL;
19899}
19900
19901
c370783e 19902static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19903 PyObject *resultobj;
19904 wxDateTime *arg1 = (wxDateTime *) 0 ;
19905 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19906 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19907 int result;
b411df4a 19908 bool temp2 = false ;
d55e5bfc
RD
19909 PyObject * obj0 = 0 ;
19910 PyObject * obj1 = 0 ;
19911 char *kwnames[] = {
19912 (char *) "self",(char *) "tz", NULL
19913 };
19914
19915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19918 if (obj1) {
19919 {
19920 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19921 temp2 = true;
d55e5bfc
RD
19922 }
19923 }
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19927
19928 wxPyEndAllowThreads(__tstate);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 }
c370783e 19931 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19932 {
19933 if (temp2) delete arg2;
19934 }
19935 return resultobj;
19936 fail:
19937 {
19938 if (temp2) delete arg2;
19939 }
19940 return NULL;
19941}
19942
19943
c370783e 19944static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19945 PyObject *resultobj;
19946 wxDateTime *arg1 = (wxDateTime *) 0 ;
19947 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19948 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19949 int result;
b411df4a 19950 bool temp2 = false ;
d55e5bfc
RD
19951 PyObject * obj0 = 0 ;
19952 PyObject * obj1 = 0 ;
19953 char *kwnames[] = {
19954 (char *) "self",(char *) "tz", NULL
19955 };
19956
19957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19960 if (obj1) {
19961 {
19962 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
b411df4a 19963 temp2 = true;
d55e5bfc
RD
19964 }
19965 }
19966 {
19967 PyThreadState* __tstate = wxPyBeginAllowThreads();
19968 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19969
19970 wxPyEndAllowThreads(__tstate);
19971 if (PyErr_Occurred()) SWIG_fail;
19972 }
c370783e 19973 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19974 {
19975 if (temp2) delete arg2;
19976 }
19977 return resultobj;
19978 fail:
19979 {
19980 if (temp2) delete arg2;
19981 }
19982 return NULL;
19983}
19984
19985
c370783e 19986static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19987 PyObject *resultobj;
19988 wxDateTime *arg1 = (wxDateTime *) 0 ;
19989 int arg2 = (int) wxDateTime::Monday_First ;
19990 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19991 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19992 int result;
b411df4a 19993 bool temp3 = false ;
d55e5bfc
RD
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 PyObject * obj2 = 0 ;
19997 char *kwnames[] = {
19998 (char *) "self",(char *) "flags",(char *) "tz", NULL
19999 };
20000
20001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
20002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20004 if (obj1) {
c370783e 20005 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 if (obj2) {
20009 {
20010 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
b411df4a 20011 temp3 = true;
d55e5bfc
RD
20012 }
20013 }
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
20017
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
c370783e 20021 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20022 {
20023 if (temp3) delete arg3;
20024 }
20025 return resultobj;
20026 fail:
20027 {
20028 if (temp3) delete arg3;
20029 }
20030 return NULL;
20031}
20032
20033
c370783e 20034static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20035 PyObject *resultobj;
20036 wxDateTime *arg1 = (wxDateTime *) 0 ;
20037 int arg2 = (int) wxDateTime::Monday_First ;
20038 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20039 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20040 int result;
b411df4a 20041 bool temp3 = false ;
d55e5bfc
RD
20042 PyObject * obj0 = 0 ;
20043 PyObject * obj1 = 0 ;
20044 PyObject * obj2 = 0 ;
20045 char *kwnames[] = {
20046 (char *) "self",(char *) "flags",(char *) "tz", NULL
20047 };
20048
20049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20052 if (obj1) {
c370783e 20053 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
20054 if (PyErr_Occurred()) SWIG_fail;
20055 }
20056 if (obj2) {
20057 {
20058 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
b411df4a 20059 temp3 = true;
d55e5bfc
RD
20060 }
20061 }
20062 {
20063 PyThreadState* __tstate = wxPyBeginAllowThreads();
20064 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
20065
20066 wxPyEndAllowThreads(__tstate);
20067 if (PyErr_Occurred()) SWIG_fail;
20068 }
c370783e 20069 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20070 {
20071 if (temp3) delete arg3;
20072 }
20073 return resultobj;
20074 fail:
20075 {
20076 if (temp3) delete arg3;
20077 }
20078 return NULL;
20079}
20080
20081
c370783e 20082static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20083 PyObject *resultobj;
20084 wxDateTime *arg1 = (wxDateTime *) 0 ;
20085 int arg2 = (int) wxDateTime::Country_Default ;
20086 bool result;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 char *kwnames[] = {
20090 (char *) "self",(char *) "country", NULL
20091 };
20092
20093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
20094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20096 if (obj1) {
c370783e 20097 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 {
20101 PyThreadState* __tstate = wxPyBeginAllowThreads();
20102 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
20103
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 {
20108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20109 }
20110 return resultobj;
20111 fail:
20112 return NULL;
20113}
20114
20115
c370783e 20116static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20117 PyObject *resultobj;
20118 wxDateTime *arg1 = (wxDateTime *) 0 ;
20119 wxDateTime *arg2 = 0 ;
20120 bool result;
20121 PyObject * obj0 = 0 ;
20122 PyObject * obj1 = 0 ;
20123 char *kwnames[] = {
20124 (char *) "self",(char *) "datetime", NULL
20125 };
20126
20127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
20128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20131 SWIG_POINTER_EXCEPTION | 0)) == -1)
20132 SWIG_fail;
20133 if (arg2 == NULL) {
20134 PyErr_SetString(PyExc_TypeError,"null reference");
20135 SWIG_fail;
20136 }
20137 {
20138 PyThreadState* __tstate = wxPyBeginAllowThreads();
20139 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
20140
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 {
20145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20146 }
20147 return resultobj;
20148 fail:
20149 return NULL;
20150}
20151
20152
c370783e 20153static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20154 PyObject *resultobj;
20155 wxDateTime *arg1 = (wxDateTime *) 0 ;
20156 wxDateTime *arg2 = 0 ;
20157 bool result;
20158 PyObject * obj0 = 0 ;
20159 PyObject * obj1 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "self",(char *) "datetime", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
20165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20168 SWIG_POINTER_EXCEPTION | 0)) == -1)
20169 SWIG_fail;
20170 if (arg2 == NULL) {
20171 PyErr_SetString(PyExc_TypeError,"null reference");
20172 SWIG_fail;
20173 }
20174 {
20175 PyThreadState* __tstate = wxPyBeginAllowThreads();
20176 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
20177
20178 wxPyEndAllowThreads(__tstate);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 }
20181 {
20182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20183 }
20184 return resultobj;
20185 fail:
20186 return NULL;
20187}
20188
20189
c370783e 20190static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20191 PyObject *resultobj;
20192 wxDateTime *arg1 = (wxDateTime *) 0 ;
20193 wxDateTime *arg2 = 0 ;
20194 bool result;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 char *kwnames[] = {
20198 (char *) "self",(char *) "datetime", NULL
20199 };
20200
20201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
20202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20205 SWIG_POINTER_EXCEPTION | 0)) == -1)
20206 SWIG_fail;
20207 if (arg2 == NULL) {
20208 PyErr_SetString(PyExc_TypeError,"null reference");
20209 SWIG_fail;
20210 }
20211 {
20212 PyThreadState* __tstate = wxPyBeginAllowThreads();
20213 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
20214
20215 wxPyEndAllowThreads(__tstate);
20216 if (PyErr_Occurred()) SWIG_fail;
20217 }
20218 {
20219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20220 }
20221 return resultobj;
20222 fail:
20223 return NULL;
20224}
20225
20226
c370783e 20227static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20228 PyObject *resultobj;
20229 wxDateTime *arg1 = (wxDateTime *) 0 ;
20230 wxDateTime *arg2 = 0 ;
20231 wxDateTime *arg3 = 0 ;
20232 bool result;
20233 PyObject * obj0 = 0 ;
20234 PyObject * obj1 = 0 ;
20235 PyObject * obj2 = 0 ;
20236 char *kwnames[] = {
20237 (char *) "self",(char *) "t1",(char *) "t2", NULL
20238 };
20239
20240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20244 SWIG_POINTER_EXCEPTION | 0)) == -1)
20245 SWIG_fail;
20246 if (arg2 == NULL) {
20247 PyErr_SetString(PyExc_TypeError,"null reference");
20248 SWIG_fail;
20249 }
20250 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20251 SWIG_POINTER_EXCEPTION | 0)) == -1)
20252 SWIG_fail;
20253 if (arg3 == NULL) {
20254 PyErr_SetString(PyExc_TypeError,"null reference");
20255 SWIG_fail;
20256 }
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20260
20261 wxPyEndAllowThreads(__tstate);
20262 if (PyErr_Occurred()) SWIG_fail;
20263 }
20264 {
20265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20266 }
20267 return resultobj;
20268 fail:
20269 return NULL;
20270}
20271
20272
c370783e 20273static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20274 PyObject *resultobj;
20275 wxDateTime *arg1 = (wxDateTime *) 0 ;
20276 wxDateTime *arg2 = 0 ;
20277 wxDateTime *arg3 = 0 ;
20278 bool result;
20279 PyObject * obj0 = 0 ;
20280 PyObject * obj1 = 0 ;
20281 PyObject * obj2 = 0 ;
20282 char *kwnames[] = {
20283 (char *) "self",(char *) "t1",(char *) "t2", NULL
20284 };
20285
20286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20290 SWIG_POINTER_EXCEPTION | 0)) == -1)
20291 SWIG_fail;
20292 if (arg2 == NULL) {
20293 PyErr_SetString(PyExc_TypeError,"null reference");
20294 SWIG_fail;
20295 }
20296 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20297 SWIG_POINTER_EXCEPTION | 0)) == -1)
20298 SWIG_fail;
20299 if (arg3 == NULL) {
20300 PyErr_SetString(PyExc_TypeError,"null reference");
20301 SWIG_fail;
20302 }
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20306
20307 wxPyEndAllowThreads(__tstate);
20308 if (PyErr_Occurred()) SWIG_fail;
20309 }
20310 {
20311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20312 }
20313 return resultobj;
20314 fail:
20315 return NULL;
20316}
20317
20318
c370783e 20319static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20320 PyObject *resultobj;
20321 wxDateTime *arg1 = (wxDateTime *) 0 ;
20322 wxDateTime *arg2 = 0 ;
20323 bool result;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char *kwnames[] = {
20327 (char *) "self",(char *) "dt", NULL
20328 };
20329
20330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20333 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20334 SWIG_POINTER_EXCEPTION | 0)) == -1)
20335 SWIG_fail;
20336 if (arg2 == NULL) {
20337 PyErr_SetString(PyExc_TypeError,"null reference");
20338 SWIG_fail;
20339 }
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20343
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 {
20348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20349 }
20350 return resultobj;
20351 fail:
20352 return NULL;
20353}
20354
20355
c370783e 20356static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20357 PyObject *resultobj;
20358 wxDateTime *arg1 = (wxDateTime *) 0 ;
20359 wxDateTime *arg2 = 0 ;
20360 bool result;
20361 PyObject * obj0 = 0 ;
20362 PyObject * obj1 = 0 ;
20363 char *kwnames[] = {
20364 (char *) "self",(char *) "dt", NULL
20365 };
20366
20367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
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 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20380
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 {
20385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20386 }
20387 return resultobj;
20388 fail:
20389 return NULL;
20390}
20391
20392
c370783e 20393static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20394 PyObject *resultobj;
20395 wxDateTime *arg1 = (wxDateTime *) 0 ;
20396 wxDateTime *arg2 = 0 ;
20397 wxTimeSpan *arg3 = 0 ;
20398 bool result;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 PyObject * obj2 = 0 ;
20402 char *kwnames[] = {
20403 (char *) "self",(char *) "dt",(char *) "ts", NULL
20404 };
20405
20406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1)
20411 SWIG_fail;
20412 if (arg2 == NULL) {
20413 PyErr_SetString(PyExc_TypeError,"null reference");
20414 SWIG_fail;
20415 }
20416 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1)
20418 SWIG_fail;
20419 if (arg3 == NULL) {
20420 PyErr_SetString(PyExc_TypeError,"null reference");
20421 SWIG_fail;
20422 }
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20426
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 {
20431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20432 }
20433 return resultobj;
20434 fail:
20435 return NULL;
20436}
20437
20438
c370783e 20439static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20440 PyObject *resultobj;
20441 wxDateTime *arg1 = (wxDateTime *) 0 ;
20442 wxTimeSpan *arg2 = 0 ;
20443 wxDateTime *result;
20444 PyObject * obj0 = 0 ;
20445 PyObject * obj1 = 0 ;
20446 char *kwnames[] = {
20447 (char *) "self",(char *) "diff", NULL
20448 };
20449
20450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20454 SWIG_POINTER_EXCEPTION | 0)) == -1)
20455 SWIG_fail;
20456 if (arg2 == NULL) {
20457 PyErr_SetString(PyExc_TypeError,"null reference");
20458 SWIG_fail;
20459 }
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 {
20463 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20464 result = (wxDateTime *) &_result_ref;
20465 }
20466
20467 wxPyEndAllowThreads(__tstate);
20468 if (PyErr_Occurred()) SWIG_fail;
20469 }
20470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20471 return resultobj;
20472 fail:
20473 return NULL;
20474}
20475
20476
c370783e 20477static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20478 PyObject *resultobj;
20479 wxDateTime *arg1 = (wxDateTime *) 0 ;
20480 wxDateSpan *arg2 = 0 ;
20481 wxDateTime *result;
20482 PyObject * obj0 = 0 ;
20483 PyObject * obj1 = 0 ;
20484 char *kwnames[] = {
20485 (char *) "self",(char *) "diff", NULL
20486 };
20487
20488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20492 SWIG_POINTER_EXCEPTION | 0)) == -1)
20493 SWIG_fail;
20494 if (arg2 == NULL) {
20495 PyErr_SetString(PyExc_TypeError,"null reference");
20496 SWIG_fail;
20497 }
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 {
20501 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20502 result = (wxDateTime *) &_result_ref;
20503 }
20504
20505 wxPyEndAllowThreads(__tstate);
20506 if (PyErr_Occurred()) SWIG_fail;
20507 }
20508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20509 return resultobj;
20510 fail:
20511 return NULL;
20512}
20513
20514
c370783e 20515static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20516 PyObject *resultobj;
20517 wxDateTime *arg1 = (wxDateTime *) 0 ;
20518 wxTimeSpan *arg2 = 0 ;
20519 wxDateTime *result;
20520 PyObject * obj0 = 0 ;
20521 PyObject * obj1 = 0 ;
20522 char *kwnames[] = {
20523 (char *) "self",(char *) "diff", NULL
20524 };
20525
20526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20530 SWIG_POINTER_EXCEPTION | 0)) == -1)
20531 SWIG_fail;
20532 if (arg2 == NULL) {
20533 PyErr_SetString(PyExc_TypeError,"null reference");
20534 SWIG_fail;
20535 }
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 {
20539 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20540 result = (wxDateTime *) &_result_ref;
20541 }
20542
20543 wxPyEndAllowThreads(__tstate);
20544 if (PyErr_Occurred()) SWIG_fail;
20545 }
20546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20547 return resultobj;
20548 fail:
20549 return NULL;
20550}
20551
20552
c370783e 20553static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20554 PyObject *resultobj;
20555 wxDateTime *arg1 = (wxDateTime *) 0 ;
20556 wxDateSpan *arg2 = 0 ;
20557 wxDateTime *result;
20558 PyObject * obj0 = 0 ;
20559 PyObject * obj1 = 0 ;
20560 char *kwnames[] = {
20561 (char *) "self",(char *) "diff", NULL
20562 };
20563
20564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20568 SWIG_POINTER_EXCEPTION | 0)) == -1)
20569 SWIG_fail;
20570 if (arg2 == NULL) {
20571 PyErr_SetString(PyExc_TypeError,"null reference");
20572 SWIG_fail;
20573 }
20574 {
20575 PyThreadState* __tstate = wxPyBeginAllowThreads();
20576 {
20577 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20578 result = (wxDateTime *) &_result_ref;
20579 }
20580
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20585 return resultobj;
20586 fail:
20587 return NULL;
20588}
20589
20590
c370783e 20591static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20592 PyObject *resultobj;
20593 wxDateTime *arg1 = (wxDateTime *) 0 ;
20594 wxDateTime *arg2 = 0 ;
20595 wxTimeSpan result;
20596 PyObject * obj0 = 0 ;
20597 PyObject * obj1 = 0 ;
20598 char *kwnames[] = {
20599 (char *) "self",(char *) "dt", NULL
20600 };
20601
20602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20606 SWIG_POINTER_EXCEPTION | 0)) == -1)
20607 SWIG_fail;
20608 if (arg2 == NULL) {
20609 PyErr_SetString(PyExc_TypeError,"null reference");
20610 SWIG_fail;
20611 }
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20615
20616 wxPyEndAllowThreads(__tstate);
20617 if (PyErr_Occurred()) SWIG_fail;
20618 }
20619 {
20620 wxTimeSpan * resultptr;
20621 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20623 }
20624 return resultobj;
20625 fail:
20626 return NULL;
20627}
20628
20629
c370783e 20630static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20631 PyObject *resultobj;
20632 wxDateTime *arg1 = (wxDateTime *) 0 ;
20633 wxTimeSpan *arg2 = 0 ;
20634 wxDateTime *result;
20635 PyObject * obj0 = 0 ;
20636 PyObject * obj1 = 0 ;
20637
20638 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c370783e 20640 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20642 SWIG_POINTER_EXCEPTION | 0)) == -1)
20643 SWIG_fail;
20644 if (arg2 == NULL) {
20645 PyErr_SetString(PyExc_TypeError,"null reference");
20646 SWIG_fail;
20647 }
20648 {
20649 PyThreadState* __tstate = wxPyBeginAllowThreads();
20650 {
20651 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20652 result = (wxDateTime *) &_result_ref;
20653 }
20654
20655 wxPyEndAllowThreads(__tstate);
20656 if (PyErr_Occurred()) SWIG_fail;
20657 }
c370783e 20658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20659 return resultobj;
20660 fail:
20661 return NULL;
20662}
20663
20664
c370783e 20665static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20666 PyObject *resultobj;
20667 wxDateTime *arg1 = (wxDateTime *) 0 ;
20668 wxDateSpan *arg2 = 0 ;
20669 wxDateTime *result;
20670 PyObject * obj0 = 0 ;
20671 PyObject * obj1 = 0 ;
20672
20673 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c370783e 20675 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20677 SWIG_POINTER_EXCEPTION | 0)) == -1)
20678 SWIG_fail;
20679 if (arg2 == NULL) {
20680 PyErr_SetString(PyExc_TypeError,"null reference");
20681 SWIG_fail;
20682 }
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 {
20686 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20687 result = (wxDateTime *) &_result_ref;
20688 }
20689
20690 wxPyEndAllowThreads(__tstate);
20691 if (PyErr_Occurred()) SWIG_fail;
20692 }
c370783e 20693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20694 return resultobj;
20695 fail:
20696 return NULL;
20697}
20698
20699
20700static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20701 int argc;
20702 PyObject *argv[3];
20703 int ii;
20704
20705 argc = PyObject_Length(args);
20706 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20707 argv[ii] = PyTuple_GetItem(args,ii);
20708 }
20709 if (argc == 2) {
20710 int _v;
20711 {
20712 void *ptr;
20713 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20714 _v = 0;
20715 PyErr_Clear();
20716 } else {
20717 _v = 1;
20718 }
20719 }
20720 if (_v) {
20721 {
20722 void *ptr;
20723 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20724 _v = 0;
20725 PyErr_Clear();
20726 } else {
20727 _v = 1;
20728 }
20729 }
20730 if (_v) {
20731 return _wrap_DateTime___iadd____SWIG_0(self,args);
20732 }
20733 }
20734 }
20735 if (argc == 2) {
20736 int _v;
20737 {
20738 void *ptr;
20739 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20740 _v = 0;
20741 PyErr_Clear();
20742 } else {
20743 _v = 1;
20744 }
20745 }
20746 if (_v) {
20747 {
20748 void *ptr;
20749 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20750 _v = 0;
20751 PyErr_Clear();
20752 } else {
20753 _v = 1;
20754 }
20755 }
20756 if (_v) {
20757 return _wrap_DateTime___iadd____SWIG_1(self,args);
20758 }
20759 }
20760 }
20761
20762 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20763 return NULL;
20764}
20765
20766
c370783e 20767static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20768 PyObject *resultobj;
20769 wxDateTime *arg1 = (wxDateTime *) 0 ;
20770 wxTimeSpan *arg2 = 0 ;
20771 wxDateTime *result;
20772 PyObject * obj0 = 0 ;
20773 PyObject * obj1 = 0 ;
20774
20775 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c370783e 20777 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20779 SWIG_POINTER_EXCEPTION | 0)) == -1)
20780 SWIG_fail;
20781 if (arg2 == NULL) {
20782 PyErr_SetString(PyExc_TypeError,"null reference");
20783 SWIG_fail;
20784 }
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 {
20788 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20789 result = (wxDateTime *) &_result_ref;
20790 }
20791
20792 wxPyEndAllowThreads(__tstate);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
c370783e 20795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20796 return resultobj;
20797 fail:
20798 return NULL;
20799}
20800
20801
c370783e 20802static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20803 PyObject *resultobj;
20804 wxDateTime *arg1 = (wxDateTime *) 0 ;
20805 wxDateSpan *arg2 = 0 ;
20806 wxDateTime *result;
20807 PyObject * obj0 = 0 ;
20808 PyObject * obj1 = 0 ;
20809
20810 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
c370783e 20812 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
20813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20814 SWIG_POINTER_EXCEPTION | 0)) == -1)
20815 SWIG_fail;
20816 if (arg2 == NULL) {
20817 PyErr_SetString(PyExc_TypeError,"null reference");
20818 SWIG_fail;
20819 }
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 {
20823 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20824 result = (wxDateTime *) &_result_ref;
20825 }
20826
20827 wxPyEndAllowThreads(__tstate);
20828 if (PyErr_Occurred()) SWIG_fail;
20829 }
c370783e 20830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d55e5bfc
RD
20831 return resultobj;
20832 fail:
20833 return NULL;
20834}
20835
20836
20837static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20838 int argc;
20839 PyObject *argv[3];
20840 int ii;
20841
20842 argc = PyObject_Length(args);
20843 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20844 argv[ii] = PyTuple_GetItem(args,ii);
20845 }
20846 if (argc == 2) {
20847 int _v;
20848 {
20849 void *ptr;
20850 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20851 _v = 0;
20852 PyErr_Clear();
20853 } else {
20854 _v = 1;
20855 }
20856 }
20857 if (_v) {
20858 {
20859 void *ptr;
20860 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20861 _v = 0;
20862 PyErr_Clear();
20863 } else {
20864 _v = 1;
20865 }
20866 }
20867 if (_v) {
20868 return _wrap_DateTime___isub____SWIG_0(self,args);
20869 }
20870 }
20871 }
20872 if (argc == 2) {
20873 int _v;
20874 {
20875 void *ptr;
20876 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20877 _v = 0;
20878 PyErr_Clear();
20879 } else {
20880 _v = 1;
20881 }
20882 }
20883 if (_v) {
20884 {
20885 void *ptr;
20886 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20887 _v = 0;
20888 PyErr_Clear();
20889 } else {
20890 _v = 1;
20891 }
20892 }
20893 if (_v) {
20894 return _wrap_DateTime___isub____SWIG_1(self,args);
20895 }
20896 }
20897 }
20898
20899 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20900 return NULL;
20901}
20902
20903
c370783e 20904static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
20905 PyObject *resultobj;
20906 wxDateTime *arg1 = (wxDateTime *) 0 ;
20907 wxTimeSpan *arg2 = 0 ;
20908 wxDateTime result;
20909 PyObject * obj0 = 0 ;
20910 PyObject * obj1 = 0 ;
20911
20912 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20916 SWIG_POINTER_EXCEPTION | 0)) == -1)
20917 SWIG_fail;
20918 if (arg2 == NULL) {
20919 PyErr_SetString(PyExc_TypeError,"null reference");
20920 SWIG_fail;
20921 }
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20925
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 {
20930 wxDateTime * resultptr;
20931 resultptr = new wxDateTime((wxDateTime &) result);
20932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20933 }
20934 return resultobj;
20935 fail:
20936 return NULL;
20937}
20938
20939
c370783e 20940static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
20941 PyObject *resultobj;
20942 wxDateTime *arg1 = (wxDateTime *) 0 ;
20943 wxDateSpan *arg2 = 0 ;
20944 wxDateTime result;
20945 PyObject * obj0 = 0 ;
20946 PyObject * obj1 = 0 ;
20947
20948 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20952 SWIG_POINTER_EXCEPTION | 0)) == -1)
20953 SWIG_fail;
20954 if (arg2 == NULL) {
20955 PyErr_SetString(PyExc_TypeError,"null reference");
20956 SWIG_fail;
20957 }
20958 {
20959 PyThreadState* __tstate = wxPyBeginAllowThreads();
20960 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20961
20962 wxPyEndAllowThreads(__tstate);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 {
20966 wxDateTime * resultptr;
20967 resultptr = new wxDateTime((wxDateTime &) result);
20968 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20969 }
20970 return resultobj;
20971 fail:
20972 return NULL;
20973}
20974
20975
20976static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20977 int argc;
20978 PyObject *argv[3];
20979 int ii;
20980
20981 argc = PyObject_Length(args);
20982 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20983 argv[ii] = PyTuple_GetItem(args,ii);
20984 }
20985 if (argc == 2) {
20986 int _v;
20987 {
20988 void *ptr;
20989 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20990 _v = 0;
20991 PyErr_Clear();
20992 } else {
20993 _v = 1;
20994 }
20995 }
20996 if (_v) {
20997 {
20998 void *ptr;
20999 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
21000 _v = 0;
21001 PyErr_Clear();
21002 } else {
21003 _v = 1;
21004 }
21005 }
21006 if (_v) {
21007 return _wrap_DateTime___add____SWIG_0(self,args);
21008 }
21009 }
21010 }
21011 if (argc == 2) {
21012 int _v;
21013 {
21014 void *ptr;
21015 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21016 _v = 0;
21017 PyErr_Clear();
21018 } else {
21019 _v = 1;
21020 }
21021 }
21022 if (_v) {
21023 {
21024 void *ptr;
21025 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21026 _v = 0;
21027 PyErr_Clear();
21028 } else {
21029 _v = 1;
21030 }
21031 }
21032 if (_v) {
21033 return _wrap_DateTime___add____SWIG_1(self,args);
21034 }
21035 }
21036 }
21037
21038 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
21039 return NULL;
21040}
21041
21042
c370783e 21043static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
21044 PyObject *resultobj;
21045 wxDateTime *arg1 = (wxDateTime *) 0 ;
21046 wxDateTime *arg2 = 0 ;
21047 wxTimeSpan result;
21048 PyObject * obj0 = 0 ;
21049 PyObject * obj1 = 0 ;
21050
21051 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21055 SWIG_POINTER_EXCEPTION | 0)) == -1)
21056 SWIG_fail;
21057 if (arg2 == NULL) {
21058 PyErr_SetString(PyExc_TypeError,"null reference");
21059 SWIG_fail;
21060 }
21061 {
21062 PyThreadState* __tstate = wxPyBeginAllowThreads();
21063 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
21064
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 {
21069 wxTimeSpan * resultptr;
21070 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21071 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21072 }
21073 return resultobj;
21074 fail:
21075 return NULL;
21076}
21077
21078
c370783e 21079static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
21080 PyObject *resultobj;
21081 wxDateTime *arg1 = (wxDateTime *) 0 ;
21082 wxTimeSpan *arg2 = 0 ;
21083 wxDateTime result;
21084 PyObject * obj0 = 0 ;
21085 PyObject * obj1 = 0 ;
21086
21087 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21091 SWIG_POINTER_EXCEPTION | 0)) == -1)
21092 SWIG_fail;
21093 if (arg2 == NULL) {
21094 PyErr_SetString(PyExc_TypeError,"null reference");
21095 SWIG_fail;
21096 }
21097 {
21098 PyThreadState* __tstate = wxPyBeginAllowThreads();
21099 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
21100
21101 wxPyEndAllowThreads(__tstate);
21102 if (PyErr_Occurred()) SWIG_fail;
21103 }
21104 {
21105 wxDateTime * resultptr;
21106 resultptr = new wxDateTime((wxDateTime &) result);
21107 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21108 }
21109 return resultobj;
21110 fail:
21111 return NULL;
21112}
21113
21114
c370783e 21115static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
21116 PyObject *resultobj;
21117 wxDateTime *arg1 = (wxDateTime *) 0 ;
21118 wxDateSpan *arg2 = 0 ;
21119 wxDateTime result;
21120 PyObject * obj0 = 0 ;
21121 PyObject * obj1 = 0 ;
21122
21123 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
21127 SWIG_POINTER_EXCEPTION | 0)) == -1)
21128 SWIG_fail;
21129 if (arg2 == NULL) {
21130 PyErr_SetString(PyExc_TypeError,"null reference");
21131 SWIG_fail;
21132 }
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
21136
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 {
21141 wxDateTime * resultptr;
21142 resultptr = new wxDateTime((wxDateTime &) result);
21143 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21144 }
21145 return resultobj;
21146 fail:
21147 return NULL;
21148}
21149
21150
21151static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
21152 int argc;
21153 PyObject *argv[3];
21154 int ii;
21155
21156 argc = PyObject_Length(args);
21157 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21158 argv[ii] = PyTuple_GetItem(args,ii);
21159 }
21160 if (argc == 2) {
21161 int _v;
21162 {
21163 void *ptr;
21164 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21165 _v = 0;
21166 PyErr_Clear();
21167 } else {
21168 _v = 1;
21169 }
21170 }
21171 if (_v) {
21172 {
21173 void *ptr;
21174 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21175 _v = 0;
21176 PyErr_Clear();
21177 } else {
21178 _v = 1;
21179 }
21180 }
21181 if (_v) {
21182 return _wrap_DateTime___sub____SWIG_0(self,args);
21183 }
21184 }
21185 }
21186 if (argc == 2) {
21187 int _v;
21188 {
21189 void *ptr;
21190 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21191 _v = 0;
21192 PyErr_Clear();
21193 } else {
21194 _v = 1;
21195 }
21196 }
21197 if (_v) {
21198 {
21199 void *ptr;
21200 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
21201 _v = 0;
21202 PyErr_Clear();
21203 } else {
21204 _v = 1;
21205 }
21206 }
21207 if (_v) {
21208 return _wrap_DateTime___sub____SWIG_1(self,args);
21209 }
21210 }
21211 }
21212 if (argc == 2) {
21213 int _v;
21214 {
21215 void *ptr;
21216 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21217 _v = 0;
21218 PyErr_Clear();
21219 } else {
21220 _v = 1;
21221 }
21222 }
21223 if (_v) {
21224 {
21225 void *ptr;
21226 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21227 _v = 0;
21228 PyErr_Clear();
21229 } else {
21230 _v = 1;
21231 }
21232 }
21233 if (_v) {
21234 return _wrap_DateTime___sub____SWIG_2(self,args);
21235 }
21236 }
21237 }
21238
21239 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
21240 return NULL;
21241}
21242
21243
c370783e 21244static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
d55e5bfc
RD
21245 PyObject *resultobj;
21246 wxDateTime *arg1 = (wxDateTime *) 0 ;
21247 wxDateTime *arg2 = (wxDateTime *) 0 ;
21248 bool result;
21249 PyObject * obj0 = 0 ;
21250 PyObject * obj1 = 0 ;
21251
21252 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
21253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21257 {
21258 PyThreadState* __tstate = wxPyBeginAllowThreads();
21259 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
21260
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 {
21265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21266 }
21267 return resultobj;
21268 fail:
21269 return NULL;
21270}
21271
21272
c370783e 21273static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
d55e5bfc
RD
21274 PyObject *resultobj;
21275 wxDateTime *arg1 = (wxDateTime *) 0 ;
21276 wxDateTime *arg2 = (wxDateTime *) 0 ;
21277 bool result;
21278 PyObject * obj0 = 0 ;
21279 PyObject * obj1 = 0 ;
21280
21281 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21286 {
21287 PyThreadState* __tstate = wxPyBeginAllowThreads();
21288 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21289
21290 wxPyEndAllowThreads(__tstate);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 }
21293 {
21294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21295 }
21296 return resultobj;
21297 fail:
21298 return NULL;
21299}
21300
21301
c370783e 21302static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
d55e5bfc
RD
21303 PyObject *resultobj;
21304 wxDateTime *arg1 = (wxDateTime *) 0 ;
21305 wxDateTime *arg2 = (wxDateTime *) 0 ;
21306 bool result;
21307 PyObject * obj0 = 0 ;
21308 PyObject * obj1 = 0 ;
21309
21310 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21315 {
21316 PyThreadState* __tstate = wxPyBeginAllowThreads();
21317 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21318
21319 wxPyEndAllowThreads(__tstate);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 }
21322 {
21323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21324 }
21325 return resultobj;
21326 fail:
21327 return NULL;
21328}
21329
21330
c370783e 21331static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
d55e5bfc
RD
21332 PyObject *resultobj;
21333 wxDateTime *arg1 = (wxDateTime *) 0 ;
21334 wxDateTime *arg2 = (wxDateTime *) 0 ;
21335 bool result;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338
21339 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21347
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 {
21352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21353 }
21354 return resultobj;
21355 fail:
21356 return NULL;
21357}
21358
21359
c370783e 21360static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
d55e5bfc
RD
21361 PyObject *resultobj;
21362 wxDateTime *arg1 = (wxDateTime *) 0 ;
21363 wxDateTime *arg2 = (wxDateTime *) 0 ;
21364 bool result;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367
21368 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21373 {
21374 PyThreadState* __tstate = wxPyBeginAllowThreads();
21375 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21376
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 {
21381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21382 }
21383 return resultobj;
21384 fail:
21385 return NULL;
21386}
21387
21388
c370783e 21389static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
d55e5bfc
RD
21390 PyObject *resultobj;
21391 wxDateTime *arg1 = (wxDateTime *) 0 ;
21392 wxDateTime *arg2 = (wxDateTime *) 0 ;
21393 bool result;
21394 PyObject * obj0 = 0 ;
21395 PyObject * obj1 = 0 ;
21396
21397 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 {
21410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21411 }
21412 return resultobj;
21413 fail:
21414 return NULL;
21415}
21416
21417
c370783e 21418static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21419 PyObject *resultobj;
21420 wxDateTime *arg1 = (wxDateTime *) 0 ;
21421 wxString *arg2 = 0 ;
21422 int result;
b411df4a 21423 bool temp2 = false ;
d55e5bfc
RD
21424 PyObject * obj0 = 0 ;
21425 PyObject * obj1 = 0 ;
21426 char *kwnames[] = {
21427 (char *) "self",(char *) "date", NULL
21428 };
21429
21430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21433 {
21434 arg2 = wxString_in_helper(obj1);
21435 if (arg2 == NULL) SWIG_fail;
b411df4a 21436 temp2 = true;
d55e5bfc
RD
21437 }
21438 {
21439 PyThreadState* __tstate = wxPyBeginAllowThreads();
21440 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21441
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
c370783e 21445 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21446 {
21447 if (temp2)
21448 delete arg2;
21449 }
21450 return resultobj;
21451 fail:
21452 {
21453 if (temp2)
21454 delete arg2;
21455 }
21456 return NULL;
21457}
21458
21459
c370783e 21460static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21461 PyObject *resultobj;
21462 wxDateTime *arg1 = (wxDateTime *) 0 ;
21463 wxString *arg2 = 0 ;
21464 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21465 wxString *arg3 = (wxString *) &arg3_defvalue ;
21466 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21467 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21468 int result;
b411df4a
RD
21469 bool temp2 = false ;
21470 bool temp3 = false ;
d55e5bfc
RD
21471 PyObject * obj0 = 0 ;
21472 PyObject * obj1 = 0 ;
21473 PyObject * obj2 = 0 ;
21474 PyObject * obj3 = 0 ;
21475 char *kwnames[] = {
21476 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21477 };
21478
21479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21482 {
21483 arg2 = wxString_in_helper(obj1);
21484 if (arg2 == NULL) SWIG_fail;
b411df4a 21485 temp2 = true;
d55e5bfc
RD
21486 }
21487 if (obj2) {
21488 {
21489 arg3 = wxString_in_helper(obj2);
21490 if (arg3 == NULL) SWIG_fail;
b411df4a 21491 temp3 = true;
d55e5bfc
RD
21492 }
21493 }
21494 if (obj3) {
21495 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21496 SWIG_POINTER_EXCEPTION | 0)) == -1)
21497 SWIG_fail;
21498 if (arg4 == NULL) {
21499 PyErr_SetString(PyExc_TypeError,"null reference");
21500 SWIG_fail;
21501 }
21502 }
21503 {
21504 PyThreadState* __tstate = wxPyBeginAllowThreads();
21505 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21506
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
c370783e 21510 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21511 {
21512 if (temp2)
21513 delete arg2;
21514 }
21515 {
21516 if (temp3)
21517 delete arg3;
21518 }
21519 return resultobj;
21520 fail:
21521 {
21522 if (temp2)
21523 delete arg2;
21524 }
21525 {
21526 if (temp3)
21527 delete arg3;
21528 }
21529 return NULL;
21530}
21531
21532
c370783e 21533static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21534 PyObject *resultobj;
21535 wxDateTime *arg1 = (wxDateTime *) 0 ;
21536 wxString *arg2 = 0 ;
21537 int result;
b411df4a 21538 bool temp2 = false ;
d55e5bfc
RD
21539 PyObject * obj0 = 0 ;
21540 PyObject * obj1 = 0 ;
21541 char *kwnames[] = {
21542 (char *) "self",(char *) "datetime", NULL
21543 };
21544
21545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21548 {
21549 arg2 = wxString_in_helper(obj1);
21550 if (arg2 == NULL) SWIG_fail;
b411df4a 21551 temp2 = true;
d55e5bfc
RD
21552 }
21553 {
21554 PyThreadState* __tstate = wxPyBeginAllowThreads();
21555 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21556
21557 wxPyEndAllowThreads(__tstate);
21558 if (PyErr_Occurred()) SWIG_fail;
21559 }
c370783e 21560 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21561 {
21562 if (temp2)
21563 delete arg2;
21564 }
21565 return resultobj;
21566 fail:
21567 {
21568 if (temp2)
21569 delete arg2;
21570 }
21571 return NULL;
21572}
21573
21574
c370783e 21575static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21576 PyObject *resultobj;
21577 wxDateTime *arg1 = (wxDateTime *) 0 ;
21578 wxString *arg2 = 0 ;
21579 int result;
b411df4a 21580 bool temp2 = false ;
d55e5bfc
RD
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 char *kwnames[] = {
21584 (char *) "self",(char *) "date", NULL
21585 };
21586
21587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21590 {
21591 arg2 = wxString_in_helper(obj1);
21592 if (arg2 == NULL) SWIG_fail;
b411df4a 21593 temp2 = true;
d55e5bfc
RD
21594 }
21595 {
21596 PyThreadState* __tstate = wxPyBeginAllowThreads();
21597 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21598
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
c370783e 21602 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21603 {
21604 if (temp2)
21605 delete arg2;
21606 }
21607 return resultobj;
21608 fail:
21609 {
21610 if (temp2)
21611 delete arg2;
21612 }
21613 return NULL;
21614}
21615
21616
c370783e 21617static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21618 PyObject *resultobj;
21619 wxDateTime *arg1 = (wxDateTime *) 0 ;
21620 wxString *arg2 = 0 ;
21621 int result;
b411df4a 21622 bool temp2 = false ;
d55e5bfc
RD
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 char *kwnames[] = {
21626 (char *) "self",(char *) "time", NULL
21627 };
21628
21629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21632 {
21633 arg2 = wxString_in_helper(obj1);
21634 if (arg2 == NULL) SWIG_fail;
b411df4a 21635 temp2 = true;
d55e5bfc
RD
21636 }
21637 {
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21640
21641 wxPyEndAllowThreads(__tstate);
21642 if (PyErr_Occurred()) SWIG_fail;
21643 }
c370783e 21644 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21645 {
21646 if (temp2)
21647 delete arg2;
21648 }
21649 return resultobj;
21650 fail:
21651 {
21652 if (temp2)
21653 delete arg2;
21654 }
21655 return NULL;
21656}
21657
21658
c370783e 21659static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21660 PyObject *resultobj;
21661 wxDateTime *arg1 = (wxDateTime *) 0 ;
21662 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21663 wxString *arg2 = (wxString *) &arg2_defvalue ;
21664 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21665 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21666 wxString result;
b411df4a
RD
21667 bool temp2 = false ;
21668 bool temp3 = false ;
d55e5bfc
RD
21669 PyObject * obj0 = 0 ;
21670 PyObject * obj1 = 0 ;
21671 PyObject * obj2 = 0 ;
21672 char *kwnames[] = {
21673 (char *) "self",(char *) "format",(char *) "tz", NULL
21674 };
21675
21676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21679 if (obj1) {
21680 {
21681 arg2 = wxString_in_helper(obj1);
21682 if (arg2 == NULL) SWIG_fail;
b411df4a 21683 temp2 = true;
d55e5bfc
RD
21684 }
21685 }
21686 if (obj2) {
21687 {
21688 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
b411df4a 21689 temp3 = true;
d55e5bfc
RD
21690 }
21691 }
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
21694 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21695
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 {
21700#if wxUSE_UNICODE
21701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21702#else
21703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21704#endif
21705 }
21706 {
21707 if (temp2)
21708 delete arg2;
21709 }
21710 {
21711 if (temp3) delete arg3;
21712 }
21713 return resultobj;
21714 fail:
21715 {
21716 if (temp2)
21717 delete arg2;
21718 }
21719 {
21720 if (temp3) delete arg3;
21721 }
21722 return NULL;
21723}
21724
21725
c370783e 21726static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21727 PyObject *resultobj;
21728 wxDateTime *arg1 = (wxDateTime *) 0 ;
21729 wxString result;
21730 PyObject * obj0 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21738 {
21739 PyThreadState* __tstate = wxPyBeginAllowThreads();
21740 result = ((wxDateTime const *)arg1)->FormatDate();
21741
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 {
21746#if wxUSE_UNICODE
21747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21748#else
21749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21750#endif
21751 }
21752 return resultobj;
21753 fail:
21754 return NULL;
21755}
21756
21757
c370783e 21758static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21759 PyObject *resultobj;
21760 wxDateTime *arg1 = (wxDateTime *) 0 ;
21761 wxString result;
21762 PyObject * obj0 = 0 ;
21763 char *kwnames[] = {
21764 (char *) "self", NULL
21765 };
21766
21767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21770 {
21771 PyThreadState* __tstate = wxPyBeginAllowThreads();
21772 result = ((wxDateTime const *)arg1)->FormatTime();
21773
21774 wxPyEndAllowThreads(__tstate);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 }
21777 {
21778#if wxUSE_UNICODE
21779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21780#else
21781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21782#endif
21783 }
21784 return resultobj;
21785 fail:
21786 return NULL;
21787}
21788
21789
c370783e 21790static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21791 PyObject *resultobj;
21792 wxDateTime *arg1 = (wxDateTime *) 0 ;
21793 wxString result;
21794 PyObject * obj0 = 0 ;
21795 char *kwnames[] = {
21796 (char *) "self", NULL
21797 };
21798
21799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21802 {
21803 PyThreadState* __tstate = wxPyBeginAllowThreads();
21804 result = ((wxDateTime const *)arg1)->FormatISODate();
21805
21806 wxPyEndAllowThreads(__tstate);
21807 if (PyErr_Occurred()) SWIG_fail;
21808 }
21809 {
21810#if wxUSE_UNICODE
21811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21812#else
21813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21814#endif
21815 }
21816 return resultobj;
21817 fail:
21818 return NULL;
21819}
21820
21821
c370783e 21822static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21823 PyObject *resultobj;
21824 wxDateTime *arg1 = (wxDateTime *) 0 ;
21825 wxString result;
21826 PyObject * obj0 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "self", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21834 {
21835 PyThreadState* __tstate = wxPyBeginAllowThreads();
21836 result = ((wxDateTime const *)arg1)->FormatISOTime();
21837
21838 wxPyEndAllowThreads(__tstate);
21839 if (PyErr_Occurred()) SWIG_fail;
21840 }
21841 {
21842#if wxUSE_UNICODE
21843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21844#else
21845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21846#endif
21847 }
21848 return resultobj;
21849 fail:
21850 return NULL;
21851}
21852
21853
c370783e 21854static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21855 PyObject *obj;
21856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21857 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21858 Py_INCREF(obj);
21859 return Py_BuildValue((char *)"");
21860}
c370783e 21861static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21862 PyObject *resultobj;
21863 long arg1 ;
21864 wxTimeSpan result;
21865 PyObject * obj0 = 0 ;
21866 char *kwnames[] = {
21867 (char *) "sec", NULL
21868 };
21869
21870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
c370783e 21871 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21872 if (PyErr_Occurred()) SWIG_fail;
21873 {
21874 PyThreadState* __tstate = wxPyBeginAllowThreads();
21875 result = wxTimeSpan::Seconds(arg1);
21876
21877 wxPyEndAllowThreads(__tstate);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 }
21880 {
21881 wxTimeSpan * resultptr;
21882 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21884 }
21885 return resultobj;
21886 fail:
21887 return NULL;
21888}
21889
21890
c370783e 21891static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21892 PyObject *resultobj;
21893 wxTimeSpan result;
21894 char *kwnames[] = {
21895 NULL
21896 };
21897
21898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = wxTimeSpan::Second();
21902
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 {
21907 wxTimeSpan * resultptr;
21908 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21910 }
21911 return resultobj;
21912 fail:
21913 return NULL;
21914}
21915
21916
c370783e 21917static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21918 PyObject *resultobj;
21919 long arg1 ;
21920 wxTimeSpan result;
21921 PyObject * obj0 = 0 ;
21922 char *kwnames[] = {
21923 (char *) "min", NULL
21924 };
21925
21926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
c370783e 21927 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21928 if (PyErr_Occurred()) SWIG_fail;
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = wxTimeSpan::Minutes(arg1);
21932
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 {
21937 wxTimeSpan * resultptr;
21938 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21940 }
21941 return resultobj;
21942 fail:
21943 return NULL;
21944}
21945
21946
c370783e 21947static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21948 PyObject *resultobj;
21949 wxTimeSpan result;
21950 char *kwnames[] = {
21951 NULL
21952 };
21953
21954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = wxTimeSpan::Minute();
21958
21959 wxPyEndAllowThreads(__tstate);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 {
21963 wxTimeSpan * resultptr;
21964 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21966 }
21967 return resultobj;
21968 fail:
21969 return NULL;
21970}
21971
21972
c370783e 21973static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21974 PyObject *resultobj;
21975 long arg1 ;
21976 wxTimeSpan result;
21977 PyObject * obj0 = 0 ;
21978 char *kwnames[] = {
21979 (char *) "hours", NULL
21980 };
21981
21982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
c370783e 21983 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
21984 if (PyErr_Occurred()) SWIG_fail;
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 result = wxTimeSpan::Hours(arg1);
21988
21989 wxPyEndAllowThreads(__tstate);
21990 if (PyErr_Occurred()) SWIG_fail;
21991 }
21992 {
21993 wxTimeSpan * resultptr;
21994 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21996 }
21997 return resultobj;
21998 fail:
21999 return NULL;
22000}
22001
22002
c370783e 22003static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22004 PyObject *resultobj;
22005 wxTimeSpan result;
22006 char *kwnames[] = {
22007 NULL
22008 };
22009
22010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
22011 {
22012 PyThreadState* __tstate = wxPyBeginAllowThreads();
22013 result = wxTimeSpan::Hour();
22014
22015 wxPyEndAllowThreads(__tstate);
22016 if (PyErr_Occurred()) SWIG_fail;
22017 }
22018 {
22019 wxTimeSpan * resultptr;
22020 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22022 }
22023 return resultobj;
22024 fail:
22025 return NULL;
22026}
22027
22028
c370783e 22029static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22030 PyObject *resultobj;
22031 long arg1 ;
22032 wxTimeSpan result;
22033 PyObject * obj0 = 0 ;
22034 char *kwnames[] = {
22035 (char *) "days", NULL
22036 };
22037
22038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
c370783e 22039 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
22040 if (PyErr_Occurred()) SWIG_fail;
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 result = wxTimeSpan::Days(arg1);
22044
22045 wxPyEndAllowThreads(__tstate);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 }
22048 {
22049 wxTimeSpan * resultptr;
22050 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22052 }
22053 return resultobj;
22054 fail:
22055 return NULL;
22056}
22057
22058
c370783e 22059static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22060 PyObject *resultobj;
22061 wxTimeSpan result;
22062 char *kwnames[] = {
22063 NULL
22064 };
22065
22066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
22067 {
22068 PyThreadState* __tstate = wxPyBeginAllowThreads();
22069 result = wxTimeSpan::Day();
22070
22071 wxPyEndAllowThreads(__tstate);
22072 if (PyErr_Occurred()) SWIG_fail;
22073 }
22074 {
22075 wxTimeSpan * resultptr;
22076 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22078 }
22079 return resultobj;
22080 fail:
22081 return NULL;
22082}
22083
22084
c370783e 22085static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22086 PyObject *resultobj;
22087 long arg1 ;
22088 wxTimeSpan result;
22089 PyObject * obj0 = 0 ;
22090 char *kwnames[] = {
22091 (char *) "days", NULL
22092 };
22093
22094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
c370783e 22095 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
22096 if (PyErr_Occurred()) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = wxTimeSpan::Weeks(arg1);
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 {
22105 wxTimeSpan * resultptr;
22106 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22107 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22108 }
22109 return resultobj;
22110 fail:
22111 return NULL;
22112}
22113
22114
c370783e 22115static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22116 PyObject *resultobj;
22117 wxTimeSpan result;
22118 char *kwnames[] = {
22119 NULL
22120 };
22121
22122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 result = wxTimeSpan::Week();
22126
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 {
22131 wxTimeSpan * resultptr;
22132 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22134 }
22135 return resultobj;
22136 fail:
22137 return NULL;
22138}
22139
22140
c370783e 22141static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22142 PyObject *resultobj;
22143 long arg1 = (long) 0 ;
22144 long arg2 = (long) 0 ;
22145 long arg3 = (long) 0 ;
22146 long arg4 = (long) 0 ;
22147 wxTimeSpan *result;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 PyObject * obj3 = 0 ;
22152 char *kwnames[] = {
22153 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
22154 };
22155
22156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22157 if (obj0) {
c370783e 22158 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
22159 if (PyErr_Occurred()) SWIG_fail;
22160 }
22161 if (obj1) {
c370783e 22162 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 if (obj2) {
c370783e 22166 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 if (obj3) {
c370783e 22170 arg4 = (long)SWIG_As_long(obj3);
d55e5bfc
RD
22171 if (PyErr_Occurred()) SWIG_fail;
22172 }
22173 {
22174 PyThreadState* __tstate = wxPyBeginAllowThreads();
22175 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
22176
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22181 return resultobj;
22182 fail:
22183 return NULL;
22184}
22185
22186
c370783e 22187static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22188 PyObject *resultobj;
22189 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22190 PyObject * obj0 = 0 ;
22191 char *kwnames[] = {
22192 (char *) "self", NULL
22193 };
22194
22195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
22196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 delete arg1;
22201
22202 wxPyEndAllowThreads(__tstate);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 Py_INCREF(Py_None); resultobj = Py_None;
22206 return resultobj;
22207 fail:
22208 return NULL;
22209}
22210
22211
c370783e 22212static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22213 PyObject *resultobj;
22214 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22215 wxTimeSpan *arg2 = 0 ;
22216 wxTimeSpan *result;
22217 PyObject * obj0 = 0 ;
22218 PyObject * obj1 = 0 ;
22219 char *kwnames[] = {
22220 (char *) "self",(char *) "diff", NULL
22221 };
22222
22223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22227 SWIG_POINTER_EXCEPTION | 0)) == -1)
22228 SWIG_fail;
22229 if (arg2 == NULL) {
22230 PyErr_SetString(PyExc_TypeError,"null reference");
22231 SWIG_fail;
22232 }
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 {
22236 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
22237 result = (wxTimeSpan *) &_result_ref;
22238 }
22239
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22244 return resultobj;
22245 fail:
22246 return NULL;
22247}
22248
22249
c370783e 22250static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22251 PyObject *resultobj;
22252 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22253 wxTimeSpan *arg2 = 0 ;
22254 wxTimeSpan *result;
22255 PyObject * obj0 = 0 ;
22256 PyObject * obj1 = 0 ;
22257 char *kwnames[] = {
22258 (char *) "self",(char *) "diff", NULL
22259 };
22260
22261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22265 SWIG_POINTER_EXCEPTION | 0)) == -1)
22266 SWIG_fail;
22267 if (arg2 == NULL) {
22268 PyErr_SetString(PyExc_TypeError,"null reference");
22269 SWIG_fail;
22270 }
22271 {
22272 PyThreadState* __tstate = wxPyBeginAllowThreads();
22273 {
22274 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22275 result = (wxTimeSpan *) &_result_ref;
22276 }
22277
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22282 return resultobj;
22283 fail:
22284 return NULL;
22285}
22286
22287
c370783e 22288static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22289 PyObject *resultobj;
22290 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22291 int arg2 ;
22292 wxTimeSpan *result;
22293 PyObject * obj0 = 0 ;
22294 PyObject * obj1 = 0 ;
22295 char *kwnames[] = {
22296 (char *) "self",(char *) "n", NULL
22297 };
22298
22299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 22302 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22303 if (PyErr_Occurred()) SWIG_fail;
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 {
22307 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22308 result = (wxTimeSpan *) &_result_ref;
22309 }
22310
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22315 return resultobj;
22316 fail:
22317 return NULL;
22318}
22319
22320
c370783e 22321static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22322 PyObject *resultobj;
22323 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22324 wxTimeSpan *result;
22325 PyObject * obj0 = 0 ;
22326 char *kwnames[] = {
22327 (char *) "self", NULL
22328 };
22329
22330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 {
22336 wxTimeSpan &_result_ref = (arg1)->Neg();
22337 result = (wxTimeSpan *) &_result_ref;
22338 }
22339
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22344 return resultobj;
22345 fail:
22346 return NULL;
22347}
22348
22349
c370783e 22350static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22351 PyObject *resultobj;
22352 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22353 wxTimeSpan result;
22354 PyObject * obj0 = 0 ;
22355 char *kwnames[] = {
22356 (char *) "self", NULL
22357 };
22358
22359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 result = ((wxTimeSpan const *)arg1)->Abs();
22365
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 {
22370 wxTimeSpan * resultptr;
22371 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22373 }
22374 return resultobj;
22375 fail:
22376 return NULL;
22377}
22378
22379
c370783e 22380static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22381 PyObject *resultobj;
22382 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22383 wxTimeSpan *arg2 = 0 ;
22384 wxTimeSpan *result;
22385 PyObject * obj0 = 0 ;
22386 PyObject * obj1 = 0 ;
22387 char *kwnames[] = {
22388 (char *) "self",(char *) "diff", NULL
22389 };
22390
22391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c370783e 22393 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
22394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22395 SWIG_POINTER_EXCEPTION | 0)) == -1)
22396 SWIG_fail;
22397 if (arg2 == NULL) {
22398 PyErr_SetString(PyExc_TypeError,"null reference");
22399 SWIG_fail;
22400 }
22401 {
22402 PyThreadState* __tstate = wxPyBeginAllowThreads();
22403 {
22404 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22405 result = (wxTimeSpan *) &_result_ref;
22406 }
22407
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
c370783e 22411 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22412 return resultobj;
22413 fail:
22414 return NULL;
22415}
22416
22417
c370783e 22418static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22419 PyObject *resultobj;
22420 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22421 wxTimeSpan *arg2 = 0 ;
22422 wxTimeSpan *result;
22423 PyObject * obj0 = 0 ;
22424 PyObject * obj1 = 0 ;
22425 char *kwnames[] = {
22426 (char *) "self",(char *) "diff", NULL
22427 };
22428
22429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c370783e 22431 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
22432 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22433 SWIG_POINTER_EXCEPTION | 0)) == -1)
22434 SWIG_fail;
22435 if (arg2 == NULL) {
22436 PyErr_SetString(PyExc_TypeError,"null reference");
22437 SWIG_fail;
22438 }
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 {
22442 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22443 result = (wxTimeSpan *) &_result_ref;
22444 }
22445
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
c370783e 22449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22450 return resultobj;
22451 fail:
22452 return NULL;
22453}
22454
22455
c370783e 22456static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22457 PyObject *resultobj;
22458 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22459 int arg2 ;
22460 wxTimeSpan *result;
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 char *kwnames[] = {
22464 (char *) "self",(char *) "n", NULL
22465 };
22466
22467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
c370783e
RD
22469 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22470 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22471 if (PyErr_Occurred()) SWIG_fail;
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 {
22475 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22476 result = (wxTimeSpan *) &_result_ref;
22477 }
22478
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
c370783e 22482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d55e5bfc
RD
22483 return resultobj;
22484 fail:
22485 return NULL;
22486}
22487
22488
c370783e 22489static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22490 PyObject *resultobj;
22491 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22492 wxTimeSpan *result;
22493 PyObject * obj0 = 0 ;
22494 char *kwnames[] = {
22495 (char *) "self", NULL
22496 };
22497
22498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22501 {
22502 PyThreadState* __tstate = wxPyBeginAllowThreads();
22503 {
22504 wxTimeSpan &_result_ref = (arg1)->operator -();
22505 result = (wxTimeSpan *) &_result_ref;
22506 }
22507
22508 wxPyEndAllowThreads(__tstate);
22509 if (PyErr_Occurred()) SWIG_fail;
22510 }
22511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22512 return resultobj;
22513 fail:
22514 return NULL;
22515}
22516
22517
c370783e 22518static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22519 PyObject *resultobj;
22520 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22521 wxTimeSpan *arg2 = 0 ;
22522 wxTimeSpan result;
22523 PyObject * obj0 = 0 ;
22524 PyObject * obj1 = 0 ;
22525 char *kwnames[] = {
22526 (char *) "self",(char *) "other", NULL
22527 };
22528
22529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22533 SWIG_POINTER_EXCEPTION | 0)) == -1)
22534 SWIG_fail;
22535 if (arg2 == NULL) {
22536 PyErr_SetString(PyExc_TypeError,"null reference");
22537 SWIG_fail;
22538 }
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22542
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 {
22547 wxTimeSpan * resultptr;
22548 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22549 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22550 }
22551 return resultobj;
22552 fail:
22553 return NULL;
22554}
22555
22556
c370783e 22557static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22558 PyObject *resultobj;
22559 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22560 wxTimeSpan *arg2 = 0 ;
22561 wxTimeSpan result;
22562 PyObject * obj0 = 0 ;
22563 PyObject * obj1 = 0 ;
22564 char *kwnames[] = {
22565 (char *) "self",(char *) "other", NULL
22566 };
22567
22568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22572 SWIG_POINTER_EXCEPTION | 0)) == -1)
22573 SWIG_fail;
22574 if (arg2 == NULL) {
22575 PyErr_SetString(PyExc_TypeError,"null reference");
22576 SWIG_fail;
22577 }
22578 {
22579 PyThreadState* __tstate = wxPyBeginAllowThreads();
22580 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22581
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 {
22586 wxTimeSpan * resultptr;
22587 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22589 }
22590 return resultobj;
22591 fail:
22592 return NULL;
22593}
22594
22595
c370783e 22596static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22597 PyObject *resultobj;
22598 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22599 int arg2 ;
22600 wxTimeSpan result;
22601 PyObject * obj0 = 0 ;
22602 PyObject * obj1 = 0 ;
22603 char *kwnames[] = {
22604 (char *) "self",(char *) "n", NULL
22605 };
22606
22607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 22610 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22611 if (PyErr_Occurred()) SWIG_fail;
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 result = wxTimeSpan___mul__(arg1,arg2);
22615
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 {
22620 wxTimeSpan * resultptr;
22621 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22623 }
22624 return resultobj;
22625 fail:
22626 return NULL;
22627}
22628
22629
c370783e 22630static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22631 PyObject *resultobj;
22632 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22633 int arg2 ;
22634 wxTimeSpan result;
22635 PyObject * obj0 = 0 ;
22636 PyObject * obj1 = 0 ;
22637 char *kwnames[] = {
22638 (char *) "self",(char *) "n", NULL
22639 };
22640
22641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 22644 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22645 if (PyErr_Occurred()) SWIG_fail;
22646 {
22647 PyThreadState* __tstate = wxPyBeginAllowThreads();
22648 result = wxTimeSpan___rmul__(arg1,arg2);
22649
22650 wxPyEndAllowThreads(__tstate);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 {
22654 wxTimeSpan * resultptr;
22655 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22656 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22657 }
22658 return resultobj;
22659 fail:
22660 return NULL;
22661}
22662
22663
c370783e 22664static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22665 PyObject *resultobj;
22666 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22667 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22668 bool result;
22669 PyObject * obj0 = 0 ;
22670 PyObject * obj1 = 0 ;
22671 char *kwnames[] = {
22672 (char *) "self",(char *) "other", NULL
22673 };
22674
22675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22680 {
22681 PyThreadState* __tstate = wxPyBeginAllowThreads();
22682 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22683
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 {
22688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22689 }
22690 return resultobj;
22691 fail:
22692 return NULL;
22693}
22694
22695
c370783e 22696static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22697 PyObject *resultobj;
22698 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22699 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22700 bool result;
22701 PyObject * obj0 = 0 ;
22702 PyObject * obj1 = 0 ;
22703 char *kwnames[] = {
22704 (char *) "self",(char *) "other", NULL
22705 };
22706
22707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22710 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22712 {
22713 PyThreadState* __tstate = wxPyBeginAllowThreads();
22714 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22715
22716 wxPyEndAllowThreads(__tstate);
22717 if (PyErr_Occurred()) SWIG_fail;
22718 }
22719 {
22720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22721 }
22722 return resultobj;
22723 fail:
22724 return NULL;
22725}
22726
22727
c370783e 22728static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22729 PyObject *resultobj;
22730 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22731 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22732 bool result;
22733 PyObject * obj0 = 0 ;
22734 PyObject * obj1 = 0 ;
22735 char *kwnames[] = {
22736 (char *) "self",(char *) "other", NULL
22737 };
22738
22739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22747
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 {
22752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22753 }
22754 return resultobj;
22755 fail:
22756 return NULL;
22757}
22758
22759
c370783e 22760static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22761 PyObject *resultobj;
22762 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22763 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22764 bool result;
22765 PyObject * obj0 = 0 ;
22766 PyObject * obj1 = 0 ;
22767 char *kwnames[] = {
22768 (char *) "self",(char *) "other", NULL
22769 };
22770
22771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22779
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
22783 {
22784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22785 }
22786 return resultobj;
22787 fail:
22788 return NULL;
22789}
22790
22791
c370783e 22792static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22793 PyObject *resultobj;
22794 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22795 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22796 bool result;
22797 PyObject * obj0 = 0 ;
22798 PyObject * obj1 = 0 ;
22799 char *kwnames[] = {
22800 (char *) "self",(char *) "other", NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22811
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 {
22816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22817 }
22818 return resultobj;
22819 fail:
22820 return NULL;
22821}
22822
22823
c370783e 22824static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22825 PyObject *resultobj;
22826 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22827 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22828 bool result;
22829 PyObject * obj0 = 0 ;
22830 PyObject * obj1 = 0 ;
22831 char *kwnames[] = {
22832 (char *) "self",(char *) "other", NULL
22833 };
22834
22835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22843
22844 wxPyEndAllowThreads(__tstate);
22845 if (PyErr_Occurred()) SWIG_fail;
22846 }
22847 {
22848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22849 }
22850 return resultobj;
22851 fail:
22852 return NULL;
22853}
22854
22855
c370783e 22856static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22857 PyObject *resultobj;
22858 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22859 bool result;
22860 PyObject * obj0 = 0 ;
22861 char *kwnames[] = {
22862 (char *) "self", NULL
22863 };
22864
22865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22871
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 {
22876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22877 }
22878 return resultobj;
22879 fail:
22880 return NULL;
22881}
22882
22883
c370783e 22884static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22885 PyObject *resultobj;
22886 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22887 bool result;
22888 PyObject * obj0 = 0 ;
22889 char *kwnames[] = {
22890 (char *) "self", NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",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 = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22899
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 {
22904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22905 }
22906 return resultobj;
22907 fail:
22908 return NULL;
22909}
22910
22911
c370783e 22912static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22913 PyObject *resultobj;
22914 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22915 bool result;
22916 PyObject * obj0 = 0 ;
22917 char *kwnames[] = {
22918 (char *) "self", NULL
22919 };
22920
22921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22927
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 {
22932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22933 }
22934 return resultobj;
22935 fail:
22936 return NULL;
22937}
22938
22939
c370783e 22940static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22941 PyObject *resultobj;
22942 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22943 wxTimeSpan *arg2 = 0 ;
22944 bool result;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 char *kwnames[] = {
22948 (char *) "self",(char *) "ts", NULL
22949 };
22950
22951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22955 SWIG_POINTER_EXCEPTION | 0)) == -1)
22956 SWIG_fail;
22957 if (arg2 == NULL) {
22958 PyErr_SetString(PyExc_TypeError,"null reference");
22959 SWIG_fail;
22960 }
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22964
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 {
22969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22970 }
22971 return resultobj;
22972 fail:
22973 return NULL;
22974}
22975
22976
c370783e 22977static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22978 PyObject *resultobj;
22979 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22980 wxTimeSpan *arg2 = 0 ;
22981 bool result;
22982 PyObject * obj0 = 0 ;
22983 PyObject * obj1 = 0 ;
22984 char *kwnames[] = {
22985 (char *) "self",(char *) "ts", NULL
22986 };
22987
22988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22991 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22992 SWIG_POINTER_EXCEPTION | 0)) == -1)
22993 SWIG_fail;
22994 if (arg2 == NULL) {
22995 PyErr_SetString(PyExc_TypeError,"null reference");
22996 SWIG_fail;
22997 }
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
23001
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 {
23006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23007 }
23008 return resultobj;
23009 fail:
23010 return NULL;
23011}
23012
23013
c370783e 23014static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23015 PyObject *resultobj;
23016 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23017 wxTimeSpan *arg2 = 0 ;
23018 bool result;
23019 PyObject * obj0 = 0 ;
23020 PyObject * obj1 = 0 ;
23021 char *kwnames[] = {
23022 (char *) "self",(char *) "t", NULL
23023 };
23024
23025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
23026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
23029 SWIG_POINTER_EXCEPTION | 0)) == -1)
23030 SWIG_fail;
23031 if (arg2 == NULL) {
23032 PyErr_SetString(PyExc_TypeError,"null reference");
23033 SWIG_fail;
23034 }
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
23038
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 {
23043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23044 }
23045 return resultobj;
23046 fail:
23047 return NULL;
23048}
23049
23050
c370783e 23051static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23052 PyObject *resultobj;
23053 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23054 int result;
23055 PyObject * obj0 = 0 ;
23056 char *kwnames[] = {
23057 (char *) "self", NULL
23058 };
23059
23060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
23061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23063 {
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
23066
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
c370783e 23070 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23071 return resultobj;
23072 fail:
23073 return NULL;
23074}
23075
23076
c370783e 23077static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23078 PyObject *resultobj;
23079 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23080 int result;
23081 PyObject * obj0 = 0 ;
23082 char *kwnames[] = {
23083 (char *) "self", NULL
23084 };
23085
23086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
23087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 result = (int)((wxTimeSpan const *)arg1)->GetDays();
23092
23093 wxPyEndAllowThreads(__tstate);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
c370783e 23096 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23097 return resultobj;
23098 fail:
23099 return NULL;
23100}
23101
23102
c370783e 23103static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23104 PyObject *resultobj;
23105 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23106 int result;
23107 PyObject * obj0 = 0 ;
23108 char *kwnames[] = {
23109 (char *) "self", NULL
23110 };
23111
23112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
23113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 result = (int)((wxTimeSpan const *)arg1)->GetHours();
23118
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
c370783e 23122 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23123 return resultobj;
23124 fail:
23125 return NULL;
23126}
23127
23128
c370783e 23129static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23130 PyObject *resultobj;
23131 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23132 int result;
23133 PyObject * obj0 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
23144
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
c370783e 23148 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23149 return resultobj;
23150 fail:
23151 return NULL;
23152}
23153
23154
c370783e 23155static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23156 PyObject *resultobj;
23157 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23158 wxLongLong result;
23159 PyObject * obj0 = 0 ;
23160 char *kwnames[] = {
23161 (char *) "self", NULL
23162 };
23163
23164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
23165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = ((wxTimeSpan const *)arg1)->GetSeconds();
23170
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 {
23175 PyObject *hi, *lo, *shifter, *shifted;
23176 hi = PyLong_FromLong( (&result)->GetHi() );
23177 lo = PyLong_FromLong( (&result)->GetLo() );
23178 shifter = PyLong_FromLong(32);
23179 shifted = PyNumber_Lshift(hi, shifter);
23180 resultobj = PyNumber_Or(shifted, lo);
23181 Py_DECREF(hi);
23182 Py_DECREF(lo);
23183 Py_DECREF(shifter);
23184 Py_DECREF(shifted);
23185 }
23186 return resultobj;
23187 fail:
23188 return NULL;
23189}
23190
23191
c370783e 23192static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23193 PyObject *resultobj;
23194 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23195 wxLongLong result;
23196 PyObject * obj0 = 0 ;
23197 char *kwnames[] = {
23198 (char *) "self", NULL
23199 };
23200
23201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
23202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23204 {
23205 PyThreadState* __tstate = wxPyBeginAllowThreads();
23206 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
23207
23208 wxPyEndAllowThreads(__tstate);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 }
23211 {
23212 PyObject *hi, *lo, *shifter, *shifted;
23213 hi = PyLong_FromLong( (&result)->GetHi() );
23214 lo = PyLong_FromLong( (&result)->GetLo() );
23215 shifter = PyLong_FromLong(32);
23216 shifted = PyNumber_Lshift(hi, shifter);
23217 resultobj = PyNumber_Or(shifted, lo);
23218 Py_DECREF(hi);
23219 Py_DECREF(lo);
23220 Py_DECREF(shifter);
23221 Py_DECREF(shifted);
23222 }
23223 return resultobj;
23224 fail:
23225 return NULL;
23226}
23227
23228
c370783e 23229static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23230 PyObject *resultobj;
23231 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23232 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
23233 wxString *arg2 = (wxString *) &arg2_defvalue ;
23234 wxString result;
b411df4a 23235 bool temp2 = false ;
d55e5bfc
RD
23236 PyObject * obj0 = 0 ;
23237 PyObject * obj1 = 0 ;
23238 char *kwnames[] = {
23239 (char *) "self",(char *) "format", NULL
23240 };
23241
23242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
23243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23245 if (obj1) {
23246 {
23247 arg2 = wxString_in_helper(obj1);
23248 if (arg2 == NULL) SWIG_fail;
b411df4a 23249 temp2 = true;
d55e5bfc
RD
23250 }
23251 }
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
23255
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260#if wxUSE_UNICODE
23261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23262#else
23263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23264#endif
23265 }
23266 {
23267 if (temp2)
23268 delete arg2;
23269 }
23270 return resultobj;
23271 fail:
23272 {
23273 if (temp2)
23274 delete arg2;
23275 }
23276 return NULL;
23277}
23278
23279
c370783e 23280static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
23281 PyObject *obj;
23282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23283 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23284 Py_INCREF(obj);
23285 return Py_BuildValue((char *)"");
23286}
c370783e 23287static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23288 PyObject *resultobj;
23289 int arg1 = (int) 0 ;
23290 int arg2 = (int) 0 ;
23291 int arg3 = (int) 0 ;
23292 int arg4 = (int) 0 ;
23293 wxDateSpan *result;
23294 PyObject * obj0 = 0 ;
23295 PyObject * obj1 = 0 ;
23296 PyObject * obj2 = 0 ;
23297 PyObject * obj3 = 0 ;
23298 char *kwnames[] = {
23299 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23300 };
23301
23302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23303 if (obj0) {
c370783e 23304 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23305 if (PyErr_Occurred()) SWIG_fail;
23306 }
23307 if (obj1) {
c370783e 23308 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 if (obj2) {
c370783e 23312 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 if (obj3) {
c370783e 23316 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23322
23323 wxPyEndAllowThreads(__tstate);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23327 return resultobj;
23328 fail:
23329 return NULL;
23330}
23331
23332
c370783e 23333static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23334 PyObject *resultobj;
23335 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23336 PyObject * obj0 = 0 ;
23337 char *kwnames[] = {
23338 (char *) "self", NULL
23339 };
23340
23341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 delete arg1;
23347
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 Py_INCREF(Py_None); resultobj = Py_None;
23352 return resultobj;
23353 fail:
23354 return NULL;
23355}
23356
23357
c370783e 23358static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23359 PyObject *resultobj;
23360 int arg1 ;
23361 wxDateSpan result;
23362 PyObject * obj0 = 0 ;
23363 char *kwnames[] = {
23364 (char *) "days", NULL
23365 };
23366
23367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
c370783e 23368 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23369 if (PyErr_Occurred()) SWIG_fail;
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = wxDateSpan::Days(arg1);
23373
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 {
23378 wxDateSpan * resultptr;
23379 resultptr = new wxDateSpan((wxDateSpan &) result);
23380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23381 }
23382 return resultobj;
23383 fail:
23384 return NULL;
23385}
23386
23387
c370783e 23388static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23389 PyObject *resultobj;
23390 wxDateSpan result;
23391 char *kwnames[] = {
23392 NULL
23393 };
23394
23395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23396 {
23397 PyThreadState* __tstate = wxPyBeginAllowThreads();
23398 result = wxDateSpan::Day();
23399
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 {
23404 wxDateSpan * resultptr;
23405 resultptr = new wxDateSpan((wxDateSpan &) result);
23406 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23407 }
23408 return resultobj;
23409 fail:
23410 return NULL;
23411}
23412
23413
c370783e 23414static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23415 PyObject *resultobj;
23416 int arg1 ;
23417 wxDateSpan result;
23418 PyObject * obj0 = 0 ;
23419 char *kwnames[] = {
23420 (char *) "weeks", NULL
23421 };
23422
23423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
c370783e 23424 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23425 if (PyErr_Occurred()) SWIG_fail;
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = wxDateSpan::Weeks(arg1);
23429
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 {
23434 wxDateSpan * resultptr;
23435 resultptr = new wxDateSpan((wxDateSpan &) result);
23436 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23437 }
23438 return resultobj;
23439 fail:
23440 return NULL;
23441}
23442
23443
c370783e 23444static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23445 PyObject *resultobj;
23446 wxDateSpan result;
23447 char *kwnames[] = {
23448 NULL
23449 };
23450
23451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23452 {
23453 PyThreadState* __tstate = wxPyBeginAllowThreads();
23454 result = wxDateSpan::Week();
23455
23456 wxPyEndAllowThreads(__tstate);
23457 if (PyErr_Occurred()) SWIG_fail;
23458 }
23459 {
23460 wxDateSpan * resultptr;
23461 resultptr = new wxDateSpan((wxDateSpan &) result);
23462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23463 }
23464 return resultobj;
23465 fail:
23466 return NULL;
23467}
23468
23469
c370783e 23470static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23471 PyObject *resultobj;
23472 int arg1 ;
23473 wxDateSpan result;
23474 PyObject * obj0 = 0 ;
23475 char *kwnames[] = {
23476 (char *) "mon", NULL
23477 };
23478
23479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
c370783e 23480 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23481 if (PyErr_Occurred()) SWIG_fail;
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
23484 result = wxDateSpan::Months(arg1);
23485
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 {
23490 wxDateSpan * resultptr;
23491 resultptr = new wxDateSpan((wxDateSpan &) result);
23492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23493 }
23494 return resultobj;
23495 fail:
23496 return NULL;
23497}
23498
23499
c370783e 23500static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23501 PyObject *resultobj;
23502 wxDateSpan result;
23503 char *kwnames[] = {
23504 NULL
23505 };
23506
23507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23508 {
23509 PyThreadState* __tstate = wxPyBeginAllowThreads();
23510 result = wxDateSpan::Month();
23511
23512 wxPyEndAllowThreads(__tstate);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 }
23515 {
23516 wxDateSpan * resultptr;
23517 resultptr = new wxDateSpan((wxDateSpan &) result);
23518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23519 }
23520 return resultobj;
23521 fail:
23522 return NULL;
23523}
23524
23525
c370783e 23526static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23527 PyObject *resultobj;
23528 int arg1 ;
23529 wxDateSpan result;
23530 PyObject * obj0 = 0 ;
23531 char *kwnames[] = {
23532 (char *) "years", NULL
23533 };
23534
23535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
c370783e 23536 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
23537 if (PyErr_Occurred()) SWIG_fail;
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
23540 result = wxDateSpan::Years(arg1);
23541
23542 wxPyEndAllowThreads(__tstate);
23543 if (PyErr_Occurred()) SWIG_fail;
23544 }
23545 {
23546 wxDateSpan * resultptr;
23547 resultptr = new wxDateSpan((wxDateSpan &) result);
23548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23549 }
23550 return resultobj;
23551 fail:
23552 return NULL;
23553}
23554
23555
c370783e 23556static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23557 PyObject *resultobj;
23558 wxDateSpan result;
23559 char *kwnames[] = {
23560 NULL
23561 };
23562
23563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23564 {
23565 PyThreadState* __tstate = wxPyBeginAllowThreads();
23566 result = wxDateSpan::Year();
23567
23568 wxPyEndAllowThreads(__tstate);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 }
23571 {
23572 wxDateSpan * resultptr;
23573 resultptr = new wxDateSpan((wxDateSpan &) result);
23574 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23575 }
23576 return resultobj;
23577 fail:
23578 return NULL;
23579}
23580
23581
c370783e 23582static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23583 PyObject *resultobj;
23584 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23585 int arg2 ;
23586 wxDateSpan *result;
23587 PyObject * obj0 = 0 ;
23588 PyObject * obj1 = 0 ;
23589 char *kwnames[] = {
23590 (char *) "self",(char *) "n", NULL
23591 };
23592
23593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 23596 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23597 if (PyErr_Occurred()) SWIG_fail;
23598 {
23599 PyThreadState* __tstate = wxPyBeginAllowThreads();
23600 {
23601 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23602 result = (wxDateSpan *) &_result_ref;
23603 }
23604
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23609 return resultobj;
23610 fail:
23611 return NULL;
23612}
23613
23614
c370783e 23615static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23616 PyObject *resultobj;
23617 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23618 int arg2 ;
23619 wxDateSpan *result;
23620 PyObject * obj0 = 0 ;
23621 PyObject * obj1 = 0 ;
23622 char *kwnames[] = {
23623 (char *) "self",(char *) "n", NULL
23624 };
23625
23626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 23629 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23630 if (PyErr_Occurred()) SWIG_fail;
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 {
23634 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23635 result = (wxDateSpan *) &_result_ref;
23636 }
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23642 return resultobj;
23643 fail:
23644 return NULL;
23645}
23646
23647
c370783e 23648static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23649 PyObject *resultobj;
23650 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23651 int arg2 ;
23652 wxDateSpan *result;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655 char *kwnames[] = {
23656 (char *) "self",(char *) "n", NULL
23657 };
23658
23659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 23662 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23663 if (PyErr_Occurred()) SWIG_fail;
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 {
23667 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23668 result = (wxDateSpan *) &_result_ref;
23669 }
23670
23671 wxPyEndAllowThreads(__tstate);
23672 if (PyErr_Occurred()) SWIG_fail;
23673 }
23674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23675 return resultobj;
23676 fail:
23677 return NULL;
23678}
23679
23680
c370783e 23681static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23682 PyObject *resultobj;
23683 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23684 int arg2 ;
23685 wxDateSpan *result;
23686 PyObject * obj0 = 0 ;
23687 PyObject * obj1 = 0 ;
23688 char *kwnames[] = {
23689 (char *) "self",(char *) "n", NULL
23690 };
23691
23692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 23695 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23696 if (PyErr_Occurred()) SWIG_fail;
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 {
23700 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23701 result = (wxDateSpan *) &_result_ref;
23702 }
23703
23704 wxPyEndAllowThreads(__tstate);
23705 if (PyErr_Occurred()) SWIG_fail;
23706 }
23707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23708 return resultobj;
23709 fail:
23710 return NULL;
23711}
23712
23713
c370783e 23714static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23715 PyObject *resultobj;
23716 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23717 int result;
23718 PyObject * obj0 = 0 ;
23719 char *kwnames[] = {
23720 (char *) "self", NULL
23721 };
23722
23723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23726 {
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
23728 result = (int)((wxDateSpan const *)arg1)->GetYears();
23729
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
c370783e 23733 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23734 return resultobj;
23735 fail:
23736 return NULL;
23737}
23738
23739
c370783e 23740static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23741 PyObject *resultobj;
23742 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23743 int result;
23744 PyObject * obj0 = 0 ;
23745 char *kwnames[] = {
23746 (char *) "self", NULL
23747 };
23748
23749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23752 {
23753 PyThreadState* __tstate = wxPyBeginAllowThreads();
23754 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23755
23756 wxPyEndAllowThreads(__tstate);
23757 if (PyErr_Occurred()) SWIG_fail;
23758 }
c370783e 23759 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23760 return resultobj;
23761 fail:
23762 return NULL;
23763}
23764
23765
c370783e 23766static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23767 PyObject *resultobj;
23768 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23769 int result;
23770 PyObject * obj0 = 0 ;
23771 char *kwnames[] = {
23772 (char *) "self", NULL
23773 };
23774
23775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23778 {
23779 PyThreadState* __tstate = wxPyBeginAllowThreads();
23780 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23781
23782 wxPyEndAllowThreads(__tstate);
23783 if (PyErr_Occurred()) SWIG_fail;
23784 }
c370783e 23785 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23786 return resultobj;
23787 fail:
23788 return NULL;
23789}
23790
23791
c370783e 23792static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23793 PyObject *resultobj;
23794 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23795 int result;
23796 PyObject * obj0 = 0 ;
23797 char *kwnames[] = {
23798 (char *) "self", NULL
23799 };
23800
23801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23804 {
23805 PyThreadState* __tstate = wxPyBeginAllowThreads();
23806 result = (int)((wxDateSpan const *)arg1)->GetDays();
23807
23808 wxPyEndAllowThreads(__tstate);
23809 if (PyErr_Occurred()) SWIG_fail;
23810 }
c370783e 23811 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23812 return resultobj;
23813 fail:
23814 return NULL;
23815}
23816
23817
c370783e 23818static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23819 PyObject *resultobj;
23820 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23821 int result;
23822 PyObject * obj0 = 0 ;
23823 char *kwnames[] = {
23824 (char *) "self", NULL
23825 };
23826
23827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23833
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
c370783e 23837 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23838 return resultobj;
23839 fail:
23840 return NULL;
23841}
23842
23843
c370783e 23844static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23845 PyObject *resultobj;
23846 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23847 wxDateSpan *arg2 = 0 ;
23848 wxDateSpan *result;
23849 PyObject * obj0 = 0 ;
23850 PyObject * obj1 = 0 ;
23851 char *kwnames[] = {
23852 (char *) "self",(char *) "other", NULL
23853 };
23854
23855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23859 SWIG_POINTER_EXCEPTION | 0)) == -1)
23860 SWIG_fail;
23861 if (arg2 == NULL) {
23862 PyErr_SetString(PyExc_TypeError,"null reference");
23863 SWIG_fail;
23864 }
23865 {
23866 PyThreadState* __tstate = wxPyBeginAllowThreads();
23867 {
23868 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23869 result = (wxDateSpan *) &_result_ref;
23870 }
23871
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23876 return resultobj;
23877 fail:
23878 return NULL;
23879}
23880
23881
c370783e 23882static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23883 PyObject *resultobj;
23884 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23885 wxDateSpan *arg2 = 0 ;
23886 wxDateSpan *result;
23887 PyObject * obj0 = 0 ;
23888 PyObject * obj1 = 0 ;
23889 char *kwnames[] = {
23890 (char *) "self",(char *) "other", NULL
23891 };
23892
23893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23897 SWIG_POINTER_EXCEPTION | 0)) == -1)
23898 SWIG_fail;
23899 if (arg2 == NULL) {
23900 PyErr_SetString(PyExc_TypeError,"null reference");
23901 SWIG_fail;
23902 }
23903 {
23904 PyThreadState* __tstate = wxPyBeginAllowThreads();
23905 {
23906 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23907 result = (wxDateSpan *) &_result_ref;
23908 }
23909
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23914 return resultobj;
23915 fail:
23916 return NULL;
23917}
23918
23919
c370783e 23920static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23921 PyObject *resultobj;
23922 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23923 wxDateSpan *result;
23924 PyObject * obj0 = 0 ;
23925 char *kwnames[] = {
23926 (char *) "self", NULL
23927 };
23928
23929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23932 {
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 {
23935 wxDateSpan &_result_ref = (arg1)->Neg();
23936 result = (wxDateSpan *) &_result_ref;
23937 }
23938
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23943 return resultobj;
23944 fail:
23945 return NULL;
23946}
23947
23948
c370783e 23949static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23950 PyObject *resultobj;
23951 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23952 int arg2 ;
23953 wxDateSpan *result;
23954 PyObject * obj0 = 0 ;
23955 PyObject * obj1 = 0 ;
23956 char *kwnames[] = {
23957 (char *) "self",(char *) "factor", NULL
23958 };
23959
23960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 23963 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23964 if (PyErr_Occurred()) SWIG_fail;
23965 {
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 {
23968 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23969 result = (wxDateSpan *) &_result_ref;
23970 }
23971
23972 wxPyEndAllowThreads(__tstate);
23973 if (PyErr_Occurred()) SWIG_fail;
23974 }
23975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23976 return resultobj;
23977 fail:
23978 return NULL;
23979}
23980
23981
c370783e 23982static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23983 PyObject *resultobj;
23984 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23985 wxDateSpan *arg2 = 0 ;
23986 wxDateSpan *result;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 char *kwnames[] = {
23990 (char *) "self",(char *) "other", NULL
23991 };
23992
23993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c370783e 23995 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
23996 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23997 SWIG_POINTER_EXCEPTION | 0)) == -1)
23998 SWIG_fail;
23999 if (arg2 == NULL) {
24000 PyErr_SetString(PyExc_TypeError,"null reference");
24001 SWIG_fail;
24002 }
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 {
24006 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
24007 result = (wxDateSpan *) &_result_ref;
24008 }
24009
24010 wxPyEndAllowThreads(__tstate);
24011 if (PyErr_Occurred()) SWIG_fail;
24012 }
c370783e 24013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
24014 return resultobj;
24015 fail:
24016 return NULL;
24017}
24018
24019
c370783e 24020static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24021 PyObject *resultobj;
24022 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24023 wxDateSpan *arg2 = 0 ;
24024 wxDateSpan *result;
24025 PyObject * obj0 = 0 ;
24026 PyObject * obj1 = 0 ;
24027 char *kwnames[] = {
24028 (char *) "self",(char *) "other", NULL
24029 };
24030
24031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
24032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c370783e 24033 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
24034 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24035 SWIG_POINTER_EXCEPTION | 0)) == -1)
24036 SWIG_fail;
24037 if (arg2 == NULL) {
24038 PyErr_SetString(PyExc_TypeError,"null reference");
24039 SWIG_fail;
24040 }
24041 {
24042 PyThreadState* __tstate = wxPyBeginAllowThreads();
24043 {
24044 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
24045 result = (wxDateSpan *) &_result_ref;
24046 }
24047
24048 wxPyEndAllowThreads(__tstate);
24049 if (PyErr_Occurred()) SWIG_fail;
24050 }
c370783e 24051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
24052 return resultobj;
24053 fail:
24054 return NULL;
24055}
24056
24057
c370783e 24058static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24059 PyObject *resultobj;
24060 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24061 wxDateSpan *result;
24062 PyObject * obj0 = 0 ;
24063 char *kwnames[] = {
24064 (char *) "self", NULL
24065 };
24066
24067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
24068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24070 {
24071 PyThreadState* __tstate = wxPyBeginAllowThreads();
24072 {
24073 wxDateSpan &_result_ref = (arg1)->operator -();
24074 result = (wxDateSpan *) &_result_ref;
24075 }
24076
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
24081 return resultobj;
24082 fail:
24083 return NULL;
24084}
24085
24086
c370783e 24087static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24088 PyObject *resultobj;
24089 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24090 int arg2 ;
24091 wxDateSpan *result;
24092 PyObject * obj0 = 0 ;
24093 PyObject * obj1 = 0 ;
24094 char *kwnames[] = {
24095 (char *) "self",(char *) "factor", NULL
24096 };
24097
24098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
24099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
c370783e
RD
24100 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24101 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24102 if (PyErr_Occurred()) SWIG_fail;
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 {
24106 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
24107 result = (wxDateSpan *) &_result_ref;
24108 }
24109
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
c370783e 24113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d55e5bfc
RD
24114 return resultobj;
24115 fail:
24116 return NULL;
24117}
24118
24119
c370783e 24120static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24121 PyObject *resultobj;
24122 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24123 wxDateSpan *arg2 = 0 ;
24124 wxDateSpan result;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 char *kwnames[] = {
24128 (char *) "self",(char *) "other", NULL
24129 };
24130
24131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
24132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24135 SWIG_POINTER_EXCEPTION | 0)) == -1)
24136 SWIG_fail;
24137 if (arg2 == NULL) {
24138 PyErr_SetString(PyExc_TypeError,"null reference");
24139 SWIG_fail;
24140 }
24141 {
24142 PyThreadState* __tstate = wxPyBeginAllowThreads();
24143 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
24144
24145 wxPyEndAllowThreads(__tstate);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 }
24148 {
24149 wxDateSpan * resultptr;
24150 resultptr = new wxDateSpan((wxDateSpan &) result);
24151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24152 }
24153 return resultobj;
24154 fail:
24155 return NULL;
24156}
24157
24158
c370783e 24159static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24160 PyObject *resultobj;
24161 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24162 wxDateSpan *arg2 = 0 ;
24163 wxDateSpan result;
24164 PyObject * obj0 = 0 ;
24165 PyObject * obj1 = 0 ;
24166 char *kwnames[] = {
24167 (char *) "self",(char *) "other", NULL
24168 };
24169
24170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
24171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24174 SWIG_POINTER_EXCEPTION | 0)) == -1)
24175 SWIG_fail;
24176 if (arg2 == NULL) {
24177 PyErr_SetString(PyExc_TypeError,"null reference");
24178 SWIG_fail;
24179 }
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
24183
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 wxDateSpan * resultptr;
24189 resultptr = new wxDateSpan((wxDateSpan &) result);
24190 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24191 }
24192 return resultobj;
24193 fail:
24194 return NULL;
24195}
24196
24197
c370783e 24198static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24199 PyObject *resultobj;
24200 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24201 int arg2 ;
24202 wxDateSpan result;
24203 PyObject * obj0 = 0 ;
24204 PyObject * obj1 = 0 ;
24205 char *kwnames[] = {
24206 (char *) "self",(char *) "n", NULL
24207 };
24208
24209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
24210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 24212 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24213 if (PyErr_Occurred()) SWIG_fail;
24214 {
24215 PyThreadState* __tstate = wxPyBeginAllowThreads();
24216 result = wxDateSpan___mul__(arg1,arg2);
24217
24218 wxPyEndAllowThreads(__tstate);
24219 if (PyErr_Occurred()) SWIG_fail;
24220 }
24221 {
24222 wxDateSpan * resultptr;
24223 resultptr = new wxDateSpan((wxDateSpan &) result);
24224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24225 }
24226 return resultobj;
24227 fail:
24228 return NULL;
24229}
24230
24231
c370783e 24232static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24233 PyObject *resultobj;
24234 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24235 int arg2 ;
24236 wxDateSpan result;
24237 PyObject * obj0 = 0 ;
24238 PyObject * obj1 = 0 ;
24239 char *kwnames[] = {
24240 (char *) "self",(char *) "n", NULL
24241 };
24242
24243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
24244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 24246 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24247 if (PyErr_Occurred()) SWIG_fail;
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = wxDateSpan___rmul__(arg1,arg2);
24251
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 {
24256 wxDateSpan * resultptr;
24257 resultptr = new wxDateSpan((wxDateSpan &) result);
24258 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24259 }
24260 return resultobj;
24261 fail:
24262 return NULL;
24263}
24264
24265
c370783e 24266static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24267 PyObject *resultobj;
24268 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24269 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24270 bool result;
24271 PyObject * obj0 = 0 ;
24272 PyObject * obj1 = 0 ;
24273 char *kwnames[] = {
24274 (char *) "self",(char *) "other", NULL
24275 };
24276
24277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24282 {
24283 PyThreadState* __tstate = wxPyBeginAllowThreads();
24284 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24285
24286 wxPyEndAllowThreads(__tstate);
24287 if (PyErr_Occurred()) SWIG_fail;
24288 }
24289 {
24290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24291 }
24292 return resultobj;
24293 fail:
24294 return NULL;
24295}
24296
24297
c370783e 24298static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24299 PyObject *resultobj;
24300 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24301 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24302 bool result;
24303 PyObject * obj0 = 0 ;
24304 PyObject * obj1 = 0 ;
24305 char *kwnames[] = {
24306 (char *) "self",(char *) "other", NULL
24307 };
24308
24309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24317
24318 wxPyEndAllowThreads(__tstate);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 {
24322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24323 }
24324 return resultobj;
24325 fail:
24326 return NULL;
24327}
24328
24329
c370783e 24330static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
24331 PyObject *obj;
24332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24333 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24334 Py_INCREF(obj);
24335 return Py_BuildValue((char *)"");
24336}
c370783e 24337static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24338 PyObject *resultobj;
24339 long result;
24340 char *kwnames[] = {
24341 NULL
24342 };
24343
24344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 result = (long)wxGetLocalTime();
24348
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
c370783e 24352 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24353 return resultobj;
24354 fail:
24355 return NULL;
24356}
24357
24358
c370783e 24359static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24360 PyObject *resultobj;
24361 long result;
24362 char *kwnames[] = {
24363 NULL
24364 };
24365
24366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24367 {
24368 PyThreadState* __tstate = wxPyBeginAllowThreads();
24369 result = (long)wxGetUTCTime();
24370
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
c370783e 24374 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24375 return resultobj;
24376 fail:
24377 return NULL;
24378}
24379
24380
c370783e 24381static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24382 PyObject *resultobj;
24383 long result;
24384 char *kwnames[] = {
24385 NULL
24386 };
24387
24388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 result = (long)wxGetCurrentTime();
24392
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
c370783e 24396 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24397 return resultobj;
24398 fail:
24399 return NULL;
24400}
24401
24402
c370783e 24403static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24404 PyObject *resultobj;
24405 wxLongLong result;
24406 char *kwnames[] = {
24407 NULL
24408 };
24409
24410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 result = wxGetLocalTimeMillis();
24414
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 {
24419 PyObject *hi, *lo, *shifter, *shifted;
24420 hi = PyLong_FromLong( (&result)->GetHi() );
24421 lo = PyLong_FromLong( (&result)->GetLo() );
24422 shifter = PyLong_FromLong(32);
24423 shifted = PyNumber_Lshift(hi, shifter);
24424 resultobj = PyNumber_Or(shifted, lo);
24425 Py_DECREF(hi);
24426 Py_DECREF(lo);
24427 Py_DECREF(shifter);
24428 Py_DECREF(shifted);
24429 }
24430 return resultobj;
24431 fail:
24432 return NULL;
24433}
24434
24435
c370783e 24436static int _wrap_DefaultDateTime_set(PyObject *) {
d55e5bfc
RD
24437 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24438 return 1;
24439}
24440
24441
24442static PyObject *_wrap_DefaultDateTime_get() {
24443 PyObject *pyobj;
24444
24445 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24446 return pyobj;
24447}
24448
24449
c370783e 24450static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24451 PyObject *resultobj;
24452 int arg1 ;
24453 wxDataFormat *result;
24454 PyObject * obj0 = 0 ;
24455 char *kwnames[] = {
24456 (char *) "type", NULL
24457 };
24458
24459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
c370783e 24460 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
24461 if (PyErr_Occurred()) SWIG_fail;
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24465
24466 wxPyEndAllowThreads(__tstate);
24467 if (PyErr_Occurred()) SWIG_fail;
24468 }
24469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24470 return resultobj;
24471 fail:
24472 return NULL;
24473}
24474
24475
c370783e 24476static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24477 PyObject *resultobj;
24478 wxString *arg1 = 0 ;
24479 wxDataFormat *result;
b411df4a 24480 bool temp1 = false ;
d55e5bfc
RD
24481 PyObject * obj0 = 0 ;
24482 char *kwnames[] = {
24483 (char *) "format", NULL
24484 };
24485
24486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24487 {
24488 arg1 = wxString_in_helper(obj0);
24489 if (arg1 == NULL) SWIG_fail;
b411df4a 24490 temp1 = true;
d55e5bfc
RD
24491 }
24492 {
24493 PyThreadState* __tstate = wxPyBeginAllowThreads();
24494 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24495
24496 wxPyEndAllowThreads(__tstate);
24497 if (PyErr_Occurred()) SWIG_fail;
24498 }
24499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24500 {
24501 if (temp1)
24502 delete arg1;
24503 }
24504 return resultobj;
24505 fail:
24506 {
24507 if (temp1)
24508 delete arg1;
24509 }
24510 return NULL;
24511}
24512
24513
c370783e 24514static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24515 PyObject *resultobj;
24516 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24517 PyObject * obj0 = 0 ;
24518 char *kwnames[] = {
24519 (char *) "self", NULL
24520 };
24521
24522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 delete arg1;
24528
24529 wxPyEndAllowThreads(__tstate);
24530 if (PyErr_Occurred()) SWIG_fail;
24531 }
24532 Py_INCREF(Py_None); resultobj = Py_None;
24533 return resultobj;
24534 fail:
24535 return NULL;
24536}
24537
24538
c370783e 24539static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
24540 PyObject *resultobj;
24541 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24542 int arg2 ;
24543 bool result;
24544 PyObject * obj0 = 0 ;
24545 PyObject * obj1 = 0 ;
24546
24547 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 24550 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24551 if (PyErr_Occurred()) SWIG_fail;
24552 {
24553 PyThreadState* __tstate = wxPyBeginAllowThreads();
24554 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24555
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 {
24560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24561 }
24562 return resultobj;
24563 fail:
24564 return NULL;
24565}
24566
24567
c370783e 24568static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
24569 PyObject *resultobj;
24570 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24571 int arg2 ;
24572 bool result;
24573 PyObject * obj0 = 0 ;
24574 PyObject * obj1 = 0 ;
24575
24576 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 24579 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24580 if (PyErr_Occurred()) SWIG_fail;
24581 {
24582 PyThreadState* __tstate = wxPyBeginAllowThreads();
24583 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24584
24585 wxPyEndAllowThreads(__tstate);
24586 if (PyErr_Occurred()) SWIG_fail;
24587 }
24588 {
24589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24590 }
24591 return resultobj;
24592 fail:
24593 return NULL;
24594}
24595
24596
c370783e 24597static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
24598 PyObject *resultobj;
24599 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24600 wxDataFormat *arg2 = 0 ;
24601 bool result;
24602 PyObject * obj0 = 0 ;
24603 PyObject * obj1 = 0 ;
24604
24605 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24609 SWIG_POINTER_EXCEPTION | 0)) == -1)
24610 SWIG_fail;
24611 if (arg2 == NULL) {
24612 PyErr_SetString(PyExc_TypeError,"null reference");
24613 SWIG_fail;
24614 }
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24618
24619 wxPyEndAllowThreads(__tstate);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 {
24623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24624 }
24625 return resultobj;
24626 fail:
24627 return NULL;
24628}
24629
24630
24631static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24632 int argc;
24633 PyObject *argv[3];
24634 int ii;
24635
24636 argc = PyObject_Length(args);
24637 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24638 argv[ii] = PyTuple_GetItem(args,ii);
24639 }
24640 if (argc == 2) {
24641 int _v;
24642 {
24643 void *ptr;
24644 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24645 _v = 0;
24646 PyErr_Clear();
24647 } else {
24648 _v = 1;
24649 }
24650 }
24651 if (_v) {
24652 {
24653 void *ptr;
24654 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24655 _v = 0;
24656 PyErr_Clear();
24657 } else {
24658 _v = 1;
24659 }
24660 }
24661 if (_v) {
24662 return _wrap_DataFormat___eq____SWIG_1(self,args);
24663 }
24664 }
24665 }
24666 if (argc == 2) {
24667 int _v;
24668 {
24669 void *ptr;
24670 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24671 _v = 0;
24672 PyErr_Clear();
24673 } else {
24674 _v = 1;
24675 }
24676 }
24677 if (_v) {
c370783e 24678 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
24679 if (_v) {
24680 return _wrap_DataFormat___eq____SWIG_0(self,args);
24681 }
24682 }
24683 }
24684
24685 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24686 return NULL;
24687}
24688
24689
c370783e 24690static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
24691 PyObject *resultobj;
24692 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24693 wxDataFormat *arg2 = 0 ;
24694 bool result;
24695 PyObject * obj0 = 0 ;
24696 PyObject * obj1 = 0 ;
24697
24698 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24702 SWIG_POINTER_EXCEPTION | 0)) == -1)
24703 SWIG_fail;
24704 if (arg2 == NULL) {
24705 PyErr_SetString(PyExc_TypeError,"null reference");
24706 SWIG_fail;
24707 }
24708 {
24709 PyThreadState* __tstate = wxPyBeginAllowThreads();
24710 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24711
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 {
24716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24717 }
24718 return resultobj;
24719 fail:
24720 return NULL;
24721}
24722
24723
24724static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24725 int argc;
24726 PyObject *argv[3];
24727 int ii;
24728
24729 argc = PyObject_Length(args);
24730 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24731 argv[ii] = PyTuple_GetItem(args,ii);
24732 }
24733 if (argc == 2) {
24734 int _v;
24735 {
24736 void *ptr;
24737 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24738 _v = 0;
24739 PyErr_Clear();
24740 } else {
24741 _v = 1;
24742 }
24743 }
24744 if (_v) {
24745 {
24746 void *ptr;
24747 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24748 _v = 0;
24749 PyErr_Clear();
24750 } else {
24751 _v = 1;
24752 }
24753 }
24754 if (_v) {
24755 return _wrap_DataFormat___ne____SWIG_1(self,args);
24756 }
24757 }
24758 }
24759 if (argc == 2) {
24760 int _v;
24761 {
24762 void *ptr;
24763 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24764 _v = 0;
24765 PyErr_Clear();
24766 } else {
24767 _v = 1;
24768 }
24769 }
24770 if (_v) {
c370783e 24771 _v = SWIG_Check_int(argv[1]);
d55e5bfc
RD
24772 if (_v) {
24773 return _wrap_DataFormat___ne____SWIG_0(self,args);
24774 }
24775 }
24776 }
24777
24778 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24779 return NULL;
24780}
24781
24782
c370783e 24783static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24784 PyObject *resultobj;
24785 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24786 int arg2 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 char *kwnames[] = {
24790 (char *) "self",(char *) "format", NULL
24791 };
24792
24793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 24796 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24797 if (PyErr_Occurred()) SWIG_fail;
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 (arg1)->SetType((wxDataFormatId )arg2);
24801
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 Py_INCREF(Py_None); resultobj = Py_None;
24806 return resultobj;
24807 fail:
24808 return NULL;
24809}
24810
24811
c370783e 24812static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24813 PyObject *resultobj;
24814 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24815 int result;
24816 PyObject * obj0 = 0 ;
24817 char *kwnames[] = {
24818 (char *) "self", NULL
24819 };
24820
24821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24824 {
24825 PyThreadState* __tstate = wxPyBeginAllowThreads();
24826 result = (int)((wxDataFormat const *)arg1)->GetType();
24827
24828 wxPyEndAllowThreads(__tstate);
24829 if (PyErr_Occurred()) SWIG_fail;
24830 }
c370783e 24831 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
24832 return resultobj;
24833 fail:
24834 return NULL;
24835}
24836
24837
c370783e 24838static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24839 PyObject *resultobj;
24840 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24841 wxString result;
24842 PyObject * obj0 = 0 ;
24843 char *kwnames[] = {
24844 (char *) "self", NULL
24845 };
24846
24847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24850 {
24851 PyThreadState* __tstate = wxPyBeginAllowThreads();
24852 result = ((wxDataFormat const *)arg1)->GetId();
24853
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 {
24858#if wxUSE_UNICODE
24859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24860#else
24861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24862#endif
24863 }
24864 return resultobj;
24865 fail:
24866 return NULL;
24867}
24868
24869
c370783e 24870static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24871 PyObject *resultobj;
24872 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24873 wxString *arg2 = 0 ;
b411df4a 24874 bool temp2 = false ;
d55e5bfc
RD
24875 PyObject * obj0 = 0 ;
24876 PyObject * obj1 = 0 ;
24877 char *kwnames[] = {
24878 (char *) "self",(char *) "format", NULL
24879 };
24880
24881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24884 {
24885 arg2 = wxString_in_helper(obj1);
24886 if (arg2 == NULL) SWIG_fail;
b411df4a 24887 temp2 = true;
d55e5bfc
RD
24888 }
24889 {
24890 PyThreadState* __tstate = wxPyBeginAllowThreads();
24891 (arg1)->SetId((wxString const &)*arg2);
24892
24893 wxPyEndAllowThreads(__tstate);
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 Py_INCREF(Py_None); resultobj = Py_None;
24897 {
24898 if (temp2)
24899 delete arg2;
24900 }
24901 return resultobj;
24902 fail:
24903 {
24904 if (temp2)
24905 delete arg2;
24906 }
24907 return NULL;
24908}
24909
24910
c370783e 24911static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
24912 PyObject *obj;
24913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24914 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24915 Py_INCREF(obj);
24916 return Py_BuildValue((char *)"");
24917}
c370783e 24918static int _wrap_FormatInvalid_set(PyObject *) {
d55e5bfc
RD
24919 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24920 return 1;
24921}
24922
24923
24924static PyObject *_wrap_FormatInvalid_get() {
24925 PyObject *pyobj;
24926
24927 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24928 return pyobj;
24929}
24930
24931
c370783e 24932static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24933 PyObject *resultobj;
24934 wxDataObject *arg1 = (wxDataObject *) 0 ;
24935 PyObject * obj0 = 0 ;
24936 char *kwnames[] = {
24937 (char *) "self", NULL
24938 };
24939
24940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24943 {
24944 PyThreadState* __tstate = wxPyBeginAllowThreads();
24945 delete arg1;
24946
24947 wxPyEndAllowThreads(__tstate);
24948 if (PyErr_Occurred()) SWIG_fail;
24949 }
24950 Py_INCREF(Py_None); resultobj = Py_None;
24951 return resultobj;
24952 fail:
24953 return NULL;
24954}
24955
24956
c370783e 24957static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24958 PyObject *resultobj;
24959 wxDataObject *arg1 = (wxDataObject *) 0 ;
24960 int arg2 = (int) wxDataObject::Get ;
24961 SwigValueWrapper< wxDataFormat > result;
24962 PyObject * obj0 = 0 ;
24963 PyObject * obj1 = 0 ;
24964 char *kwnames[] = {
24965 (char *) "self",(char *) "dir", NULL
24966 };
24967
24968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24971 if (obj1) {
c370783e 24972 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 {
24976 PyThreadState* __tstate = wxPyBeginAllowThreads();
24977 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24978
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 {
24983 wxDataFormat * resultptr;
24984 resultptr = new wxDataFormat((wxDataFormat &) result);
24985 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24986 }
24987 return resultobj;
24988 fail:
24989 return NULL;
24990}
24991
24992
c370783e 24993static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24994 PyObject *resultobj;
24995 wxDataObject *arg1 = (wxDataObject *) 0 ;
24996 int arg2 = (int) wxDataObject::Get ;
24997 size_t result;
24998 PyObject * obj0 = 0 ;
24999 PyObject * obj1 = 0 ;
25000 char *kwnames[] = {
25001 (char *) "self",(char *) "dir", NULL
25002 };
25003
25004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
25005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25007 if (obj1) {
c370783e 25008 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
25014
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
c370783e 25018 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
25019 return resultobj;
25020 fail:
25021 return NULL;
25022}
25023
25024
c370783e 25025static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25026 PyObject *resultobj;
25027 wxDataObject *arg1 = (wxDataObject *) 0 ;
25028 wxDataFormat *arg2 = 0 ;
25029 int arg3 = (int) wxDataObject::Get ;
25030 bool result;
25031 PyObject * obj0 = 0 ;
25032 PyObject * obj1 = 0 ;
25033 PyObject * obj2 = 0 ;
25034 char *kwnames[] = {
25035 (char *) "self",(char *) "format",(char *) "dir", NULL
25036 };
25037
25038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
25039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25042 SWIG_POINTER_EXCEPTION | 0)) == -1)
25043 SWIG_fail;
25044 if (arg2 == NULL) {
25045 PyErr_SetString(PyExc_TypeError,"null reference");
25046 SWIG_fail;
25047 }
25048 if (obj2) {
c370783e 25049 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 {
25053 PyThreadState* __tstate = wxPyBeginAllowThreads();
25054 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
25055
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 {
25060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25061 }
25062 return resultobj;
25063 fail:
25064 return NULL;
25065}
25066
25067
c370783e 25068static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25069 PyObject *resultobj;
25070 wxDataObject *arg1 = (wxDataObject *) 0 ;
25071 wxDataFormat *arg2 = 0 ;
25072 size_t result;
25073 PyObject * obj0 = 0 ;
25074 PyObject * obj1 = 0 ;
25075 char *kwnames[] = {
25076 (char *) "self",(char *) "format", NULL
25077 };
25078
25079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
25080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25083 SWIG_POINTER_EXCEPTION | 0)) == -1)
25084 SWIG_fail;
25085 if (arg2 == NULL) {
25086 PyErr_SetString(PyExc_TypeError,"null reference");
25087 SWIG_fail;
25088 }
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
25092
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
c370783e 25096 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
25097 return resultobj;
25098 fail:
25099 return NULL;
25100}
25101
25102
c370783e 25103static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25104 PyObject *resultobj;
25105 wxDataObject *arg1 = (wxDataObject *) 0 ;
68e533f8
RD
25106 int arg2 = (int) wxDataObject::Get ;
25107 PyObject *result;
d55e5bfc
RD
25108 PyObject * obj0 = 0 ;
25109 PyObject * obj1 = 0 ;
d55e5bfc 25110 char *kwnames[] = {
68e533f8 25111 (char *) "self",(char *) "dir", NULL
d55e5bfc
RD
25112 };
25113
68e533f8 25114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
25115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
68e533f8 25117 if (obj1) {
c370783e 25118 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 25123 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
d55e5bfc
RD
25124
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
68e533f8 25128 resultobj = result;
d55e5bfc
RD
25129 return resultobj;
25130 fail:
25131 return NULL;
25132}
25133
25134
c370783e 25135static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25136 PyObject *resultobj;
25137 wxDataObject *arg1 = (wxDataObject *) 0 ;
25138 wxDataFormat *arg2 = 0 ;
68e533f8 25139 PyObject *result;
d55e5bfc
RD
25140 PyObject * obj0 = 0 ;
25141 PyObject * obj1 = 0 ;
d55e5bfc 25142 char *kwnames[] = {
68e533f8 25143 (char *) "self",(char *) "format", NULL
d55e5bfc
RD
25144 };
25145
68e533f8 25146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
25147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25150 SWIG_POINTER_EXCEPTION | 0)) == -1)
25151 SWIG_fail;
25152 if (arg2 == NULL) {
25153 PyErr_SetString(PyExc_TypeError,"null reference");
25154 SWIG_fail;
25155 }
d55e5bfc
RD
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 25158 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
d55e5bfc
RD
25159
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
68e533f8 25163 resultobj = result;
d55e5bfc
RD
25164 return resultobj;
25165 fail:
25166 return NULL;
25167}
25168
25169
c370783e 25170static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25171 PyObject *resultobj;
25172 wxDataObject *arg1 = (wxDataObject *) 0 ;
25173 wxDataFormat *arg2 = 0 ;
68e533f8 25174 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
25175 bool result;
25176 PyObject * obj0 = 0 ;
25177 PyObject * obj1 = 0 ;
25178 PyObject * obj2 = 0 ;
d55e5bfc 25179 char *kwnames[] = {
68e533f8 25180 (char *) "self",(char *) "format",(char *) "data", NULL
d55e5bfc
RD
25181 };
25182
68e533f8 25183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
25184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25187 SWIG_POINTER_EXCEPTION | 0)) == -1)
25188 SWIG_fail;
25189 if (arg2 == NULL) {
25190 PyErr_SetString(PyExc_TypeError,"null reference");
25191 SWIG_fail;
25192 }
68e533f8 25193 arg3 = obj2;
d55e5bfc
RD
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 25196 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
d55e5bfc
RD
25197
25198 wxPyEndAllowThreads(__tstate);
25199 if (PyErr_Occurred()) SWIG_fail;
25200 }
25201 {
25202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25203 }
25204 return resultobj;
25205 fail:
25206 return NULL;
25207}
25208
25209
c370783e 25210static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25211 PyObject *obj;
25212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25213 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
25214 Py_INCREF(obj);
25215 return Py_BuildValue((char *)"");
25216}
c370783e 25217static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25218 PyObject *resultobj;
25219 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25220 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25221 wxDataObjectSimple *result;
25222 PyObject * obj0 = 0 ;
25223 char *kwnames[] = {
25224 (char *) "format", NULL
25225 };
25226
25227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
25228 if (obj0) {
25229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25230 SWIG_POINTER_EXCEPTION | 0)) == -1)
25231 SWIG_fail;
25232 if (arg1 == NULL) {
25233 PyErr_SetString(PyExc_TypeError,"null reference");
25234 SWIG_fail;
25235 }
25236 }
25237 {
25238 PyThreadState* __tstate = wxPyBeginAllowThreads();
25239 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
25240
25241 wxPyEndAllowThreads(__tstate);
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
25245 return resultobj;
25246 fail:
25247 return NULL;
25248}
25249
25250
c370783e 25251static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25252 PyObject *resultobj;
25253 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25254 wxDataFormat *result;
25255 PyObject * obj0 = 0 ;
25256 char *kwnames[] = {
25257 (char *) "self", NULL
25258 };
25259
25260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
25261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 {
25266 wxDataFormat const &_result_ref = (arg1)->GetFormat();
25267 result = (wxDataFormat *) &_result_ref;
25268 }
25269
25270 wxPyEndAllowThreads(__tstate);
25271 if (PyErr_Occurred()) SWIG_fail;
25272 }
25273 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25274 return resultobj;
25275 fail:
25276 return NULL;
25277}
25278
25279
c370783e 25280static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25281 PyObject *resultobj;
25282 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25283 wxDataFormat *arg2 = 0 ;
25284 PyObject * obj0 = 0 ;
25285 PyObject * obj1 = 0 ;
25286 char *kwnames[] = {
25287 (char *) "self",(char *) "format", NULL
25288 };
25289
25290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25293 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25294 SWIG_POINTER_EXCEPTION | 0)) == -1)
25295 SWIG_fail;
25296 if (arg2 == NULL) {
25297 PyErr_SetString(PyExc_TypeError,"null reference");
25298 SWIG_fail;
25299 }
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25303
25304 wxPyEndAllowThreads(__tstate);
25305 if (PyErr_Occurred()) SWIG_fail;
25306 }
25307 Py_INCREF(Py_None); resultobj = Py_None;
25308 return resultobj;
25309 fail:
25310 return NULL;
25311}
25312
25313
c370783e 25314static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
68e533f8
RD
25315 PyObject *resultobj;
25316 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25317 size_t result;
25318 PyObject * obj0 = 0 ;
25319 char *kwnames[] = {
25320 (char *) "self", NULL
25321 };
25322
25323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25326 {
25327 PyThreadState* __tstate = wxPyBeginAllowThreads();
25328 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25329
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
c370783e 25333 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
68e533f8
RD
25334 return resultobj;
25335 fail:
25336 return NULL;
25337}
25338
25339
c370783e 25340static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
68e533f8
RD
25341 PyObject *resultobj;
25342 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25343 PyObject *result;
25344 PyObject * obj0 = 0 ;
25345 char *kwnames[] = {
25346 (char *) "self", NULL
25347 };
25348
25349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25352 {
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25355
25356 wxPyEndAllowThreads(__tstate);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 resultobj = result;
25360 return resultobj;
25361 fail:
25362 return NULL;
25363}
25364
25365
c370783e 25366static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
68e533f8
RD
25367 PyObject *resultobj;
25368 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25369 PyObject *arg2 = (PyObject *) 0 ;
25370 bool result;
25371 PyObject * obj0 = 0 ;
25372 PyObject * obj1 = 0 ;
25373 char *kwnames[] = {
25374 (char *) "self",(char *) "data", NULL
25375 };
25376
25377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25380 arg2 = obj1;
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25384
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 {
25389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25390 }
25391 return resultobj;
25392 fail:
25393 return NULL;
25394}
25395
25396
c370783e 25397static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25398 PyObject *obj;
25399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25400 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25401 Py_INCREF(obj);
25402 return Py_BuildValue((char *)"");
25403}
c370783e 25404static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25405 PyObject *resultobj;
25406 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25407 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25408 wxPyDataObjectSimple *result;
25409 PyObject * obj0 = 0 ;
25410 char *kwnames[] = {
25411 (char *) "format", NULL
25412 };
25413
25414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25415 if (obj0) {
25416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25417 SWIG_POINTER_EXCEPTION | 0)) == -1)
25418 SWIG_fail;
25419 if (arg1 == NULL) {
25420 PyErr_SetString(PyExc_TypeError,"null reference");
25421 SWIG_fail;
25422 }
25423 }
25424 {
25425 PyThreadState* __tstate = wxPyBeginAllowThreads();
25426 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25427
25428 wxPyEndAllowThreads(__tstate);
25429 if (PyErr_Occurred()) SWIG_fail;
25430 }
25431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25432 return resultobj;
25433 fail:
25434 return NULL;
25435}
25436
25437
c370783e 25438static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25439 PyObject *resultobj;
25440 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25441 PyObject *arg2 = (PyObject *) 0 ;
25442 PyObject *arg3 = (PyObject *) 0 ;
25443 PyObject * obj0 = 0 ;
25444 PyObject * obj1 = 0 ;
25445 PyObject * obj2 = 0 ;
25446 char *kwnames[] = {
25447 (char *) "self",(char *) "self",(char *) "_class", NULL
25448 };
25449
25450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25453 arg2 = obj1;
25454 arg3 = obj2;
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 (arg1)->_setCallbackInfo(arg2,arg3);
25458
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 Py_INCREF(Py_None); resultobj = Py_None;
25463 return resultobj;
25464 fail:
25465 return NULL;
25466}
25467
25468
c370783e 25469static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25470 PyObject *obj;
25471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25472 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25473 Py_INCREF(obj);
25474 return Py_BuildValue((char *)"");
25475}
c370783e 25476static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25477 PyObject *resultobj;
25478 wxDataObjectComposite *result;
25479 char *kwnames[] = {
25480 NULL
25481 };
25482
25483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25484 {
25485 PyThreadState* __tstate = wxPyBeginAllowThreads();
25486 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25487
25488 wxPyEndAllowThreads(__tstate);
25489 if (PyErr_Occurred()) SWIG_fail;
25490 }
25491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25492 return resultobj;
25493 fail:
25494 return NULL;
25495}
25496
25497
c370783e 25498static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25499 PyObject *resultobj;
25500 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25501 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
b411df4a 25502 bool arg3 = (bool) false ;
d55e5bfc
RD
25503 PyObject * obj0 = 0 ;
25504 PyObject * obj1 = 0 ;
25505 PyObject * obj2 = 0 ;
25506 char *kwnames[] = {
25507 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25508 };
25509
25510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25514 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25515 if (obj2) {
c370783e 25516 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
25517 if (PyErr_Occurred()) SWIG_fail;
25518 }
25519 {
25520 PyThreadState* __tstate = wxPyBeginAllowThreads();
25521 (arg1)->Add(arg2,arg3);
25522
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 Py_INCREF(Py_None); resultobj = Py_None;
25527 return resultobj;
25528 fail:
25529 return NULL;
25530}
25531
25532
c370783e 25533static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25534 PyObject *obj;
25535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25536 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25537 Py_INCREF(obj);
25538 return Py_BuildValue((char *)"");
25539}
c370783e 25540static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25541 PyObject *resultobj;
25542 wxString const &arg1_defvalue = wxPyEmptyString ;
25543 wxString *arg1 = (wxString *) &arg1_defvalue ;
25544 wxTextDataObject *result;
b411df4a 25545 bool temp1 = false ;
d55e5bfc
RD
25546 PyObject * obj0 = 0 ;
25547 char *kwnames[] = {
25548 (char *) "text", NULL
25549 };
25550
25551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25552 if (obj0) {
25553 {
25554 arg1 = wxString_in_helper(obj0);
25555 if (arg1 == NULL) SWIG_fail;
b411df4a 25556 temp1 = true;
d55e5bfc
RD
25557 }
25558 }
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25562
25563 wxPyEndAllowThreads(__tstate);
25564 if (PyErr_Occurred()) SWIG_fail;
25565 }
25566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25567 {
25568 if (temp1)
25569 delete arg1;
25570 }
25571 return resultobj;
25572 fail:
25573 {
25574 if (temp1)
25575 delete arg1;
25576 }
25577 return NULL;
25578}
25579
25580
c370783e 25581static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25582 PyObject *resultobj;
25583 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25584 size_t result;
25585 PyObject * obj0 = 0 ;
25586 char *kwnames[] = {
25587 (char *) "self", NULL
25588 };
25589
25590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25593 {
25594 PyThreadState* __tstate = wxPyBeginAllowThreads();
25595 result = (size_t)(arg1)->GetTextLength();
25596
25597 wxPyEndAllowThreads(__tstate);
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
c370783e 25600 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
25601 return resultobj;
25602 fail:
25603 return NULL;
25604}
25605
25606
c370783e 25607static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25608 PyObject *resultobj;
25609 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25610 wxString result;
25611 PyObject * obj0 = 0 ;
25612 char *kwnames[] = {
25613 (char *) "self", NULL
25614 };
25615
25616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25619 {
25620 PyThreadState* __tstate = wxPyBeginAllowThreads();
25621 result = (arg1)->GetText();
25622
25623 wxPyEndAllowThreads(__tstate);
25624 if (PyErr_Occurred()) SWIG_fail;
25625 }
25626 {
25627#if wxUSE_UNICODE
25628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25629#else
25630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25631#endif
25632 }
25633 return resultobj;
25634 fail:
25635 return NULL;
25636}
25637
25638
c370783e 25639static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25640 PyObject *resultobj;
25641 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25642 wxString *arg2 = 0 ;
b411df4a 25643 bool temp2 = false ;
d55e5bfc
RD
25644 PyObject * obj0 = 0 ;
25645 PyObject * obj1 = 0 ;
25646 char *kwnames[] = {
25647 (char *) "self",(char *) "text", NULL
25648 };
25649
25650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25653 {
25654 arg2 = wxString_in_helper(obj1);
25655 if (arg2 == NULL) SWIG_fail;
b411df4a 25656 temp2 = true;
d55e5bfc
RD
25657 }
25658 {
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 (arg1)->SetText((wxString const &)*arg2);
25661
25662 wxPyEndAllowThreads(__tstate);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 Py_INCREF(Py_None); resultobj = Py_None;
25666 {
25667 if (temp2)
25668 delete arg2;
25669 }
25670 return resultobj;
25671 fail:
25672 {
25673 if (temp2)
25674 delete arg2;
25675 }
25676 return NULL;
25677}
25678
25679
c370783e 25680static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25681 PyObject *obj;
25682 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25683 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25684 Py_INCREF(obj);
25685 return Py_BuildValue((char *)"");
25686}
c370783e 25687static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25688 PyObject *resultobj;
25689 wxString const &arg1_defvalue = wxPyEmptyString ;
25690 wxString *arg1 = (wxString *) &arg1_defvalue ;
25691 wxPyTextDataObject *result;
b411df4a 25692 bool temp1 = false ;
d55e5bfc
RD
25693 PyObject * obj0 = 0 ;
25694 char *kwnames[] = {
25695 (char *) "text", NULL
25696 };
25697
25698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25699 if (obj0) {
25700 {
25701 arg1 = wxString_in_helper(obj0);
25702 if (arg1 == NULL) SWIG_fail;
b411df4a 25703 temp1 = true;
d55e5bfc
RD
25704 }
25705 }
25706 {
25707 PyThreadState* __tstate = wxPyBeginAllowThreads();
25708 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25709
25710 wxPyEndAllowThreads(__tstate);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25714 {
25715 if (temp1)
25716 delete arg1;
25717 }
25718 return resultobj;
25719 fail:
25720 {
25721 if (temp1)
25722 delete arg1;
25723 }
25724 return NULL;
25725}
25726
25727
c370783e 25728static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25729 PyObject *resultobj;
25730 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25731 PyObject *arg2 = (PyObject *) 0 ;
25732 PyObject *arg3 = (PyObject *) 0 ;
25733 PyObject * obj0 = 0 ;
25734 PyObject * obj1 = 0 ;
25735 PyObject * obj2 = 0 ;
25736 char *kwnames[] = {
25737 (char *) "self",(char *) "self",(char *) "_class", NULL
25738 };
25739
25740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25743 arg2 = obj1;
25744 arg3 = obj2;
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 (arg1)->_setCallbackInfo(arg2,arg3);
25748
25749 wxPyEndAllowThreads(__tstate);
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
25752 Py_INCREF(Py_None); resultobj = Py_None;
25753 return resultobj;
25754 fail:
25755 return NULL;
25756}
25757
25758
c370783e 25759static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25760 PyObject *obj;
25761 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25762 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25763 Py_INCREF(obj);
25764 return Py_BuildValue((char *)"");
25765}
c370783e 25766static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25767 PyObject *resultobj;
25768 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25769 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25770 wxBitmapDataObject *result;
25771 PyObject * obj0 = 0 ;
25772 char *kwnames[] = {
25773 (char *) "bitmap", NULL
25774 };
25775
25776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25777 if (obj0) {
25778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25779 SWIG_POINTER_EXCEPTION | 0)) == -1)
25780 SWIG_fail;
25781 if (arg1 == NULL) {
25782 PyErr_SetString(PyExc_TypeError,"null reference");
25783 SWIG_fail;
25784 }
25785 }
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25789
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25794 return resultobj;
25795 fail:
25796 return NULL;
25797}
25798
25799
c370783e 25800static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25801 PyObject *resultobj;
25802 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25803 wxBitmap result;
25804 PyObject * obj0 = 0 ;
25805 char *kwnames[] = {
25806 (char *) "self", NULL
25807 };
25808
25809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25812 {
25813 PyThreadState* __tstate = wxPyBeginAllowThreads();
25814 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25815
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 {
25820 wxBitmap * resultptr;
25821 resultptr = new wxBitmap((wxBitmap &) result);
25822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25823 }
25824 return resultobj;
25825 fail:
25826 return NULL;
25827}
25828
25829
c370783e 25830static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25831 PyObject *resultobj;
25832 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25833 wxBitmap *arg2 = 0 ;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 char *kwnames[] = {
25837 (char *) "self",(char *) "bitmap", NULL
25838 };
25839
25840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25844 SWIG_POINTER_EXCEPTION | 0)) == -1)
25845 SWIG_fail;
25846 if (arg2 == NULL) {
25847 PyErr_SetString(PyExc_TypeError,"null reference");
25848 SWIG_fail;
25849 }
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25853
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 Py_INCREF(Py_None); resultobj = Py_None;
25858 return resultobj;
25859 fail:
25860 return NULL;
25861}
25862
25863
c370783e 25864static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25865 PyObject *obj;
25866 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25867 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25868 Py_INCREF(obj);
25869 return Py_BuildValue((char *)"");
25870}
c370783e 25871static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25872 PyObject *resultobj;
25873 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25874 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25875 wxPyBitmapDataObject *result;
25876 PyObject * obj0 = 0 ;
25877 char *kwnames[] = {
25878 (char *) "bitmap", NULL
25879 };
25880
25881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25882 if (obj0) {
25883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25884 SWIG_POINTER_EXCEPTION | 0)) == -1)
25885 SWIG_fail;
25886 if (arg1 == NULL) {
25887 PyErr_SetString(PyExc_TypeError,"null reference");
25888 SWIG_fail;
25889 }
25890 }
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25894
25895 wxPyEndAllowThreads(__tstate);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25899 return resultobj;
25900 fail:
25901 return NULL;
25902}
25903
25904
c370783e 25905static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25906 PyObject *resultobj;
25907 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25908 PyObject *arg2 = (PyObject *) 0 ;
25909 PyObject *arg3 = (PyObject *) 0 ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 PyObject * obj2 = 0 ;
25913 char *kwnames[] = {
25914 (char *) "self",(char *) "self",(char *) "_class", NULL
25915 };
25916
25917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25920 arg2 = obj1;
25921 arg3 = obj2;
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 (arg1)->_setCallbackInfo(arg2,arg3);
25925
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 Py_INCREF(Py_None); resultobj = Py_None;
25930 return resultobj;
25931 fail:
25932 return NULL;
25933}
25934
25935
c370783e 25936static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
25937 PyObject *obj;
25938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25939 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25940 Py_INCREF(obj);
25941 return Py_BuildValue((char *)"");
25942}
c370783e 25943static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25944 PyObject *resultobj;
25945 wxFileDataObject *result;
25946 char *kwnames[] = {
25947 NULL
25948 };
25949
25950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 result = (wxFileDataObject *)new wxFileDataObject();
25954
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25959 return resultobj;
25960 fail:
25961 return NULL;
25962}
25963
25964
c370783e 25965static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25966 PyObject *resultobj;
25967 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25968 wxArrayString *result;
25969 PyObject * obj0 = 0 ;
25970 char *kwnames[] = {
25971 (char *) "self", NULL
25972 };
25973
25974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25977 {
25978 PyThreadState* __tstate = wxPyBeginAllowThreads();
25979 {
25980 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25981 result = (wxArrayString *) &_result_ref;
25982 }
25983
25984 wxPyEndAllowThreads(__tstate);
25985 if (PyErr_Occurred()) SWIG_fail;
25986 }
25987 {
25988 resultobj = wxArrayString2PyList_helper(*result);
25989 }
25990 return resultobj;
25991 fail:
25992 return NULL;
25993}
25994
25995
c370783e 25996static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25997 PyObject *resultobj;
25998 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25999 wxString *arg2 = 0 ;
b411df4a 26000 bool temp2 = false ;
d55e5bfc
RD
26001 PyObject * obj0 = 0 ;
26002 PyObject * obj1 = 0 ;
26003 char *kwnames[] = {
26004 (char *) "self",(char *) "filename", NULL
26005 };
26006
26007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
26008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
26009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26010 {
26011 arg2 = wxString_in_helper(obj1);
26012 if (arg2 == NULL) SWIG_fail;
b411df4a 26013 temp2 = true;
d55e5bfc
RD
26014 }
26015 {
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 (arg1)->AddFile((wxString const &)*arg2);
26018
26019 wxPyEndAllowThreads(__tstate);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 Py_INCREF(Py_None); resultobj = Py_None;
26023 {
26024 if (temp2)
26025 delete arg2;
26026 }
26027 return resultobj;
26028 fail:
26029 {
26030 if (temp2)
26031 delete arg2;
26032 }
26033 return NULL;
26034}
26035
26036
c370783e 26037static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26038 PyObject *obj;
26039 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26040 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
26041 Py_INCREF(obj);
26042 return Py_BuildValue((char *)"");
26043}
c370783e 26044static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26045 PyObject *resultobj;
26046 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
26047 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
26048 wxCustomDataObject *result;
26049 PyObject * obj0 = 0 ;
26050 char *kwnames[] = {
26051 (char *) "format", NULL
26052 };
26053
26054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
26055 if (obj0) {
26056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
26057 SWIG_POINTER_EXCEPTION | 0)) == -1)
26058 SWIG_fail;
26059 if (arg1 == NULL) {
26060 PyErr_SetString(PyExc_TypeError,"null reference");
26061 SWIG_fail;
26062 }
26063 }
26064 {
26065 PyThreadState* __tstate = wxPyBeginAllowThreads();
26066 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
26067
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
26072 return resultobj;
26073 fail:
26074 return NULL;
26075}
26076
26077
c370783e 26078static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26079 PyObject *resultobj;
26080 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26081 PyObject *arg2 = (PyObject *) 0 ;
26082 bool result;
26083 PyObject * obj0 = 0 ;
26084 PyObject * obj1 = 0 ;
26085 char *kwnames[] = {
26086 (char *) "self",(char *) "data", NULL
26087 };
26088
26089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
26090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26092 arg2 = obj1;
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
26096
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 {
26101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26102 }
26103 return resultobj;
26104 fail:
26105 return NULL;
26106}
26107
26108
c370783e 26109static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26110 PyObject *resultobj;
26111 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26112 size_t result;
26113 PyObject * obj0 = 0 ;
26114 char *kwnames[] = {
26115 (char *) "self", NULL
26116 };
26117
26118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
26119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 result = (size_t)(arg1)->GetSize();
26124
26125 wxPyEndAllowThreads(__tstate);
26126 if (PyErr_Occurred()) SWIG_fail;
26127 }
c370783e 26128 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
26129 return resultobj;
26130 fail:
26131 return NULL;
26132}
26133
26134
c370783e 26135static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26136 PyObject *resultobj;
26137 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26138 PyObject *result;
26139 PyObject * obj0 = 0 ;
26140 char *kwnames[] = {
26141 (char *) "self", NULL
26142 };
26143
26144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
26145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26147 {
26148 PyThreadState* __tstate = wxPyBeginAllowThreads();
26149 result = (PyObject *)wxCustomDataObject_GetData(arg1);
26150
26151 wxPyEndAllowThreads(__tstate);
26152 if (PyErr_Occurred()) SWIG_fail;
26153 }
26154 resultobj = result;
26155 return resultobj;
26156 fail:
26157 return NULL;
26158}
26159
26160
c370783e 26161static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26162 PyObject *obj;
26163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26164 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
26165 Py_INCREF(obj);
26166 return Py_BuildValue((char *)"");
26167}
c370783e 26168static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26169 PyObject *resultobj;
26170 wxURLDataObject *result;
26171 char *kwnames[] = {
26172 NULL
26173 };
26174
26175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
26176 {
26177 PyThreadState* __tstate = wxPyBeginAllowThreads();
26178 result = (wxURLDataObject *)new wxURLDataObject();
26179
26180 wxPyEndAllowThreads(__tstate);
26181 if (PyErr_Occurred()) SWIG_fail;
26182 }
26183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
26184 return resultobj;
26185 fail:
26186 return NULL;
26187}
26188
26189
c370783e 26190static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26191 PyObject *resultobj;
26192 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26193 wxString result;
26194 PyObject * obj0 = 0 ;
26195 char *kwnames[] = {
26196 (char *) "self", NULL
26197 };
26198
26199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
26200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26202 {
26203 PyThreadState* __tstate = wxPyBeginAllowThreads();
26204 result = (arg1)->GetURL();
26205
26206 wxPyEndAllowThreads(__tstate);
26207 if (PyErr_Occurred()) SWIG_fail;
26208 }
26209 {
26210#if wxUSE_UNICODE
26211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26212#else
26213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26214#endif
26215 }
26216 return resultobj;
26217 fail:
26218 return NULL;
26219}
26220
26221
c370783e 26222static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26223 PyObject *resultobj;
26224 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26225 wxString *arg2 = 0 ;
b411df4a 26226 bool temp2 = false ;
d55e5bfc
RD
26227 PyObject * obj0 = 0 ;
26228 PyObject * obj1 = 0 ;
26229 char *kwnames[] = {
26230 (char *) "self",(char *) "url", NULL
26231 };
26232
26233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
26234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26236 {
26237 arg2 = wxString_in_helper(obj1);
26238 if (arg2 == NULL) SWIG_fail;
b411df4a 26239 temp2 = true;
d55e5bfc
RD
26240 }
26241 {
26242 PyThreadState* __tstate = wxPyBeginAllowThreads();
26243 (arg1)->SetURL((wxString const &)*arg2);
26244
26245 wxPyEndAllowThreads(__tstate);
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 Py_INCREF(Py_None); resultobj = Py_None;
26249 {
26250 if (temp2)
26251 delete arg2;
26252 }
26253 return resultobj;
26254 fail:
26255 {
26256 if (temp2)
26257 delete arg2;
26258 }
26259 return NULL;
26260}
26261
26262
c370783e 26263static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26264 PyObject *obj;
26265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26266 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
26267 Py_INCREF(obj);
26268 return Py_BuildValue((char *)"");
26269}
c370783e 26270static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26271 PyObject *resultobj;
26272 wxMetafileDataObject *result;
26273 char *kwnames[] = {
26274 NULL
26275 };
26276
26277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26281
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26286 return resultobj;
26287 fail:
26288 return NULL;
26289}
26290
26291
c370783e 26292static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26293 PyObject *resultobj;
26294 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26295 wxMetafile *arg2 = 0 ;
26296 PyObject * obj0 = 0 ;
26297 PyObject * obj1 = 0 ;
26298 char *kwnames[] = {
26299 (char *) "self",(char *) "metafile", NULL
26300 };
26301
26302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
26303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
26306 SWIG_POINTER_EXCEPTION | 0)) == -1)
26307 SWIG_fail;
26308 if (arg2 == NULL) {
26309 PyErr_SetString(PyExc_TypeError,"null reference");
26310 SWIG_fail;
26311 }
26312 {
26313 PyThreadState* __tstate = wxPyBeginAllowThreads();
26314 (arg1)->SetMetafile((wxMetafile const &)*arg2);
26315
26316 wxPyEndAllowThreads(__tstate);
26317 if (PyErr_Occurred()) SWIG_fail;
26318 }
26319 Py_INCREF(Py_None); resultobj = Py_None;
26320 return resultobj;
26321 fail:
26322 return NULL;
26323}
26324
26325
c370783e 26326static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26327 PyObject *resultobj;
26328 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26329 wxMetafile result;
26330 PyObject * obj0 = 0 ;
26331 char *kwnames[] = {
26332 (char *) "self", NULL
26333 };
26334
26335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
26336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26338 {
26339 PyThreadState* __tstate = wxPyBeginAllowThreads();
26340 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
26341
26342 wxPyEndAllowThreads(__tstate);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 }
26345 {
26346 wxMetafile * resultptr;
26347 resultptr = new wxMetafile((wxMetafile &) result);
26348 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
26349 }
26350 return resultobj;
26351 fail:
26352 return NULL;
26353}
26354
26355
c370783e 26356static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26357 PyObject *obj;
26358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26359 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26360 Py_INCREF(obj);
26361 return Py_BuildValue((char *)"");
26362}
c370783e 26363static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26364 PyObject *resultobj;
26365 int arg1 ;
26366 bool result;
26367 PyObject * obj0 = 0 ;
26368 char *kwnames[] = {
26369 (char *) "res", NULL
26370 };
26371
26372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
c370783e 26373 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
26374 if (PyErr_Occurred()) SWIG_fail;
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26378
26379 wxPyEndAllowThreads(__tstate);
26380 if (PyErr_Occurred()) SWIG_fail;
26381 }
26382 {
26383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26384 }
26385 return resultobj;
26386 fail:
26387 return NULL;
26388}
26389
26390
c370783e 26391static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26392 PyObject *resultobj;
26393 wxWindow *arg1 = (wxWindow *) 0 ;
26394 wxCursor const &arg2_defvalue = wxNullCursor ;
26395 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26396 wxCursor const &arg3_defvalue = wxNullCursor ;
26397 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26398 wxCursor const &arg4_defvalue = wxNullCursor ;
26399 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26400 wxPyDropSource *result;
26401 PyObject * obj0 = 0 ;
26402 PyObject * obj1 = 0 ;
26403 PyObject * obj2 = 0 ;
26404 PyObject * obj3 = 0 ;
26405 char *kwnames[] = {
26406 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26407 };
26408
26409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26412 if (obj1) {
26413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26414 SWIG_POINTER_EXCEPTION | 0)) == -1)
26415 SWIG_fail;
26416 if (arg2 == NULL) {
26417 PyErr_SetString(PyExc_TypeError,"null reference");
26418 SWIG_fail;
26419 }
26420 }
26421 if (obj2) {
26422 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26423 SWIG_POINTER_EXCEPTION | 0)) == -1)
26424 SWIG_fail;
26425 if (arg3 == NULL) {
26426 PyErr_SetString(PyExc_TypeError,"null reference");
26427 SWIG_fail;
26428 }
26429 }
26430 if (obj3) {
26431 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26432 SWIG_POINTER_EXCEPTION | 0)) == -1)
26433 SWIG_fail;
26434 if (arg4 == NULL) {
26435 PyErr_SetString(PyExc_TypeError,"null reference");
26436 SWIG_fail;
26437 }
26438 }
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
26441 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26442
26443 wxPyEndAllowThreads(__tstate);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 }
26446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26447 return resultobj;
26448 fail:
26449 return NULL;
26450}
26451
26452
c370783e 26453static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26454 PyObject *resultobj;
26455 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26456 PyObject *arg2 = (PyObject *) 0 ;
26457 PyObject *arg3 = (PyObject *) 0 ;
26458 int arg4 ;
26459 PyObject * obj0 = 0 ;
26460 PyObject * obj1 = 0 ;
26461 PyObject * obj2 = 0 ;
26462 PyObject * obj3 = 0 ;
26463 char *kwnames[] = {
26464 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26465 };
26466
26467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26470 arg2 = obj1;
26471 arg3 = obj2;
c370783e 26472 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26473 if (PyErr_Occurred()) SWIG_fail;
26474 {
26475 PyThreadState* __tstate = wxPyBeginAllowThreads();
26476 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26477
26478 wxPyEndAllowThreads(__tstate);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 Py_INCREF(Py_None); resultobj = Py_None;
26482 return resultobj;
26483 fail:
26484 return NULL;
26485}
26486
26487
c370783e 26488static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26489 PyObject *resultobj;
26490 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26491 PyObject * obj0 = 0 ;
26492 char *kwnames[] = {
26493 (char *) "self", NULL
26494 };
26495
26496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26499 {
26500 PyThreadState* __tstate = wxPyBeginAllowThreads();
26501 delete arg1;
26502
26503 wxPyEndAllowThreads(__tstate);
26504 if (PyErr_Occurred()) SWIG_fail;
26505 }
26506 Py_INCREF(Py_None); resultobj = Py_None;
26507 return resultobj;
26508 fail:
26509 return NULL;
26510}
26511
26512
c370783e 26513static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26514 PyObject *resultobj;
26515 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26516 wxDataObject *arg2 = 0 ;
26517 PyObject * obj0 = 0 ;
26518 PyObject * obj1 = 0 ;
26519 char *kwnames[] = {
26520 (char *) "self",(char *) "data", NULL
26521 };
26522
26523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26527 SWIG_POINTER_EXCEPTION | 0)) == -1)
26528 SWIG_fail;
26529 if (arg2 == NULL) {
26530 PyErr_SetString(PyExc_TypeError,"null reference");
26531 SWIG_fail;
26532 }
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 (arg1)->SetData(*arg2);
26536
26537 wxPyEndAllowThreads(__tstate);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
26540 Py_INCREF(Py_None); resultobj = Py_None;
26541 return resultobj;
26542 fail:
26543 return NULL;
26544}
26545
26546
c370783e 26547static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26548 PyObject *resultobj;
26549 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26550 wxDataObject *result;
26551 PyObject * obj0 = 0 ;
26552 char *kwnames[] = {
26553 (char *) "self", NULL
26554 };
26555
26556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26559 {
26560 PyThreadState* __tstate = wxPyBeginAllowThreads();
26561 result = (wxDataObject *)(arg1)->GetDataObject();
26562
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26567 return resultobj;
26568 fail:
26569 return NULL;
26570}
26571
26572
c370783e 26573static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26574 PyObject *resultobj;
26575 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26576 int arg2 ;
26577 wxCursor *arg3 = 0 ;
26578 PyObject * obj0 = 0 ;
26579 PyObject * obj1 = 0 ;
26580 PyObject * obj2 = 0 ;
26581 char *kwnames[] = {
26582 (char *) "self",(char *) "res",(char *) "cursor", NULL
26583 };
26584
26585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 26588 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26589 if (PyErr_Occurred()) SWIG_fail;
26590 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26591 SWIG_POINTER_EXCEPTION | 0)) == -1)
26592 SWIG_fail;
26593 if (arg3 == NULL) {
26594 PyErr_SetString(PyExc_TypeError,"null reference");
26595 SWIG_fail;
26596 }
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26600
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 Py_INCREF(Py_None); resultobj = Py_None;
26605 return resultobj;
26606 fail:
26607 return NULL;
26608}
26609
26610
c370783e 26611static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26612 PyObject *resultobj;
26613 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26614 int arg2 = (int) wxDrag_CopyOnly ;
26615 int result;
26616 PyObject * obj0 = 0 ;
26617 PyObject * obj1 = 0 ;
26618 char *kwnames[] = {
26619 (char *) "self",(char *) "flags", NULL
26620 };
26621
26622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26625 if (obj1) {
c370783e 26626 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26627 if (PyErr_Occurred()) SWIG_fail;
26628 }
26629 {
26630 PyThreadState* __tstate = wxPyBeginAllowThreads();
26631 result = (int)(arg1)->DoDragDrop(arg2);
26632
26633 wxPyEndAllowThreads(__tstate);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
c370783e 26636 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26637 return resultobj;
26638 fail:
26639 return NULL;
26640}
26641
26642
c370783e 26643static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26644 PyObject *resultobj;
26645 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26646 int arg2 ;
26647 bool result;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char *kwnames[] = {
26651 (char *) "self",(char *) "effect", NULL
26652 };
26653
26654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 26657 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
26658 if (PyErr_Occurred()) SWIG_fail;
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26662
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 {
26667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26668 }
26669 return resultobj;
26670 fail:
26671 return NULL;
26672}
26673
26674
c370783e 26675static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26676 PyObject *obj;
26677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26678 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26679 Py_INCREF(obj);
26680 return Py_BuildValue((char *)"");
26681}
c370783e 26682static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26683 PyObject *resultobj;
26684 wxDataObject *arg1 = (wxDataObject *) NULL ;
26685 wxPyDropTarget *result;
26686 PyObject * obj0 = 0 ;
26687 char *kwnames[] = {
26688 (char *) "dataObject", NULL
26689 };
26690
26691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26692 if (obj0) {
26693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26694 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26695 }
26696 {
26697 PyThreadState* __tstate = wxPyBeginAllowThreads();
26698 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26699
26700 wxPyEndAllowThreads(__tstate);
26701 if (PyErr_Occurred()) SWIG_fail;
26702 }
26703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26704 return resultobj;
26705 fail:
26706 return NULL;
26707}
26708
26709
c370783e 26710static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26711 PyObject *resultobj;
26712 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26713 PyObject *arg2 = (PyObject *) 0 ;
26714 PyObject *arg3 = (PyObject *) 0 ;
26715 PyObject * obj0 = 0 ;
26716 PyObject * obj1 = 0 ;
26717 PyObject * obj2 = 0 ;
26718 char *kwnames[] = {
26719 (char *) "self",(char *) "self",(char *) "_class", NULL
26720 };
26721
26722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26725 arg2 = obj1;
26726 arg3 = obj2;
26727 {
26728 PyThreadState* __tstate = wxPyBeginAllowThreads();
26729 (arg1)->_setCallbackInfo(arg2,arg3);
26730
26731 wxPyEndAllowThreads(__tstate);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 Py_INCREF(Py_None); resultobj = Py_None;
26735 return resultobj;
26736 fail:
26737 return NULL;
26738}
26739
26740
c370783e 26741static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26742 PyObject *resultobj;
26743 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26744 PyObject * obj0 = 0 ;
26745 char *kwnames[] = {
26746 (char *) "self", NULL
26747 };
26748
26749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26752 {
26753 PyThreadState* __tstate = wxPyBeginAllowThreads();
26754 delete arg1;
26755
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 Py_INCREF(Py_None); resultobj = Py_None;
26760 return resultobj;
26761 fail:
26762 return NULL;
26763}
26764
26765
c370783e 26766static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26767 PyObject *resultobj;
26768 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26769 wxDataObject *result;
26770 PyObject * obj0 = 0 ;
26771 char *kwnames[] = {
26772 (char *) "self", NULL
26773 };
26774
26775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26778 {
26779 PyThreadState* __tstate = wxPyBeginAllowThreads();
26780 result = (wxDataObject *)(arg1)->GetDataObject();
26781
26782 wxPyEndAllowThreads(__tstate);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 }
26785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26786 return resultobj;
26787 fail:
26788 return NULL;
26789}
26790
26791
c370783e 26792static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26793 PyObject *resultobj;
26794 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26795 wxDataObject *arg2 = (wxDataObject *) 0 ;
26796 PyObject * obj0 = 0 ;
26797 PyObject * obj1 = 0 ;
26798 char *kwnames[] = {
26799 (char *) "self",(char *) "dataObject", NULL
26800 };
26801
26802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26806 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 (arg1)->SetDataObject(arg2);
26810
26811 wxPyEndAllowThreads(__tstate);
26812 if (PyErr_Occurred()) SWIG_fail;
26813 }
26814 Py_INCREF(Py_None); resultobj = Py_None;
26815 return resultobj;
26816 fail:
26817 return NULL;
26818}
26819
26820
c370783e 26821static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26822 PyObject *resultobj;
26823 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26824 int arg2 ;
26825 int arg3 ;
26826 int arg4 ;
26827 int result;
26828 PyObject * obj0 = 0 ;
26829 PyObject * obj1 = 0 ;
26830 PyObject * obj2 = 0 ;
26831 PyObject * obj3 = 0 ;
26832 char *kwnames[] = {
26833 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26834 };
26835
26836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 26839 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26840 if (PyErr_Occurred()) SWIG_fail;
c370783e 26841 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26842 if (PyErr_Occurred()) SWIG_fail;
c370783e 26843 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26844 if (PyErr_Occurred()) SWIG_fail;
26845 {
26846 PyThreadState* __tstate = wxPyBeginAllowThreads();
26847 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26848
26849 wxPyEndAllowThreads(__tstate);
26850 if (PyErr_Occurred()) SWIG_fail;
26851 }
c370783e 26852 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26853 return resultobj;
26854 fail:
26855 return NULL;
26856}
26857
26858
c370783e 26859static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26860 PyObject *resultobj;
26861 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26862 int arg2 ;
26863 int arg3 ;
26864 int arg4 ;
26865 int result;
26866 PyObject * obj0 = 0 ;
26867 PyObject * obj1 = 0 ;
26868 PyObject * obj2 = 0 ;
26869 PyObject * obj3 = 0 ;
26870 char *kwnames[] = {
26871 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26872 };
26873
26874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 26877 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26878 if (PyErr_Occurred()) SWIG_fail;
c370783e 26879 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 26880 if (PyErr_Occurred()) SWIG_fail;
c370783e 26881 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26882 if (PyErr_Occurred()) SWIG_fail;
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26886
26887 wxPyEndAllowThreads(__tstate);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
c370783e 26890 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26891 return resultobj;
26892 fail:
26893 return NULL;
26894}
26895
26896
c370783e 26897static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26898 PyObject *resultobj;
26899 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26900 PyObject * obj0 = 0 ;
26901 char *kwnames[] = {
26902 (char *) "self", NULL
26903 };
26904
26905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26908 {
26909 PyThreadState* __tstate = wxPyBeginAllowThreads();
26910 (arg1)->base_OnLeave();
26911
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 Py_INCREF(Py_None); resultobj = Py_None;
26916 return resultobj;
26917 fail:
26918 return NULL;
26919}
26920
26921
c370783e 26922static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26923 PyObject *resultobj;
26924 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26925 int arg2 ;
26926 int arg3 ;
26927 bool result;
26928 PyObject * obj0 = 0 ;
26929 PyObject * obj1 = 0 ;
26930 PyObject * obj2 = 0 ;
26931 char *kwnames[] = {
26932 (char *) "self",(char *) "x",(char *) "y", NULL
26933 };
26934
26935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 26938 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26939 if (PyErr_Occurred()) SWIG_fail;
c370783e 26940 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
26941 if (PyErr_Occurred()) SWIG_fail;
26942 {
26943 PyThreadState* __tstate = wxPyBeginAllowThreads();
26944 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26945
26946 wxPyEndAllowThreads(__tstate);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 {
26950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26951 }
26952 return resultobj;
26953 fail:
26954 return NULL;
26955}
26956
26957
c370783e 26958static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26959 PyObject *resultobj;
26960 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26961 bool result;
26962 PyObject * obj0 = 0 ;
26963 char *kwnames[] = {
26964 (char *) "self", NULL
26965 };
26966
26967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26970 {
26971 PyThreadState* __tstate = wxPyBeginAllowThreads();
26972 result = (bool)(arg1)->GetData();
26973
26974 wxPyEndAllowThreads(__tstate);
26975 if (PyErr_Occurred()) SWIG_fail;
26976 }
26977 {
26978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26979 }
26980 return resultobj;
26981 fail:
26982 return NULL;
26983}
26984
26985
c370783e 26986static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
26987 PyObject *obj;
26988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26989 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26990 Py_INCREF(obj);
26991 return Py_BuildValue((char *)"");
26992}
c370783e 26993static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26994 PyObject *resultobj;
26995 wxPyTextDropTarget *result;
26996 char *kwnames[] = {
26997 NULL
26998 };
26999
27000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
27001 {
27002 PyThreadState* __tstate = wxPyBeginAllowThreads();
27003 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
27004
27005 wxPyEndAllowThreads(__tstate);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 }
27008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
27009 return resultobj;
27010 fail:
27011 return NULL;
27012}
27013
27014
c370783e 27015static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27016 PyObject *resultobj;
27017 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27018 PyObject *arg2 = (PyObject *) 0 ;
27019 PyObject *arg3 = (PyObject *) 0 ;
27020 PyObject * obj0 = 0 ;
27021 PyObject * obj1 = 0 ;
27022 PyObject * obj2 = 0 ;
27023 char *kwnames[] = {
27024 (char *) "self",(char *) "self",(char *) "_class", NULL
27025 };
27026
27027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27030 arg2 = obj1;
27031 arg3 = obj2;
27032 {
27033 PyThreadState* __tstate = wxPyBeginAllowThreads();
27034 (arg1)->_setCallbackInfo(arg2,arg3);
27035
27036 wxPyEndAllowThreads(__tstate);
27037 if (PyErr_Occurred()) SWIG_fail;
27038 }
27039 Py_INCREF(Py_None); resultobj = Py_None;
27040 return resultobj;
27041 fail:
27042 return NULL;
27043}
27044
27045
c370783e 27046static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27047 PyObject *resultobj;
27048 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27049 int arg2 ;
27050 int arg3 ;
27051 int arg4 ;
27052 int result;
27053 PyObject * obj0 = 0 ;
27054 PyObject * obj1 = 0 ;
27055 PyObject * obj2 = 0 ;
27056 PyObject * obj3 = 0 ;
27057 char *kwnames[] = {
27058 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27059 };
27060
27061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27064 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27065 if (PyErr_Occurred()) SWIG_fail;
c370783e 27066 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27067 if (PyErr_Occurred()) SWIG_fail;
c370783e 27068 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27069 if (PyErr_Occurred()) SWIG_fail;
27070 {
27071 PyThreadState* __tstate = wxPyBeginAllowThreads();
27072 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27073
27074 wxPyEndAllowThreads(__tstate);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
c370783e 27077 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27078 return resultobj;
27079 fail:
27080 return NULL;
27081}
27082
27083
c370783e 27084static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27085 PyObject *resultobj;
27086 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27087 int arg2 ;
27088 int arg3 ;
27089 int arg4 ;
27090 int result;
27091 PyObject * obj0 = 0 ;
27092 PyObject * obj1 = 0 ;
27093 PyObject * obj2 = 0 ;
27094 PyObject * obj3 = 0 ;
27095 char *kwnames[] = {
27096 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27097 };
27098
27099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27102 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27103 if (PyErr_Occurred()) SWIG_fail;
c370783e 27104 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27105 if (PyErr_Occurred()) SWIG_fail;
c370783e 27106 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27107 if (PyErr_Occurred()) SWIG_fail;
27108 {
27109 PyThreadState* __tstate = wxPyBeginAllowThreads();
27110 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27111
27112 wxPyEndAllowThreads(__tstate);
27113 if (PyErr_Occurred()) SWIG_fail;
27114 }
c370783e 27115 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27116 return resultobj;
27117 fail:
27118 return NULL;
27119}
27120
27121
c370783e 27122static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27123 PyObject *resultobj;
27124 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27125 PyObject * obj0 = 0 ;
27126 char *kwnames[] = {
27127 (char *) "self", NULL
27128 };
27129
27130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27133 {
27134 PyThreadState* __tstate = wxPyBeginAllowThreads();
27135 (arg1)->base_OnLeave();
27136
27137 wxPyEndAllowThreads(__tstate);
27138 if (PyErr_Occurred()) SWIG_fail;
27139 }
27140 Py_INCREF(Py_None); resultobj = Py_None;
27141 return resultobj;
27142 fail:
27143 return NULL;
27144}
27145
27146
c370783e 27147static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27148 PyObject *resultobj;
27149 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27150 int arg2 ;
27151 int arg3 ;
27152 bool result;
27153 PyObject * obj0 = 0 ;
27154 PyObject * obj1 = 0 ;
27155 PyObject * obj2 = 0 ;
27156 char *kwnames[] = {
27157 (char *) "self",(char *) "x",(char *) "y", NULL
27158 };
27159
27160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27163 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27164 if (PyErr_Occurred()) SWIG_fail;
c370783e 27165 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27166 if (PyErr_Occurred()) SWIG_fail;
27167 {
27168 PyThreadState* __tstate = wxPyBeginAllowThreads();
27169 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27170
27171 wxPyEndAllowThreads(__tstate);
27172 if (PyErr_Occurred()) SWIG_fail;
27173 }
27174 {
27175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27176 }
27177 return resultobj;
27178 fail:
27179 return NULL;
27180}
27181
27182
c370783e 27183static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27184 PyObject *resultobj;
27185 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27186 int arg2 ;
27187 int arg3 ;
27188 int arg4 ;
27189 int result;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 PyObject * obj2 = 0 ;
27193 PyObject * obj3 = 0 ;
27194 char *kwnames[] = {
27195 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27196 };
27197
27198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27201 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27202 if (PyErr_Occurred()) SWIG_fail;
c370783e 27203 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27204 if (PyErr_Occurred()) SWIG_fail;
c370783e 27205 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27206 if (PyErr_Occurred()) SWIG_fail;
27207 {
27208 PyThreadState* __tstate = wxPyBeginAllowThreads();
27209 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27210
27211 wxPyEndAllowThreads(__tstate);
27212 if (PyErr_Occurred()) SWIG_fail;
27213 }
c370783e 27214 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27215 return resultobj;
27216 fail:
27217 return NULL;
27218}
27219
27220
c370783e 27221static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27222 PyObject *obj;
27223 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27224 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
27225 Py_INCREF(obj);
27226 return Py_BuildValue((char *)"");
27227}
c370783e 27228static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27229 PyObject *resultobj;
27230 wxPyFileDropTarget *result;
27231 char *kwnames[] = {
27232 NULL
27233 };
27234
27235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
27236 {
27237 PyThreadState* __tstate = wxPyBeginAllowThreads();
27238 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
27239
27240 wxPyEndAllowThreads(__tstate);
27241 if (PyErr_Occurred()) SWIG_fail;
27242 }
27243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
27244 return resultobj;
27245 fail:
27246 return NULL;
27247}
27248
27249
c370783e 27250static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27251 PyObject *resultobj;
27252 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27253 PyObject *arg2 = (PyObject *) 0 ;
27254 PyObject *arg3 = (PyObject *) 0 ;
27255 PyObject * obj0 = 0 ;
27256 PyObject * obj1 = 0 ;
27257 PyObject * obj2 = 0 ;
27258 char *kwnames[] = {
27259 (char *) "self",(char *) "self",(char *) "_class", NULL
27260 };
27261
27262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27265 arg2 = obj1;
27266 arg3 = obj2;
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 (arg1)->_setCallbackInfo(arg2,arg3);
27270
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 Py_INCREF(Py_None); resultobj = Py_None;
27275 return resultobj;
27276 fail:
27277 return NULL;
27278}
27279
27280
c370783e 27281static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27282 PyObject *resultobj;
27283 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27284 int arg2 ;
27285 int arg3 ;
27286 int arg4 ;
27287 int result;
27288 PyObject * obj0 = 0 ;
27289 PyObject * obj1 = 0 ;
27290 PyObject * obj2 = 0 ;
27291 PyObject * obj3 = 0 ;
27292 char *kwnames[] = {
27293 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27294 };
27295
27296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27299 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27300 if (PyErr_Occurred()) SWIG_fail;
c370783e 27301 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27302 if (PyErr_Occurred()) SWIG_fail;
c370783e 27303 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27304 if (PyErr_Occurred()) SWIG_fail;
27305 {
27306 PyThreadState* __tstate = wxPyBeginAllowThreads();
27307 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27308
27309 wxPyEndAllowThreads(__tstate);
27310 if (PyErr_Occurred()) SWIG_fail;
27311 }
c370783e 27312 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27313 return resultobj;
27314 fail:
27315 return NULL;
27316}
27317
27318
c370783e 27319static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27320 PyObject *resultobj;
27321 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27322 int arg2 ;
27323 int arg3 ;
27324 int arg4 ;
27325 int result;
27326 PyObject * obj0 = 0 ;
27327 PyObject * obj1 = 0 ;
27328 PyObject * obj2 = 0 ;
27329 PyObject * obj3 = 0 ;
27330 char *kwnames[] = {
27331 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27332 };
27333
27334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27337 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27338 if (PyErr_Occurred()) SWIG_fail;
c370783e 27339 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27340 if (PyErr_Occurred()) SWIG_fail;
c370783e 27341 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27342 if (PyErr_Occurred()) SWIG_fail;
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27346
27347 wxPyEndAllowThreads(__tstate);
27348 if (PyErr_Occurred()) SWIG_fail;
27349 }
c370783e 27350 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27351 return resultobj;
27352 fail:
27353 return NULL;
27354}
27355
27356
c370783e 27357static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27358 PyObject *resultobj;
27359 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27360 PyObject * obj0 = 0 ;
27361 char *kwnames[] = {
27362 (char *) "self", NULL
27363 };
27364
27365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 (arg1)->base_OnLeave();
27371
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 Py_INCREF(Py_None); resultobj = Py_None;
27376 return resultobj;
27377 fail:
27378 return NULL;
27379}
27380
27381
c370783e 27382static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27383 PyObject *resultobj;
27384 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27385 int arg2 ;
27386 int arg3 ;
27387 bool result;
27388 PyObject * obj0 = 0 ;
27389 PyObject * obj1 = 0 ;
27390 PyObject * obj2 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self",(char *) "x",(char *) "y", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27398 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27399 if (PyErr_Occurred()) SWIG_fail;
c370783e 27400 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27401 if (PyErr_Occurred()) SWIG_fail;
27402 {
27403 PyThreadState* __tstate = wxPyBeginAllowThreads();
27404 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27405
27406 wxPyEndAllowThreads(__tstate);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 {
27410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27411 }
27412 return resultobj;
27413 fail:
27414 return NULL;
27415}
27416
27417
c370783e 27418static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27419 PyObject *resultobj;
27420 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27421 int arg2 ;
27422 int arg3 ;
27423 int arg4 ;
27424 int result;
27425 PyObject * obj0 = 0 ;
27426 PyObject * obj1 = 0 ;
27427 PyObject * obj2 = 0 ;
27428 PyObject * obj3 = 0 ;
27429 char *kwnames[] = {
27430 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27431 };
27432
27433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 27436 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27437 if (PyErr_Occurred()) SWIG_fail;
c370783e 27438 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27439 if (PyErr_Occurred()) SWIG_fail;
c370783e 27440 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27441 if (PyErr_Occurred()) SWIG_fail;
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
c370783e 27449 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27450 return resultobj;
27451 fail:
27452 return NULL;
27453}
27454
27455
c370783e 27456static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27457 PyObject *obj;
27458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27459 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27460 Py_INCREF(obj);
27461 return Py_BuildValue((char *)"");
27462}
c370783e 27463static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27464 PyObject *resultobj;
27465 wxClipboard *result;
27466 char *kwnames[] = {
27467 NULL
27468 };
27469
27470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27471 {
27472 PyThreadState* __tstate = wxPyBeginAllowThreads();
27473 result = (wxClipboard *)new wxClipboard();
27474
27475 wxPyEndAllowThreads(__tstate);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27479 return resultobj;
27480 fail:
27481 return NULL;
27482}
27483
27484
c370783e 27485static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27486 PyObject *resultobj;
27487 wxClipboard *arg1 = (wxClipboard *) 0 ;
27488 PyObject * obj0 = 0 ;
27489 char *kwnames[] = {
27490 (char *) "self", NULL
27491 };
27492
27493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27496 {
27497 PyThreadState* __tstate = wxPyBeginAllowThreads();
27498 delete arg1;
27499
27500 wxPyEndAllowThreads(__tstate);
27501 if (PyErr_Occurred()) SWIG_fail;
27502 }
27503 Py_INCREF(Py_None); resultobj = Py_None;
27504 return resultobj;
27505 fail:
27506 return NULL;
27507}
27508
27509
c370783e 27510static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27511 PyObject *resultobj;
27512 wxClipboard *arg1 = (wxClipboard *) 0 ;
27513 bool result;
27514 PyObject * obj0 = 0 ;
27515 char *kwnames[] = {
27516 (char *) "self", NULL
27517 };
27518
27519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27522 {
27523 PyThreadState* __tstate = wxPyBeginAllowThreads();
27524 result = (bool)(arg1)->Open();
27525
27526 wxPyEndAllowThreads(__tstate);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 {
27530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27531 }
27532 return resultobj;
27533 fail:
27534 return NULL;
27535}
27536
27537
c370783e 27538static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27539 PyObject *resultobj;
27540 wxClipboard *arg1 = (wxClipboard *) 0 ;
27541 PyObject * obj0 = 0 ;
27542 char *kwnames[] = {
27543 (char *) "self", NULL
27544 };
27545
27546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27549 {
27550 PyThreadState* __tstate = wxPyBeginAllowThreads();
27551 (arg1)->Close();
27552
27553 wxPyEndAllowThreads(__tstate);
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 Py_INCREF(Py_None); resultobj = Py_None;
27557 return resultobj;
27558 fail:
27559 return NULL;
27560}
27561
27562
c370783e 27563static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27564 PyObject *resultobj;
27565 wxClipboard *arg1 = (wxClipboard *) 0 ;
27566 bool result;
27567 PyObject * obj0 = 0 ;
27568 char *kwnames[] = {
27569 (char *) "self", NULL
27570 };
27571
27572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27575 {
27576 PyThreadState* __tstate = wxPyBeginAllowThreads();
27577 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27578
27579 wxPyEndAllowThreads(__tstate);
27580 if (PyErr_Occurred()) SWIG_fail;
27581 }
27582 {
27583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27584 }
27585 return resultobj;
27586 fail:
27587 return NULL;
27588}
27589
27590
c370783e 27591static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27592 PyObject *resultobj;
27593 wxClipboard *arg1 = (wxClipboard *) 0 ;
27594 wxDataObject *arg2 = (wxDataObject *) 0 ;
27595 bool result;
27596 PyObject * obj0 = 0 ;
27597 PyObject * obj1 = 0 ;
27598 char *kwnames[] = {
27599 (char *) "self",(char *) "data", NULL
27600 };
27601
27602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27606 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27607 {
27608 PyThreadState* __tstate = wxPyBeginAllowThreads();
27609 result = (bool)(arg1)->AddData(arg2);
27610
27611 wxPyEndAllowThreads(__tstate);
27612 if (PyErr_Occurred()) SWIG_fail;
27613 }
27614 {
27615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27616 }
27617 return resultobj;
27618 fail:
27619 return NULL;
27620}
27621
27622
c370783e 27623static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27624 PyObject *resultobj;
27625 wxClipboard *arg1 = (wxClipboard *) 0 ;
27626 wxDataObject *arg2 = (wxDataObject *) 0 ;
27627 bool result;
27628 PyObject * obj0 = 0 ;
27629 PyObject * obj1 = 0 ;
27630 char *kwnames[] = {
27631 (char *) "self",(char *) "data", NULL
27632 };
27633
27634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27637 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27638 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27639 {
27640 PyThreadState* __tstate = wxPyBeginAllowThreads();
27641 result = (bool)(arg1)->SetData(arg2);
27642
27643 wxPyEndAllowThreads(__tstate);
27644 if (PyErr_Occurred()) SWIG_fail;
27645 }
27646 {
27647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27648 }
27649 return resultobj;
27650 fail:
27651 return NULL;
27652}
27653
27654
c370783e 27655static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27656 PyObject *resultobj;
27657 wxClipboard *arg1 = (wxClipboard *) 0 ;
27658 wxDataFormat *arg2 = 0 ;
27659 bool result;
27660 PyObject * obj0 = 0 ;
27661 PyObject * obj1 = 0 ;
27662 char *kwnames[] = {
27663 (char *) "self",(char *) "format", NULL
27664 };
27665
27666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27670 SWIG_POINTER_EXCEPTION | 0)) == -1)
27671 SWIG_fail;
27672 if (arg2 == NULL) {
27673 PyErr_SetString(PyExc_TypeError,"null reference");
27674 SWIG_fail;
27675 }
27676 {
27677 PyThreadState* __tstate = wxPyBeginAllowThreads();
27678 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27679
27680 wxPyEndAllowThreads(__tstate);
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 {
27684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27685 }
27686 return resultobj;
27687 fail:
27688 return NULL;
27689}
27690
27691
c370783e 27692static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27693 PyObject *resultobj;
27694 wxClipboard *arg1 = (wxClipboard *) 0 ;
27695 wxDataObject *arg2 = 0 ;
27696 bool result;
27697 PyObject * obj0 = 0 ;
27698 PyObject * obj1 = 0 ;
27699 char *kwnames[] = {
27700 (char *) "self",(char *) "data", NULL
27701 };
27702
27703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27707 SWIG_POINTER_EXCEPTION | 0)) == -1)
27708 SWIG_fail;
27709 if (arg2 == NULL) {
27710 PyErr_SetString(PyExc_TypeError,"null reference");
27711 SWIG_fail;
27712 }
27713 {
27714 PyThreadState* __tstate = wxPyBeginAllowThreads();
27715 result = (bool)(arg1)->GetData(*arg2);
27716
27717 wxPyEndAllowThreads(__tstate);
27718 if (PyErr_Occurred()) SWIG_fail;
27719 }
27720 {
27721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27722 }
27723 return resultobj;
27724 fail:
27725 return NULL;
27726}
27727
27728
c370783e 27729static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27730 PyObject *resultobj;
27731 wxClipboard *arg1 = (wxClipboard *) 0 ;
27732 PyObject * obj0 = 0 ;
27733 char *kwnames[] = {
27734 (char *) "self", NULL
27735 };
27736
27737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27740 {
27741 PyThreadState* __tstate = wxPyBeginAllowThreads();
27742 (arg1)->Clear();
27743
27744 wxPyEndAllowThreads(__tstate);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
27747 Py_INCREF(Py_None); resultobj = Py_None;
27748 return resultobj;
27749 fail:
27750 return NULL;
27751}
27752
27753
c370783e 27754static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27755 PyObject *resultobj;
27756 wxClipboard *arg1 = (wxClipboard *) 0 ;
27757 bool result;
27758 PyObject * obj0 = 0 ;
27759 char *kwnames[] = {
27760 (char *) "self", NULL
27761 };
27762
27763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27766 {
27767 PyThreadState* __tstate = wxPyBeginAllowThreads();
27768 result = (bool)(arg1)->Flush();
27769
27770 wxPyEndAllowThreads(__tstate);
27771 if (PyErr_Occurred()) SWIG_fail;
27772 }
27773 {
27774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27775 }
27776 return resultobj;
27777 fail:
27778 return NULL;
27779}
27780
27781
c370783e 27782static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27783 PyObject *resultobj;
27784 wxClipboard *arg1 = (wxClipboard *) 0 ;
b411df4a 27785 bool arg2 = (bool) true ;
d55e5bfc
RD
27786 PyObject * obj0 = 0 ;
27787 PyObject * obj1 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "self",(char *) "primary", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27795 if (obj1) {
c370783e 27796 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
27797 if (PyErr_Occurred()) SWIG_fail;
27798 }
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 (arg1)->UsePrimarySelection(arg2);
27802
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 Py_INCREF(Py_None); resultobj = Py_None;
27807 return resultobj;
27808 fail:
27809 return NULL;
27810}
27811
27812
c370783e 27813static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
a001823c
RD
27814 PyObject *resultobj;
27815 wxClipboard *result;
27816 char *kwnames[] = {
27817 NULL
27818 };
27819
27820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = (wxClipboard *)wxClipboard::Get();
27824
27825 wxPyEndAllowThreads(__tstate);
27826 if (PyErr_Occurred()) SWIG_fail;
27827 }
27828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27829 return resultobj;
27830 fail:
27831 return NULL;
27832}
27833
27834
c370783e 27835static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27836 PyObject *obj;
27837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27838 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27839 Py_INCREF(obj);
27840 return Py_BuildValue((char *)"");
27841}
c370783e 27842static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27843 PyObject *resultobj;
27844 wxClipboard *arg1 = (wxClipboard *) NULL ;
27845 wxClipboardLocker *result;
27846 PyObject * obj0 = 0 ;
27847 char *kwnames[] = {
27848 (char *) "clipboard", NULL
27849 };
27850
27851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27852 if (obj0) {
27853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27855 }
27856 {
27857 PyThreadState* __tstate = wxPyBeginAllowThreads();
27858 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27859
27860 wxPyEndAllowThreads(__tstate);
27861 if (PyErr_Occurred()) SWIG_fail;
27862 }
27863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27864 return resultobj;
27865 fail:
27866 return NULL;
27867}
27868
27869
c370783e 27870static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27871 PyObject *resultobj;
27872 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27873 PyObject * obj0 = 0 ;
27874 char *kwnames[] = {
27875 (char *) "self", NULL
27876 };
27877
27878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27881 {
27882 PyThreadState* __tstate = wxPyBeginAllowThreads();
27883 delete arg1;
27884
27885 wxPyEndAllowThreads(__tstate);
27886 if (PyErr_Occurred()) SWIG_fail;
27887 }
27888 Py_INCREF(Py_None); resultobj = Py_None;
27889 return resultobj;
27890 fail:
27891 return NULL;
27892}
27893
27894
c370783e 27895static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27896 PyObject *resultobj;
27897 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27898 bool result;
27899 PyObject * obj0 = 0 ;
27900 char *kwnames[] = {
27901 (char *) "self", NULL
27902 };
27903
27904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27907 {
27908 PyThreadState* __tstate = wxPyBeginAllowThreads();
27909 result = (bool)wxClipboardLocker___nonzero__(arg1);
27910
27911 wxPyEndAllowThreads(__tstate);
27912 if (PyErr_Occurred()) SWIG_fail;
27913 }
27914 {
27915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27916 }
27917 return resultobj;
27918 fail:
27919 return NULL;
27920}
27921
27922
c370783e 27923static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
27924 PyObject *obj;
27925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27926 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27927 Py_INCREF(obj);
27928 return Py_BuildValue((char *)"");
27929}
c370783e 27930static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27931 PyObject *resultobj;
27932 int arg1 = (int) 0 ;
27933 int arg2 = (int) 0 ;
27934 int arg3 = (int) 0 ;
27935 int arg4 = (int) 0 ;
27936 wxVideoMode *result;
27937 PyObject * obj0 = 0 ;
27938 PyObject * obj1 = 0 ;
27939 PyObject * obj2 = 0 ;
27940 PyObject * obj3 = 0 ;
27941 char *kwnames[] = {
27942 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27943 };
27944
27945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27946 if (obj0) {
c370783e 27947 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
27948 if (PyErr_Occurred()) SWIG_fail;
27949 }
27950 if (obj1) {
c370783e 27951 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 if (obj2) {
c370783e 27955 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 if (obj3) {
c370783e 27959 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
27960 if (PyErr_Occurred()) SWIG_fail;
27961 }
27962 {
27963 PyThreadState* __tstate = wxPyBeginAllowThreads();
27964 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27965
27966 wxPyEndAllowThreads(__tstate);
27967 if (PyErr_Occurred()) SWIG_fail;
27968 }
27969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27970 return resultobj;
27971 fail:
27972 return NULL;
27973}
27974
27975
c370783e 27976static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27977 PyObject *resultobj;
27978 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27979 PyObject * obj0 = 0 ;
27980 char *kwnames[] = {
27981 (char *) "self", NULL
27982 };
27983
27984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27987 {
27988 PyThreadState* __tstate = wxPyBeginAllowThreads();
27989 delete arg1;
27990
27991 wxPyEndAllowThreads(__tstate);
27992 if (PyErr_Occurred()) SWIG_fail;
27993 }
27994 Py_INCREF(Py_None); resultobj = Py_None;
27995 return resultobj;
27996 fail:
27997 return NULL;
27998}
27999
28000
c370783e 28001static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28002 PyObject *resultobj;
28003 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28004 wxVideoMode *arg2 = 0 ;
28005 bool result;
28006 PyObject * obj0 = 0 ;
28007 PyObject * obj1 = 0 ;
28008 char *kwnames[] = {
28009 (char *) "self",(char *) "other", NULL
28010 };
28011
28012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
28013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28016 SWIG_POINTER_EXCEPTION | 0)) == -1)
28017 SWIG_fail;
28018 if (arg2 == NULL) {
28019 PyErr_SetString(PyExc_TypeError,"null reference");
28020 SWIG_fail;
28021 }
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
28024 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
28025
28026 wxPyEndAllowThreads(__tstate);
28027 if (PyErr_Occurred()) SWIG_fail;
28028 }
28029 {
28030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28031 }
28032 return resultobj;
28033 fail:
28034 return NULL;
28035}
28036
28037
c370783e 28038static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28039 PyObject *resultobj;
28040 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28041 int result;
28042 PyObject * obj0 = 0 ;
28043 char *kwnames[] = {
28044 (char *) "self", NULL
28045 };
28046
28047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
28048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28050 {
28051 PyThreadState* __tstate = wxPyBeginAllowThreads();
28052 result = (int)((wxVideoMode const *)arg1)->GetWidth();
28053
28054 wxPyEndAllowThreads(__tstate);
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
c370783e 28057 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28058 return resultobj;
28059 fail:
28060 return NULL;
28061}
28062
28063
c370783e 28064static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28065 PyObject *resultobj;
28066 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28067 int result;
28068 PyObject * obj0 = 0 ;
28069 char *kwnames[] = {
28070 (char *) "self", NULL
28071 };
28072
28073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
28074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28076 {
28077 PyThreadState* __tstate = wxPyBeginAllowThreads();
28078 result = (int)((wxVideoMode const *)arg1)->GetHeight();
28079
28080 wxPyEndAllowThreads(__tstate);
28081 if (PyErr_Occurred()) SWIG_fail;
28082 }
c370783e 28083 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28084 return resultobj;
28085 fail:
28086 return NULL;
28087}
28088
28089
c370783e 28090static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28091 PyObject *resultobj;
28092 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28093 int result;
28094 PyObject * obj0 = 0 ;
28095 char *kwnames[] = {
28096 (char *) "self", NULL
28097 };
28098
28099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
28100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28102 {
28103 PyThreadState* __tstate = wxPyBeginAllowThreads();
28104 result = (int)((wxVideoMode const *)arg1)->GetDepth();
28105
28106 wxPyEndAllowThreads(__tstate);
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
c370783e 28109 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28110 return resultobj;
28111 fail:
28112 return NULL;
28113}
28114
28115
c370783e 28116static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28117 PyObject *resultobj;
28118 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28119 bool result;
28120 PyObject * obj0 = 0 ;
28121 char *kwnames[] = {
28122 (char *) "self", NULL
28123 };
28124
28125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
28126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28128 {
28129 PyThreadState* __tstate = wxPyBeginAllowThreads();
28130 result = (bool)((wxVideoMode const *)arg1)->IsOk();
28131
28132 wxPyEndAllowThreads(__tstate);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 {
28136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28137 }
28138 return resultobj;
28139 fail:
28140 return NULL;
28141}
28142
28143
c370783e 28144static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28145 PyObject *resultobj;
28146 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28147 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
28148 bool result;
28149 PyObject * obj0 = 0 ;
28150 PyObject * obj1 = 0 ;
28151 char *kwnames[] = {
28152 (char *) "self",(char *) "other", NULL
28153 };
28154
28155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
28156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
28163
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 {
28168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28169 }
28170 return resultobj;
28171 fail:
28172 return NULL;
28173}
28174
28175
c370783e 28176static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28177 PyObject *resultobj;
28178 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28179 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
28180 bool result;
28181 PyObject * obj0 = 0 ;
28182 PyObject * obj1 = 0 ;
28183 char *kwnames[] = {
28184 (char *) "self",(char *) "other", NULL
28185 };
28186
28187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
28188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
28195
28196 wxPyEndAllowThreads(__tstate);
28197 if (PyErr_Occurred()) SWIG_fail;
28198 }
28199 {
28200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28201 }
28202 return resultobj;
28203 fail:
28204 return NULL;
28205}
28206
28207
c370783e 28208static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28209 PyObject *resultobj;
28210 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28211 int arg2 ;
28212 PyObject * obj0 = 0 ;
28213 PyObject * obj1 = 0 ;
28214 char *kwnames[] = {
28215 (char *) "self",(char *) "w", NULL
28216 };
28217
28218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
28219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 28221 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28222 if (PyErr_Occurred()) SWIG_fail;
28223 if (arg1) (arg1)->w = arg2;
28224
28225 Py_INCREF(Py_None); resultobj = Py_None;
28226 return resultobj;
28227 fail:
28228 return NULL;
28229}
28230
28231
c370783e 28232static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28233 PyObject *resultobj;
28234 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28235 int result;
28236 PyObject * obj0 = 0 ;
28237 char *kwnames[] = {
28238 (char *) "self", NULL
28239 };
28240
28241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
28242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28244 result = (int) ((arg1)->w);
28245
c370783e 28246 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28247 return resultobj;
28248 fail:
28249 return NULL;
28250}
28251
28252
c370783e 28253static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28254 PyObject *resultobj;
28255 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28256 int arg2 ;
28257 PyObject * obj0 = 0 ;
28258 PyObject * obj1 = 0 ;
28259 char *kwnames[] = {
28260 (char *) "self",(char *) "h", NULL
28261 };
28262
28263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
28264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 28266 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28267 if (PyErr_Occurred()) SWIG_fail;
28268 if (arg1) (arg1)->h = arg2;
28269
28270 Py_INCREF(Py_None); resultobj = Py_None;
28271 return resultobj;
28272 fail:
28273 return NULL;
28274}
28275
28276
c370783e 28277static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28278 PyObject *resultobj;
28279 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28280 int result;
28281 PyObject * obj0 = 0 ;
28282 char *kwnames[] = {
28283 (char *) "self", NULL
28284 };
28285
28286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
28287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28289 result = (int) ((arg1)->h);
28290
c370783e 28291 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28292 return resultobj;
28293 fail:
28294 return NULL;
28295}
28296
28297
c370783e 28298static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28299 PyObject *resultobj;
28300 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28301 int arg2 ;
28302 PyObject * obj0 = 0 ;
28303 PyObject * obj1 = 0 ;
28304 char *kwnames[] = {
28305 (char *) "self",(char *) "bpp", NULL
28306 };
28307
28308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
28309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 28311 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28312 if (PyErr_Occurred()) SWIG_fail;
28313 if (arg1) (arg1)->bpp = arg2;
28314
28315 Py_INCREF(Py_None); resultobj = Py_None;
28316 return resultobj;
28317 fail:
28318 return NULL;
28319}
28320
28321
c370783e 28322static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28323 PyObject *resultobj;
28324 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28325 int result;
28326 PyObject * obj0 = 0 ;
28327 char *kwnames[] = {
28328 (char *) "self", NULL
28329 };
28330
28331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28334 result = (int) ((arg1)->bpp);
28335
c370783e 28336 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28337 return resultobj;
28338 fail:
28339 return NULL;
28340}
28341
28342
c370783e 28343static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28344 PyObject *resultobj;
28345 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28346 int arg2 ;
28347 PyObject * obj0 = 0 ;
28348 PyObject * obj1 = 0 ;
28349 char *kwnames[] = {
28350 (char *) "self",(char *) "refresh", NULL
28351 };
28352
28353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c370783e 28356 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
28357 if (PyErr_Occurred()) SWIG_fail;
28358 if (arg1) (arg1)->refresh = arg2;
28359
28360 Py_INCREF(Py_None); resultobj = Py_None;
28361 return resultobj;
28362 fail:
28363 return NULL;
28364}
28365
28366
c370783e 28367static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28368 PyObject *resultobj;
28369 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28370 int result;
28371 PyObject * obj0 = 0 ;
28372 char *kwnames[] = {
28373 (char *) "self", NULL
28374 };
28375
28376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28379 result = (int) ((arg1)->refresh);
28380
c370783e 28381 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28382 return resultobj;
28383 fail:
28384 return NULL;
28385}
28386
28387
c370783e 28388static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
28389 PyObject *obj;
28390 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28391 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28392 Py_INCREF(obj);
28393 return Py_BuildValue((char *)"");
28394}
c370783e 28395static int _wrap_DefaultVideoMode_set(PyObject *) {
d55e5bfc
RD
28396 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28397 return 1;
28398}
28399
28400
28401static PyObject *_wrap_DefaultVideoMode_get() {
28402 PyObject *pyobj;
28403
28404 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28405 return pyobj;
28406}
28407
28408
c370783e 28409static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28410 PyObject *resultobj;
28411 size_t arg1 = (size_t) 0 ;
28412 wxDisplay *result;
28413 PyObject * obj0 = 0 ;
28414 char *kwnames[] = {
28415 (char *) "index", NULL
28416 };
28417
28418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28419 if (obj0) {
c370783e 28420 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
d55e5bfc
RD
28421 if (PyErr_Occurred()) SWIG_fail;
28422 }
28423 {
28424 PyThreadState* __tstate = wxPyBeginAllowThreads();
28425 result = (wxDisplay *)new wxDisplay(arg1);
28426
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28431 return resultobj;
28432 fail:
28433 return NULL;
28434}
28435
28436
c370783e 28437static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28438 PyObject *resultobj;
28439 wxDisplay *arg1 = (wxDisplay *) 0 ;
28440 PyObject * obj0 = 0 ;
28441 char *kwnames[] = {
28442 (char *) "self", NULL
28443 };
28444
28445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28448 {
28449 PyThreadState* __tstate = wxPyBeginAllowThreads();
28450 delete arg1;
28451
28452 wxPyEndAllowThreads(__tstate);
28453 if (PyErr_Occurred()) SWIG_fail;
28454 }
28455 Py_INCREF(Py_None); resultobj = Py_None;
28456 return resultobj;
28457 fail:
28458 return NULL;
28459}
28460
28461
c370783e 28462static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28463 PyObject *resultobj;
28464 size_t result;
28465 char *kwnames[] = {
28466 NULL
28467 };
28468
28469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28470 {
28471 PyThreadState* __tstate = wxPyBeginAllowThreads();
28472 result = (size_t)wxDisplay::GetCount();
28473
28474 wxPyEndAllowThreads(__tstate);
28475 if (PyErr_Occurred()) SWIG_fail;
28476 }
c370783e 28477 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
28478 return resultobj;
28479 fail:
28480 return NULL;
28481}
28482
28483
c370783e 28484static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28485 PyObject *resultobj;
28486 wxPoint *arg1 = 0 ;
28487 int result;
28488 wxPoint temp1 ;
28489 PyObject * obj0 = 0 ;
28490 char *kwnames[] = {
28491 (char *) "pt", NULL
28492 };
28493
28494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28495 {
28496 arg1 = &temp1;
28497 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28498 }
28499 {
28500 PyThreadState* __tstate = wxPyBeginAllowThreads();
28501 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28502
28503 wxPyEndAllowThreads(__tstate);
28504 if (PyErr_Occurred()) SWIG_fail;
28505 }
c370783e 28506 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28507 return resultobj;
28508 fail:
28509 return NULL;
28510}
28511
28512
c370783e 28513static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28514 PyObject *resultobj;
28515 wxWindow *arg1 = (wxWindow *) 0 ;
28516 int result;
28517 PyObject * obj0 = 0 ;
28518 char *kwnames[] = {
28519 (char *) "window", NULL
28520 };
28521
28522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28525 {
28526 PyThreadState* __tstate = wxPyBeginAllowThreads();
28527 result = (int)Display_GetFromWindow(arg1);
28528
28529 wxPyEndAllowThreads(__tstate);
28530 if (PyErr_Occurred()) SWIG_fail;
28531 }
c370783e 28532 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
28533 return resultobj;
28534 fail:
28535 return NULL;
28536}
28537
28538
c370783e 28539static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28540 PyObject *resultobj;
28541 wxDisplay *arg1 = (wxDisplay *) 0 ;
28542 bool result;
28543 PyObject * obj0 = 0 ;
28544 char *kwnames[] = {
28545 (char *) "self", NULL
28546 };
28547
28548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28551 {
28552 PyThreadState* __tstate = wxPyBeginAllowThreads();
28553 result = (bool)((wxDisplay const *)arg1)->IsOk();
28554
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 {
28559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28560 }
28561 return resultobj;
28562 fail:
28563 return NULL;
28564}
28565
28566
c370783e 28567static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28568 PyObject *resultobj;
28569 wxDisplay *arg1 = (wxDisplay *) 0 ;
28570 wxRect result;
28571 PyObject * obj0 = 0 ;
28572 char *kwnames[] = {
28573 (char *) "self", NULL
28574 };
28575
28576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 result = ((wxDisplay const *)arg1)->GetGeometry();
28582
28583 wxPyEndAllowThreads(__tstate);
28584 if (PyErr_Occurred()) SWIG_fail;
28585 }
28586 {
28587 wxRect * resultptr;
28588 resultptr = new wxRect((wxRect &) result);
28589 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28590 }
28591 return resultobj;
28592 fail:
28593 return NULL;
28594}
28595
28596
c370783e 28597static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28598 PyObject *resultobj;
28599 wxDisplay *arg1 = (wxDisplay *) 0 ;
28600 wxString result;
28601 PyObject * obj0 = 0 ;
28602 char *kwnames[] = {
28603 (char *) "self", NULL
28604 };
28605
28606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28609 {
28610 PyThreadState* __tstate = wxPyBeginAllowThreads();
28611 result = ((wxDisplay const *)arg1)->GetName();
28612
28613 wxPyEndAllowThreads(__tstate);
28614 if (PyErr_Occurred()) SWIG_fail;
28615 }
28616 {
28617#if wxUSE_UNICODE
28618 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28619#else
28620 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28621#endif
28622 }
28623 return resultobj;
28624 fail:
28625 return NULL;
28626}
28627
28628
c370783e 28629static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28630 PyObject *resultobj;
28631 wxDisplay *arg1 = (wxDisplay *) 0 ;
28632 bool result;
28633 PyObject * obj0 = 0 ;
28634 char *kwnames[] = {
28635 (char *) "self", NULL
28636 };
28637
28638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28641 {
28642 PyThreadState* __tstate = wxPyBeginAllowThreads();
28643 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28644
28645 wxPyEndAllowThreads(__tstate);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 {
28649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28650 }
28651 return resultobj;
28652 fail:
28653 return NULL;
28654}
28655
28656
c370783e 28657static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28658 PyObject *resultobj;
28659 wxDisplay *arg1 = (wxDisplay *) 0 ;
28660 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28661 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28662 PyObject *result;
28663 PyObject * obj0 = 0 ;
28664 PyObject * obj1 = 0 ;
28665 char *kwnames[] = {
28666 (char *) "self",(char *) "mode", NULL
28667 };
28668
28669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28672 if (obj1) {
28673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28674 SWIG_POINTER_EXCEPTION | 0)) == -1)
28675 SWIG_fail;
28676 if (arg2 == NULL) {
28677 PyErr_SetString(PyExc_TypeError,"null reference");
28678 SWIG_fail;
28679 }
28680 }
28681 {
28682 PyThreadState* __tstate = wxPyBeginAllowThreads();
28683 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28684
28685 wxPyEndAllowThreads(__tstate);
28686 if (PyErr_Occurred()) SWIG_fail;
28687 }
28688 resultobj = result;
28689 return resultobj;
28690 fail:
28691 return NULL;
28692}
28693
28694
c370783e 28695static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28696 PyObject *resultobj;
28697 wxDisplay *arg1 = (wxDisplay *) 0 ;
28698 wxVideoMode result;
28699 PyObject * obj0 = 0 ;
28700 char *kwnames[] = {
28701 (char *) "self", NULL
28702 };
28703
28704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28707 {
28708 PyThreadState* __tstate = wxPyBeginAllowThreads();
28709 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28710
28711 wxPyEndAllowThreads(__tstate);
28712 if (PyErr_Occurred()) SWIG_fail;
28713 }
28714 {
28715 wxVideoMode * resultptr;
28716 resultptr = new wxVideoMode((wxVideoMode &) result);
28717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28718 }
28719 return resultobj;
28720 fail:
28721 return NULL;
28722}
28723
28724
c370783e 28725static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28726 PyObject *resultobj;
28727 wxDisplay *arg1 = (wxDisplay *) 0 ;
28728 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28729 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28730 bool result;
28731 PyObject * obj0 = 0 ;
28732 PyObject * obj1 = 0 ;
28733 char *kwnames[] = {
28734 (char *) "self",(char *) "mode", NULL
28735 };
28736
28737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28740 if (obj1) {
28741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28742 SWIG_POINTER_EXCEPTION | 0)) == -1)
28743 SWIG_fail;
28744 if (arg2 == NULL) {
28745 PyErr_SetString(PyExc_TypeError,"null reference");
28746 SWIG_fail;
28747 }
28748 }
28749 {
28750 PyThreadState* __tstate = wxPyBeginAllowThreads();
28751 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28752
28753 wxPyEndAllowThreads(__tstate);
28754 if (PyErr_Occurred()) SWIG_fail;
28755 }
28756 {
28757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28758 }
28759 return resultobj;
28760 fail:
28761 return NULL;
28762}
28763
28764
c370783e 28765static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28766 PyObject *resultobj;
28767 wxDisplay *arg1 = (wxDisplay *) 0 ;
28768 PyObject * obj0 = 0 ;
28769 char *kwnames[] = {
28770 (char *) "self", NULL
28771 };
28772
28773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28776 {
28777 PyThreadState* __tstate = wxPyBeginAllowThreads();
28778 (arg1)->ResetMode();
28779
28780 wxPyEndAllowThreads(__tstate);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 Py_INCREF(Py_None); resultobj = Py_None;
28784 return resultobj;
28785 fail:
28786 return NULL;
28787}
28788
28789
c370783e 28790static PyObject * Display_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
28791 PyObject *obj;
28792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28793 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28794 Py_INCREF(obj);
28795 return Py_BuildValue((char *)"");
28796}
070c48b4
RD
28797static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
28798 PyObject *resultobj;
28799 wxStandardPaths *result;
28800 char *kwnames[] = {
28801 NULL
28802 };
28803
28804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
28805 {
28806 PyThreadState* __tstate = wxPyBeginAllowThreads();
8fb0e70a 28807 result = (wxStandardPaths *)StandardPaths_Get();
070c48b4
RD
28808
28809 wxPyEndAllowThreads(__tstate);
28810 if (PyErr_Occurred()) SWIG_fail;
28811 }
28812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
28813 return resultobj;
28814 fail:
28815 return NULL;
28816}
28817
28818
28819static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28820 PyObject *resultobj;
28821 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28822 wxString result;
28823 PyObject * obj0 = 0 ;
28824 char *kwnames[] = {
28825 (char *) "self", NULL
28826 };
28827
28828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
28829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28831 {
28832 PyThreadState* __tstate = wxPyBeginAllowThreads();
28833 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
28834
28835 wxPyEndAllowThreads(__tstate);
28836 if (PyErr_Occurred()) SWIG_fail;
28837 }
28838 {
28839#if wxUSE_UNICODE
28840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28841#else
28842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28843#endif
28844 }
28845 return resultobj;
28846 fail:
28847 return NULL;
28848}
28849
28850
28851static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28852 PyObject *resultobj;
28853 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28854 wxString result;
28855 PyObject * obj0 = 0 ;
28856 char *kwnames[] = {
28857 (char *) "self", NULL
28858 };
28859
28860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
28861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28863 {
28864 PyThreadState* __tstate = wxPyBeginAllowThreads();
28865 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
28866
28867 wxPyEndAllowThreads(__tstate);
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
28870 {
28871#if wxUSE_UNICODE
28872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28873#else
28874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28875#endif
28876 }
28877 return resultobj;
28878 fail:
28879 return NULL;
28880}
28881
28882
28883static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj;
28885 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28886 wxString result;
28887 PyObject * obj0 = 0 ;
28888 char *kwnames[] = {
28889 (char *) "self", NULL
28890 };
28891
28892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
28893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28895 {
28896 PyThreadState* __tstate = wxPyBeginAllowThreads();
28897 result = ((wxStandardPaths const *)arg1)->GetDataDir();
28898
28899 wxPyEndAllowThreads(__tstate);
28900 if (PyErr_Occurred()) SWIG_fail;
28901 }
28902 {
28903#if wxUSE_UNICODE
28904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28905#else
28906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28907#endif
28908 }
28909 return resultobj;
28910 fail:
28911 return NULL;
28912}
28913
28914
28915static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28916 PyObject *resultobj;
28917 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28918 wxString result;
28919 PyObject * obj0 = 0 ;
28920 char *kwnames[] = {
28921 (char *) "self", NULL
28922 };
28923
28924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
28925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28927 {
28928 PyThreadState* __tstate = wxPyBeginAllowThreads();
28929 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
28930
28931 wxPyEndAllowThreads(__tstate);
28932 if (PyErr_Occurred()) SWIG_fail;
28933 }
28934 {
28935#if wxUSE_UNICODE
28936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28937#else
28938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28939#endif
28940 }
28941 return resultobj;
28942 fail:
28943 return NULL;
28944}
28945
28946
28947static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28948 PyObject *resultobj;
28949 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28950 wxString result;
28951 PyObject * obj0 = 0 ;
28952 char *kwnames[] = {
28953 (char *) "self", NULL
28954 };
28955
28956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
28957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28959 {
28960 PyThreadState* __tstate = wxPyBeginAllowThreads();
28961 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
28962
28963 wxPyEndAllowThreads(__tstate);
28964 if (PyErr_Occurred()) SWIG_fail;
28965 }
28966 {
28967#if wxUSE_UNICODE
28968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28969#else
28970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28971#endif
28972 }
28973 return resultobj;
28974 fail:
28975 return NULL;
28976}
28977
28978
28979static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28980 PyObject *resultobj;
28981 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28982 wxString result;
28983 PyObject * obj0 = 0 ;
28984 char *kwnames[] = {
28985 (char *) "self", NULL
28986 };
28987
28988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
28989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28991 {
28992 PyThreadState* __tstate = wxPyBeginAllowThreads();
28993 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
28994
28995 wxPyEndAllowThreads(__tstate);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 {
28999#if wxUSE_UNICODE
29000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29001#else
29002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29003#endif
29004 }
29005 return resultobj;
29006 fail:
29007 return NULL;
29008}
29009
29010
29011static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
29012 PyObject *resultobj;
29013 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
29014 wxString result;
29015 PyObject * obj0 = 0 ;
29016 char *kwnames[] = {
29017 (char *) "self", NULL
29018 };
29019
29020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
29021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
29022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29023 {
29024 PyThreadState* __tstate = wxPyBeginAllowThreads();
29025 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
29026
29027 wxPyEndAllowThreads(__tstate);
29028 if (PyErr_Occurred()) SWIG_fail;
29029 }
29030 {
29031#if wxUSE_UNICODE
29032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29033#else
29034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29035#endif
29036 }
29037 return resultobj;
29038 fail:
29039 return NULL;
29040}
29041
29042
29043static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
29044 PyObject *resultobj;
29045 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
29046 wxString *arg2 = 0 ;
29047 bool temp2 = false ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 char *kwnames[] = {
29051 (char *) "self",(char *) "prefix", NULL
29052 };
29053
29054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
29055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
29056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29057 {
29058 arg2 = wxString_in_helper(obj1);
29059 if (arg2 == NULL) SWIG_fail;
29060 temp2 = true;
29061 }
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
29065
29066 wxPyEndAllowThreads(__tstate);
29067 if (PyErr_Occurred()) SWIG_fail;
29068 }
29069 Py_INCREF(Py_None); resultobj = Py_None;
29070 {
29071 if (temp2)
29072 delete arg2;
29073 }
29074 return resultobj;
29075 fail:
29076 {
29077 if (temp2)
29078 delete arg2;
29079 }
29080 return NULL;
29081}
29082
29083
29084static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
29085 PyObject *resultobj;
29086 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
29087 wxString result;
29088 PyObject * obj0 = 0 ;
29089 char *kwnames[] = {
29090 (char *) "self", NULL
29091 };
29092
29093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
29094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
29095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29096 {
29097 PyThreadState* __tstate = wxPyBeginAllowThreads();
29098 result = wxStandardPaths_GetInstallPrefix(arg1);
29099
29100 wxPyEndAllowThreads(__tstate);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 }
29103 {
29104#if wxUSE_UNICODE
29105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29106#else
29107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29108#endif
29109 }
29110 return resultobj;
29111 fail:
29112 return NULL;
29113}
29114
29115
29116static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
29117 PyObject *obj;
29118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29119 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
29120 Py_INCREF(obj);
29121 return Py_BuildValue((char *)"");
29122}
d55e5bfc 29123static PyMethodDef SwigMethods[] = {
c370783e
RD
29124 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
29126 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
29127 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
29131 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
29132 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
29133 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
29137 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
29138 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
29139 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
29140 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
29141 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
29142 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29143 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29144 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
29145 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29146 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
29148 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
29151 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
29152 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
29153 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29154 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
29157 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
29159 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
29160 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
29162 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
29166 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
29169 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29171 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29173 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29174 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
29177 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
29178 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
29179 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29180 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29182 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
29184 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
29185 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
29186 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29194 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29200 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29201 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
29202 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
29204 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29205 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29206 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29207 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
29210 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29212 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29213 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29215 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29219 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
29221 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
29222 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
29226 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29229 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
29231 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29232 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29233 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
29234 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29235 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29236 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
29237 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29239 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
29243 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29244 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29245 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29249 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29250 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
29257 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29259 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29260 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
29263 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29265 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29266 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
29267 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
29268 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
29269 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29271 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
29272 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
29273 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29274 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29275 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29276 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29277 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29278 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29279 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29280 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29281 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29282 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29283 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
29284 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29285 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
29286 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29287 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29288 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
29289 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
29290 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
29291 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29292 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
29293 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
29294 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
29295 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
29296 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
29297 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29298 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
29299 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29300 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29301 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
29302 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29303 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29304 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29305 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29306 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29307 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29308 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29309 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29310 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29311 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29312 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29313 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29314 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29315 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29316 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29317 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
29318 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29319 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
29320 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
29321 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
29322 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
29323 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
29324 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
29325 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
29326 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29327 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29328 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29329 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29330 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29331 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29332 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
29333 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
29334 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
29335 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29336 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29337 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29338 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
29339 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
29340 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
29341 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
29342 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
29343 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
29344 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29345 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29346 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
29347 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29348 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
29349 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29350 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e 29351 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
f78cc896 29352 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
c370783e
RD
29353 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29354 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29355 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29356 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
29357 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
29358 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29359 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
29360 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
29361 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29362 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29363 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
29364 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29365 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
29366 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
29367 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
29368 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
29369 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29370 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
29371 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29372 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
29373 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29374 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29375 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29376 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
29377 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29378 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
29379 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
29380 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
29381 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
29382 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
29383 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
29384 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
29385 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
29386 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29387 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29388 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29389 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29390 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29391 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29392 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29393 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29394 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29395 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29396 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29397 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29398 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29399 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
29400 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
29401 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
29402 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
29403 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
29404 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
29405 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
29406 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
29407 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
29408 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
29409 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29410 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29411 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29412 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29413 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
29414 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
29415 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
29416 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
29417 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
29418 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
29419 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
29420 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
29421 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
29422 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
29423 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
29424 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
29425 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
29426 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
29427 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
29428 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29429 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29430 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
29431 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
29432 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
29433 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
29434 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
29435 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
29436 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
29437 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
29438 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
29439 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
29440 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
29441 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29442 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29443 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29444 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29445 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29446 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29447 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29448 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29449 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29450 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29451 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29452 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
29453 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
29454 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
29455 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
29456 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
29457 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
29458 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
29459 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29460 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29461 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29462 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29463 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29464 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29465 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
29466 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
29467 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29468 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
29469 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29470 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
29471 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29472 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29473 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29474 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29475 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29476 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29477 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29478 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29479 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29480 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29481 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
29482 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
29483 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
29484 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
29485 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29486 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29487 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29488 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29489 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29490 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29491 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29492 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29493 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29494 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29495 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
29496 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29497 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29498 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29499 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29500 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
29501 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
29502 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29503 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
29504 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
29505 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
29506 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29507 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
29508 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29509 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29510 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
29511 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
29512 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29513 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29514 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
29515 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29516 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29517 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29518 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29519 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29520 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29521 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29522 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29523 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
29524 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
29525 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29526 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29527 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29528 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29529 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29530 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29531 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29532 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29533 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29534 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29535 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
29536 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
29537 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29538 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29539 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29540 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
29541 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
29542 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
29543 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29544 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
29545 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
29546 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
29547 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29548 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
29549 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29550 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29551 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29552 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29553 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29554 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
29555 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29556 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29557 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29558 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29559 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29560 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29561 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29562 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29563 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29564 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29565 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29566 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
29567 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29568 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29569 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
29570 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29571 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29572 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
29573 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29574 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29575 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
29576 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
29577 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29578 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29579 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29580 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29581 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
29582 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
29583 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29584 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
29585 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
29586 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
29587 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29588 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
29589 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
29590 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
29591 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
29592 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
29593 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
29594 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29595 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
29596 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
29597 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29598 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29599 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29600 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29601 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
29602 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29603 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
29604 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29605 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29606 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29607 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29608 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
29609 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29610 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29611 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29612 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29613 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29614 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29615 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29616 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29617 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29618 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29619 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29620 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29621 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29622 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29623 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29624 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29625 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29626 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
629e65c2 29627 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
c370783e
RD
29628 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29629 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29630 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29631 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29632 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29633 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29634 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29635 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
29636 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
29637 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29638 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29639 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29640 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29641 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
29642 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29643 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
29644 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29645 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29646 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29647 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29648 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29649 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29650 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29651 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29652 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29653 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29654 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29655 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29656 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29657 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29658 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29659 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29660 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29661 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29662 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29663 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29664 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29665 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29666 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29667 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29668 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29669 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29670 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29671 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29672 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29673 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29674 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29675 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29676 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29677 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29678 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29679 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29680 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29681 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29682 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29683 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29684 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29685 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29686 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29687 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29688 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29689 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29690 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29691 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29692 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29693 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29694 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29695 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29696 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29697 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29698 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29699 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29700 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29701 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29702 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29703 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29704 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29705 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29706 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29707 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29708 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29709 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29710 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29711 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29712 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29713 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29714 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29715 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29716 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29717 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29718 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29719 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29720 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29721 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29722 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29723 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29724 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29725 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29726 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29727 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29728 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29729 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29730 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29731 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29732 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29733 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29734 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29735 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29736 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29737 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29738 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29739 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29740 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29741 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29742 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29743 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29744 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29745 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29746 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29747 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29748 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29749 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29750 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29751 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29752 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29753 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29754 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29755 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29756 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29757 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29758 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29759 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29760 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29761 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29762 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29763 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29764 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29765 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29766 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29767 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29768 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29769 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29770 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29771 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29772 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29773 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29774 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29775 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29776 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29777 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29778 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29779 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29780 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29781 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29782 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29783 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29784 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29785 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29786 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29787 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29788 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29789 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29790 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29791 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29792 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29793 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29794 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29795 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29796 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29797 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29798 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29799 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29800 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29801 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29802 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29803 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29804 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29805 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29806 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29807 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29808 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29809 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29810 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29811 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29812 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29813 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29814 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29815 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29816 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29817 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29818 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29819 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29820 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29821 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29822 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29823 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29824 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29825 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29826 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29827 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29828 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29829 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29830 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29831 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29832 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29833 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29834 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29835 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29836 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29837 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29838 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29839 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29840 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29841 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29842 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29843 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29844 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29845 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29846 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29847 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29848 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29849 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29850 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29851 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29852 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29853 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29854 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29855 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29856 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29857 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29858 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29859 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29860 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29861 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29862 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29863 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29864 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29865 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29866 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29867 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29868 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29869 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29870 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29871 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29872 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29873 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29874 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29875 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29876 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29877 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29878 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29879 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29880 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29881 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29882 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29883 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29884 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29885 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29886 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29887 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29888 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29889 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29890 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29891 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29892 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29893 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29894 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29895 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29896 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29897 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29898 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29899 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29900 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29901 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29902 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29903 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29904 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29905 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29906 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29907 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29908 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29909 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29910 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29911 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29912 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29913 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29914 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29915 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29916 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29917 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29918 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29919 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29920 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29921 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29922 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29923 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
070c48b4
RD
29924 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29925 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29926 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29927 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29928 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29929 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29930 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29931 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL },
29932 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29933 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29934 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL },
c370783e 29935 { NULL, NULL, 0, NULL }
d55e5bfc
RD
29936};
29937
29938
29939/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29940
29941static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29942 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29943}
29944static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29945 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29946}
29947static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29948 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29949}
29950static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29951 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29952}
29953static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29954 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29955}
29956static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29957 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29958}
29959static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29960 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29961}
29962static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29963 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29964}
29965static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29966 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29967}
29968static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29969 return (void *)((wxEvent *) ((wxPyEvent *) x));
29970}
29971static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29972 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29973}
29974static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29975 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29976}
29977static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29978 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29979}
29980static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29981 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29982}
29983static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29984 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29985}
29986static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29987 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29988}
29989static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29990 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29991}
29992static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29993 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29994}
29995static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29996 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29997}
29998static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29999 return (void *)((wxEvent *) ((wxMoveEvent *) x));
30000}
30001static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
30002 return (void *)((wxEvent *) ((wxPaintEvent *) x));
30003}
30004static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
30005 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
30006}
30007static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
30008 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
30009}
30010static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
30011 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
30012}
30013static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
30014 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
30015}
30016static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
30017 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30018}
30019static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
30020 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
30021}
30022static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
30023 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
30024}
30025static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
30026 return (void *)((wxEvent *) ((wxFocusEvent *) x));
30027}
30028static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
30029 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
30030}
30031static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
30032 return (void *)((wxEvent *) ((wxProcessEvent *) x));
30033}
30034static void *_p_wxShowEventTo_p_wxEvent(void *x) {
30035 return (void *)((wxEvent *) ((wxShowEvent *) x));
30036}
30037static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
30038 return (void *)((wxEvent *) ((wxCommandEvent *) x));
30039}
30040static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
30041 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
30042}
30043static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
30044 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30045}
30046static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
30047 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
30048}
30049static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
30050 return (void *)((wxEvent *) ((wxKeyEvent *) x));
30051}
30052static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
30053 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
30054}
30055static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
30056 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
30057}
30058static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
30059 return (void *)((wxConfigBase *) ((wxConfig *) x));
30060}
30061static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
30062 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30063}
30064static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
30065 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
30066}
30067static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
30068 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
30069}
30070static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
30071 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
30072}
30073static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
30074 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
30075}
30076static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
30077 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
30078}
30079static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
30080 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
30081}
30082static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
30083 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
30084}
30085static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
30086 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30087}
30088static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
30089 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
30090}
30091static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
30092 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
30093}
30094static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
30095 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
30096}
30097static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
30098 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
30099}
30100static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
30101 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
30102}
30103static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
30104 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
30105}
30106static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
30107 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
30108}
30109static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
30110 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
30111}
30112static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
30113 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
30114}
30115static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
30116 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30117}
30118static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
30119 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
30120}
30121static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
30122 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
30123}
30124static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
30125 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
30126}
30127static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
30128 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
30129}
30130static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
30131 return (void *)((wxEvtHandler *) ((wxWindow *) x));
30132}
30133static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
30134 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30135}
30136static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
30137 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
30138}
30139static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
30140 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
30141}
30142static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30143 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30144}
30145static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30146 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30147}
30148static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30149 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30150}
30151static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
30152 return (void *)((wxEvtHandler *) ((wxMenu *) x));
30153}
30154static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
30155 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
30156}
30157static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
30158 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
30159}
30160static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
30161 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
30162}
30163static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
30164 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
30165}
30166static void *_p_wxSizerItemTo_p_wxObject(void *x) {
30167 return (void *)((wxObject *) ((wxSizerItem *) x));
30168}
30169static void *_p_wxScrollEventTo_p_wxObject(void *x) {
30170 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
30171}
30172static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
30173 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
30174}
30175static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
30176 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
30177}
30178static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
30179 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
30180}
30181static void *_p_wxSizerTo_p_wxObject(void *x) {
30182 return (void *)((wxObject *) ((wxSizer *) x));
30183}
30184static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
30185 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30186}
30187static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
30188 return (void *)((wxObject *) ((wxFileHistory *) x));
30189}
30190static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
30191 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
30192}
30193static void *_p_wxEventTo_p_wxObject(void *x) {
30194 return (void *)((wxObject *) ((wxEvent *) x));
30195}
30196static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
30197 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
30198}
30199static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30200 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
30201}
30202static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
30203 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
30204}
30205static void *_p_wxPaintEventTo_p_wxObject(void *x) {
30206 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
30207}
30208static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
30209 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
30210}
30211static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
30212 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
30213}
30214static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
30215 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
30216}
30217static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
30218 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30219}
30220static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
30221 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
30222}
30223static void *_p_wxControlTo_p_wxObject(void *x) {
30224 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
30225}
30226static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
30227 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
30228}
30229static void *_p_wxTimerEventTo_p_wxObject(void *x) {
30230 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
30231}
30232static void *_p_wxFSFileTo_p_wxObject(void *x) {
30233 return (void *)((wxObject *) ((wxFSFile *) x));
30234}
30235static void *_p_wxClipboardTo_p_wxObject(void *x) {
30236 return (void *)((wxObject *) ((wxClipboard *) x));
30237}
30238static void *_p_wxPySizerTo_p_wxObject(void *x) {
30239 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
30240}
30241static void *_p_wxPyEventTo_p_wxObject(void *x) {
30242 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
30243}
30244static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
30245 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
30246}
30247static void *_p_wxShowEventTo_p_wxObject(void *x) {
30248 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
30249}
30250static void *_p_wxToolTipTo_p_wxObject(void *x) {
30251 return (void *)((wxObject *) ((wxToolTip *) x));
30252}
30253static void *_p_wxMenuItemTo_p_wxObject(void *x) {
30254 return (void *)((wxObject *) ((wxMenuItem *) x));
30255}
30256static void *_p_wxIdleEventTo_p_wxObject(void *x) {
30257 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
30258}
30259static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
30260 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
30261}
30262static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
30263 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
30264}
30265static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
30266 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
30267}
30268static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
30269 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
30270}
30271static void *_p_wxSizeEventTo_p_wxObject(void *x) {
30272 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
30273}
30274static void *_p_wxMoveEventTo_p_wxObject(void *x) {
30275 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
30276}
30277static void *_p_wxActivateEventTo_p_wxObject(void *x) {
30278 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
30279}
30280static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
30281 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
30282}
30283static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
30284 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
30285}
30286static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
30287 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
30288}
30289static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
30290 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
30291}
30292static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
30293 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
30294}
30295static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
30296 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
30297}
30298static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
30299 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
30300}
30301static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
30302 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
30303}
30304static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
30305 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
30306}
30307static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
30308 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
30309}
30310static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
30311 return (void *)((wxObject *) ((wxImageHandler *) x));
30312}
30313static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
30314 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
30315}
30316static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
30317 return (void *)((wxObject *) ((wxEvtHandler *) x));
30318}
30319static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
30320 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
30321}
30322static void *_p_wxImageTo_p_wxObject(void *x) {
30323 return (void *)((wxObject *) ((wxImage *) x));
30324}
30325static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
30326 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
30327}
30328static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
30329 return (void *)((wxObject *) ((wxSystemOptions *) x));
30330}
30331static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
30332 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
30333}
30334static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
30335 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30336}
30337static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
30338 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
30339}
30340static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30341 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30342}
30343static void *_p_wxWindowTo_p_wxObject(void *x) {
30344 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30345}
30346static void *_p_wxMenuTo_p_wxObject(void *x) {
30347 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30348}
30349static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30350 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30351}
30352static void *_p_wxPyProcessTo_p_wxObject(void *x) {
30353 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
30354}
30355static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30356 return (void *)((wxObject *) ((wxFileSystem *) x));
30357}
30358static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30359 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30360}
30361static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30362 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30363}
30364static void *_p_wxPyAppTo_p_wxObject(void *x) {
30365 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30366}
30367static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30368 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30369}
30370static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30371 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30372}
30373static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30374 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30375}
30376static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
30377 return (void *)((wxObject *) ((wxBusyInfo *) x));
30378}
30379static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30380 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30381}
30382static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30383 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30384}
30385static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30386 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30387}
30388static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30389 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30390}
30391static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30392 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30393}
30394static void *_p_wxProcessEventTo_p_wxObject(void *x) {
30395 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
30396}
30397static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30398 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30399}
30400static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30401 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30402}
30403static void *_p_wxValidatorTo_p_wxObject(void *x) {
30404 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30405}
30406static void *_p_wxPyTimerTo_p_wxObject(void *x) {
30407 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
30408}
30409static void *_p_wxLogStderrTo_p_wxLog(void *x) {
30410 return (void *)((wxLog *) ((wxLogStderr *) x));
30411}
30412static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
30413 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
30414}
30415static void *_p_wxLogWindowTo_p_wxLog(void *x) {
30416 return (void *)((wxLog *) ((wxLogWindow *) x));
30417}
30418static void *_p_wxLogChainTo_p_wxLog(void *x) {
30419 return (void *)((wxLog *) ((wxLogChain *) x));
30420}
30421static void *_p_wxLogGuiTo_p_wxLog(void *x) {
30422 return (void *)((wxLog *) ((wxLogGui *) x));
30423}
30424static void *_p_wxPyLogTo_p_wxLog(void *x) {
30425 return (void *)((wxLog *) ((wxPyLog *) x));
30426}
30427static void *_p_wxControlTo_p_wxWindow(void *x) {
30428 return (void *)((wxWindow *) ((wxControl *) x));
30429}
30430static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30431 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30432}
30433static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30434 return (void *)((wxWindow *) ((wxMenuBar *) x));
30435}
30436static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
30437 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
30438}
30439static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
30440 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
30441}
30442static 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}};
30443static 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}};
30444static 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}};
30445static 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}};
30446static 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}};
30447static 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}};
30448static 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}};
30449static 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}};
30450static 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}};
30451static 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}};
30452static 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}};
30453static 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}};
30454static 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}};
30455static 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}};
30456static 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}};
30457static 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}};
30458static 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}};
30459static 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}};
30460static 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}};
30461static 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}};
30462static 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}};
30463static 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}};
30464static 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}};
30465static 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}};
30466static 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}};
30467static 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}};
30468static 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}};
0346c964 30469static 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
30470static 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}};
30471static 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}};
30472static 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}};
30473static 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
30474static 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}};
30475static 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}};
30476static 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}};
30477static 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}};
30478static 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}};
30479static 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}};
30480static 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}};
30481static 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}};
30482static 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}};
30483static 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}};
30484static 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}};
30485static 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}};
30486static 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}};
30487static 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}};
30488static 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}};
30489static 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}};
30490static 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}};
30491static 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}};
30492static 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}};
30493static 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}};
30494static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
070c48b4 30495static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
30496static 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}};
30497static 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}};
30498static 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}};
30499static 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}};
30500static 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}};
30501static 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}};
30502static 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}};
30503static 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}};
30504static 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}};
30505static 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}};
30506static 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}};
30507static 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}};
30508static 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}};
30509static 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}};
30510static 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}};
30511static 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}};
30512static 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}};
30513static 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}};
30514static 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}};
30515static 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}};
30516static 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}};
30517static 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}};
30518static 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}};
30519static 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}};
30520static 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}};
30521static 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}};
30522static 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}};
30523static 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}};
30524static 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}};
30525static 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
30526static 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}};
30527static 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}};
30528static 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}};
30529
30530static swig_type_info *swig_types_initial[] = {
30531_swigt__p_wxLogChain,
30532_swigt__p_wxMutexGuiLocker,
30533_swigt__p_wxMetafile,
30534_swigt__p_wxFileHistory,
30535_swigt__p_wxLog,
30536_swigt__p_wxDateTime__TimeZone,
30537_swigt__p_wxMenu,
30538_swigt__p_wxEvent,
30539_swigt__p_wxConfigBase,
30540_swigt__p_wxDisplay,
30541_swigt__p_wxFileType,
30542_swigt__p_wxLogGui,
30543_swigt__p_wxFont,
30544_swigt__p_wxDataFormat,
30545_swigt__p_wxTimerEvent,
30546_swigt__p_wxCaret,
30547_swigt__p_int,
30548_swigt__p_wxSize,
30549_swigt__p_wxClipboard,
30550_swigt__p_wxStopWatch,
30551_swigt__p_wxDC,
30552_swigt__p_wxClipboardLocker,
30553_swigt__p_wxIcon,
30554_swigt__p_wxLogStderr,
30555_swigt__p_wxLogTextCtrl,
30556_swigt__p_wxTextCtrl,
30557_swigt__p_wxBusyCursor,
0346c964 30558_swigt__p_wxPyBitmapDataObject,
d55e5bfc
RD
30559_swigt__p_wxPyTextDataObject,
30560_swigt__p_wxBitmapDataObject,
30561_swigt__p_wxTextDataObject,
30562_swigt__p_wxDataObject,
d55e5bfc
RD
30563_swigt__p_wxFileDataObject,
30564_swigt__p_wxCustomDataObject,
30565_swigt__p_wxURLDataObject,
30566_swigt__p_wxMetafileDataObject,
30567_swigt__p_wxSound,
30568_swigt__p_wxTimerRunner,
30569_swigt__p_wxLogWindow,
30570_swigt__p_wxTimeSpan,
30571_swigt__p_wxArrayString,
30572_swigt__p_wxWindowDisabler,
30573_swigt__p_wxToolTip,
30574_swigt__p_wxDataObjectComposite,
30575_swigt__p_wxFileConfig,
30576_swigt__p_wxSystemSettings,
30577_swigt__p_wxVideoMode,
30578_swigt__p_wxPyDataObjectSimple,
30579_swigt__p_wxDataObjectSimple,
30580_swigt__p_wxEvtHandler,
30581_swigt__p_wxRect,
30582_swigt__p_char,
30583_swigt__p_wxSingleInstanceChecker,
070c48b4 30584_swigt__p_wxStandardPaths,
d55e5bfc
RD
30585_swigt__p_wxFileTypeInfo,
30586_swigt__p_wxFrame,
30587_swigt__p_wxTimer,
30588_swigt__p_wxMimeTypesManager,
30589_swigt__p_wxPyArtProvider,
30590_swigt__p_wxPyTipProvider,
30591_swigt__p_wxTipProvider,
30592_swigt__p_wxJoystick,
30593_swigt__p_wxSystemOptions,
30594_swigt__p_wxPoint,
30595_swigt__p_wxJoystickEvent,
30596_swigt__p_wxCursor,
30597_swigt__p_wxObject,
30598_swigt__p_wxOutputStream,
30599_swigt__p_wxDateTime,
30600_swigt__p_wxPyDropSource,
30601_swigt__p_wxWindow,
30602_swigt__p_wxString,
30603_swigt__p_wxPyProcess,
30604_swigt__p_wxBitmap,
30605_swigt__p_wxConfig,
30606_swigt__p_wxChar,
30607_swigt__p_wxBusyInfo,
30608_swigt__p_wxPyDropTarget,
30609_swigt__p_wxPyTextDropTarget,
30610_swigt__p_wxPyFileDropTarget,
30611_swigt__p_wxProcessEvent,
30612_swigt__p_wxPyLog,
30613_swigt__p_wxLogNull,
30614_swigt__p_wxColour,
d55e5bfc
RD
30615_swigt__p_wxConfigPathChanger,
30616_swigt__p_wxPyTimer,
30617_swigt__p_wxDateSpan,
306180
30619};
30620
30621
30622/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30623
30624static swig_const_info swig_const_table[] = {
30625{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
30626{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
30627{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
30628{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
30629{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
c370783e 30630{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
30631
30632#ifdef __cplusplus
30633}
30634#endif
30635
30636#ifdef __cplusplus
30637extern "C"
30638#endif
30639SWIGEXPORT(void) SWIG_init(void) {
30640 static PyObject *SWIG_globals = 0;
30641 static int typeinit = 0;
30642 PyObject *m, *d;
30643 int i;
30644 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
30645 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30646 d = PyModule_GetDict(m);
30647
30648 if (!typeinit) {
30649 for (i = 0; swig_types_initial[i]; i++) {
30650 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
30651 }
30652 typeinit = 1;
30653 }
30654 SWIG_InstallConstants(d,swig_const_table);
30655
c370783e
RD
30656 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
30657 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
30658 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
30659 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
30660 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
30661 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
30662 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
30663 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
30664 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
30665 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
30666 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
30667 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30668 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30669 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30670 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30671 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30672 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30673 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30674 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30675 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30676 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30677 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30678 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30679 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30680 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30681 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30682 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30683 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30684 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30685 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30686 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30687 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30688 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30689 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30690 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30691 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30692 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30693 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30694 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30695 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30696 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30697 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30698 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30699 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30700 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30701 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30702 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30703 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30704 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30705 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30706 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30707 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30708 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30709 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30710 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30711 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30712 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30713 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30714 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30715 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30716 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30717 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30718 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30719 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30720 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30721 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30722 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30723 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30724 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30725 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30726 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30727 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30728 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30729 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30730 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30731 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30732 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30733 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30734 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30735 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30736 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30737 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30738 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30739 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30740 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30741 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30742 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30743 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30744 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30745 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30746 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
d55e5bfc 30747 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
629e65c2 30748 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
d55e5bfc
RD
30749 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30750 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30751 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
c370783e
RD
30752 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30753 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30754 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30755 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
d55e5bfc 30756 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
1a6bba1e
RD
30757
30758 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30759
c370783e
RD
30760 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30761 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30762 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30763 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30764 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30765 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30766 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30767 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30768 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30769 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30770 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
d55e5bfc
RD
30771 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30772 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30773 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30774 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30775 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
c370783e
RD
30776 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30777 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30778 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30779 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30780 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30781 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30782 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30783 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30784 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30785 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30786 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30787 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30788 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30789 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30790 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30791 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30792 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30793 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30794 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30795 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30796 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30797 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30798 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30799 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30800 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30801 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30802 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30803 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30804 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
d55e5bfc 30805 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
c370783e
RD
30806 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30807 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30808 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30809 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
d55e5bfc
RD
30810
30811 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30812
c370783e
RD
30813 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30814 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30815 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30816 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30817 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30818 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30819 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
d55e5bfc
RD
30820 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30821 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30822 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30823 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
c370783e
RD
30824 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30825 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30826 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30827 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30828 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30829 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30830 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30831 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
d55e5bfc
RD
30832 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30833 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30834 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30835 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30836 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30837 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30838 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
4cf4100f 30839 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
d55e5bfc
RD
30840 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30841 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30842 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30843 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30844 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30845 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30846 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30847 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30848 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30849 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30850 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30851 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30852 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30853 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30854 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30855 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30856 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30857 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30858 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30859 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30860 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
f78cc896
RD
30861 SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set);
30862 SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set);
30863 SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set);
30864 SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set);
d55e5bfc 30865 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
f78cc896 30866 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set);
d55e5bfc
RD
30867 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30868 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30869 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30870 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30871 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30872 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30873 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30874 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30875 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30876 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30877
30878 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30879
c370783e
RD
30880 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30881 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30882 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30883 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30884 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30885 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30886 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30887 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30888 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
d55e5bfc
RD
30889 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30890 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
c370783e
RD
30891 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30892 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30893 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30894 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30895 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30896 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30897 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30898 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30899 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30900 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30901 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30902 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30903 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30904 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30905 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30906 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30907 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30908 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30909 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30910 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30911 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30912 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30913 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30914 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30915 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30916 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30917 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30918 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30919 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30920 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30921 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30922 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30923 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30924 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30925 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30926 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30927 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30928 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30929 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30930 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30931 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30932 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30933 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30934 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30935 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30936 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30937 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30938 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30939 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30940 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30941 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30942 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30943 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30944 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30945 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30946 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30947 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30948 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30949 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30950 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30951 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30952 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30953 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30954 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30955 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30956 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30957 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30958 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30959 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30960 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30961 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30962 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30963 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30964 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30965 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30966 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30967 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30968 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30969 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30970 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30971 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30972 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30973 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30974 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30975 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30976 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30977 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30978 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30979 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30980 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30981 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30982 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30983 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30984 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30985 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30986 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30987 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30988 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30989 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30990 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30991 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30992 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30993 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30994 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30995 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30996 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30997 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30998 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30999 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
31000 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
31001 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
31002 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
31003 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
31004 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
31005 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
31006 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
31007 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
31008 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
31009 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
31010 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
31011 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
31012 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
31013 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
31014 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
31015 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
31016 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
31017 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
31018 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
31019 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
31020 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
31021 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
31022 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
31023 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
31024 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
31025 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
31026 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
31027 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
31028 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
31029 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
31030 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
31031 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
31032 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
31033 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
31034 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
31035 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
31036 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
31037 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
31038 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
31039 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
31040 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
31041 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
31042 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
31043 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
31044 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
31045 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
d55e5bfc 31046 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
c370783e
RD
31047 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
31048 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
31049 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
31050 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
31051 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
31052 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
31053 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
31054 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
31055 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
31056 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
31057 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
31058 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
31059 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
31060 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
31061 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
31062 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
31063 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
31064 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
31065 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
31066 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
d55e5bfc 31067 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
c370783e
RD
31068 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
31069 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
31070 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
31071 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
31072 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
31073 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
31074 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
31075 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
31076 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
31077 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
31078 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
31079 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
d55e5bfc
RD
31080
31081 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
31082 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
31083 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
31084 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
31085
d55e5bfc
RD
31086 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
31087}
31088